'; $big_title = get_template_directory() . '/inc/big-title-section.php'; load_template ( apply_filters( 'shop-isle-subheader', $big_title ) ); /* Wrapper start */ $shop_isle_bg = get_theme_mod('background_color'); if( isset($shop_isle_bg) && $shop_isle_bg!='' ) { echo '
'; } else { echo '
'; } if( defined('WCCM_VERISON') ) { /* Woocommerce compare list plugin */ echo '
'; echo '
'; do_action( 'shop_isle_wccm_compare_list' ); echo '
'; echo '
'; } /***********************/ /****** BANNERS *******/ /***********************/ $shop_isle_banners_hide = get_theme_mod('shop_isle_banners_hide'); $shop_isle_banners_title = get_theme_mod('shop_isle_banners_title'); if ( isset($shop_isle_banners_hide) && $shop_isle_banners_hide != 1 ) { echo '
'; } elseif ( is_customize_preview() ) { echo '
'; } if( ( isset($shop_isle_banners_hide) && $shop_isle_banners_hide != 1) || is_customize_preview() ) { if(current_user_can( 'edit_theme_options')) { $shop_isle_banners = get_theme_mod( 'shop_isle_banners', json_encode( array( array( 'image_url' => get_template_directory_uri() . '/assets/images/banner1.jpg', 'link' => '#' ), array( 'image_url' => get_template_directory_uri() . '/assets/images/banner2.jpg', 'link' => '#' ), array( 'image_url' => get_template_directory_uri() . '/assets/images/banner3.jpg', 'link' => '#' ) ) ) ); } else { $shop_isle_banners = get_theme_mod( 'shop_isle_banners' ); } if( !empty( $shop_isle_banners ) ) { $shop_isle_banners_decoded = json_decode($shop_isle_banners); if( !empty($shop_isle_banners_decoded) ) { echo '
'; if ( !empty($shop_isle_banners_title) ) { echo '
'; echo '
'; echo '

'. $shop_isle_banners_title .'

'; echo '
'; echo '
'; } elseif ( is_customize_preview() ) { echo '
'; echo '
'; echo '

'; echo '
'; echo '
'; } echo '
'; foreach($shop_isle_banners_decoded as $shop_isle_banner) { if ( !empty($shop_isle_banner->image_url) ) { echo '
'; if ( !empty($shop_isle_banner->link) ) { if (function_exists ( 'icl_t' ) && !empty($shop_isle_banner->id)){ $shop_isle_banner_link = icl_t( 'Banner '.$shop_isle_banner->id, 'Banner link', $shop_isle_banner->link ); $shop_isle_banner_image_url = icl_t( 'Banner '.$shop_isle_banner->id, 'Banner image', $shop_isle_banner->image_url ); echo ''; } else { echo ''; } } else { if (function_exists ( 'icl_t' ) && !empty($shop_isle_banner->id)){ $shop_isle_banner_image_url = icl_t( 'Banner '.$shop_isle_banner->id, 'Banner image', $shop_isle_banner->image_url ); echo ''; } else { echo ''; } } echo '
'; } } echo '
'; echo '
'; } } echo '
'; echo '
'; } /* END BANNERS */ /*********************************/ /******* Latest products *********/ /*********************************/ $shop_isle_products_hide = get_theme_mod('shop_isle_products_hide'); /* Latest products */ if ( isset($shop_isle_products_hide) && $shop_isle_products_hide != 1 ) { echo '
'; } elseif ( is_customize_preview() ) { echo '
'; } if( ( isset($shop_isle_products_hide) && $shop_isle_products_hide != 1 ) || is_customize_preview() ) { echo '
'; if(current_user_can( 'edit_theme_options')) { $shop_isle_products_title = get_theme_mod( 'shop_isle_products_title', __( 'Latest products', 'shop-isle' ) ); } else { $shop_isle_products_title = get_theme_mod( 'shop_isle_products_title' ); } if( !empty($shop_isle_products_title) ) { echo '
'; echo '
'; echo '

'.$shop_isle_products_title.'

