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

<?php get_header(); ?>

<div class="klb-blog page-container">
	<div class="container">

		<?php if( get_theme_mod( 'ignavo_blog_layout' ) == 'left-sidebar') { ?>
		
			<h2 class="search-title"><?php printf( esc_html__( 'Search Results for: %s', 'ignavo' ), get_search_query() ); ?></h2>
			
			<div class="site-content-wrapper 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">
						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

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

						<?php endwhile; ?>
					
							<?php get_template_part( 'post-format/pagination' ); ?>
							
						<?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="site-content-wrapper">
				<div id="primary" class="column primary-column">
				
					<h2 class="search-title"><?php printf( esc_html__( 'Search Results for: %s', 'ignavo' ), get_search_query() ); ?></h2>
				
					<div class="blog-posts">
						<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

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

						<?php endwhile; ?>
					
							<?php get_template_part( 'post-format/pagination' ); ?>
							
						<?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' ) ) { ?>
			
				<h2 class="search-title"><?php printf( esc_html__( 'Search Results for: %s', 'ignavo' ), get_search_query() ); ?></h2>
			
				<div class="site-content-wrapper sidebar-right">
					<div id="primary" class="column primary-column">
						<div class="blog-posts">
							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

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

							<?php endwhile; ?>
						
								<?php get_template_part( 'post-format/pagination' ); ?>
								
							<?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="site-content-wrapper">
					<div id="primary" class="column primary-column">

						<h2 class="search-title"><?php printf( esc_html__( 'Search Results for: %s', 'ignavo' ), get_search_query() ); ?></h2>
					
						<div class="blog-posts">
							<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

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

							<?php endwhile; ?>
						
								<?php get_template_part( 'post-format/pagination' ); ?>
								
							<?php else : ?>

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

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

<?php get_footer(); ?>