File: /home/dermova/www/india/wp-content/themes/ri-colias/page.php
<?php
/**
* The template for displaying pages
*
* 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();
$show_breadcrumb = get_post_meta($post->ID, 'rit_show_breadcrumb', true);
$show_title = get_post_meta($post->ID, 'rit_show_title', true);
$class_main='col-sm-12 col-md-12';
if($sidebar_left && $sidebar_right ){
$class_main = 'col-sm-12 col-md-6';
} elseif ($sidebar_right || $sidebar_left){
$class_main = 'col-sm-12 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' ) ) ) ) { ?>
<?php if(isset($show_breadcrumb) && ($show_breadcrumb !='0')){?>
<div class="wrap-breadcrumb">
<div class="container">
<nav class="breadcrumb">
<?php woocommerce_breadcrumb(); ?>
</nav>
<!-- /.breadcrumb -->
</div>
</div>
<?php }?>
<!-- /.wrap-breadcrumb -->
<?php }?>
<div class="row">
<?php get_sidebar('left'); ?>
<div class="site-main col-sm-12 <?php echo esc_attr($class_main) ;?>" role="main">
<?php
// Start the loop.
while ( have_posts() ) : the_post();?>
<?php if(isset($show_title) && ($show_title !='0')){?>
<header class="page-header"><h1 class="page-title"><?php the_title(); ?></h1></header>
<?php }?>
<?php the_content();
// End the loop.
// 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;
endwhile;
?>
</div><!-- .site-main -->
<?php get_sidebar('right'); ?>
</div><!-- .content-area -->
<?php get_footer(); ?>