single.php 942 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package Illustratr
  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
  12. /* Include the Post-Format-specific template for the content.
  13. * If you want to override this in a child theme, then include a file
  14. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  15. */
  16. get_template_part( 'content', get_post_format() );
  17. ?>
  18. <?php
  19. // If comments are open or we have at least one comment, load up the comment template
  20. if ( comments_open() || '0' != get_comments_number() ) :
  21. comments_template();
  22. endif;
  23. ?>
  24. <?php illustratr_post_nav(); ?>
  25. <?php endwhile; // end of the loop. ?>
  26. </main><!-- #main -->
  27. </div><!-- #primary -->
  28. <?php get_sidebar(); ?>
  29. <?php get_footer(); ?>