archive.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php get_header(); ?>
  2. <div id="content" class="clear">
  3. <div id="main" class="col620 clear" role="main">
  4. <?php if (is_category()) { ?>
  5. <h1 class="archive_title h2"><span>Posts Categorized:</span> <?php single_cat_title(); ?></h1>
  6. <?php } elseif (is_tag()) { ?>
  7. <h1 class="archive_title h2"><span>Posts Tagged:</span> <?php single_tag_title(); ?></h1>
  8. <?php } elseif (is_author()) { ?>
  9. <h1 class="archive_title h2"><span>Posts By:</span> <?php get_the_author_meta('display_name'); ?></h1>
  10. <?php } elseif (is_day()) { ?>
  11. <h1 class="archive_title h2"><span>Daily Archives:</span> <?php the_time('l, F j, Y'); ?></h1>
  12. <?php } elseif (is_month()) { ?>
  13. <h1 class="archive_title h2"><span>Monthly Archives:</span> <?php the_time('F Y'); ?></h1>
  14. <?php } elseif (is_year()) { ?>
  15. <h1 class="archive_title h2"><span>Yearly Archives:</span> <?php the_time('Y'); ?></h1>
  16. <?php } ?>
  17. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  18. <article id="post-<?php the_ID(); ?>" class="clear">
  19. <header>
  20. <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  21. <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>
  22. </header> <!-- end article header -->
  23. <section class="post_content">
  24. <?php the_post_thumbnail( 'bones-thumb-300' ); ?>
  25. <?php the_excerpt('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
  26. </section> <!-- end article section -->
  27. <footer>
  28. </footer> <!-- end article footer -->
  29. </article> <!-- end article -->
  30. <?php endwhile; ?>
  31. <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
  32. <?php page_navi(); // use the page navi function ?>
  33. <?php } else { // if it is disabled, display regular wp prev & next links ?>
  34. <nav class="wp-prev-next">
  35. <ul class="clear">
  36. <li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
  37. <li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
  38. </ul>
  39. </nav>
  40. <?php } ?>
  41. <?php else : ?>
  42. <article id="post-not-found">
  43. <header>
  44. <h1>No Posts Yet</h1>
  45. </header>
  46. <section class="post_content">
  47. <p>Sorry, but the requested resource was not found on this site.</p>
  48. </section>
  49. <footer>
  50. </footer>
  51. </article>
  52. <?php endif; ?>
  53. </div> <!-- end #main -->
  54. <?php get_sidebar(); // sidebar 1 ?>
  55. </div> <!-- end #content -->
  56. <?php get_footer(); ?>