search.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php get_header(); ?>
  2. <div id="content" class="clear">
  3. <div id="main" class="col700 clear" role="main">
  4. <h1 class="archive_title"><span>Search Results for:</span> <?php echo attribute_escape(get_search_query()); ?></h1>
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <article id="post-<?php the_ID(); ?>" class="clear">
  7. <header>
  8. <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  9. <p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
  10. </header> <!-- end article header -->
  11. <section class="post_content">
  12. <?php the_excerpt('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
  13. </section> <!-- end article section -->
  14. <footer>
  15. </footer> <!-- end article footer -->
  16. </article> <!-- end article -->
  17. <?php endwhile; ?>
  18. <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
  19. <?php page_navi(); // use the page navi function ?>
  20. <?php } else { // if it is disabled, display regular wp prev & next links ?>
  21. <nav class="wp-prev-next">
  22. <ul class="clear">
  23. <li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
  24. <li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
  25. </ul>
  26. </nav>
  27. <?php } ?>
  28. <?php else : ?>
  29. <!-- this area shows up if there are no results -->
  30. <article id="post-not-found">
  31. <header>
  32. <h1>No Results Found</h1>
  33. </header>
  34. <section class="post_content">
  35. <p>Sorry, but the requested resource was not found on this site.</p>
  36. </section>
  37. <footer>
  38. </footer>
  39. </article>
  40. <?php endif; ?>
  41. </div> <!-- end #main -->
  42. <div id="sidebar1" class="col220 clear">
  43. <?php get_search_form(); ?>
  44. </div>
  45. </div> <!-- end #content -->
  46. <?php get_footer(); ?>