page.php.old 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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" 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', 'bonestheme').' <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> '.__( 'by', 'bonestheme').' <span class="author">%3$s</span>', 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; endif; ?>
  42. </main>
  43. <?php /* get_sidebar(); */ ?>
  44. </div>
  45. </div>
  46. <?php get_footer(); ?>