format.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 the_content(); ?>
  24. </section> <?php // end article section ?>
  25. <footer class="article-footer">
  26. <?php printf( __( 'Filed under: %1$s', 'bonestheme' ), get_the_category_list(', ') ); ?>
  27. <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
  28. </footer> <?php // end article footer ?>
  29. <?php comments_template(); ?>
  30. </article> <?php // end article ?>