full-width-page.php 551 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Template Name: Full-Width Page
  4. *
  5. * @package Karuna
  6. */
  7. get_header(); ?>
  8. <div id="primary" class="content-area">
  9. <main id="main" class="site-main" role="main">
  10. <?php
  11. while ( have_posts() ) : the_post();
  12. get_template_part( 'components/page/content', 'page' );
  13. // If comments are open or we have at least one comment, load up the comment template.
  14. if ( comments_open() || get_comments_number() ) :
  15. comments_template();
  16. endif;
  17. endwhile; // End of the loop.
  18. ?>
  19. </main>
  20. </div>
  21. <?php
  22. get_footer();