archive.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. global $post;
  15. $author_id = $post->post_author;
  16. ?>
  17. <h1 class="archive-title h2">
  18. <<<<<<< HEAD
  19. <span><?php _e("Posts By:", "bonestheme"); ?></span> <?php echo get_the_author_meta('display_name'); ?>
  20. =======
  21. <span><?php _e("Posts By:", "bonestheme"); ?></span> <?php echo get_the_author_meta('display_name', $author_id); ?>
  22. >>>>>>> 1.3
  23. </h1>
  24. <?php } elseif (is_day()) { ?>
  25. <h1 class="archive-title h2">
  26. <span><?php _e("Daily Archives:", "bonestheme"); ?></span> <?php the_time('l, F j, Y'); ?>
  27. </h1>
  28. <?php } elseif (is_month()) { ?>
  29. <h1 class="archive-title h2">
  30. <span><?php _e("Monthly Archives:", "bonestheme"); ?></span> <?php the_time('F Y'); ?>
  31. </h1>
  32. <?php } elseif (is_year()) { ?>
  33. <h1 class="archive-title h2">
  34. <span><?php _e("Yearly Archives:", "bonestheme"); ?></span> <?php the_time('Y'); ?>
  35. </h1>
  36. <?php } ?>
  37. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  38. <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
  39. <header class="article-header">
  40. <h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  41. <p class="byline vcard"><?php _e("Posted", "bonestheme"); ?> <time class="updated" datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <span class="author"><?php the_author_posts_link(); ?></span> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
  42. </header> <!-- end article header -->
  43. <section class="entry-content clearfix">
  44. <?php the_post_thumbnail( 'bones-thumb-300' ); ?>
  45. <?php the_excerpt(); ?>
  46. </section> <!-- end article section -->
  47. <footer class="article-footer">
  48. </footer> <!-- end article footer -->
  49. </article> <!-- end article -->
  50. <?php endwhile; ?>
  51. <?php if (function_exists('bones_page_navi')) { ?>
  52. <?php bones_page_navi(); ?>
  53. <?php } else { ?>
  54. <nav class="wp-prev-next">
  55. <ul class="clearfix">
  56. <li class="prev-link"><?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?></li>
  57. <li class="next-link"><?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?></li>
  58. </ul>
  59. </nav>
  60. <?php } ?>
  61. <?php else : ?>
  62. <article id="post-not-found" class="hentry clearfix">
  63. <header class="article-header">
  64. <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
  65. </header>
  66. <section class="entry-content">
  67. <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
  68. </section>
  69. <footer class="article-footer">
  70. <p><?php _e("This is the error message in the archive.php template.", "bonestheme"); ?></p>
  71. </footer>
  72. </article>
  73. <?php endif; ?>
  74. </div> <!-- end #main -->
  75. <?php get_sidebar(); ?>
  76. </div> <!-- end #inner-content -->
  77. </div> <!-- end #content -->
  78. <?php get_footer(); ?>