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/public_html/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(); ?>