Advertisement
Guest User

check

a guest
Apr 27th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.13 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package Frank
  4.  */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="content" class="archive">
  8.     <div class="row">
  9.         <main id="content-primary" role="main">
  10.             <?php if ( have_posts() ) : ?>
  11.             <header>
  12.                 <h1 class="page-title">
  13.                 <?php
  14.                     _e( 'Search Results for', 'frank_theme' );
  15.                     echo ' ';
  16.                     echo '&#8216';  // left single quotation mark
  17.                     echo the_search_query();
  18.                     echo '&#8217';  // right single quotation mark
  19.                 ?>
  20.                 </h1>
  21.             </header>
  22.             <div class="posts">
  23.                 <?php while ( have_posts() ): ?>
  24.                     <?php the_post(); ?>
  25.                     <?php get_template_part( 'partials/posts/post' ); ?>
  26.                 <?php endwhile; ?>
  27.                 <?php get_template_part( 'partials/post-pagination' ); ?>
  28.                 <?php else : ?>
  29.                 <div class="post">
  30.                     <h2>
  31.                         <?php _e( 'No Results Were Found', 'frank_theme' ); ?>
  32.                     </h2>
  33.                     <p>
  34.                         <?php _e( 'There were no matches for your search. Please try a different search term.', 'frank_theme' ); ?>
  35.                     </p>
  36.                 </div>
  37.             </div>
  38.             <?php endif; ?>
  39.         </main>
  40.         <?php get_template_part( 'partials/sidebars/sidebar', 'archive' ); ?>
  41.     </div>
  42. </div>
  43.  
  44. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement