<?php
/**
 * The template for displaying all single posts.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package micky
 */
get_header(); 
$theme_sidebar_position = $sidebar_layout = '';
$sidebar_layout = get_theme_mod('sidebar_layout');

if(isset($sidebar_layout) && !empty($sidebar_layout)){
	$theme_sidebar_position = get_theme_mod('sidebar_layout');
}
if(empty($sidebar_layout)){
$theme_sidebar_position = 'right';
}
?>
<div class="wrapper_main breadcum_part">
	<div class="container">
		<div class="row">
			<div class="col-lg-12">
				<div class="breadcum_inner main">
				<h3 class=""><?php the_title(); ?></h3> 
				</div>
			</div>
		</div>
	</div>
</div>
<div class="wrapper_main Blog_details_section">
	<div class="container">
		<div class="row">
			<?php if($theme_sidebar_position == 'left') { ?>
			<div class="col-lg-4 col-md-4 col-sm-12">
			<div class="micky_sidebar_area">
			<?php micky_sidebar(); ?>
			</div>
			</div>
			<?php } if($theme_sidebar_position != 'full') { ?>
			<div class="col-lg-8 col-md-8 col-sm-12">
			<?php } else { ?>
			<div class="col-lg-12 col-md-12 col-sm-12">
			<?php } ?>
			<?php
			while ( have_posts() ) : the_post();
				get_template_part( 'template-parts/content','single');
				the_post_navigation(); 
				?>
				<div class="blog_desc blog_details_desc">
				<div class="blog_content">
				<?php
				// If comments are open or we have at least one comment, load up the comment template.
				if ( comments_open() || get_comments_number() ) :
					comments_template();
				endif; ?>
				</div>
				</div>
				<?php
			endwhile; // End of the loop.
			?>
			<?php
			if($theme_sidebar_position != 'full') { ?>
			</div>
			<?php }else { ?>
			</div>
			<?php } if($theme_sidebar_position == 'right') { ?>
			<div class="col-lg-4 col-md-4 col-sm-12">
			<div class="micky_sidebar_area">
			<?php micky_sidebar(); ?>
			</div>
			</div>
			<?php } ?>
		</div>
	</div>
</div>
<?php get_footer(); ?>