archive.php 4.1 KB

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