Advertisement
Guest User

Search.php

a guest
Jul 5th, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying Search Results pages.
  4. *
  5. * @package _tk
  6. */
  7.  
  8. get_header(); ?>
  9.  
  10. <div class="main-content">
  11. <div class="container">
  12. <div class="row">
  13.  
  14. <div id="content" class="main-content-inner col-xs-12">
  15.  
  16. <?php if ( have_posts() ) : ?>
  17.  
  18. <header>
  19. <h2 class="page-title"><?php printf( __( 'Search Results for: %s', 'larry' ), '<span>' . get_search_query() . '</span>' ); ?></h2>
  20. </header><!-- .page-header -->
  21.  
  22. <?php // start the loop. ?>
  23. <?php while ( have_posts() ) : the_post(); ?>
  24.  
  25. <?php get_template_part( 'content', 'search' ); ?>
  26.  
  27. <?php endwhile; ?>
  28.  
  29. <?php _tk_content_nav( 'nav-below' ); ?>
  30.  
  31. <?php else : ?>
  32.  
  33. <?php get_template_part( 'no-results', 'search' ); ?>
  34.  
  35. <?php endif; // end of loop. ?>
  36.  
  37. </div>
  38.  
  39. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement