From 9e000fa736a8fd30d7ee5b3fdbff6cf228d6a8de Mon Sep 17 00:00:00 2001 From: Heckyel Date: Mon, 23 Jan 2017 14:29:46 -0500 Subject: tester 1 --- librevideojs-html5-player.php | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'librevideojs-html5-player.php') diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index b3a9f82..fcccc63 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.0.3'; + var $plugin_version = '1.0.4'; function __construct() { define('LIBREVIDEOJS_HTML5_PLAYER_VERSION', $this->plugin_version); @@ -83,14 +83,33 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { } +// function listar_archivos(){ +// $plugin_url = plugins_url('', __FILE__); +// +// // Abrir un directorio conocido, y proceder a leer su contenido +// foreach(glob($plugin_url . '/librevideojs/css/mix-material/*.min.css') as $piel) { +// echo "Filename: " . $piel . "
"; +// wp_register_style('librevideojs-mix' . 'Filename' . '-style', $piel); +// } +// } + function librevideojs_html5_player_enqueue_scripts() { if (!is_admin()) { $plugin_url = plugins_url('', __FILE__); - wp_enqueue_script('jquery'); wp_register_script('librevideojs', $plugin_url . '/librevideojs/js/cliplibrejs.dev.js', true); wp_enqueue_script('librevideojs'); - wp_register_style('librevideojs', $plugin_url . '/librevideojs/css/librevideojs-material/libre-skin-teal.min.css'); - wp_enqueue_style('librevideojs'); + // wp_register_style('librevideojs-mixteal-style', $plugin_url . '/librevideojs/css/mix-material/mix-teal.min.css'); + // wp_enqueue_style('librevideojs-mixteal-style'); + // wp_register_style('librevideojs-mixred-style', $plugin_url . '/librevideojs/css/mix-material/mix-red.min.css'); + // wp_enqueue_style('librevideojs-mixred-style'); + // Abrir un directorio conocido, y proceder a leer su contenido + foreach(glob($plugin_url . '/librevideojs/css/mix-material/*.min.css') as $piel) { + wp_register_style('librevideojs-mixred-style', $piel); + wp_enqueue_style('librevideojs-mixred-style'); + } + + wp_register_style('librevideojs-material-style', $plugin_url . '/librevideojs/css/librevideojs-material/libre-skin-teal.min.css'); + wp_enqueue_style('librevideojs-material-style'); wp_register_style('librevideojs-style', $plugin_url . '/librevideojs-html5-player.css'); wp_enqueue_style('librevideojs-style'); wp_register_script('librevideojs-selector', $plugin_url . '/librevideojs/selector/video-quality-selector.min.js', true); @@ -120,6 +139,7 @@ function librevideojs_html5_video_embed_handler($atts, $content=null) { 'loop' => '', 'muted' => '', 'poster' => '', + 'skin' => '', 'class' => '', ), $atts)); @@ -192,6 +212,13 @@ function librevideojs_html5_video_embed_handler($atts, $content=null) { $calidades = ""; } + if (!empty($skin)) { + $_skin = "-". "$skin"; + } + else{ + $_skin= "" ; + } + //poster if(!empty($poster)) { $poster = " poster='$poster'"; @@ -212,7 +239,7 @@ EOT; } $output = << -