' );
}
}
if( is_search() && ( $wp_query->found_posts > 0 ) ){ ?>
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(){
global $post;
$page_on_front = get_option( 'page_on_front' );
if( ! ( $post->ID == $page_on_front ) ){
?>
';
the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) );
echo '';
}
}elseif( is_archive() || is_search() ){
if( has_post_thumbnail() ){
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(){ ?>
';
} ?>
'
' . esc_html__( 'Pages:', 'blossom-pin' ),
'after' => '
',
) );
}else{
the_excerpt();
}
?>
';
}
if( !( is_archive() || is_search() ) && ! is_singular() ) : ?>
%link
',
'
' . esc_html__( 'Previous Article', 'blossom-pin' ) . '%title',
false,
'',
'category'
);
$next = get_next_post_link(
'
%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_post_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() ){ ?>