File: /home/dermova/www/india/wp-content/themes/ri-colias/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
}
global $post,$sidebar_left,$sidebar_right;
rit_sidebar_config();
$class_main='col-sm-12 col-md-12';
if($sidebar_left && $sidebar_right ){
$class_main = 'col-sm-6 col-md-6';
} elseif ($sidebar_right || $sidebar_left){
$class_main = 'col-sm-9 col-md-9';
} else{
$class_main = 'col-sm-12 col-md-12';
}
get_header( 'shop' ); ?>
<!-- wrap-breadcrumb -->
<div class="wrap-breadcrumb">
<nav class="breadcrumb">
<?php woocommerce_breadcrumb(); ?>
</nav>
<!-- /.breadcrumb -->
</div>
<!-- /.wrap-breadcrumb -->
<div class="row">
<?php get_sidebar('left'); ?>
<div class="main-content col-sm-12 <?php echo esc_attr($class_main) ;?>" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php wc_get_template_part( 'content', 'single-product' ); ?>
<?php endwhile; // end of the loop. ?>
</div>
<?php get_sidebar('right'); ?>
</div>
<?php get_footer( 'coppy-right' ); ?>