single.php 673 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package Sketch
  6. */
  7. get_header(); ?>
  8. <div id="primary" class="content-area">
  9. <main id="main" class="site-main" role="main">
  10. <?php while ( have_posts() ) : the_post(); ?>
  11. <?php get_template_part( 'content', 'single' ); ?>
  12. <?php sketch_post_nav(); ?>
  13. <?php
  14. // If comments are open or we have at least one comment, load up the comment template
  15. if ( comments_open() || '0' != get_comments_number() ) :
  16. comments_template();
  17. endif;
  18. ?>
  19. <?php endwhile; // end of the loop. ?>
  20. </main><!-- #main -->
  21. </div><!-- #primary -->
  22. <?php get_sidebar(); ?>
  23. <?php get_footer(); ?>