diff options
author | Heckyel <heckyel@openmailbox.org> | 2016-12-24 22:05:10 -0500 |
---|---|---|
committer | Heckyel <heckyel@openmailbox.org> | 2016-12-24 22:05:10 -0500 |
commit | edcc59750a063086c498b957ed6e62adcdcce7de (patch) | |
tree | d35ad61f615c29192245b8d1f8db55efd89832eb | |
parent | 771d36cebada3b8cb7a19892f78ff267511b0c3f (diff) | |
download | librevideojs-html5-player-edcc59750a063086c498b957ed6e62adcdcce7de.tar.lz librevideojs-html5-player-edcc59750a063086c498b957ed6e62adcdcce7de.tar.xz librevideojs-html5-player-edcc59750a063086c498b957ed6e62adcdcce7de.zip |
update
-rw-r--r-- | librevideojs-html5-player.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index e328aca..9250d35 100644 --- a/librevideojs-html5-player.php +++ b/librevideojs-html5-player.php @@ -40,7 +40,7 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { add_filter('widget_text', 'do_shortcode'); add_filter('the_excerpt', 'do_shortcode', 11); add_filter('the_content', 'do_shortcode', 11); - add_filter('the_content_video', 'do_shortcode', 11);//llamando the_content_video + } function plugin_url() { @@ -185,9 +185,8 @@ function librevideojs_html5_video_embed_handler($atts, $content=null) { } // Calidades - $content_video = ''; - if(!is_null( $content_video )){ - $calidades = do_shortcode($content_video); + if(!is_null( $content = "" )){ + $calidades = do_shortcode($content); } else{ $calidades = ""; @@ -204,7 +203,7 @@ function librevideojs_html5_video_embed_handler($atts, $content=null) { if(!empty($width)){ $style = <<<EOT <style> - #$player { + $player { max-width:{$width}px; } </style> @@ -271,12 +270,12 @@ add_shortcode('track', 'track_shortcode'); /*Trayendo las calidades*/ -function calidades_shortcode($atts, $content_video=null){ +function calidades_shortcode($atts, $content=null){ extract(shortcode_atts(array( 'lvjs_calidad' => '', 'src_video' => '', 'lvjs_code' => '', - ), $atts, 'calidades')); + ), $atts)); if ($lvjs_calidad) { $lvjs_calidad = " data-res='" . $lvjs_calidad . "' "; |