format.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 itemprop="blogPost" itemtype="http://schema.org/BlogPosting">
  16. <header class="article-header entry-header">
  17. <h1 class="entry-title single-title" itemprop="headline" rel="bookmark"><?php the_title(); ?></h1>
  18. <?php if ( 0 ): ?>
  19. <p class="byline entry-meta vcard">
  20. <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
  21. /* the time the post was published */
  22. '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
  23. /* the author of the post */
  24. '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
  25. ); ?>
  26. </p>
  27. <?php endif; ?>
  28. </header> <?php // end article header ?>
  29. <section class="entry-content cf" itemprop="articleBody">
  30. <?php
  31. // the content (pretty self explanatory huh)
  32. the_content();
  33. /*
  34. * Link Pages is used in case you have posts that are set to break into
  35. * multiple pages. You can remove this if you don't plan on doing that.
  36. *
  37. * Also, breaking content up into multiple pages is a horrible experience,
  38. * so don't do it. While there are SOME edge cases where this is useful, it's
  39. * mostly used for people to get more ad views. It's up to you but if you want
  40. * to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
  41. *
  42. * http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
  43. *
  44. */
  45. wp_link_pages( array(
  46. 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
  47. 'after' => '</div>',
  48. 'link_before' => '<span>',
  49. 'link_after' => '</span>',
  50. ) );
  51. ?>
  52. </section> <?php // end article section ?>
  53. <footer class="article-footer">
  54. <?php if ( 0 ): ?>
  55. <?php printf( __( 'filed under', 'bonestheme' ).': %1$s', get_the_category_list(', ') ); ?>
  56. <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
  57. <?php endif; ?>
  58. </footer> <?php // end article footer ?>
  59. <?php //comments_template(); ?>
  60. </article> <?php // end article ?>