<?php
/**
 * The template for displaying the Search Result.
 * @package Newspaperup
 */
$blog_post_layout = (get_theme_mod('blog_post_layout','list-layout')); ?>
<div class="col-lg-<?php echo ( !is_active_sidebar( 'sidebar-1' ) ? '12' :'8' ); ?>">
    <?php if ( have_posts() ) { /* Start the Loop */
        if($blog_post_layout == 'grid-layout'){
            get_template_part('content','grid');
        } else { get_template_part('content',''); }
    } else { ?>
        <h2><?php esc_html_e( "Nothing Found", 'newspaperup' ); ?></h2>
        <div class="">
            <p>
                <?php esc_html_e( "Sorry, but nothing matched your search criteria. Please try again with some different keywords.", 'newspaperup' ); ?>
            </p>
            <?php get_search_form(); ?>
        </div><!-- .blog_con_mn -->
    <?php } ?>
</div>