>
'publish', 'ignore_sticky_posts' => true ); if( blossom_recipe_is_delicious_recipe_activated() && $slider_type == 'latest_dr_recipe' ){ $args['post_type'] = DELICIOUS_RECIPE_POST_TYPE; $args['posts_per_page'] = $posts_per_page; }elseif( $slider_type == 'latest_recipes' ){ $args['post_type'] = 'blossom-recipe'; $args['posts_per_page'] = $posts_per_page; }elseif( $slider_type === 'cat' && $slider_cat ){ $args['post_type'] = 'post'; $args['cat'] = $slider_cat; $args['posts_per_page'] = -1; }else{ $args['post_type'] = 'post'; $args['posts_per_page'] = $posts_per_page; } $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?>
>
' . esc_html__( 'All Posts By ','blossom-recipe' ) . '' . esc_html( $author_title ) . ''; ?>
', '' ); }else{ the_archive_title(); } } the_archive_description( '
', '
' ); 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( '

', '

' ); else : the_title( '

', '

' ); endif; if( 'post' === get_post_type() || ( blossom_recipe_is_brm_activated() && 'blossom-recipe' === get_post_type() ) ){ echo ''; } } ?>
'', ) ); }else{ the_excerpt(); } ?>
' . esc_html( $readmore ) . ''; } if( get_edit_post_link() ){ edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'blossom-recipe' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } ?>
' . esc_html( $author_title ) . '' . esc_html( $author_name ) . ''; if( $author_description ) echo '
' . wpautop( wp_kses_post( $author_description ) ) . '
'; ?>
'; dynamic_sidebar( 'newsletter-section' ); echo '
'; } } 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' => '' . __( 'Page', 'blossom-recipe' ) . ' ', ) ); } } 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(){ ?>
'; dynamic_sidebar( 'newsletter-section' ); echo '
'; } } endif; add_action( 'blossom_recipe_before_footer_start', 'blossom_recipe_newsletter_section', 10 ); if( ! function_exists( 'blossom_recipe_instagram_section' ) ) : /** * Blossom Instagram */ function blossom_recipe_instagram_section(){ if( blossom_recipe_is_btif_activated() && ( is_front_page() || is_single() ) ){ $ed_instagram = get_theme_mod( 'ed_instagram', false ); if( $ed_instagram ){ echo '
'; echo do_shortcode( '[blossomthemes_instagram_feed]' ); echo '
'; } } } endif; add_action( 'blossom_recipe_before_footer_start', 'blossom_recipe_instagram_section', 20 ); if( ! function_exists( 'blossom_recipe_footer_start' ) ) : /** * Footer Start */ function blossom_recipe_footer_start(){ ?>