single.php 670 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package bml
  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 bml_content_nav( 'nav-below' ); ?>
  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. ?>
  18. <?php endwhile; // end of the loop. ?>
  19. </main><!-- #main -->
  20. </div><!-- #primary -->
  21. <?php get_sidebar(); ?>
  22. <?php get_footer(); ?>