<?php 
get_header(); 

require EX_THEMES_DIR.'/libs/inc.news.php';
?>
<div id="content" class="site-content">

<div class=" mb-3" style="max-width:850px;"> 
<div class="container py-1">
<ul id="breadcrumb" class="breadcrumb"> 
	<li class="breadcrumb-item home"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="><?php if($opt_themes['ex_themes_activate_rtl_']){ echo $opt_themes['rtl_homes']; } else { echo $opt_themes['text_homes']; } ?>"><?php if($opt_themes['ex_themes_activate_rtl_']){ echo $opt_themes['rtl_homes']; } else { echo $opt_themes['text_homes']; } ?></a></li>
	<li class="breadcrumb-item active"><?php echo single_cat_title( '', false ); ?></li>
</ul>
</div>
</div>
 
 
	
	<div class="container">
	 <div class="row"> 
		 
		
			<?php 
			do_action('main_home');
			do_action('section_arch');
			?>

	 
		<div class="mb-4">
			<?php ex_themes_banner_header_ads_(); ?>
		</div>
	<div class="row">
	<?php $postcounter = 1; if(have_posts()) : ?>
	<?php while(have_posts()) : $postcounter = $postcounter + 1; the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID(); 
	
			global $wpdb, $post, $opt_themes;
			$defaults_no_images				= $opt_themes['ex_themes_defaults_no_images_']['url']; 
			$image_id						= get_post_thumbnail_id($post->ID); 
			$full							= 'thumbnails-news-arc';  
			$image_url						= wp_get_attachment_image_src($image_id, $full, true); 
			$image_url_news_arc				= $image_url[0];
			?>
			
	<div class="col-12 col-sm-6 col-lg-4 mb-4 ">
	<a class="embed-responsive embed-responsive-16by9 bg-cover d-block" style="background-image: url(<?php if (has_post_thumbnail()) { echo $image_url[0]; } else { echo $defaults_no_images; } ?>); box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);" href="<?php the_permalink() ?>">
	<div class="d-flex align-items-end p-3 position-absolute" style="background-color: rgba(0, 0, 0, 0.5); top: 0; bottom: 0; left: 0; right: 0;">
	<h3 class="text-white mb-0" style="font-size: 0.875rem;"><?php the_title(); ?></h3>
	</div>
	</a>
	</div>
	<?php endwhile; ?>	
	<?php else : ?>
	</div>
	<?php endif; ?>
	</section>

			<?php 
			get_template_part('include/nav'); 
			?>

			</main>

			<!--sidebar-->		
			<?php do_action('sidebar'); ?> 
			<!--sidebar-->
		</div>
	</div>
</div> 

<?php
get_footer(); 