single.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php get_header(); ?>
  2. <div id="content">
  3. <div id="inner-content" class="wrap clearfix">
  4. <div id="main" class="eightcol first clearfix" role="main">
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
  7. <header class="article-header">
  8. <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
  9. <p class="byline vcard"><?php
  10. printf(__('Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span> <span class="amp">&amp;</span> filed under %4$s.', 'bonestheme'), get_the_time('Y-m-j'), get_the_time(__('F js, Y', 'bonestheme')), bones_get_the_author_posts_link(), get_the_category_list(', '));
  11. ?></p>
  12. </header> <!-- end article header -->
  13. <section class="entry-content clearfix" itemprop="articleBody">
  14. <?php the_content(); ?>
  15. </section> <!-- end article section -->
  16. <footer class="article-footer">
  17. <?php the_tags('<p class="tags"><span class="tags-title">' . __('Tags:', 'bonestheme') . '</span> ', ', ', '</p>'); ?>
  18. </footer> <!-- end article footer -->
  19. <?php comments_template(); ?>
  20. </article> <!-- end article -->
  21. <?php endwhile; ?>
  22. <?php else : ?>
  23. <article id="post-not-found" class="hentry clearfix">
  24. <header class="article-header">
  25. <h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
  26. </header>
  27. <section class="entry-content">
  28. <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
  29. </section>
  30. <footer class="article-footer">
  31. <p><?php _e("This is the error message in the single.php template.", "bonestheme"); ?></p>
  32. </footer>
  33. </article>
  34. <?php endif; ?>
  35. </div> <!-- end #main -->
  36. <?php get_sidebar(); ?>
  37. </div> <!-- end #inner-content -->
  38. </div> <!-- end #content -->
  39. <?php get_footer(); ?>