single.php 875 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * The template for displaying all single posts.
  4. *
  5. * @package Pique
  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( 'components/content', 'single' ); ?>
  12. <?php the_post_navigation( array(
  13. 'prev_text' => '<span>' . esc_html__( 'Previous', 'pique' ) . '</span> %title',
  14. 'next_text' => '<span>' . esc_html__( 'Next', 'pique' ) . '</span> %title',
  15. ) ); ?>
  16. <?php
  17. // If comments are open or we have at least one comment, load up the comment template.
  18. if ( comments_open() || get_comments_number() ) :
  19. comments_template();
  20. endif;
  21. ?>
  22. <?php endwhile; // End of the loop. ?>
  23. </main><!-- #main -->
  24. </div><!-- #primary -->
  25. <?php get_sidebar(); ?>
  26. <?php get_footer(); ?>