single.php 995 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package Spun
  6. */
  7. get_header(); ?>
  8. <div id="primary" class="content-area">
  9. <div id="content" class="site-content" role="main">
  10. <?php while ( have_posts() ) : the_post(); ?>
  11. <?php /*
  12. * Are we using a post format? If so, use the content-someformat.php template.
  13. * If not, use the content-single.php template.
  14. */
  15. ?>
  16. <?php ( '' != get_post_format() ) ? $format = get_post_format() : $format = 'single'; ?>
  17. <?php get_template_part( 'content', $format ); ?>
  18. <?php spun_content_nav( 'nav-below' ); ?>
  19. <?php
  20. // If comments are open or we have at least one comment, load up the comment template
  21. if ( comments_open() || '0' != get_comments_number() )
  22. comments_template( '', true );
  23. ?>
  24. <?php endwhile; // end of the loop. ?>
  25. </div><!-- #content .site-content -->
  26. </div><!-- #primary .content-area -->
  27. <?php get_sidebar(); ?>
  28. <?php get_footer(); ?>