$type, 'container' => 'posts_content', 'render' => array( $this, 'infinite_scroll_render' ), ) ); if ( class_exists( 'The_Neverending_Home_Page' ) ) { add_filter( 'boozurk_option_boozurk_infinite_scroll' , '__return_false' ); 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_boozurk_js_thickbox' , '__return_false' ); } } //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' ); } //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; } //print the sharedaddy buttons after post content function sharedaddy_display() { echo sharing_display(); } } new Boozurk_For_Jetpack;