page.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php get_header(); ?>
  2. <div id="content">
  3. <div id="inner-content" class="wrap 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" itemscope itemtype="http://schema.org/BlogPosting">
  7. <header class="article-header">
  8. <h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
  9. <p class="byline vcard">
  10. <?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%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" itemprop="articleBody">
  14. <?php
  15. // the content (pretty self explanatory huh)
  16. the_content();
  17. /*
  18. * Link Pages is used in case you have posts that are set to break into
  19. * multiple pages. You can remove this if you don't plan on doing that.
  20. *
  21. * Also, breaking content up into multiple pages is a horrible experience,
  22. * so don't do it. While there are SOME edge cases where this is useful, it's
  23. * mostly used for people to get more ad views. It's up to you but if you want
  24. * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
  25. *
  26. * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
  27. *
  28. */
  29. wp_link_pages( array(
  30. 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
  31. 'after' => '</div>',
  32. 'link_before' => '<span>',
  33. 'link_after' => '</span>',
  34. ) );
  35. ?>
  36. </section> <?php // end article section ?>
  37. <footer class="article-footer cf">
  38. </footer>
  39. <?php comments_template(); ?>
  40. </article>
  41. <?php endwhile; else : ?>
  42. <article id="post-not-found" class="hentry cf">
  43. <header class="article-header">
  44. <h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
  45. </header>
  46. <section class="entry-content">
  47. <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
  48. </section>
  49. <footer class="article-footer">
  50. <p><?php _e( 'This is the error message in the page.php template.', 'bonestheme' ); ?></p>
  51. </footer>
  52. </article>
  53. <?php endif; ?>
  54. </div>
  55. <?php get_sidebar(); ?>
  56. </div>
  57. </div>
  58. <?php get_footer(); ?>