page.php 918 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * The template for displaying all pages.
  4. *
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages
  7. * and that other 'pages' on your WordPress site may use a
  8. * different template.
  9. *
  10. * @link https://codex.wordpress.org/Template_Hierarchy
  11. *
  12. * @package Toujours
  13. */
  14. get_header(); ?>
  15. <div id="primary" class="content-area">
  16. <main id="main" class="site-main" role="main">
  17. <?php while ( have_posts() ) : the_post(); ?>
  18. <?php get_template_part( 'template-parts/content', 'page' ); ?>
  19. <?php
  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. endif;
  24. ?>
  25. <?php endwhile; // End of the loop. ?>
  26. </main><!-- #main -->
  27. </div><!-- #primary -->
  28. <?php get_sidebar(); ?>
  29. <?php get_footer(); ?>