page.php 793 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php declare( strict_types = 1 ); ?>
  2. <?php
  3. /**
  4. * The template for displaying all single posts
  5. *
  6. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  7. *
  8. * @package WordPress
  9. * @subpackage Varia
  10. * @since 1.0.0
  11. */
  12. get_header();
  13. ?>
  14. <section id="primary" class="content-area">
  15. <main id="main" class="site-main">
  16. <?php
  17. /* Start the Loop */
  18. while ( have_posts() ) :
  19. the_post();
  20. get_template_part( 'template-parts/content/content', 'page' );
  21. // If comments are open or we have at least one comment, load up the comment template.
  22. if ( comments_open() || get_comments_number() ) {
  23. comments_template();
  24. }
  25. endwhile; // End of the loop.
  26. ?>
  27. </main><!-- #main -->
  28. </section><!-- #primary -->
  29. <?php
  30. get_footer();