page.php 778 B

12345678910111213141516171819202122232425262728293031323334353637
  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 Seedlet
  9. * @since 1.0.0
  10. */
  11. get_header();
  12. ?>
  13. <section id="primary" class="content-area">
  14. <main id="main" class="site-main" role="main">
  15. <?php
  16. /* Start the Loop */
  17. while ( have_posts() ) :
  18. the_post();
  19. get_template_part( 'template-parts/content/content-page' );
  20. // If comments are open or we have at least one comment, load up the comment template.
  21. if ( comments_open() || get_comments_number() ) {
  22. comments_template();
  23. }
  24. endwhile; // End of the loop.
  25. ?>
  26. </main><!-- #main -->
  27. </section><!-- #primary -->
  28. <?php
  29. get_footer();