$type, 'container' => 'posts_content', 'render' => array( $this, 'infinite_scroll_render' ), ) ); if ( class_exists( 'The_Neverending_Home_Page' ) ) { add_filter( 'boozurk_option_override' , array( $this, 'infinite_scroll_skip_options' ), 10, 2 ); add_filter( 'infinite_scroll_results' , array( $this, 'infinite_scroll_encode' ), 11, 1 ); } //Carousel if ( class_exists( 'Jetpack_Carousel' ) ) { remove_filter( 'post_gallery' , 'boozurk_gallery_shortcode', 10, 2 ); add_filter( 'boozurk_option_override' , array( $this, 'carousel_skip_options' ), 10, 2 ); } } //print the "likes" button after post content function likes() { echo '
' . apply_filters('boozurk_filter_likes','') . '
'; } //Set the code to be rendered on for calling posts, function infinite_scroll_render() { if ( isset( $_GET['page'] ) && $page = (int) $_GET['page'] ) echo '
' . sprintf( __('Page %s','boozurk'), $page ) . '
'; get_template_part( 'loop' ); } //skip the built-in infinite-scroll feature function infinite_scroll_skip_options( $value, $name ) { if ( 'boozurk_infinite_scroll' === $name ) return false; return $value; } //encodes html result to UTF8 (jetpack bug?) //http://localhost/wordpress/?infinity=scrolling&action=infinite_scroll&page=5&order=DESC function infinite_scroll_encode( $results ) { $results['html'] = utf8_encode( utf8_decode( $results['html'] ) ); return $results; } //skip the Google+ option function sharedaddy_skip_options( $value, $name ) { if ( 'boozurk_plusone' === $name ) return false; return $value; } //print the sharedaddy buttons after post content function sharedaddy_display() { echo sharing_display(); } //skip the thickbox js module function carousel_skip_options( $value, $name ) { if ( 'boozurk_js_thickbox' === $name ) return false; return $value; } } new Boozurk_For_Jetpack;