diff options
author | Heckyel <heckyel@openmailbox.org> | 2016-12-22 16:47:37 -0500 |
---|---|---|
committer | Heckyel <heckyel@openmailbox.org> | 2016-12-22 16:47:37 -0500 |
commit | a276be702096d17876be3f0378b0fc732caa9d67 (patch) | |
tree | 909db573c9d5f4fa7e75d9d8ddefe7aa95f05c38 | |
parent | 7164934bff1aaccffd85967e3dcf7cde09dcff35 (diff) | |
download | librevideojs-html5-player-a276be702096d17876be3f0378b0fc732caa9d67.tar.lz librevideojs-html5-player-a276be702096d17876be3f0378b0fc732caa9d67.tar.xz librevideojs-html5-player-a276be702096d17876be3f0378b0fc732caa9d67.zip |
solucionado variable no existe
-rw-r--r-- | librevideojs-html5-player.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/librevideojs-html5-player.php b/librevideojs-html5-player.php index b3536b8..f59f6e2 100644 --- a/librevideojs-html5-player.php +++ b/librevideojs-html5-player.php @@ -27,6 +27,20 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { $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', $content_video ); + $content_video = str_replace( ']]>', ']]>', $content_video ); + echo $content_video; + } + function plugin_includes() { if (is_admin()) { add_filter('plugin_action_links', array($this, 'plugin_action_links'), 10, 2); @@ -40,6 +54,7 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { add_filter('widget_text', 'do_shortcode'); add_filter('the_excerpt', 'do_shortcode', 11); add_filter('the_content', 'do_shortcode', 11); + add_filter('the_content_video', 'do_shortcode', 11);//llamando the_content_video } function plugin_url() { @@ -75,7 +90,6 @@ if (!class_exists('LIBREVIDEOJS_HTML5_PLAYER')) { </div> <?php } - } $GLOBALS['easy_video_player'] = new LIBREVIDEOJS_HTML5_PLAYER(); |