'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() ){ ?>
have_posts() ){ $qry->the_post(); ?>
'page',
'post_status' => 'publish',
'posts_per_page' => -1,
'post__in' => $featured_pages,
'orderby' => 'post__in'
);
$qry = new WP_Query( $args );
if( is_front_page() && ( ( $ed_featured && $featured_pages && $qry->have_posts() ) || ( blossom_fashion_is_btnw_activated() && $ed_newsletter && has_shortcode( $newsletter, 'BTEN' ) ) ) ){ ?>
have_posts() ){ ?>
have_posts() ){ $qry->the_post(); ?>
;
', '
' ); ?>
General Settings > Shop settings.', 'blossom-fashion' ) );
$number_of_posts = get_theme_mod( 'no_of_products', 8 );
if( is_front_page() && blossom_fashion_is_woocommerce_activated() && $ed_shop_section ){
$args = array(
'post_type' => 'product',
'post_status' => 'publish',
'posts_per_page' => $number_of_posts
);
$qry = new WP_Query( $args );
if( $qry->have_posts() || $section_title || $section_content ){ ?>
'; ?>
' );
}
if( is_page() ){
the_title( '
', '
' );
}
?>
';
}
endif;
add_action( 'blossom_fashion_content', 'blossom_fashion_content_start' );
if( ! function_exists( 'blossom_fashion_post_count' ) ) :
/**
* Post counts in search and archive page.
*/
function blossom_fashion_post_count(){
global $wp_query;
printf( esc_html__( '%1$sShowing %2$s %3$s Result(s)%4$s', 'blossom-fashion' ), '
', '', $wp_query->found_posts, '' );
}
endif;
add_action( 'blossom_fashion_before_posts_content', 'blossom_fashion_post_count' );
if( ! function_exists( 'blossom_fashion_entry_header' ) ) :
/**
* Entry Header
*/
function blossom_fashion_entry_header(){ ?>
';
if( has_post_thumbnail() ){
if( $wp_query->current_post == 0 ){
$image_size = ( $sidebar_layout == 'full-width' ) ? 'blossom-fashion-fullwidth' : 'blossom-fashion-with-sidebar';
}else{
$image_size = 'blossom-fashion-blog-home';
}
the_post_thumbnail( $image_size );
}else{
$image_size = ( $wp_query->current_post == 0 ) ? '/images/no-img_1320_540.jpg' : '/images/no-img_435_332.jpg'; ?>
 . $image_size ); ?>)
;
';
}elseif( is_home() ){
echo '
';
if( has_post_thumbnail() ){
the_post_thumbnail( 'blossom-fashion-blog-home' );
}else{ ?>
;
';
}elseif( is_archive() || is_search() ){
echo '';
if( has_post_thumbnail() ){
the_post_thumbnail( 'blossom-fashion-blog-archive' );
}else{ ?>
;
';
}elseif( is_singular() ){
echo '';
$image_size = ( $sidebar_layout == 'full-width' ) ? 'blossom-fashion-fullwidth' : 'blossom-fashion-with-sidebar';
if( is_single() ){
if( $ed_featured ) the_post_thumbnail( $image_size );
}else{
the_post_thumbnail( $image_size );
}
echo '
';
}
}
endif;
add_action( 'blossom_fashion_before_page_entry_content', 'blossom_fashion_post_thumbnail' );
add_action( 'blossom_fashion_before_post_entry_content', 'blossom_fashion_post_thumbnail', 20 );
add_action( 'blossom_fashion_before_entry_content', 'blossom_fashion_post_thumbnail' );
if( ! function_exists( 'blossom_fashion_entry_content' ) ) :
/**
* Entry Content
*/
function blossom_fashion_entry_content(){
$ed_excerpt = get_theme_mod( 'ed_excerpt', true ); ?>
'
' . esc_html__( 'Pages:', 'blossom-fashion' ),
'after' => '
',
) );
}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-fashion' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'
',
''
);
}
?>
%link
',
'
' . esc_html( $popular_title ) . ''; ?>
have_posts() ){
$qry->the_post(); ?>
'; ?>
'product',
'post_status' => 'publish',
'posts_per_page' => -1,
'product_cat' => $product_cat
);
$qry = new WP_Query( $args );
if( $qry->have_posts() || $section_title ){ ?>