'sidebar-6', 'container' => 'content-blog', 'footer' => 'wrapper', ) ); } add_action( 'after_setup_theme', 'responsive_infinite_scroll_init' ); /** * Check whether or not footer widgets are present. If they are present, then a button to * 'Load more posts' will be displayed and IS will not be triggered unless a user manually clicks on that button. * * @param bool $has_widgets * @uses Jetpack_User_Agent_Info::is_ipad, jetpack_is_mobile, is_active_sidebar * @filter infinite_scroll_has_footer_widgets * @return bool */ function responsive_has_footer_widgets( $has_widgets ) { if ( ( Jetpack_User_Agent_Info::is_ipad() || ( function_exists( 'jetpack_is_mobile' ) && jetpack_is_mobile() ) ) && is_active_sidebar( 'sidebar-1' ) ) $has_widgets = true; return $has_widgets; } add_filter( 'infinite_scroll_has_footer_widgets', 'responsive_has_footer_widgets' ); /** * Add support for the Site Logo */ function responsive_site_logo_init() { add_image_size( 'responsive-logo', 300, 100 ); add_theme_support( 'site-logo', array( 'size' => 'responsive-logo' ) ); } add_action( 'after_setup_theme', 'responsive_site_logo_init' ); /** * Return early if Site Logo is not available. */ function responsive_the_site_logo() { if ( ! function_exists( 'jetpack_the_site_logo' ) ) { return; } else { jetpack_the_site_logo(); } } /** * Add theme support for Responsive Videos */ function responsive_responsive_videos_init() { add_theme_support( 'jetpack-responsive-videos' ); } add_action( 'after_setup_theme', 'responsive_responsive_videos_init' );