File: /home/dermova/www/india/wp-content/themes/ri-colias/single.php
<?php
/**
* Single Product
*
* RIT Core
* @package RIT Core
* @version 0.1
* @author CleverSoft
* @link http://cleversoft.co
* @copyright Copyright (c) 2015 CleverSoft
* @license GPL v2
*/
get_header();
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';
}
?>
<?php
/**
* Check if WooCommerce is active
**/
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { ?>
<div class="wrap-breadcrumb">
<div class="container">
<nav class="breadcrumb">
<?php woocommerce_breadcrumb(); ?>
</nav>
<!-- /.breadcrumb -->
</div>
</div>
<!-- /.wrap-breadcrumb -->
<?php }?>
<div class="row">
<?php get_sidebar('left'); ?>
<div class="main-content col-sm-12 <?php echo esc_attr($class_main) ;?>" role="main">
<?php
// Start the loop.
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
// End the loop.
endwhile;
?>
</div><!-- .site-main -->
<?php get_sidebar('right'); ?>
</div><!-- .content-area -->
<?php get_footer(); ?>