archive.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 echo get_author_name(get_query_var('author')); ?></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_excerpt('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
  25. </section> <!-- end article section -->
  26. <footer>
  27. </footer> <!-- end article footer -->
  28. </article> <!-- end article -->
  29. <?php endwhile; ?>
  30. <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
  31. <?php page_navi(); // use the page navi function ?>
  32. <?php } else { // if it is disabled, display regular wp prev & next links ?>
  33. <nav class="wp-prev-next">
  34. <ul class="clear">
  35. <li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
  36. <li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
  37. </ul>
  38. </nav>
  39. <?php } ?>
  40. <?php else : ?>
  41. <article id="post-not-found">
  42. <header>
  43. <h1>No Posts Yet</h1>
  44. </header>
  45. <section class="post_content">
  46. <p>Sorry, but the requested resource was not found on this site.</p>
  47. </section>
  48. <footer>
  49. </footer>
  50. </article>
  51. <?php endif; ?>
  52. </div> <!-- end #main -->
  53. <?php get_sidebar(); // sidebar 1 ?>
  54. </div> <!-- end #content -->
  55. <?php get_footer(); ?>