<?php
$get_post_column_layout = '3';
if (is_home()) {
	$get_post_column_layout = get_theme_mod('blog_page_post_column', '3');
}elseif(is_search()){
	$get_post_column_layout = get_theme_mod('search_page_post_column', '3');
}elseif(is_archive()){
	$get_post_column_layout = get_theme_mod('archive_page_post_column', '3');
}
$post_column_layout = 'col-sm-12 col-md-6 col-lg-4';
if ( $get_post_column_layout == 2 ) {
	$post_column_layout = 'col-lg-6 col-md-12';
} elseif ( $get_post_column_layout == 3 ) {
	$post_column_layout = 'col-sm-12 col-md-6 col-lg-4';
} elseif ( $get_post_column_layout == 4 ) {
	$post_column_layout = 'col-sm-12 col-md-6 col-lg-3';
}
$post_classes = 'author-blog-standard-post';
if ( ! has_post_thumbnail() ) {
	$post_classes = 'author-blog-standard-post no-post-thumbnail ';
}
$post_el_is_on = array(
	'show_post_category' => get_theme_mod('show_post_category', true),
	'show_post_thumbnail' => get_theme_mod('show_post_thumbnail', true),
	'show_post_date' => get_theme_mod('show_post_date', true),
	'show_post_author' => get_theme_mod('show_post_author', true),
	'show_post_title' => get_theme_mod('show_post_title', true),
	'show_post_excerpt' => get_theme_mod('show_post_excerpt', true),
);
?>

<div class="<?php echo esc_attr( $post_column_layout ); ?> blog-grid-layout">
	<article id="post-<?php the_ID(); ?>" <?php post_class( $post_classes ); ?>>
		<div class="author-blog-standard-post__entry-content text-left">
			<?php if ( has_post_thumbnail() ) : ?>
				<div class="author-blog-standard-post__thumbnail post-header">
					<?php author_blog_post_thumbnail(); ?>
				</div>
			<?php endif; ?>
			<div class="author-blog-standard-post__content-wrapper">
				<div class="author-blog-standard-post__blog-meta mt-0">
					<?php author_blog_categories(); ?>
				</div>
				<div class="author-blog-standard-post__post-title">
					<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
				<?php the_excerpt(); ?>
				</div>
				<div class="author-blog-standard-post__blog-meta">
					<?php
					author_blog_posted_by( true );
					author_blog_posted_on();
					?>
				</div>
			</div>
		</div>
	</article><!-- #post-<?php the_ID(); ?> -->
</div>
