single.php 865 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The template for displaying all single posts.
  4. *
  5. * @package Libre 2
  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( 'template-parts/content', 'single' ); ?>
  12. <?php the_post_navigation( array( 'next_text' => __( '<span class="meta-nav">Next Post</span> %title', 'libre-2' ), 'prev_text' => __( '<span class="meta-nav">Previous Post</span> %title', 'libre-2' ) ) ); ?>
  13. <?php
  14. // If comments are open or we have at least one comment, load up the comment template.
  15. if ( comments_open() || 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(); ?>