File: /home/nhqyemt2u0zd/www/wp-content/themes/kitgreen1.1.0/woocommerce/single-product.php
<?php
/**
* The Template for displaying all single products.
*
* Override this template by copying it to yourtheme/woocommerce/single-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
// Get page options
$blog_shortcoe = cs_get_option('blog_before_footer');
$options = get_post_meta( get_the_ID(), '_custom_wc_options', true );
$enble_sidebar = cs_get_option('enble-sidebar');
// Get product single style
$style = ( is_array( $options ) && $options['wc-single-style'] ) ? $options['wc-single-style'] : ( cs_get_option( 'wc-single-style' ) ? cs_get_option( 'wc-single-style' ) : '1' );
if(isset($options['wc-sidebar-detail'])) {
$sidebar = $options['wc-sidebar-detail'];
}
wp_enqueue_script( 'stiky-sidebar', URI_PATH.'/assets/js/dev/jquery.sticky.js', array('jquery'), '', true );
get_header( 'shop' );
echo jwstheme_title_bar();
/**
* woocommerce_before_main_content hook
*
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
* @hooked woocommerce_breadcrumb - 20
*/
do_action( 'woocommerce_output_content_wrapper' );
?>
<div class="<?php if(cs_get_option('wc-detail-full')) echo "no_"; ?>container">
<div class="<?php if($style == '1' && $enble_sidebar ) {echo "row-same-height row";} ?> ">
<div class="<?php if($style == '1' && $enble_sidebar ) : echo "col-lg-9 col-md-9 col-sm-12 col-xs-12 side-in " ; endif; ?> product-content">
<?php while ( have_posts() ) : the_post(); ?>
<?php wc_get_template_part( 'content', 'single-product' ); ?>
<?php endwhile; // end of the loop. ?>
</div>
<?php if($style == '1' && $enble_sidebar ) : ?>
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 shop-detail-sidebar ">
<div class="sticky-move">
<?php dynamic_sidebar( 'jws-sidebar-shop-detail' ); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php
/**
* woocommerce_after_main_content hook
*
* @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
*/
do_action( 'woocommerce_output_content_wrapper_end' );
?>
<div class="before-footer">
<?php echo do_shortcode( ''.$blog_shortcoe.'' );?>
</div>
<?php get_footer( 'shop' ); ?>