archive.php 3.4 KB

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