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/archive.php
<?php
/**
 * The template for displaying archive 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' ) ) ) ) { ?>
    <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 <?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-long-arrow-left"></i>',
                'next_text'          => '<i class="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(); ?>