>

'; blossom_pin_social_links( true, false ); } ?>
'; } ?>
'post', 'post_status' => 'publish', 'ignore_sticky_posts' => true ); if( $slider_type === 'cat' && $slider_cat ){ $args['cat'] = $slider_cat; $args['posts_per_page'] = -1; }else{ $args['posts_per_page'] = $posts_per_page; } $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?>

', '
' ); } } if( is_search() && ( $wp_query->found_posts > 0 ) ){ ?>

'; single_post_title(); echo '

'; } /** * @hooked blossom_pin_search_per_page_count - 15 */ do_action( 'blossom_pin_before_posts_content' ); } } endif; add_action( 'blossom_pin_content', 'blossom_pin_content', 20 ); if( ! function_exists( 'blossom_pin_search_per_page_count' ) ): /** * Counts the Number of total posts in Archive, Search and Author */ function blossom_pin_search_per_page_count(){ $pagination = get_theme_mod( 'pagination_type','default' ); global $wp_query; if( ( is_archive() || is_search() ) && $wp_query->found_posts !== 0 && !( blossom_pin_is_woocommerce_activated() && is_shop() )) { if( $pagination == 'default' ) : $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 ): $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-pin' ), '', absint( $start_post_number ), absint( $end_post_number ), esc_html( number_format_i18n( $wp_query->found_posts ) ), '' ); endif; else : printf( esc_html__( '%1$s Showing: %2$s RESULTS %3$s', 'blossom-pin' ), '', esc_html( number_format_i18n( $wp_query->found_posts ) ), '' ); endif; } } endif; add_action( 'blossom_pin_before_posts_content' , 'blossom_pin_search_per_page_count', 15 ); if( ! function_exists( 'blossom_pin_single_page_header' ) ): /** * Displays a header on Single Page * */ function blossom_pin_single_page_header(){ ?>

'; the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); echo ''; } }elseif( is_archive() || is_search() ){ if( has_post_thumbnail() ){ echo '
'; the_post_thumbnail( 'blossom-pin-archive', array( 'itemprop' => 'image' ) ); echo '
'; } }elseif( is_singular() ){ if( is_single() ){ if( $ed_featured ) { echo '
'; the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); echo '
'; } }else{ echo '
'; the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); echo '
'; } } } endif; add_action( 'blossom_pin_before_page_entry_content', 'blossom_pin_post_thumbnail', 20 ); add_action( 'blossom_pin_before_post_entry_content', 'blossom_pin_post_thumbnail', 10 ); add_action( 'blossom_pin_single_post_entry_content', 'blossom_pin_post_thumbnail', 15 ); if( ! function_exists( 'blossom_pin_entry_header' ) ) : /** * Entry Header */ function blossom_pin_entry_header(){ ?> '; } ?>
', '' ); else : the_title( '

', '

' ); endif; ?>
'', ) ); }else{ the_excerpt(); } ?>
' . esc_html( $readmore ) . ''; } if( is_archive() || is_search() ) blossom_pin_posted_on(); 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-pin' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } ?>
'; } if( !( is_archive() || is_search() ) && ! is_singular() ) : ?>
%link
', '' . esc_html__( 'Previous Article', 'blossom-pin' ) . '%title', false, '', 'category' ); $next = get_next_post_link( '', '' . esc_html__( 'Next Article', 'blossom-pin' ) . '%title', false, '', 'category' ); if( $previous || $next ){?>
'; break; default: the_posts_navigation(); break; } } } endif; add_action( 'blossom_pin_after_post_content', 'blossom_pin_navigation' ); add_action( 'blossom_pin_after_posts_content', 'blossom_pin_navigation' ); if( ! function_exists( 'blossom_pin_author' ) ) : /** * Author Section */ function blossom_pin_author(){ $ed_author = get_theme_mod( 'ed_author', false ); $author_title = get_the_author_meta( 'display_name' ); $author_decription = get_the_author_meta( 'description' ); $add_author_class = is_single() ? 'section' : 'info'; if( ( is_single() && ! $ed_author && $author_title && $author_decription ) || is_author() ){ ?>
' . esc_html__( 'Written by','blossom-pin' ) . ''; echo '

' . esc_html( $author_title ) . '

'; if( !empty( $author_decription ) ) echo '
' . wpautop( wp_kses_post( $author_decription ) ) . '
'; ?>
'; echo do_shortcode( '[blossomthemes_instagram_feed]' ); echo ''; } } } endif; add_action( 'blossom_pin_before_footer_start', 'blossom_pin_instagram', 10 ); if( ! function_exists( 'blossom_pin_newsletter' ) ) : /** * Blossom Newsletter */ function blossom_pin_newsletter(){ $ed_newsletter = get_theme_mod( 'ed_newsletter', false ); $newsletter = get_theme_mod( 'newsletter_shortcode' ); if( blossom_pin_is_btnw_activated() && $ed_newsletter && !empty( $newsletter ) ){ echo '
'; echo do_shortcode( $newsletter ); blossom_pin_social_links( true, true ); echo '
'; } } endif; add_action( 'blossom_pin_before_footer_start', 'blossom_pin_newsletter', 20 ); if( ! function_exists( 'blossom_pin_footer_start' ) ) : /** * Footer Start */ function blossom_pin_footer_start(){ ?> '; get_search_form(); echo ''; ?>