diff options
author | Heckyel <heckyel@openmailbox.org> | 2017-02-08 09:41:14 -0500 |
---|---|---|
committer | Heckyel <heckyel@openmailbox.org> | 2017-02-08 09:41:14 -0500 |
commit | 03542d373a016a9388f56a0616975ed39f755f00 (patch) | |
tree | de9b2241a5a00074b0af3fa2b1705249d2aa59d9 | |
parent | 76114ab808d6d1c1366daf11172dd19ced8053a6 (diff) | |
download | librevideojs-html5-player-03542d373a016a9388f56a0616975ed39f755f00.tar.lz librevideojs-html5-player-03542d373a016a9388f56a0616975ed39f755f00.tar.xz librevideojs-html5-player-03542d373a016a9388f56a0616975ed39f755f00.zip |
smart shortcode
-rw-r--r-- | librevideojs-html5-player.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index c012125..0232548 100644 --- a/librevideojs-html5-player.php +++ b/librevideojs-html5-player.php @@ -83,16 +83,15 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { } function librevideojs_html5_player_enqueue_scripts() { - global $post; + global $post, $plugin_url; + $plugin_url = plugins_url('', __FILE__); if (is_home() || is_single() && strpos($post->post_content, '[librevideojs_video') !== false){ - $plugin_url = plugins_url('', __FILE__); 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/librevideojs-material/master.css', array(), '1.4'); wp_enqueue_style('lvjs-selector', $plugin_url . '/librevideojs/selector/video-quality-selector.css', array(), '1.4'); wp_enqueue_script('lvjs', $plugin_url . '/librevideojs/js/cliplibrejs.dev.js', array(), L_VERSION); wp_enqueue_script('lvjs-selector', $plugin_url . '/librevideojs/selector/video-quality-selector.js', array(), L_VERSION); } else if (is_page() && strpos($post->post_content, '[librevideojs_video') !== false){ - $plugin_url = plugins_url('', __FILE__); 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/librevideojs-material/master.css', array(), '1.4'); wp_enqueue_style('lvjs-selector', $plugin_url . '/librevideojs/selector/video-quality-selector.css', array(), '1.4'); |