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 ++++------ readme.txt | 5 ++++- 2 files changed, 8 insertions(+), 7 deletions(-) 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'); - -?> diff --git a/readme.txt b/readme.txt index 63180f7..e43ff6b 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=94ETC Tags: video, wpvideo, HTML5, videojs, mobile, playlists, embed video, librevideojs, player, video player, embed, lightweight, minimal, myvideo, responsive requires at least: 4.2 Tested up to: 4.7.2 -Stable tag: 1.2.0 +Stable tag: 1.2.1 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -193,6 +193,9 @@ None == Changelog == += 1.2.1 = +* Debugging Smart shortcode + = 1.2.0 = * New Functionality - Hotkeys * Debugging source code -- cgit v1.2.3