<?php
/**
 * The template for displaying Search Results pages
 *
*/ 
get_header();?>
<section>
  <div class="customize-breadcrumb">
    <div class="container customize-container">
      <h1><?php 
            esc_html_e('Search Results for','customizable'); echo ": ". get_search_query(); ?> 
      </h1>
      <?php customizable_breadcrumbs();?>
    </div>
  </div>
</section>
<section class="main_section">
  <div class="container customize-container">
    <div class="row">
      <div class="col-md-9 col-sm-8 col-xs-12">
    <div class="left_section">
      <?php if(have_posts()):?>
      <?php while(have_posts()): the_post();?>
      <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <div class="section_post border-none">
          <?php if(has_post_thumbnail()) {echo get_the_post_thumbnail(get_the_ID(), 'customizable-blog-width',array('class'=>''));}?>
          <h3>
            <?php the_title(); ?>
          </h3>
          <h4><?php echo esc_html(customizable_entry_meta());?></h4>
          <?php the_excerpt();?>
          <a class="read-more" href="<?php echo esc_url(get_permalink());?>"><?php esc_html_e('READ MORE','customizable') ?></a> </div>
      </article>
      <?php endwhile;?>
        <!--Pagination Start-->
        <?php if(function_exists('faster_pagination')) { ?> 
            <?php faster_pagination();?>
        <?php }else { ?>
        <?php if(get_option('posts_per_page ') < $wp_query->found_posts) { ?>
        <div class="col-md-12 customizable-default-pagination">
            <span class="customizable-previous-link"><?php previous_posts_link(); ?></span>
            <span class="customizable-next-link"><?php next_posts_link(); ?></span>
        </div>
        <?php } ?>
        <?php }//is plugin active ?>
		<!--Pagination End-->
      <?php
		   else : 
		   ?>
      <p>  <?php esc_html_e('No Post Found. Please try with some other words.','customizable') ?></p>
      <?php  endif;?>
    </div>
  </div>
  <div class="col-md-3 col-sm-4 col-xs-12">
    <div class="side_bar">
      <?php get_sidebar();?>
    </div>
  </div>
  </div>
</div>
</section>
<?php get_footer();?>