<?php $mediapulse_page_layout = get_theme_mod( 'page_layout', "right" ); 
if( $mediapulse_page_layout == "left" ) : ?>
<div class="col-lg-4 pt-3 pt-lg-0">
	<?php get_sidebar(); ?>
</div>
<?php endif; 
if ( $mediapulse_page_layout == "full" ) {
	$mediapulse_div = "12";
} else {
	$mediapulse_div = "8";
} ?>
<div class="col-lg-<?php echo $mediapulse_div; ?>">
	<div class="row">
		<?php if ( have_posts()): 
		while ( have_posts() ): the_post(); ?>
			<div class="position-relative mb-3">
				<?php if ( has_post_thumbnail() ) :
						the_post_thumbnail(); endif; ?>
				<div class="overlay position-relative bg-light">
					<div class="mb-2" style="font-size: 14px;">
						<span><?php echo esc_html( get_the_date() ); ?></span>
					</div>
					<h3 class="mb-3"><?php the_title(); ?></h3>
					<p class="m-0"><?php the_content(); ?></p>
				</div>
			</div>
		<?php endwhile; endif; ?>
		<?php wp_reset_postdata(); ?>
	</div>
</div>

<?php if( $mediapulse_page_layout == "right" ) : ?>
<div class="col-lg-4 pt-3 pt-lg-0">
	<?php get_sidebar(); ?>
</div>
<?php endif; ?>