array( 'sidebar-2', 'sidebar-3', 'sidebar-4' ), 'footer' => 'page', 'container' => 'main', ) ); } add_action( 'after_setup_theme', 'franklin_jetpack_setup' ); /** * Add support for the Site Logo * See: http://jetpack.com/support/site-logo/ */ function franklin_site_logo_init() { add_image_size( 'franklin-logo', 270, 270 ); add_theme_support( 'site-logo', array( 'size' => 'franklin-logo' ) ); } add_action( 'after_setup_theme', 'franklin_site_logo_init' ); /** * Return early if Site Logo is not available. */ function franklin_the_site_logo() { if ( function_exists( 'jetpack_the_site_logo' ) ) { jetpack_the_site_logo(); } else { return; } } /** * Return early if Breadcrumbs are not available. */ function franklin_breadcrumbs() { if ( function_exists( 'jetpack_breadcrumbs' ) ) { jetpack_breadcrumbs(); } else { return; } } /** * Add theme support for Responsive Videos * @see http://jetpack.com/support/responsive-videos/ */ function franklin_responsive_videos_init() { add_theme_support( 'jetpack-responsive-videos' ); } add_action( 'after_setup_theme', 'franklin_responsive_videos_init' ); /** * Add theme support for Content Options. * @see http://jetpack.com/support/content-options/ */ function franklin_content_options_init() { add_theme_support( 'jetpack-content-options', array( 'blog-display' => 'content', 'post-details' => array( 'stylesheet' => 'franklin-style', 'date' => '.post-meta li.posted-on', 'categories' => '.post-categories', 'tags' => '.post-tags', 'author' => '.post-meta li.author', ), 'featured-images' => array( 'archive' => true, 'post' => true, 'page' => true, 'fallback' => true, 'fallback-default' => false, ), ) ); } add_action( 'after_setup_theme', 'franklin_content_options_init' ); /** * Custom function to check for a post thumbnail; * If Jetpack is not available, fall back to has_post_thumbnail() */ function franklin_has_post_thumbnail( $post = null ) { if ( function_exists( 'jetpack_has_featured_image' ) ) { return jetpack_has_featured_image( $post ); } else { return has_post_thumbnail( $post ); } }