search.php 951 B

12345678910111213141516171819202122232425262728293031
  1. <?php get_header(); ?>
  2. <div class="container">
  3. <article id="content" class="single" role="main">
  4. <div class="entry-content">
  5. <?php if ( have_posts() ) : ?>
  6. <header class="page-header">
  7. <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'dw' ), get_search_query() ); ?></h1>
  8. </header>
  9. <?php while ( have_posts() ) : the_post();?>
  10. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  11. <div class="entry-meta">
  12. <div class="date">
  13. <?php the_date(); ?>
  14. </div>
  15. </div>
  16. <?php the_excerpt(); ?>
  17. <?php endwhile;
  18. dw_paging_nav();
  19. else :
  20. printf( __( 'Nothing Found', 'dw' ));
  21. get_search_form();
  22. endif;
  23. ?>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. <?php get_footer(); ?>