
<?php 
$show_blog_btn= get_theme_mod('show_post_btn', true); 
$show_blog_content= get_theme_mod('show_post_content', true); 

?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-grid col-xl-6' ); ?> >

	<div class="blog-card mb-30">
		
		<?php if(has_post_thumbnail()){ ?>
			<div class="post-thumb">
				<a href="<?php the_permalink();?>">
					<?php the_post_thumbnail( 'edify_blog', ['class' => 'img-responsive'] );?>
				</a>
			</div>
		<?php } ?>	

		<div class="blog-content">
			<div class="post-meta">
				<span class="post-author"><?php edify_posted_by();?></span>
				<span class="post-date"><i class="fa fa-calendar-alt mr-2"></i><?php echo get_the_time('M d, Y');?></span>
			</div>
			<h3 class="post-title"> <a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
			
			<?php if($show_blog_content): ?>
			<?php the_excerpt();?>
			<?php endif; ?>
			
		</div>

		<?php if($show_blog_btn): ?>
			<div class="blog-footer">
				<a href="<?php the_permalink()?>"><?php echo esc_html__('Read More','edify');?> <i class="ri-arrow-right-up-line"></i></a>
			</div>
		<?php endif; ?>

	</div>
</article>

