<?php
/**
 * The blog post content
 */

global $post;

$featured_image_url = wp_get_attachment_url(get_post_thumbnail_id());
$attachment_title = get_the_title();
?>
 
			<div class="post-content-wrapper">
				<div class="post_format_content">
					<?php if ( $style == 'masonry_bg_img' ) { ?>
						<div class="featured_image_img">
							<img src="<?php echo esc_url( $featured_image_url ); ?>" alt="<?php echo esc_attr( $attachment_title ); ?>" />
						</div>
					<?php } else { ?>
						<div class="featured_image_bg" style="background-image:url(<?php echo esc_url( $featured_image_url ); ?>);"></div>
					<?php } ?>
				</div>
				<div class="post-descr-wrap text-center">
					<div class="post-meta">
						<span class="post-meta-date"><i><?php the_time('j F, Y'); ?></i></span>
					</div>
					<h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php echo esc_html( $attachment_title ); ?></a></h2>
				</div>
			</div>