search.php 1.2 KB

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