search.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * The template for displaying Search Results pages.
  4. *
  5. * @package Illustratr
  6. */
  7. get_header(); ?>
  8. <section id="primary" class="content-area">
  9. <main id="main" class="site-main" role="main">
  10. <?php if ( have_posts() ) : ?>
  11. <header class="page-header">
  12. <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'illustratr' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
  13. </header><!-- .page-header -->
  14. <?php /* Start the Loop */ ?>
  15. <?php while ( have_posts() ) : the_post(); ?>
  16. <?php
  17. /* Include the Post-Format-specific template for the content.
  18. * If you want to override this in a child theme, then include a file
  19. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  20. */
  21. get_template_part( 'content', get_post_format() );
  22. ?>
  23. <?php endwhile; ?>
  24. <?php illustratr_paging_nav(); ?>
  25. <?php else : ?>
  26. <?php get_template_part( 'content', 'none' ); ?>
  27. <?php endif; ?>
  28. </main><!-- #main -->
  29. </section><!-- #primary -->
  30. <?php get_sidebar(); ?>
  31. <?php get_footer(); ?>