Beispiel #1
0
 function __construct()
 {
     self::$instance = $this;
     add_filter('wp_video_shortcode_override', array($this, 'video_shortcode'), 10, 4);
     add_filter('post_gallery', array($this, 'gallery_shortcode'), 10, 2);
     add_action('admin_footer', array($this, 'gallery_settings_template'));
     add_action('customize_controls_print_footer_scripts', array($this, 'gallery_settings_template'));
 }
Beispiel #2
0
<div class="sk-video" style="display:block;opacity:1;"
	data-1p-bottom-top="display:none;top:0" 
	data-bottom-top="display:block;" 
	data-center-bottom="display:none;" 
	data-anchor-target="#<?php 
echo $post->post_name;
?>
">
	<?php 
// display only video here
add_filter('the_content', array(Skrollr_Shortcodes::get_instance(), 'extract_shortcodes'));
the_content();
remove_filter('the_content', array(Skrollr_Shortcodes::get_instance(), 'extract_shortcodes'));
?>
</div>