From 3e66817ef0af3dd4da1d28d284d3f176e75c1c89 Mon Sep 17 00:00:00 2001 From: Heckyel Date: Wed, 22 Feb 2017 17:15:56 -0500 Subject: Debugging Smart shortcode --- librevideojs-html5-player.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'librevideojs-html5-player.php') diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index e1e15a5..dc3b673 100644 --- a/librevideojs-html5-player.php +++ b/librevideojs-html5-player.php @@ -1,7 +1,7 @@ Jesús Eduardo, Jorge Maldonado Description: Reproductor de vídeo Libre en Responsive Desing HTML5 para WordPress, construido sobre el ampliamente utilizado LibreVideoJS de la biblioteca del reproductor de vídeo HTML5. Le permite incrustar vídeo en tu post o página con HTML5 para los navegadores principales. Es compatible con LibreJS de acuerdo con la filosofía GNU. @@ -20,7 +20,7 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')){ class LIBREVIDEOJS_HTML5_PLAYER{ - var $plugin_version = '1.2.0'; + var $plugin_version = '1.2.1'; function __construct(){ define('L_VERSION', $this->plugin_version); @@ -84,12 +84,12 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')){ function librevideojs_html5_player_enqueue_scripts(){ global $post, $plugin_url; $plugin_url = plugins_url('', __FILE__); - if (is_home() || is_single() && strpos($post->post_content, '[librevideojs_video') !== false){ + if ( is_home() || is_archive() || is_category() || is_tag() ){ wp_enqueue_style('lvjs-mix-master', $plugin_url . '/librevideojs/css/mix-material/master.css', array(), '1.4'); wp_enqueue_style('lvjs-material', $plugin_url . '/librevideojs/css/material/master.css', array(), '1.4'); wp_enqueue_style('lvjs-selector', $plugin_url . '/librevideojs/css/quality-selector.css', array(), '1.4'); wp_enqueue_script('lvjs', $plugin_url . '/librevideojs/js/cliplibrejs.dev.js', array(), L_VERSION); - } else if (is_page() && strpos($post->post_content, '[librevideojs_video') !== false){ + } else if ( ( is_page() || is_author() || is_single() ) && strpos($post->post_content, '[librevideojs_video') !== false ){ wp_enqueue_style('lvjs-mix-master', $plugin_url . '/librevideojs/css/mix-material/master.css', array(), '1.4'); wp_enqueue_style('lvjs-material', $plugin_url . '/librevideojs/css/material/master.css', array(), '1.4'); wp_enqueue_style('lvjs-selector', $plugin_url . '/librevideojs/css/quality-selector.css', array(), '1.4'); @@ -297,5 +297,3 @@ function calidades_shortcode($atts, $content=null){ return $calidades; } add_shortcode('calidades', 'calidades_shortcode'); - -?> -- cgit v1.2.3