'; echo '
'; echo '
'; } $shop_isle_products_shortcode = get_theme_mod('shop_isle_products_shortcode'); $shop_isle_products_category = get_theme_mod('shop_isle_products_category'); /*********************************/ /**** Woocommerce shortcode ******/ /*********************************/ if( isset($shop_isle_products_shortcode) && !empty($shop_isle_products_shortcode) ) { echo '
'; echo do_shortcode($shop_isle_products_shortcode); echo '
'; /**********************************/ /***** Products from category *****/ /**********************************/ } elseif( isset($shop_isle_products_category) && !empty($shop_isle_products_category) && ($shop_isle_products_category != '-') ) { $shop_isle_latest_args = array( 'post_type' => 'product', 'posts_per_page' => 8, 'orderby' =>'date', 'order' => 'DESC', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $shop_isle_products_category )), 'meta_query' => array( array( 'key' => '_visibility', 'value' => 'hidden', 'compare' => '!=', )), ); $shop_isle_latest_loop = new WP_Query( $shop_isle_latest_args ); if( $shop_isle_latest_loop->have_posts() ) { echo '
'; while( $shop_isle_latest_loop->have_posts() ) { $shop_isle_latest_loop->the_post(); global $product; echo '
'; echo '
'; echo '
'; if (has_post_thumbnail( $shop_isle_latest_loop->post->ID )) { echo get_the_post_thumbnail($shop_isle_latest_loop->post->ID, 'shop_catalog'); } elseif( function_exists('woocommerce_placeholder_img_src') ) { echo 'Placeholder'; } echo '
'; if(!empty($product)) { echo do_shortcode( '[add_to_cart id="' . $shop_isle_latest_loop->post->ID . '"]' ); if(function_exists('wccm_add_button')) { wccm_add_button(); } if ( defined( 'YITH_WCQV' ) ) { echo ''.__( 'Quick View','shop-isle' ).''; } } echo '
'; echo '
'; echo '

'.get_the_title().'

'; $rating_html = ''; if( function_exists( 'method_exists' ) && method_exists( $product, 'get_rating_html' ) && method_exists( $product, 'get_average_rating' ) ) { $shop_isle_avg = $product->get_average_rating(); if( !empty($shop_isle_avg) ) { $rating_html = $product->get_rating_html( $shop_isle_avg ); } } if ( !empty($rating_html) && get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { echo '
' . $rating_html . '
'; } $shop_isle_price = ''; if( function_exists('method_exists') && method_exists( $product, 'get_display_price' ) ) { $shop_isle_price = $product->get_display_price(); } if( function_exists('get_woocommerce_currency_symbol') && !empty($product) && !empty( $shop_isle_price ) ) { if( function_exists('get_woocommerce_price_format') ) { $format_string = get_woocommerce_price_format(); } if( !empty($format_string) ) { switch ( $format_string ) { case '%1$s%2$s' : echo ''.get_woocommerce_currency_symbol().''.$shop_isle_price.''; break; case '%2$s%1$s' : echo ''.$shop_isle_price.''.get_woocommerce_currency_symbol().''; break; case '%1$s %2$s' : echo ''.get_woocommerce_currency_symbol().' '.$shop_isle_price.''; break; case '%2$s %1$s' : echo ''.$shop_isle_price.' '.get_woocommerce_currency_symbol().''; break; } } else { echo get_woocommerce_currency_symbol().$shop_isle_price; } } echo '
'; echo '
'; } echo '
'; echo '
'; echo '
'; if( function_exists('woocommerce_get_page_id') ) { echo ''.__('See all products','shop-isle').''; } echo '
'; echo '
'; } else { echo '
'; echo '
'; echo '

'.__('No products found.','shop-isle').'

