>

'; if( ! is_front_page() ) echo ' '; if( $ed_crop_single ){ the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); }else{ the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); } 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-pro' ) ); ?>

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

' . esc_html( $search_title ) . '

'; get_search_form(); blossom_floral_pro_posts_per_page_count(); echo '
'; } ?>
'; blossom_floral_pro_category(); echo ''; the_title( '

', '

' ); echo '
'; blossom_floral_pro_posted_on(); blossom_floral_pro_estimated_reading_time( get_post( get_the_ID() )->post_content ); echo '
'; ?>
'; if( $ed_crop_single ){ the_post_thumbnail( 'full', array( 'itemprop' => 'image') ); }else{ the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); } echo ''; } ?>
'; echo '
'; blossom_floral_pro_category(); echo '
'; the_title( '

', '

' ); echo '
'; blossom_floral_pro_gravatar( get_the_author_meta( 'ID' ), 30 ); blossom_floral_pro_posted_by(); blossom_floral_pro_posted_on(); echo '
'; echo ''; } } endif; add_action( 'blossom_floral_pro_post_entry_content', 'blossom_floral_pro_entry_header', 10 ); if ( ! function_exists( 'blossom_floral_pro_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_pro_post_thumbnail() { $ed_crop_blog = get_theme_mod( 'ed_crop_blog', false ); $sidebar = blossom_floral_pro_sidebar(); if( is_home() ){ $image_size = blossom_floral_pro_blog_layout_image_size(); if( has_post_thumbnail() ){ echo '
'; if( $ed_crop_blog ){ the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); }else{ the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); } echo '
'; }else{ echo '
'; blossom_floral_pro_get_fallback_svg( $image_size );//fallback echo '
'; } }elseif( is_archive() || is_search() ){ $image_size = blossom_floral_pro_archive_layout_image_size(); echo '
'; if( has_post_thumbnail() ){ if( $ed_crop_blog ){ the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); }else{ the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) ); } }else{ blossom_floral_pro_get_fallback_svg( $image_size );//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_pro_before_page_entry_content', 'blossom_floral_pro_post_thumbnail' ); add_action( 'blossom_floral_pro_before_post_entry_content', 'blossom_floral_pro_post_thumbnail' ); if( ! function_exists( 'blossom_floral_pro_entry_content' ) ) : /** * Entry Content */ function blossom_floral_pro_entry_content(){ $ed_excerpt = get_theme_mod( 'ed_excerpt', true ); $home_layout = get_theme_mod( 'home_layout', 'one' ); $archive_layout = get_theme_mod( 'archive_layout', 'one' ); $author_sign = get_theme_mod( 'author_signature', '' ); $ed_toggle_social = get_theme_mod( 'ed_toggle_social', false ); $alignment_signature = get_theme_mod( 'alignment_signature', 'center' ); $array = array( 'six', 'six-left', 'six-center', 'seven', 'seven-left', 'seven-center' ); if( is_home() && in_array( $home_layout, $array ) ) return; if( ( is_archive() || is_search() ) && in_array( $archive_layout, $array ) ) return; ?>
'', ) ); }else{ the_excerpt(); } if( is_singular( 'post' ) && $author_sign ) { echo '
'; echo '' . esc_attr__( 'author-sign', 'blossom-floral-pro' ) . ''; if( $ed_toggle_social ) blossom_floral_pro_social_links(); echo '
'; } ?>
' . esc_html( $author_title ) . ''; blossom_floral_pro_posted_by(); ?>
__( 'Previous', 'blossom-floral-pro' ), 'next_text' => __( 'Next', 'blossom-floral-pro' ), 'before_page_number' => '' . __( 'Page', 'blossom-floral-pro' ) . ' ', ) ); break; case 'load_more': // Load More Button case 'infinite_scroll': // Auto Infinite Scroll echo ''; break; default: the_posts_navigation(); break; } } } endif; add_action( 'blossom_floral_pro_after_post_content', 'blossom_floral_pro_navigation', 20 ); add_action( 'blossom_floral_pro_after_posts_content', 'blossom_floral_pro_navigation' ); if( ! function_exists( 'blossom_floral_pro_get_ad_after_content' ) ) : /** * Get AD after single content */ function blossom_floral_pro_get_ad_after_content(){ $ed_ad = get_theme_mod( 'ed_ac_post_ad' ); //from customizer $ad_img = get_theme_mod( 'ac_post_ad' ); //from customizer $ad_link = get_theme_mod( 'ac_post_ad_link' ); //from customizer $target = get_theme_mod( 'open_link_diff_tab_ac_post', true ) ? 'target="_blank"' : ''; $ed_ad_code = get_theme_mod( 'ed_ac_post_ad_code' ); $ad_code = get_theme_mod( 'ac_post_ad_code' ); if( $ad_img ){ $image = wp_get_attachment_image_url( $ad_img, 'full' ); }else{ $image = false; } if( $ed_ad && ( is_single() ) && ( $ad_img || ( $ed_ad_code && $ad_code ) ) ) blossom_floral_pro_get_ad_block( $image, $ad_link, $target, $ad_code, $ed_ad_code ); } endif; add_action( 'blossom_floral_pro_after_post_content', 'blossom_floral_pro_get_ad_after_content', 10 ); if( ! function_exists( 'blossom_floral_pro_related_posts' ) ) : /** * Related Posts */ function blossom_floral_pro_related_posts(){ $ed_related_post = get_theme_mod( 'ed_related', true ); if( $ed_related_post ){ blossom_floral_pro_get_posts_list( 'related' ); } } endif; add_action( 'blossom_floral_pro_after_post_content', 'blossom_floral_pro_related_posts', 35 ); if( ! function_exists( 'blossom_floral_pro_latest_posts' ) ) : /** * Latest Posts */ function blossom_floral_pro_latest_posts(){ blossom_floral_pro_get_posts_list( 'latest' ); } endif; add_action( 'blossom_floral_pro_latest_posts', 'blossom_floral_pro_latest_posts' ); if( ! function_exists( 'blossom_floral_pro_comment' ) ) : /** * Comments Template */ function blossom_floral_pro_comment(){ // If comments are open or we have at least one comment, load up the comment template. if( get_theme_mod( 'ed_comments', true ) && ( comments_open() || get_comments_number() ) ) : echo '
'; comments_template(); echo '
'; endif; } endif; add_action( 'blossom_floral_pro_after_post_content', 'blossom_floral_pro_comment', blossom_floral_pro_comment_toggle() ); add_action( 'blossom_floral_pro_after_page_content', 'blossom_floral_pro_comment' ); if( ! function_exists( 'blossom_floral_pro_content_end' ) ) : /** * Content End */ function blossom_floral_pro_content_end(){ ?> General Settings > Shop settings.', 'blossom-floral-pro' ) ); $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-pro' ) ); $button_link = get_theme_mod( 'shop_btn_link' ); if( is_front_page() && 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_pro_get_fallback_svg( 'blossom-floral-shop' ); //fallback } ?> ' . esc_html__( 'Sold Out', 'blossom-floral-pro' ) . ''; }else{ woocommerce_show_product_sale_flash(); } ?>
', '' ); woocommerce_template_single_price(); ?>
'post', ); if( $popular_type == 'category' && $popular_cat ){ $args['cat'] = $popular_cat ; }elseif( $popular_type == 'popular' ){ $args['orderby'] = 'comment_count'; $args['posts_per_page'] = $popular_length; }elseif( $popular_type == 'custom' && $custom_posts ){ $args['post__in'] = blossom_floral_pro_get_id_from_post( $custom_posts ); $args['orderby'] = 'post__in'; } $args['ignore_sticky_posts'] = true; $qry = new WP_Query( $args ); if( ( $popular_cat || $custom_posts ) && $qry->have_posts() ) { ?>
' . esc_html( $popular_title ) . ''; if( $popular_subtitle ) echo '
' . wp_kses_post( wpautop( $popular_subtitle ) ) . '
'; ?>