format.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /*
  3. * This is the default post format.
  4. *
  5. * So basically this is a regular post. if you don't want to use post formats,
  6. * you can just copy ths stuff in here and replace the post format thing in
  7. * single.php.
  8. *
  9. * The other formats are SUPER basic so you can style them as you like.
  10. *
  11. * Again, If you want to remove post formats, just delete the post-formats
  12. * folder and replace the function below with the contents of the "format.php" file.
  13. */
  14. ?>
  15. <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
  16. <header class="article-header">
  17. <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
  18. <p class="byline vcard">
  19. <?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' ) )); ?>
  20. </p>
  21. </header> <?php // end article header ?>
  22. <section class="entry-content cf" itemprop="articleBody">
  23. <?php
  24. // the content (pretty self explanatory huh)
  25. the_content();
  26. /*
  27. * Link Pages is used in case you have posts that are set to break into
  28. * multiple pages. You can remove this if you don't plan on doing that.
  29. *
  30. * Also, breaking content up into multiple pages is a horrible experience,
  31. * so don't do it. While there are SOME edge cases where this is useful, it's
  32. * mostly used for people to get more ad views. It's up to you but if you want
  33. * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
  34. *
  35. * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
  36. *
  37. */
  38. wp_link_pages( array(
  39. 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
  40. 'after' => '</div>',
  41. 'link_before' => '<span>',
  42. 'link_after' => '</span>',
  43. ) );
  44. ?>
  45. </section> <?php // end article section ?>
  46. <footer class="article-footer">
  47. <?php printf( __( 'Filed under: %1$s', 'bonestheme' ), get_the_category_list(', ') ); ?>
  48. <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
  49. </footer> <?php // end article footer ?>
  50. <?php comments_template(); ?>
  51. </article> <?php // end article ?>