File: /www/wwwroot/www.sceycy.com/wp-content/themes/Zing-Pro/archive/news-no-sidebar.php
<?php
$category_data = get_term_meta( $cat, '_prefix_taxonomy_options', true );
$banner_img = isset( $category_data['cat_banner_img']['url'] ) ? $category_data['cat_banner_img']['url'] : '';
get_header();
if( $banner_img ){?>
<div class="module-default produc-cat">
<div class="responsive-carousel carousel clearfix">
<div class="carousel-item">
<img src="<?php echo $banner_img;?>">
</div>
<?php if( $category_data['banner_cat_desc'] ){?>
<div class="dark-overlay"></div>
<div class="page-width ">
<div class="page-banner">
<h2><?php single_term_title(); ?></h2>
<?php echo category_description(); ?>
</div>
</div>
<?php }?>
</div>
</div>
<?php }?>
<section class="main">
<div class="page-width clearfix news-mb">
<section class="news-no-sidebar">
<div class="breadcrumbs">
<?php if (function_exists('get_breadcrumbs')){get_breadcrumbs(); } ?>
</div>
<div class="content-box">
<div class="module-inner">
<div class="module-content">
<div class="entry-list entry-list-article entry-list-time-hl">
<?php while( have_posts() ): the_post(); ?>
<div class="entry-item not-animated"<?php echo data_animate();?>>
<div class="time">
<?php if( get_locale() == 'en_US' ){?>
<p class="time-day">
<?php the_time('d') ?>
</p>
<p class="time-date">
<?php the_time('m / Y') ?>
</p>
<?php }else{?>
<p class="time-day">
<?php the_time('d') ?>
</p>
<p class="time-date">
<?php the_time('Y-m') ?>
</p>
<?php }?>
</div>
<div class="entry-title">
<h2><a href="<?php the_permalink(); ?>"><?php the_title_attribute(); ?></a></h2>
</div>
<div class="entry-summary">
<div class="qhd-content">
<p>
<?php
if( has_excerpt() ){
$get_the_excerpt = wp_strip_all_tags(get_the_excerpt());
echo mb_strimwidth($get_the_excerpt, 0, 250, '...');
}else{
echo mb_strimwidth(strip_tags($post->post_content),0,250,'...');
}?>
</p>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="pagination pagination-default">
<?php par_pagenavi(9); ?>
</div>
</div>
</div>
</div>
</section>
</div>
</section>
<?php get_footer();?>