'; echo '
'; echo '
'; } wp_reset_postdata(); /*****************************/ /***** Latest products ******/ /*****************************/ } else { $shop_isle_latest_args = array( 'post_type' => 'product', 'posts_per_page' => 8, 'orderby' =>'date', 'order' => 'DESC', 'meta_query' => array( array( 'key' => '_visibility', 'value' => 'hidden', 'compare' => '!=', )), ); $shop_isle_latest_loop = new WP_Query( $shop_isle_latest_args ); if( $shop_isle_latest_loop->have_posts() ) { echo '
'; while( $shop_isle_latest_loop->have_posts() ) { $shop_isle_latest_loop->the_post(); global $product; echo '
'; echo '
'; echo '
'; if (has_post_thumbnail( $shop_isle_latest_loop->post->ID )) { echo get_the_post_thumbnail($shop_isle_latest_loop->post->ID, 'shop_catalog'); } elseif( function_exists('woocommerce_placeholder_img_src') ) { echo 'Placeholder'; } echo '
'; if( !empty($product) ) { echo do_shortcode( '[add_to_cart id="' . $shop_isle_latest_loop->post->ID . '"]' ); if(function_exists('wccm_add_button')) { wccm_add_button(); } if ( defined( 'YITH_WCQV' ) ) { echo ''.__( 'Quick View','shop-isle' ).''; } } echo '
'; echo '
'; echo '

'.get_the_title().'

'; $rating_html = ''; if( function_exists( 'method_exists' ) && method_exists( $product, 'get_rating_html' ) && method_exists( $product, 'get_average_rating' ) ) { $shop_isle_avg = $product->get_average_rating(); if( !empty($shop_isle_avg) ) { $rating_html = $product->get_rating_html( $shop_isle_avg ); } } if ( !empty($rating_html) && get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { echo '
' . $rating_html . '
'; } $shop_isle_price = ''; if( function_exists('method_exists') && method_exists( $product, 'get_display_price' ) ) { $shop_isle_price = $product->get_display_price(); } if( function_exists('get_woocommerce_currency_symbol') && !empty($product) && !empty( $shop_isle_price ) ) { if( function_exists('get_woocommerce_price_format') ) { $format_string = get_woocommerce_price_format(); } if( !empty($format_string) ) { switch ( $format_string ) { case '%1$s%2$s' : echo ''.get_woocommerce_currency_symbol().''.$shop_isle_price.''; break; case '%2$s%1$s' : echo ''.$shop_isle_price.''.get_woocommerce_currency_symbol().''; break; case '%1$s %2$s' : echo ''.get_woocommerce_currency_symbol().' '.$shop_isle_price.''; break; case '%2$s %1$s' : echo ''.$shop_isle_price.' '.get_woocommerce_currency_symbol().''; break; } } else { echo get_woocommerce_currency_symbol().$shop_isle_price; } } echo '
'; echo '
'; } echo '
'; echo '
'; echo '
'; if( function_exists('woocommerce_get_page_id') ) { echo ''.__('See all products','shop-isle').''; } echo '
'; echo '
'; } else { if(current_user_can( 'edit_theme_options')) { echo '
'; echo '
'; echo '

' . __( 'For this section to work, you first need to install the WooCommerce plugin , create some products, and insert a WooCommerce shortocode or select a product category in Customize -> Frontpage sections -> Products section', 'shop-isle' ) . '

'; echo '
'; echo '
'; } } wp_reset_postdata(); } echo '
'; echo '
'; } /* END Latest products */ /**********************************/ /********* VIDEO **************/ /*********************************/ $shop_isle_video_hide = get_theme_mod('shop_isle_video_hide'); $shop_isle_yt_link = get_theme_mod('shop_isle_yt_link'); $shop_isle_yt_thumbnail = get_theme_mod('shop_isle_yt_thumbnail'); if( empty($shop_isle_yt_thumbnail) ) { $shop_isle_do_video_thumbnail = preg_match( '/\/\/(www\.)?(youtu|youtube)\.(com|be)\/(watch|embed)?\/?(\?v=)?([a-zA-Z0-9\-\_]+)/', $shop_isle_yt_link, $shop_isle_youtube_matches ); $shop_isle_youtube_id = ! empty( $shop_isle_youtube_matches ) ? $shop_isle_youtube_matches[6] : ''; $shop_isle_yt_thumbnail = 'http://img.youtube.com/vi/' . $shop_isle_youtube_id . '/maxresdefault.jpg'; } if( isset($shop_isle_video_hide) && $shop_isle_video_hide != 1 && !empty($shop_isle_yt_link) ) { echo '
'; } elseif ( !empty($shop_isle_yt_link) && is_customize_preview() ) { echo '
'; } if( ( isset($shop_isle_video_hide) && $shop_isle_video_hide != 1 && !empty($shop_isle_yt_link) ) || ( !empty($shop_isle_yt_link) && is_customize_preview() ) ) { echo '
'; echo '
'; $shop_isle_video_title = get_theme_mod('shop_isle_video_title'); if( !empty($shop_isle_video_title) ): echo '
'; echo '
'; echo '
'; echo '

