search.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php get_header(); ?>
  2. <div id="content" class="clearfix">
  3. <div id="main" class="col700 left clearfix" role="main">
  4. <h1 class="archive_title"><span>Search Results for:</span> <?php echo esc_attr(get_search_query()); ?></h1>
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
  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"><?php _e("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?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="clearfix">
  23. <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
  24. <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></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="sidebar right col220">
  43. <?php get_search_form(); ?>
  44. </div>
  45. </div> <!-- end #content -->
  46. <?php get_footer(); ?>