search.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php get_header(); ?>
  2. <div class="container">
  3. <div class="search-results">
  4. <div class="row">
  5. <div class="twocol">
  6. &nbsp;
  7. </div>
  8. <div class="eightcol">
  9. <?php if ( have_posts() ) : ?>
  10. <header class="page-header">
  11. <h1 class="page-title"><?php printf( __( 'Search Results for: %s', '_ph' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
  12. </header>
  13. <?php while ( have_posts() ) : the_post(); ?>
  14. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', '_ph' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  15. <div class="entry-meta">
  16. <?php _ph_posted_on(); ?>
  17. </div>
  18. <?php the_excerpt(); ?>
  19. <?php endwhile; ?>
  20. <?php else : ?>
  21. <article id="post-0" class="post no-results not-found">
  22. <header class="entry-header">
  23. <h1 class="entry-title"><?php _e( 'Nothing Found', '_ph' ); ?></h1>
  24. </header>
  25. <div class="entry-content">
  26. <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', '_ph' ); ?></p>
  27. </div>
  28. </article>
  29. <?php endif; ?>
  30. </div>
  31. <div class="twocol">
  32. &nbsp;
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <?php get_footer(); ?>