>
'; } ?>
found_posts > 0 ) { $posts_per_page = get_option( 'posts_per_page' ); $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1; $start_post_number = 0; $end_post_number = 0; if( $wp_query->found_posts > 0 && !( blossom_travel_is_woocommerce_activated() && is_shop() ) ): $start_post_number = 1; if( $wp_query->found_posts < $posts_per_page ) { $end_post_number = $wp_query->found_posts; }else{ $end_post_number = $posts_per_page; } if( $paged > 1 ){ $start_post_number = $posts_per_page * ( $paged - 1 ) + 1; if( $wp_query->found_posts < ( $posts_per_page * $paged ) ) { $end_post_number = $wp_query->found_posts; }else{ $end_post_number = $paged * $posts_per_page; } } printf( esc_html__( '%1$s Showing: %2$s - %3$s of %4$s RESULTS %5$s', 'blossom-travel' ), '', absint( $start_post_number ), absint( $end_post_number ), esc_html( number_format_i18n( $wp_query->found_posts ) ), '' ); endif; } } endif; add_action( 'blossom_travel_before_posts_content' , 'blossom_travel_posts_per_page_count', 10 ); if ( ! function_exists( 'blossom_travel_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_travel_post_thumbnail() { $image_size = 'thumbnail'; if( is_front_page() && is_home() ){ echo '
'; $image_size = 'blossom-travel-blog-three'; if( has_post_thumbnail() ){ the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); }else{ blossom_travel_get_fallback_svg( $image_size ); } echo ''; echo '
'; }elseif( is_home() ){ echo '
'; $image_size = 'blossom-travel-blog-three'; if( has_post_thumbnail() ){ the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); }else{ blossom_travel_get_fallback_svg( $image_size ); } echo ''; echo '
'; }elseif( is_archive() || is_search() ){ $image_size = 'blossom-travel-blog-three'; echo ''; if( has_post_thumbnail() ){ the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); }else{ blossom_travel_get_fallback_svg( $image_size ); } echo ''; } } endif; add_action( 'blossom_travel_before_post_entry_content', 'blossom_travel_post_thumbnail', 20 ); if( ! function_exists( 'blossom_travel_entry_header' ) ) : /** * Entry Header */ function blossom_travel_entry_header(){ $ed_post_author = get_theme_mod( 'ed_post_author', false ); if( is_single() ){ if( ! $ed_post_author ) echo '
'; blossom_travel_posted_by(); if( ! $ed_post_author ) echo '
'; }else{ ?>
', '' ); ?>
'', ) ); }else{ the_excerpt(); } ?>
'; } 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-travel' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } ?>
' . esc_html( $author_title ) . ''; echo '
' . wpautop( wp_kses_post( get_the_author_meta( 'description' ) ) ) . '
'; ?>
'', 'next_text' => '', 'before_page_number' => '' . __( 'Page', 'blossom-travel' ) . ' ', ) ); } } endif; add_action( 'blossom_travel_after_post_content', 'blossom_travel_navigation', 20 ); add_action( 'blossom_travel_after_posts_content', 'blossom_travel_navigation' ); if( ! function_exists( 'blossom_travel_related_posts' ) ) : /** * Related Posts */ function blossom_travel_related_posts(){ $ed_related_post = get_theme_mod( 'ed_related', true ); if( $ed_related_post ){ blossom_travel_get_posts_list( 'related' ); } } endif; add_action( 'blossom_travel_after_post_content', 'blossom_travel_related_posts', 35 ); if( ! function_exists( 'blossom_travel_latest_posts' ) ) : /** * Latest Posts */ function blossom_travel_latest_posts(){ blossom_travel_get_posts_list( 'latest' ); } endif; add_action( 'blossom_travel_latest_posts', 'blossom_travel_latest_posts' ); if( ! function_exists( 'blossom_travel_comment' ) ) : /** * Comments Template */ function blossom_travel_comment(){ // If comments are open or we have at least one comment, load up the comment template. if( !( get_theme_mod( 'ed_comments', false ) ) && ( comments_open() || get_comments_number() ) ) : comments_template(); endif; } endif; add_action( 'blossom_travel_after_post_content', 'blossom_travel_comment', 45 ); add_action( 'blossom_travel_after_page_content', 'blossom_travel_comment' ); if( ! function_exists( 'blossom_travel_content_end' ) ) : /** * Content End */ function blossom_travel_content_end(){ $home_sections = blossom_travel_get_home_sections(); if( ! ( is_front_page() && ! is_home() && $home_sections ) ){ ?>