Last active
October 17, 2016 09:17
-
-
Save foliovision/b14893ecd7458a417992 to your computer and use it in GitHub Desktop.
FV Flowplayer Crossdomain Licensing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_footer', 'custom_fv_flowplayer_crossdomain_license', 9999 ); | |
function custom_fv_flowplayer_crossdomain_license() { | |
?> | |
<script> | |
if( typeof(flowplayer) != "undefined" ) { | |
if( location.hostname == "your-domain.de" ){ | |
flowplayer.conf.key = '$1234567890'; | |
} else if( location.hostname == "your-domain.it" ){ | |
flowplayer.conf.key = '$1234567890'; | |
} else if( location.hostname == "your-domain.eu" ){ | |
flowplayer.conf.key = '$1234567890'; | |
} | |
} | |
</script> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment