From b5ab9b5729bc6c7f0fde1781384d54a79a3c706d Mon Sep 17 00:00:00 2001 From: Heckyel Date: Mon, 23 Jan 2017 14:32:45 -0500 Subject: new skin --- librevideojs-html5-player.php | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'librevideojs-html5-player.php') diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index fcccc63..bf85d70 100644 --- a/librevideojs-html5-player.php +++ b/librevideojs-html5-player.php @@ -83,31 +83,20 @@ 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_register_script('librevideojs', $plugin_url . '/librevideojs/js/cliplibrejs.dev.js', true); wp_enqueue_script('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-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 $theme) { + // wp_register_style('librevideojs-mixred-style', $theme); + // 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'); -- cgit v1.2.3