MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
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' ); ?>