found_posts > 0 ) {
printf( esc_html__( '%1$s Showing %2$s %3$s Result(s) %4$s', 'blossom-recipe' ), '
' );
}
}
endif;
add_action( 'blossom_recipe_before_posts_content' , 'blossom_recipe_posts_per_page_count', 10 );
if ( ! function_exists( 'blossom_recipe_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_recipe_post_thumbnail() {
$image_size = 'thumbnail';
$ed_featured = get_theme_mod( 'ed_featured_image', true );
$sidebar = blossom_recipe_sidebar();
if( is_home() ){
$image_size = 'blossom-recipe-blog';
echo '
';
}elseif( is_archive() || is_search() ){
$image_size = 'blossom-recipe-blog';
echo '
';
}elseif( is_singular() ){
$image_size = ( $sidebar ) ? 'blossom-recipe-blog' : 'blossom-recipe-blog-one';
if( has_post_thumbnail() ) {
if( is_single() ){
if( $ed_featured ) {
echo '
';
}
}
}
}
endif;
add_action( 'blossom_recipe_before_page_entry_content', 'blossom_recipe_post_thumbnail' );
add_action( 'blossom_recipe_before_post_entry_content', 'blossom_recipe_post_thumbnail', 15 );
if( ! function_exists( 'blossom_recipe_entry_header' ) ) :
/**
* Entry Header
*/
function blossom_recipe_entry_header(){ ?>
'
' . esc_html__( 'Pages:', 'blossom-recipe' ),
'after' => '
',
) );
}else{
the_excerpt();
}
?>