>
'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() ){ ?> '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() ){ ?>
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 ){ ?>
' . esc_html( $section_title ) . ''; if( $section_content ) echo '
' . wpautop( wp_kses_post( $section_content ) ) . '
'; ?>
have_posts() ){ ?>

' : '
'; ?>
'; } 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' ), '', '', number_format_i18n( $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(){ ?>
', '' ); else : the_title( '

', '

' ); endif; if( 'post' === get_post_type() ){ echo ''; } ?>
'; 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'; ?> <?php the_title_attribute(); ?>; '; }elseif( is_home() ){ echo ''; if( has_post_thumbnail() ){ the_post_thumbnail( 'blossom-fashion-blog-home' ); }else{ ?> <?php the_title_attribute(); ?>; '; }elseif( is_archive() || is_search() ){ echo ''; if( has_post_thumbnail() ){ the_post_thumbnail( 'blossom-fashion-blog-archive' ); }else{ ?> <?php the_title_attribute(); ?>; '; }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 ); ?>
'', ) ); }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-fashion' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } ?>
%link
', '' . esc_html__( 'Previous Article', 'blossom-fashion' ) . '%title', false, '', 'category' ); $next = get_next_post_link( '', '' . esc_html__( 'Next Article', 'blossom-fashion' ) . '%title', false, '', 'category' ); if( $previous || $next ){?> __( 'Previous', 'blossom-fashion' ), 'next_text' => __( 'Next', 'blossom-fashion' ), 'before_page_number' => '' . __( 'Page', 'blossom-fashion' ) . ' ', ) ); } } endif; add_action( 'blossom_fashion_after_post_content', 'blossom_fashion_navigation', 15 ); add_action( 'blossom_fashion_after_posts_content', 'blossom_fashion_navigation' ); if( ! function_exists( 'blossom_fashion_author' ) ) : /** * Author Section */ function blossom_fashion_author(){ $ed_author = get_theme_mod( 'ed_author' ); $author_title = get_theme_mod( 'author_title', __( 'About Author', 'blossom-fashion' ) ); if( ! $ed_author && get_the_author_meta( 'description' ) ){ ?>
' . esc_html( $author_title ) . ''; echo wpautop( wp_kses_post( get_the_author_meta( 'description' ) ) ); ?>
'post', 'post_status' => 'publish', 'posts_per_page' => 3, 'ignore_sticky_posts' => true, 'post__not_in' => array( $post->ID ), 'orderby' => 'rand' ); $cats = get_the_category( $post->ID ); if( $cats ){ $c = array(); foreach( $cats as $cat ){ $c[] = $cat->term_id; } $args['category__in'] = $c; } $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?> 'post', 'post_status' => 'publish', 'posts_per_page' => 6, 'ignore_sticky_posts' => true, 'post__not_in' => array( $post->ID ), 'orderby' => 'comment_count' ); $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?> '; ?>
'product', 'post_status' => 'publish', 'posts_per_page' => -1, 'product_cat' => $product_cat ); $qry = new WP_Query( $args ); if( $qry->have_posts() || $section_title ){ ?>
' . esc_html( $section_title ) . ''; ?>
have_posts() ){ ?>
'; echo '

'; echo '' . esc_html__( 'Follow @ Instagram', 'blossom-fashion' ) . ''; echo '

'; echo do_shortcode( '[blossomthemes_instagram_feed]' ); echo ''; } } } endif; add_action( 'blossom_fashion_footer', 'blossom_fashion_instagram_section', 15 ); if( ! function_exists( 'blossom_fashion_footer_start' ) ) : /** * Footer Start */ function blossom_fashion_footer_start(){ ?>