page.php 833 B

123456789101112131415161718192021222324252627282930313233
  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 will use a
  8. * different template.
  9. *
  10. * @package Libretto
  11. */
  12. get_header(); ?>
  13. <div id="primary" class="content-area">
  14. <div id="content" class="site-content" role="main">
  15. <?php while ( have_posts() ) : the_post(); ?>
  16. <?php get_template_part( 'content', 'page' ); ?>
  17. <?php
  18. // If comments are open or we have at least one comment, load up the comment template
  19. if ( comments_open() || '0' !== get_comments_number() ) {
  20. comments_template(); }
  21. ?>
  22. <?php endwhile; // end of the loop. ?>
  23. </div><!-- #content -->
  24. </div><!-- #primary -->
  25. <?php get_sidebar(); ?>
  26. <?php get_footer(); ?>