aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeckyel <heckyel@openmailbox.org>2016-12-23 15:40:11 -0500
committerHeckyel <heckyel@openmailbox.org>2016-12-23 15:40:11 -0500
commitf6507418ff542a08cb35dcc5b46bc2a383055196 (patch)
tree167cc4698c77b7a7cc1cd6920915878df478b6dc
parent6bdf360d5b4042b4e2c58e22e7f84fce0176a3a4 (diff)
downloadlibrevideojs-html5-player-f6507418ff542a08cb35dcc5b46bc2a383055196.tar.lz
librevideojs-html5-player-f6507418ff542a08cb35dcc5b46bc2a383055196.tar.xz
librevideojs-html5-player-f6507418ff542a08cb35dcc5b46bc2a383055196.zip
depurado
-rw-r--r--librevideojs-html5-player.php21
1 files changed, 4 insertions, 17 deletions
diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php
index 5a32f12..e328aca 100644
--- a/librevideojs-html5-player.php
+++ b/librevideojs-html5-player.php
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: LibreVideoJS HTML5 Player
-Version: 1.0.1
+Version: 1.0.2
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,27 +20,13 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) {
class LIBREVIDEOJS_HTML5_PLAYER {
- var $plugin_version = '1.0.1';
+ var $plugin_version = '1.0.2';
function __construct() {
define('LIBREVIDEOJS_HTML5_PLAYER_VERSION', $this->plugin_version);
$this->plugin_includes();
}
- function the_content_video( $more_link_text = null, $strip_teaser = false) {
- $content_video = get_the_content( $more_link_text, $strip_teaser );
- /**
- * Filtrando contenido del video.
- *
- * @since 0.71
- *
- * @param string $content_video Content of the current post.
- */
- $content_video = apply_filters( 'the_content_video', $content_video );
- $content_video = str_replace( ']]>', ']]&gt;', $content_video );
- echo $content_video;
- }
-
function plugin_includes() {
if (is_admin()) {
add_filter('plugin_action_links', array($this, 'plugin_action_links'), 10, 2);
@@ -199,6 +185,7 @@ function librevideojs_html5_video_embed_handler($atts, $content=null) {
}
// Calidades
+ $content_video = '';
if(!is_null( $content_video )){
$calidades = do_shortcode($content_video);
}
@@ -211,8 +198,8 @@ function librevideojs_html5_video_embed_handler($atts, $content=null) {
$poster = ' poster="'.$poster.'"';
}
$player = "librevideojs" . uniqid();
- //custom style
+ //custom style
$style = '';
if(!empty($width)){
$style = <<<EOT