' . esc_html__( 'Pages:', 'blossom-recipe' ),
'after' => '
',
) );
}else{
the_excerpt();
}
?>
', '
' );
endif;
if( is_search() ){
echo '' . esc_html__( 'You Are Looking For', 'blossom-recipe' ) . '
'; get_search_form(); } if( is_page() ){ the_title( '', '
' ); } ?>
found_posts > 0 ) {
printf( esc_html__( '%1$s Showing %2$s %3$s Result(s) %4$s', 'blossom-recipe' ), '', '', esc_html( number_format_i18n( $wp_query->found_posts ) ), '' );
}
}
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 '';
if( has_post_thumbnail() ){
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
}else{
blossom_recipe_get_fallback_svg( $image_size );
}
echo '';
echo ' ';
}elseif( is_archive() || is_search() ){
$image_size = 'blossom-recipe-blog';
echo '';
if( has_post_thumbnail() ){
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
}else{
blossom_recipe_get_fallback_svg( $image_size );
}
echo '';
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 '';
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
echo ' ';
}
}else{
echo '';
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
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(){ ?>
', '' );
echo '';
}else{
blossom_recipe_category();
if ( is_singular() ) :
the_title( '
';
}
}
endif;
add_action( 'blossom_recipe_after_post_content', 'blossom_recipe_newsletter', 15 );
if( ! function_exists( 'blossom_recipe_navigation' ) ) :
/**
* Navigation
*/
function blossom_recipe_navigation(){
if( is_single() ){
$next_post = get_next_post();
$prev_post = get_previous_post();
if( $prev_post || $next_post ){?>
__( 'Previous', 'blossom-recipe' ),
'next_text' => __( 'Next', 'blossom-recipe' ),
'before_page_number' => '',
) );
}
}
endif;
add_action( 'blossom_recipe_after_post_content', 'blossom_recipe_navigation', 20 );
add_action( 'blossom_recipe_after_posts_content', 'blossom_recipe_navigation' );
if( ! function_exists( 'blossom_recipe_related_posts' ) ) :
/**
* Related Posts
*/
function blossom_recipe_related_posts(){
$ed_related_post = get_theme_mod( 'ed_related', true );
if( $ed_related_post && !is_singular( 'recipe' ) ){
blossom_recipe_get_posts_list( 'related' );
}
}
endif;
add_action( 'blossom_recipe_after_post_content', 'blossom_recipe_related_posts', 30 );
if( ! function_exists( 'blossom_recipe_latest_posts' ) ) :
/**
* Latest Posts
*/
function blossom_recipe_latest_posts(){
blossom_recipe_get_posts_list( 'latest' );
}
endif;
add_action( 'blossom_recipe_latest_posts', 'blossom_recipe_latest_posts' );
if( ! function_exists( 'blossom_recipe_comment' ) ) :
/**
* Comments Template
*/
function blossom_recipe_comment(){
// If comments are open or we have at least one comment, load up the comment template.
if( get_theme_mod( 'ed_comments', true ) && ( comments_open() || get_comments_number() ) ) :
comments_template();
endif;
}
endif;
add_action( 'blossom_recipe_after_post_content', 'blossom_recipe_comment', 35 );
add_action( 'blossom_recipe_after_page_content', 'blossom_recipe_comment' );
if( ! function_exists( 'blossom_recipe_content_end' ) ) :
/**
* Content End
*/
function blossom_recipe_content_end(){ ?>
', '
' ); else : the_title( '', '
' ); endif; if( 'post' === get_post_type() || ( blossom_recipe_is_brm_activated() && 'blossom-recipe' === get_post_type() ) ){ echo ''; } } ?>
'
';
dynamic_sidebar( 'newsletter-section' );
echo '