themes-wordpress/affinity/fullwidth-page.php
2018-02-27 14:17:20 +11:00

30 lines
611 B
PHP

<?php
/**
* Template Name: Full Width, No Sidebar
* The template for displaying a full-width page.
*
* @package Affinity
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'components/page/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</main>
</div>
<?php
get_footer();