/home/awneajlw/work.codestechvista.com/wp-content/themes/ignavo/single.php
<?php
/**
 * single.php
 * @package WordPress
 * @subpackage Ignavo
 * @since Ignavo 1.0
 * 
 */
 ?>

<?php get_header(); ?>

<div class="container">
		
	<?php if( get_theme_mod( 'ignavo_blog_layout' ) == 'left-sidebar') { ?>
		<div class="blog-single site-content-wrapper content-margin sidebar-left">
			<div id="sidebar" class="blog-sidebar column secondary-column sticky blog-sidebar">
				<div class="sidebar-inner sticky-holder sticky-top-20 overflow-visible">
					<?php if ( is_active_sidebar( 'blog-sidebar' ) ) { ?>
						<?php dynamic_sidebar( 'blog-sidebar' ); ?>
					<?php } ?>
				</div>
			</div>
			<div id="primary" class="column primary-column">
				<div class="blog-posts blog-posts-single">
					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

						<?php  get_template_part( 'post-format/single', get_post_format() ); ?>

					<?php endwhile; ?>
				
						<?php comments_template(); ?>
						
					<?php else : ?>

						<h2><?php esc_html_e('No Posts Found', 'ignavo') ?></h2>

					<?php endif; ?>
				</div>
			</div>
		</div>
	<?php } elseif( get_theme_mod( 'ignavo_blog_layout' ) == 'full-width') { ?>
		<div class="blog-single site-content-wrapper content-margin">
			<div id="primary" class="column primary-column">
				<div class="blog-posts blog-posts-single">
					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

						<?php  get_template_part( 'post-format/single', get_post_format() ); ?>

					<?php endwhile; ?>
				
						<?php comments_template(); ?>
						
					<?php else : ?>

						<h2><?php esc_html_e('No Posts Found', 'ignavo') ?></h2>

					<?php endif; ?>
				</div>
			</div>
		</div>
	<?php } else { ?>
		<?php if ( is_active_sidebar( 'blog-sidebar' ) ) { ?>
			<div class="blog-single site-content-wrapper content-margin sidebar-right">
				<div id="primary" class="column primary-column">
					<div class="blog-posts blog-posts-single">
						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

							<?php  get_template_part( 'post-format/single', get_post_format() ); ?>

						<?php endwhile; ?>
					
							<?php comments_template(); ?>
							
						<?php else : ?>

							<h2><?php esc_html_e('No Posts Found', 'ignavo') ?></h2>

						<?php endif; ?>
					</div>
				</div>
				<div id="sidebar" class="blog-sidebar column secondary-column sticky blog-sidebar">
					<div  class="sidebar-inner sticky-holder sticky-top-20 overflow-visible">
						<?php if ( is_active_sidebar( 'blog-sidebar' ) ) { ?>
							<?php dynamic_sidebar( 'blog-sidebar' ); ?>
						<?php } ?>
					</div>
				</div>
			</div>
		<?php } else { ?>
			<div class="blog-single site-content-wrapper content-margin">
				<div id="primary" class="column primary-column">
					<div class="blog-posts blog-posts-single">
						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

							<?php  get_template_part( 'post-format/single', get_post_format() ); ?>

						<?php endwhile; ?>
					
							<?php comments_template(); ?>
							
						<?php else : ?>

							<h2><?php esc_html_e('No Posts Found', 'ignavo') ?></h2>

						<?php endif; ?>
					</div>
				</div>
			</div>
		<?php } ?>
		
	<?php } ?>
			
</div>

<?php get_footer(); ?>