>
'; if( !( blossom_spa_is_woocommerce_activated() && is_product() ) ) : ?>
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_spa_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-spa' ), '
', absint( $start_post_number ), absint( $end_post_number ), esc_html( number_format_i18n( $wp_query->found_posts ) ), '
' ); endif; } } endif; add_action( 'blossom_spa_before_posts_content' , 'blossom_spa_posts_per_page_count', 10 ); if ( ! function_exists( 'blossom_spa_figure_content' ) ) : /** * 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_spa_figure_content() { if( is_single() ) return false; echo '
'; blossom_spa_post_thumbnail(); blossom_spa_category(); blossom_spa_posted_by(); echo '
'; } endif; add_action( 'blossom_spa_before_post_entry_content', 'blossom_spa_figure_content', 20 ); if( ! function_exists( 'blossom_spa_entry_header' ) ) : /** * Entry Header */ function blossom_spa_entry_header(){ if( is_single() ) return false; ?>
', '' ); if( 'post' === 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-spa' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } ?>
'; } endif; add_action( 'blossom_spa_page_entry_content', 'blossom_spa_entry_footer', 20 ); add_action( 'blossom_spa_post_entry_content', 'blossom_spa_entry_footer', 20 ); if( ! function_exists( 'blossom_spa_author' ) ) : /** * Author Section */ function blossom_spa_author(){ $ed_author = get_theme_mod( 'ed_post_author', false ); $author_title = get_the_author(); if( ! $ed_author && get_the_author_meta( 'description' ) ){ ?>
' . esc_html( $author_title ) . ''; echo '
' . wpautop( wp_kses_post( get_the_author_meta( 'description' ) ) ) . '
'; ?>
__( 'Previous', 'blossom-spa' ), 'next_text' => __( 'Next', 'blossom-spa' ), 'before_page_number' => '' . __( 'Page', 'blossom-spa' ) . ' ', ) ); } } endif; add_action( 'blossom_spa_after_post_content', 'blossom_spa_navigation', 20 ); add_action( 'blossom_spa_after_posts_content', 'blossom_spa_navigation' ); if( ! function_exists( 'blossom_spa_related_posts' ) ) : /** * Related Posts */ function blossom_spa_related_posts(){ $ed_related_post = get_theme_mod( 'ed_related', true ); if( $ed_related_post ){ blossom_spa_get_posts_list( 'related' ); } } endif; add_action( 'blossom_spa_after_post_content', 'blossom_spa_related_posts', 25 ); if( ! function_exists( 'blossom_spa_latest_posts' ) ) : /** * Latest Posts */ function blossom_spa_latest_posts(){ blossom_spa_get_posts_list( 'latest' ); } endif; add_action( 'blossom_spa_latest_posts', 'blossom_spa_latest_posts' ); if( ! function_exists( 'blossom_spa_comment' ) ) : /** * Comments Template */ function blossom_spa_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_spa_after_post_content', 'blossom_spa_comment', 30 ); add_action( 'blossom_spa_after_page_content', 'blossom_spa_comment' ); if( ! function_exists( 'blossom_spa_content_end' ) ) : /** * Content End */ function blossom_spa_content_end(){ $home_sections = blossom_spa_get_home_sections(); if( ! ( is_front_page() && ! is_home() && $home_sections ) ){ ?>
'; echo do_shortcode( '[blossomthemes_instagram_feed]' ); echo ''; } } } endif; add_action( 'blossom_spa_before_footer_start', 'blossom_spa_instagram', 10 ); if( ! function_exists( 'blossom_spa_footer_start' ) ) : /** * Footer Start */ function blossom_spa_footer_start(){ ?>