File: /home/nokatech/public_html/wp-content/themes/consultox/category.php
<?php
/**
* Archive Main File.
* @package CONSULTOX
*/
get_header();
global $wp_query;
$data = \CONSULTOX\Includes\Classes\Common::instance()->data( 'category' )->get();
if ( class_exists( '\Elementor\Plugin' ) AND $data->get( 'tpl-type' ) == 'e' AND $data->get( 'tpl-elementor' ) ) {
echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $data->get( 'tpl-elementor' ) );
} else {
?>
<?php if (!$data->get( 'enable_banner' ) ) : ?>
<?php if ( $data->get( 'banner' ) ) : ?>
<section class="mr_page_title cat_page_title page-title" style="background-image: url(<?php echo esc_url( $data->get( 'banner' ) ); ?>);">
<?php else : ?>
<section class="mr_page_title cat_page_title page-title" >
<?php endif; ?>
<div class="auto-container">
<div class="content-box">
<?php if( !$options->get( 'catagory_page_title' ) ):?>
<h1 class="mr_banner_title"><?php if( $data->get( 'title' ) ) echo wp_kses( $data->get( 'title' ), true ); else( wp_title( '' ) ); ?></h1>
<?php endif; ?>
<?php if( !$options->get( 'catagory_bread' ) ):?>
<ul class="mr_bread_list">
<?php echo consultox_the_breadcrumb(); ?>
</ul>
<?php endif; ?>
</div>
</div>
</section>
<?php endif;} ?>
<div class="mr_page_category">
<?php consultox_template_load( 'templates/mrcontent.php', compact( 'options', 'data' ) ); ?>
</div>
<?php
get_footer();