<?php
/**
 * This file handles how search page will look like.
 * @version:1.0
 */
get_header(); 
?>
  

      <section id="home" class="s-home s-blog target-section bg_slider_img" data-aos="fade-up"  data-aos-duration="500">
         <div class="shadow-overlay"></div>
         <div class="home-content">
            <div class="row home-content__main">
               <h1>
                  <?php if ( have_posts() ) : ?>
                          <h1 class="wow fadeInUp main-h font_40" data-wow-delay="0.2s"><?php printf( __( 'Search Results for: %s', 'cowork-lite' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
                        <?php else : ?>
                          <h1 class="wow fadeInUp main-h font_40" data-wow-delay="0.2s" ><?php _e( 'Nothing Found', 'cowork-lite' ); ?></h1>
                        <?php endif; ?>
               </h1>
            </div>
  
         </div>
      </section>
      <!-- end s-home -->

       <section class="blog-area ptb-140 bg-1">
            <div class="container">
                <div class="row">
                    <div class="col-md-8 col-sm-8 col-xs-12 col">
                      <?php if(have_posts() ) :  
                          while ( have_posts() ) : the_post();

                         get_template_part('content'); 

                            endwhile; 
                         
                             else :
                              get_template_part( 'content', 'none' );
                          endif;
                        ?> 

                    <div class="pagination-container">
                      <?php navthemes_number_post_nav(); ?>
                    </div>  
                </div>
              
                  <?php get_sidebar(); ?> 
            </div>
          </div>
        </section>
      <!-- #End blog Us Area  -->
  
<?php
get_footer();