<?php
/**
 * The template for displaying search results pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package ShoBe
 */

get_header();
?>

 <!-- START TITLE -->
 <section class="section"  id="primary">
        <div class="container">
            <div class="text-center">
                <h1 class="fw-medium"><?php esc_html_e( 'Search results for', 'shobe' ); ?>: <?php echo get_search_query(); ?></h1>
          
            </div>
        </div>
    </section>
    <!-- END TITLE -->
<section class="section">
    <div class="container">
        <div class="row">
            <div class="col-lg-8">
                <?php  
                // Include the search form once again
				//get_search_form();
                if( have_posts() ):
                    // Start the loop.
                    while( have_posts() ): the_post();
                        get_template_part( 'template-parts/content', 'search');						
                    // End of the loop.
                    endwhile;
                    // We're using numeric page navigation here.
			        the_posts_pagination( array(
			            'prev_text'	=> esc_html__( 'Previous' , 'shobe'),
			            'next_text'	=> esc_html__( 'Next' , 'shobe')
			        ));

			    // If no content, display the following message
				else: 
                ?>
                    <p><?php esc_html_e( 'There are no results for your query.', 'shobe' ) ?></p>
                <?php endif; ?>
            </div>
            <div class="col-lg-4">
                <?php get_sidebar()?>
            </div>
        </div> 
    </div>  
</section>  

<?php get_footer(); ?>