<?php
/*
 * The template part for displaying results in search pages
 */
?>
<div class="col-md-8 col-sm-7">	
  <?php if (have_posts()) : ?>		
    <?php while (have_posts()) : the_post(); ?>										
      <div class="property-blog-bg">
        <div class="blog-property">
          <div class="blog-details col-md-3 col-xs-6"> 							
            <?php relic_entry_meta(); ?>								
          </div> 
          <div class="blog-img col-md-9 col-xs-6">
            <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
            <?php if (has_post_thumbnail()) { ?>
              <a href="<?php the_permalink(); ?>"> 
                <?php the_post_thumbnail('relic-post-image'); ?>
              </a>
            <?php } 
             the_excerpt(); ?>						
          </div>			
        </div>
      </div>	
    <?php endwhile; ?>
    <div class="col-md-12 no-padding-lr">
      <div class="gallery-pagination">
        <?php relic_pagination(); ?>
      </div>
    </div> 
  <?php else : ?>				
    <div class="property-blog-bg"> 
      <div class="blog-property col-md-12">
        <h3><?php esc_html_e('Nothing Found', 'relic'); ?></h3>
        <p><?php esc_html_e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'relic'); ?></p>
        <div class="col-md-6">
          <?php get_search_form(); ?>  
        </div>
      </div>
    </div>
  <?php endif; ?>				
</div>
