<?php 
	$sidebar_layout = get_post_meta( get_the_ID(), 'sidebar_layout', true ); 
	$blog_type = get_option('blog_type');
	$blog_layout = get_option('blog_layout');
?>
<?php if ( $sidebar_layout == 'none' ): ?>
	<div class="col-md-12 col-sm-12 col-xs-12">
<?php elseif ( $blog_type == 'list' || ( $blog_type == 'grid' && $blog_layout == '2col' ) ): ?>
	<div class="col-md-8 col-sm-12 col-xs-12">
<?php else: ?>
	<div class="col-md-9 col-sm-12 col-xs-12">
<?php endif ?>

	<article class="main-post">
		<div class="post-content">
			<?php echo the_content(); ?>
		</div>
	</article>
	<?php $num = get_comments_number(); ?>
	<?php if ($num > 0) { ?>
		<div class="comments" id="comments">
			<h3><?php _e('Comments','pryaniktheme'); ?></h3>
			<?php comments_template( '/includes/templates/comments.php'); ?>
		</div>
	<?php } ?>
	<?php if (comments_open()): ?>
		<?php comment_form(); ?>
	<?php endif ?>
</div>