index.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php get_header(); ?>
  2. <div id="content" class="wrap">
  3. <div id="inner-content" class="cf">
  4. <div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
  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 vcard">
  10. <?php printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
  11. </p>
  12. </header> <?php // end article header ?>
  13. <section class="entry-content cf">
  14. <?php the_content(); ?>
  15. </section> <?php // end article section ?>
  16. <footer class="article-footer">
  17. <p class="footer-comment-count">
  18. <?php comments_number( __( '<span>No</span> Comments', 'bonestheme' ), __( '<span>One</span> Comment', 'bonestheme' ), _n( '<span>%</span> Comments', '<span>%</span> Comments', get_comments_number(), 'bonestheme' ) );?>
  19. </p>
  20. <?php printf( __( '<p class="footer-category">Filed under: %1$s</p>', 'bonestheme' ), get_the_category_list(', ') ); ?>
  21. <?php the_tags( '<p class="footer-tags tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
  22. </footer> <?php // end article footer ?>
  23. </article> <?php // end article ?>
  24. <?php endwhile; ?>
  25. <?php bones_page_navi(); ?>
  26. <?php else : ?>
  27. <article id="post-not-found" class="hentry cf">
  28. <header class="article-header">
  29. <h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
  30. </header>
  31. <section class="entry-content">
  32. <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
  33. </section>
  34. <footer class="article-footer">
  35. <p><?php _e( 'This is the error message in the index.php template.', 'bonestheme' ); ?></p>
  36. </footer>
  37. </article>
  38. <?php endif; ?>
  39. </div> <?php // end #main ?>
  40. <?php get_sidebar(); ?>
  41. </div> <?php // end #inner-content ?>
  42. </div> <?php // end #content ?>
  43. <?php get_footer(); ?>