format-quote.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
  2. <header class="article-header">
  3. <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
  4. <p class="byline vcard">
  5. <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
  6. /* the time the post was published */
  7. '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
  8. /* the author of the post */
  9. '<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>'
  10. ); ?>
  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">
  38. <?php printf( __( 'Filed under: %1$s', 'bonestheme' ), get_the_category_list(', ') ); ?>
  39. <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
  40. </footer> <?php // end article footer ?>
  41. <?php comments_template(); ?>
  42. </article> <?php // end article ?>