search.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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="super cm-sans"></strong><?php printf( __( 'Search for: %s', 'dw' ), get_search_query() ); ?></h1>
  8. </header>
  9. <?php while ( have_posts() ) : the_post();?>
  10. <div class="col-sm-6 offset-lg-1">
  11. <h3 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></h3>
  12. <div class="entry-meta">
  13. <div class="date">
  14. <?php the_date(); ?>
  15. </div>
  16. </div>
  17. <?php the_excerpt(); ?>
  18. </div>
  19. <?php endwhile;?>
  20. <div class="clear">&nbsp;</div>
  21. <hr>
  22. <?php
  23. dw_paging_nav();
  24. else :
  25. printf( __( 'Nothing Found', 'dw' ));
  26. get_search_form();
  27. endif;
  28. ?>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <?php get_footer(); ?>