aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeckyel <heckyel@openmailbox.org>2017-02-22 17:15:56 -0500
committerHeckyel <heckyel@openmailbox.org>2017-02-22 17:15:56 -0500
commit3e66817ef0af3dd4da1d28d284d3f176e75c1c89 (patch)
tree4296e99e7e9cb4108d9b8548e778dc25c017b4c4
parenteb20ae39a8dceafdbd5ff720bbeac1544e15b19f (diff)
downloadlibrevideojs-html5-player-3e66817ef0af3dd4da1d28d284d3f176e75c1c89.tar.lz
librevideojs-html5-player-3e66817ef0af3dd4da1d28d284d3f176e75c1c89.tar.xz
librevideojs-html5-player-3e66817ef0af3dd4da1d28d284d3f176e75c1c89.zip
Debugging Smart shortcode
-rw-r--r--librevideojs-html5-player.php10
-rw-r--r--readme.txt5
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 @@
<?php
/*
Plugin Name: LibreVideoJS HTML5 Player
-Version: 1.2.0
+Version: 1.2.1
Plugin URI: https://wordpress.org/plugins/librevideojs-html5-player
Author: <a href="https://conocimientoslibres.tuxfamily.org">Jesús Eduardo</a>, <a href="http://www.freakspot.net/">Jorge Maldonado</a>
Description: Reproductor de vídeo Libre en Responsive Desing HTML5 para WordPress, construido sobre el ampliamente utilizado <a href="https://notabug.org/Heckyel/LibreVideoJS">LibreVideoJS</a> 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 <a href="https://www.gnu.org/software/librejs/free-your-javascript.html">LibreJS</a> de acuerdo con la filosofía <a href="https://www.gnu.org">GNU</a>.
@@ -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