single.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php get_header(); ?>
  2. <div id="content">
  3. <div id="inner-content" class="wrap cf">
  4. <div id="main" class="m-all t-2of3 d-5of7 cf" role="main">
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <?php
  7. /*
  8. * Ah, post formats. Nature's greatest mystery (aside from the sloth).
  9. *
  10. * So this function will bting in the needed template file depending on what the post
  11. * format is. The different post formats are located in the post-formats folder.
  12. *
  13. *
  14. * REMEMBER TO ALWAYS HAVE A DEFAULT ONE NAMED "format.php" FOR POSTS THAT AREN'T
  15. * A SPECIFIC POST FORMAT.
  16. *
  17. * If you want to remove post formats, just delete the post-formats folder and
  18. * replace the function below with the contents of the "format.php" file.
  19. */
  20. get_template_part( 'post-formats/format', get_post_format() );
  21. ?>
  22. <?php endwhile; ?>
  23. <?php else : ?>
  24. <article id="post-not-found" class="hentry cf">
  25. <header class="article-header">
  26. <h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
  27. </header>
  28. <section class="entry-content">
  29. <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
  30. </section>
  31. <footer class="article-footer">
  32. <p><?php _e( 'This is the error message in the single.php template.', 'bonestheme' ); ?></p>
  33. </footer>
  34. </article>
  35. <?php endif; ?>
  36. </div> <!-- end #main -->
  37. <?php get_sidebar(); ?>
  38. </div> <!-- end #inner-content -->
  39. </div> <!-- end #content -->
  40. <?php get_footer(); ?>