search.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php get_header(); ?>
  2. <div id="container" class="one-column">
  3. <div id="content" role="main">
  4. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  5. <div class="entry-content">
  6. <div class="date">
  7. <?php the_date(); ?>
  8. </div>
  9. <?php if ( have_posts() ) : ?>
  10. <header class="page-header">
  11. <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); ?></h1>
  12. </header><!-- .page-header -->
  13. <?php
  14. // Start the Loop.
  15. while ( have_posts() ) : the_post();
  16. /*
  17. * Include the post format-specific template for the content. If you want to
  18. * use this in a child theme, then include a file called called content-___.php
  19. * (where ___ is the post format) and that will be used instead.
  20. */
  21. get_template_part( 'content', get_post_format() );
  22. endwhile;
  23. // Previous/next post navigation.
  24. twentyfourteen_paging_nav();
  25. else :
  26. // If no content, include the "No posts found" template.
  27. get_template_part( 'content', 'none' );
  28. endif;
  29. ?>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <?php get_footer(); ?>