'main', 'footer' => 'page', ) ); // Create custom image sizes for Site Logo and Testimonials. add_image_size( 'aaron-jetpack-logo', 200, 200 ); add_image_size( 'aaron-jetpack-testimonial', 100, 100 ); /*Support for Jetpack logo*/ add_theme_support( 'site-logo', array( 'size' => 'aaron-jetpack-logo',) ); /*Support for Jetpack featured-content*/ add_theme_support( 'featured-content', array( 'filter' => 'aaron_get_featured_posts', 'max_posts' =>6, 'post_types' => array( 'post', 'page' ), ) ); } add_action( 'after_setup_theme', 'aaron_jetpack_setup' ); function aaron_the_site_logo() { if ( ! function_exists( 'jetpack_the_site_logo' ) ) { return; } else { jetpack_the_site_logo(); } } function aaron_get_featured_posts() { return apply_filters( 'aaron_get_featured_posts', array() ); } function aaron_has_featured_posts( $minimum ) { if ( is_paged() ) return false; $minimum = absint( $minimum ); $featured_posts = apply_filters( 'aaron_get_featured_posts', array() ); if ( ! is_array( $featured_posts ) ) return false; if ( $minimum > count( $featured_posts ) ) return false; return true; } /*Remove the jetpack likes and sharing_display filter so that we can resposition them to our post footer.*/ function aaron_move_share() { remove_filter( 'the_content', 'sharing_display',19 ); remove_filter( 'the_excerpt', 'sharing_display',19 ); if ( class_exists( 'Jetpack_Likes' ) ) { remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 ); } } add_action( 'loop_start', 'aaron_move_share' );