archive.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php get_header(); ?>
  2. <div id="content">
  3. <div id="inner-content" class="wrap cf">
  4. <main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
  5. <?php
  6. the_archive_title( '<h1 class="page-title">', '</h1>' );
  7. the_archive_description( '<div class="taxonomy-description">', '</div>' );
  8. ?>
  9. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">
  11. <header class="entry-header article-header">
  12. <h3 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  13. <p class="byline entry-meta vcard">
  14. <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
  15. /* the time the post was published */
  16. '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
  17. /* the author of the post */
  18. '<span class="by">'.__('by', 'bonestheme').'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
  19. ); ?>
  20. </p>
  21. </header>
  22. <section class="entry-content cf">
  23. <?php the_post_thumbnail( 'bones-thumb-300' ); ?>
  24. <?php the_excerpt(); ?>
  25. </section>
  26. <footer class="article-footer">
  27. </footer>
  28. </article>
  29. <?php endwhile; ?>
  30. <?php bones_page_navi(); ?>
  31. <?php else : ?>
  32. <article id="post-not-found" class="hentry cf">
  33. <header class="article-header">
  34. <h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
  35. </header>
  36. <section class="entry-content">
  37. <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
  38. </section>
  39. <footer class="article-footer">
  40. <p><?php _e( 'This is the error message in the archive.php template.', 'bonestheme' ); ?></p>
  41. </footer>
  42. </article>
  43. <?php endif; ?>
  44. </main>
  45. <?php get_sidebar(); ?>
  46. </div>
  47. </div>
  48. <?php get_footer(); ?>