'main', 'footer' => 'page', ) ); } add_action( 'after_setup_theme', 'newsworthy_infinite_scroll_setup' ); if ( function_exists( 'jetpack_is_mobile' ) ) { function newsworthy_has_footer_widgets() { if ( jetpack_is_mobile( '', true ) && is_active_sidebar( 'sidebar' ) ) return true; return false; } add_filter( 'infinite_scroll_has_footer_widgets', 'newsworthy_has_footer_widgets' ); } function newsworthy_has_social_links() { return apply_filters( 'jetpack_has_social_links', false ); }