>
'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_front_page() ) echo ''; } } if( ! is_front_page() ) echo ''; ?>
'; if( $blog_text ) echo '

' . esc_html( $blog_text) . '

'; if( $blog_content ) echo '
' . wp_kses_post( wpautop( $blog_content ) ). '
'; echo '
'; } if( is_archive() ){ if( is_author() ){ $author_title = get_the_author_meta( 'display_name' ); $author_description = get_the_author_meta( 'description' ); $about_author = get_theme_mod( 'author_title', __( 'About The Author', 'blossom-floral' ) ); ?>

' . esc_html( $author_title ) . ''; ?>
' . wp_kses_post( wpautop( $author_description ) ) . '
'; ?>
'; the_archive_title(); the_archive_description( '
', '
' ); blossom_floral_posts_per_page_count(); echo ''; } } if( is_search() ){ $search_title = get_theme_mod( 'search_title', __( 'Search Result For', 'blossom-floral' ) ); echo '
'; echo '

' . esc_html( $search_title ) . '

'; get_search_form(); blossom_floral_posts_per_page_count(); echo '
'; } ?> '; echo '
'; blossom_floral_category(); echo '
'; if( is_home() ){ the_title( '

', '

' ); } else { the_title( '

', '

' ); } echo '
'; echo get_avatar( get_the_author_meta( 'ID' ), 30, '', 'avatar' ); blossom_floral_posted_by(); blossom_floral_posted_on(); echo '
'; echo ''; } } endif; add_action( 'blossom_floral_post_entry_content', 'blossom_floral_entry_header', 10 ); if ( ! function_exists( 'blossom_floral_post_thumbnail' ) ) : /** * 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_floral_post_thumbnail() { $image_size = 'thumbnail'; $ed_crop_blog = get_theme_mod( 'ed_crop_blog', false ); $sidebar = blossom_floral_sidebar(); if( is_home() || is_archive() || is_search() ){ echo '
'; if( has_post_thumbnail() ){ if( $ed_crop_blog ){ the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); }else{ the_post_thumbnail( 'blossom-floral-blog-home', array( 'itemprop' => 'image' ) ); } }else{ blossom_floral_get_fallback_svg( 'blossom-floral-blog-home' );//fallback } echo '
'; }elseif( is_singular() ){ $image_size = ( $sidebar ) ? 'blossom-floral-with-sidebar' : 'full'; if( has_post_thumbnail() ){ echo '
'; the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); echo '
'; } } } endif; add_action( 'blossom_floral_before_page_entry_content', 'blossom_floral_post_thumbnail' ); add_action( 'blossom_floral_before_post_entry_content', 'blossom_floral_post_thumbnail', 10 ); if( ! function_exists( 'blossom_floral_entry_content' ) ) : /** * Entry Content */ function blossom_floral_entry_content(){ $ed_excerpt = get_theme_mod( 'ed_excerpt', true ); ?>
'', ) ); }else{ the_excerpt(); } ?>
__( 'Previous', 'blossom-floral' ), 'next_text' => __( 'Next', 'blossom-floral' ), 'before_page_number' => '' . __( 'Page', 'blossom-floral' ) . ' ', ) ); } } endif; add_action( 'blossom_floral_after_post_content', 'blossom_floral_navigation', 20 ); add_action( 'blossom_floral_after_posts_content', 'blossom_floral_navigation', 10 ); if( ! function_exists( 'blossom_floral_author' ) ) : /** * Author Section */ function blossom_floral_author(){ $ed_author = get_theme_mod( 'ed_author', false ); $author_title = get_theme_mod( 'author_title', __( 'About Author', 'blossom-floral' ) ); if( ! $ed_author && get_the_author_meta( 'description' ) ){ ?>
' . esc_html( $author_title ) . ''; blossom_floral_posted_by(); ?>
'; comments_template(); echo ''; endif; } endif; add_action( 'blossom_floral_after_post_content', 'blossom_floral_comment', blossom_floral_comment_toggle() ); add_action( 'blossom_floral_after_page_content', 'blossom_floral_comment' ); if( ! function_exists( 'blossom_floral_content_end' ) ) : /** * Content End */ function blossom_floral_content_end(){ ?> General Settings > Shop settings.', 'blossom-floral' ) ); $product_type = get_theme_mod( 'product_type' ); $custom_product = get_theme_mod( 'selected_products' ); $button_lbl = get_theme_mod( 'shop_btn_lbl', __( 'Go To Shop', 'blossom-floral' ) ); $button_link = get_theme_mod( 'shop_btn_link' ); if( is_front_page() && blossom_floral_is_woocommerce_activated() && $ed_shop_section ){ $args = array( 'post_type' => 'product', 'posts_per_page' => 4, 'post_status' => 'publish' ); if( $product_type == 'custom' ){ $args['post__in'] = $custom_product; }elseif( $product_type == 'popular-products' ){ $args['meta_key'] = 'total_sales'; $args['order_by'] = 'meta_value_num'; }elseif( $product_type == 'sale-products' ){ $args['meta_query'] = WC()->query->get_meta_query(); $args['post__in'] = array_merge(array(0), wc_get_product_ids_on_sale()); }else{ $args['orderby'] = 'date'; $args['order'] = 'DESC'; } $qry = new WP_Query( $args ); if( $qry->have_posts() || $section_title || $section_content ){ ?>
' . esc_html( $section_title ) . ''; if( $section_content ) echo '
' . wp_kses_post( wpautop( $section_content ) ) . '
'; ?>
have_posts() ){ ?>
have_posts() ){ $qry->the_post(); global $product; $stock = get_post_meta( get_the_ID(), '_stock_status', true ); ?>
'image' ) ); }else{ blossom_floral_get_fallback_svg( 'blossom-floral-shop' ); //fallback } ?> ' . esc_html__( 'Sold Out', 'blossom-floral' ) . ''; }else{ woocommerce_show_product_sale_flash(); } ?>
', '' ); woocommerce_template_single_price(); ?>