index.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">
  7. <header class="article-header">
  8. <h1 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  9. <p class="byline entry-meta vcard">
  10. <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
  11. /* the time the post was published */
  12. '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
  13. /* the author of the post */
  14. '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
  15. ); ?>
  16. </p>
  17. </header>
  18. <section class="entry-content cf">
  19. <?php the_content(); ?>
  20. </section>
  21. <footer class="article-footer cf">
  22. <p class="footer-comment-count">
  23. <?php comments_number( __( '<span>No</span> Comments', 'bonestheme' ), __( '<span>One</span> Comment', 'bonestheme' ), __( '<span>%</span> Comments', 'bonestheme' ) );?>
  24. </p>
  25. <?php printf( '<p class="footer-category">' . __('filed under', 'bonestheme' ) . ': %1$s</p>' , get_the_category_list(', ') ); ?>
  26. <?php the_tags( '<p class="footer-tags tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
  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 index.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(); ?>