diff options
Diffstat (limited to 'librevideojs-html5-player.php')
-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 . "' "; |