page.php 909 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 Lodestar
  13. */
  14. get_header(); ?>
  15. <div class="wrap">
  16. <div id="primary" class="content-area">
  17. <main id="main" class="site-main" role="main">
  18. <?php
  19. while ( have_posts() ) : the_post();
  20. get_template_part( 'components/page/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. endif;
  25. endwhile; // End of the loop.
  26. ?>
  27. </main>
  28. </div><!-- #primary -->
  29. <?php get_sidebar(); ?>
  30. </div><!-- .wrap -->
  31. <?php
  32. get_footer();