'.$shop_isle_video_title.'

'; echo '
'; echo '
'; echo '
'; endif; ?>
'; echo ''; } /* END VIDEO */ /******************************/ /**** Products slider *********/ /******************************/ $shop_isle_products_slider_hide = get_theme_mod('shop_isle_products_slider_hide'); if ( isset($shop_isle_products_slider_hide) && $shop_isle_products_slider_hide != 1 ) { echo '
'; } elseif ( is_customize_preview() ) { echo '
'; } if ( ( isset($shop_isle_products_slider_hide) && $shop_isle_products_slider_hide != 1) || is_customize_preview() ) { echo '
'; if(current_user_can( 'edit_theme_options')) { $shop_isle_products_slider_title = get_theme_mod( 'shop_isle_products_slider_title', __( 'Exclusive products', 'shop-isle' ) ); $shop_isle_products_slider_subtitle = get_theme_mod( 'shop_isle_products_slider_subtitle',__( 'For this section to work, you first need to install the WooCommerce plugin , create some products, and select a product category in Customize -> Frontpage sections -> Products slider section', 'shop-isle' ) ); } else { $shop_isle_products_slider_title = get_theme_mod( 'shop_isle_products_slider_title' ); $shop_isle_products_slider_subtitle = get_theme_mod( 'shop_isle_products_slider_subtitle' ); } if( !empty($shop_isle_products_slider_title) || !empty($shop_isle_products_slider_subtitle) ) { echo '
'; echo '
'; if( !empty($shop_isle_products_slider_title) ) { echo '

'.$shop_isle_products_slider_title.'

'; } if( !empty($shop_isle_products_slider_subtitle) ) { echo '
'.$shop_isle_products_slider_subtitle.'
'; } echo '
'; echo '
'; } $shop_isle_products_slider_category = get_theme_mod('shop_isle_products_slider_category'); if( !empty($shop_isle_products_slider_category) && ($shop_isle_products_slider_category != '-') ) { $shop_isle_products_slider_args = array( 'post_type' => 'product', 'posts_per_page' => 10, 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $shop_isle_products_slider_category, )), 'meta_query' => array( array( 'key' => '_visibility', 'value' => 'hidden', 'compare' => '!=', )), ); $shop_isle_products_slider_loop = new WP_Query( $shop_isle_products_slider_args ); if( $shop_isle_products_slider_loop->have_posts() ) { echo '
'; echo ''; echo '
'; } } else { $shop_isle_products_slider_args = array( 'post_type' => 'product', 'posts_per_page' => 10, 'meta_query' => array( array( 'key' => '_visibility', 'value' => 'hidden', 'compare' => '!=', )), ); $shop_isle_products_slider_loop = new WP_Query( $shop_isle_products_slider_args ); if( $shop_isle_products_slider_loop->have_posts() ) { echo '
'; echo ''; echo '
'; } } echo '
'; echo '
'; } get_footer(); ?>

 

Website Tools (CMS)

 

Your Information & Terms of Service

My Market Toolkit is a brand of Vauntium, LLC. The information you submit on this page is subject to the Vauntium Privacy Policy and Terms of Service. While we do not share your information with 3rd parties (including our clients) except for limited reasons outlined in the Privacy Policy, the information you submit on this page will be used to contact you regarding this and other offers. Please click here to opt out of future marketing communications by Vauntium, LLC. You will not be opted out of marketing campaigns we produce on behalf of our clients who maintain their own separate information, opt in lists, and policies and with whom you may have opted in during other interactions.