<?php 
get_header(); 
global $wpdb, $post, $opt_themes; 
?>

<div id="content" class="site-content">

	<div class="container py-1">
 
	
	<ul id="breadcrumb" class="pt-1 pb-3 breadcrumb "  itemscope='itemscope' itemtype='https://schema.org/BreadcrumbList' <?php if ($opt_themes['ex_themes_breadcrumbs_activate_']) { ?>style="display:none"<?php } ?>>
	<li class="breadcrumb-item home" itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem">
	<a href="<?php echo get_bloginfo("home"); ?>" title="<?php _e($opt_themes['text_homes'], TEXT_DOMAIN); ?>"> <?php _e($opt_themes['text_homes'], TEXT_DOMAIN); ?>
	<meta itemprop='item' content='<?php echo get_bloginfo("home"); ?>' />
	<meta itemprop='name' content='<?php _e($opt_themes['text_homes'], TEXT_DOMAIN); ?>' />
	<meta itemprop='position' content='1' />
	</a>
	</li>

	<li class="breadcrumb-item active">
	<?php printf( __( '%s', THEMES_NAMES ), '' . post_type_archive_title( '', false ) . '' ); ?>
	</li>
	</ul>
	
	 
	</div>
	 
 
	<div class="container">
	<?php do_action('main_arch_new'); ?>	
	<div class="m-3">
	<?php ex_themes_banner_header_ads_(); ?>
	</div>

	<div class="row">
	<?php 
	if(have_posts()) : 
	while(have_posts()) :
	the_post();
	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 (get_the_post_thumbnail( get_the_ID() )) { echo wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' )[0]; } else { echo $opt_themes['no_img']['url']; } ?>); 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="h6 font-weight-bold text-white mb-0"><?php the_title(); ?></h3>
	</div>
	</a>
	</div>
	<?php endwhile; ?>	
	<?php endif; ?> 

	</div> 

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

	<?php
	do_action('close_main');
	?> 

	</div>
</div>

<?php 
get_footer(); 