diff options
author | Jesús Eduardo Estupiñan Medina <heckyel@openmailbox.org> | 2017-02-06 17:26:21 +0100 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2017-02-06 17:26:21 +0100 |
commit | 47e42d8c3aab5bef3ca6b1107613d42695b48a13 (patch) | |
tree | 132b3e7da8f6e38309a75c7ae88312787b341e9c | |
parent | 46b412933a237024673b8ad38b9b68912063ed80 (diff) | |
parent | 221867e24ee77a0bdcd2ba1cdc1048d749735995 (diff) | |
download | librevideojs-html5-player-47e42d8c3aab5bef3ca6b1107613d42695b48a13.tar.lz librevideojs-html5-player-47e42d8c3aab5bef3ca6b1107613d42695b48a13.tar.xz librevideojs-html5-player-47e42d8c3aab5bef3ca6b1107613d42695b48a13.zip |
Merge branch 'master' of jorgesumle/librevideojs-html5-player into master
-rw-r--r-- | librevideojs-html5-player.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index 5bda368..e602525 100644 --- a/librevideojs-html5-player.php +++ b/librevideojs-html5-player.php @@ -34,7 +34,6 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { add_action('plugins_loaded', array($this, 'plugins_loaded_handler')); add_action('wp_enqueue_scripts', 'librevideojs_html5_player_enqueue_scripts'); add_action('admin_menu', array($this, 'add_options_menu')); - add_action('wp_head', 'librevideojs_html5_player_header'); add_shortcode('librevideojs_video', 'librevideojs_html5_video_embed_handler'); //allows shortcode execution in the widget, excerpt and content add_filter('widget_text', 'do_shortcode'); @@ -102,13 +101,6 @@ function librevideojs_html5_player_enqueue_scripts() { } } -function librevideojs_html5_player_header() { - if (!is_admin()) { - $config = '<!-- This site is embedding videos using the LibreVideoJS HTML5 Player plugin v' . LIBREVIDEOJS_HTML5_PLAYER_VERSION . ' - https://conocimientoslibres.tuxfamily.org -->'; - echo $config; - } -} - function librevideojs_html5_video_embed_handler($atts, $content=null) { extract(shortcode_atts(array( 'url' => '', @@ -226,7 +218,6 @@ EOT; } $output = <<<EOT - <!-- Begin LibreVideoJS --> <div class="LibreVideoJS"> <video id="$player" class="cliplibre-js-responsive-container librevjs-hd cliplibre-js librevjs-libre-{$_skin}-skin" {$controls}{$preload}{$autoplay}{$loop}{$muted}{$poster} data-setup='{}'> {$src}\n\t\t{$calidades}{$track}<p class="no_html5">Sorry, this video will not work because your web browser does not support HTML5 video.<br>We recommend that you install a <a href='https://libreplanet.org/wiki/Libre_Browsers_Libre_Formats' target='_blank'> browser that respects the freedom and support free formats</a>!</p> @@ -239,7 +230,6 @@ EOT; </script> $style <br> - <!-- End LibreVideoJS --> EOT; return $output; } |