File: /home/dermova/public_html/india/wp-content/themes/ri-colias/category.php
<?php
/**
* The template for displaying Category 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();
$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';
}
/**
* Check if WooCommerce is active
**/
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
if( !is_front_page()){?>
<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 if ( have_posts() ) : ?>
<header class="archive-header">
<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="taxonomy-description">%s</div>', $term_description );
endif;
?>
</header><!-- .archive-header -->
<div class="archive-blog">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
get_template_part( 'content');
endwhile;
else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );
endif;
the_posts_pagination( array(
'prev_text' => '<i class="fa fa fa-long-arrow-left"></i>',
'next_text' => '<i class="fa fa fa-long-arrow-right"></i>',
'before_page_number' => '<span class="meta-nav screen-reader-text"></span>',
) );
?>
</div>
</div><!-- .site-main -->
<?php get_sidebar('right'); ?>
</div><!-- .content-area -->
<?php
get_footer();