', '
', number_format_i18n( $wp_query->found_posts ), '' );
}
}
endif;
add_action( 'blossom_coach_before_posts_content', 'blossom_coach_post_count' );
if ( ! function_exists( 'blossom_coach_post_thumbnail' ) ) :
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*/
function blossom_coach_post_thumbnail(){
global $wp_query;
$image_size = 'thumbnail';
$ed_featured = get_theme_mod( 'ed_featured_image', true );
$blog_layout = get_theme_mod( 'blog_page_layout', 'grid' );
$sidebar = blossom_coach_sidebar(); ?>
';
if( has_post_thumbnail() ){
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
}else{
blossom_coach_get_fallback_svg( $image_size );
}
echo '';
}elseif( is_archive() || is_search() ){
echo '
';
if( has_post_thumbnail() ){
the_post_thumbnail( 'blossom-coach-latest', array( 'itemprop' => 'image' ) );
}else{
blossom_coach_get_fallback_svg( 'blossom-coach-latest' );
}
echo '';
}elseif( is_singular() && has_post_thumbnail() ){
echo '
';
$image_size = ( $sidebar ) ? 'blossom-coach-with-sidebar' : 'blossom-coach-fullwidth';
if( is_single() ){
if( $ed_featured ) the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
}else{
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
}
echo '';
}
?>
';
blossom_coach_category();
echo ' ';
}
if ( is_singular() ) :
the_title( '';
blossom_coach_posted_on();
blossom_coach_posted_by();
blossom_coach_comment_count();
echo '
';
}
?>
'
' . esc_html__( 'Pages:', 'blossom-coach' ),
'after' => '
',
) );
}else{
the_excerpt();
}
?>