fullwidth-page.php 611 B

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