themes-wordpress/shoreditch/full-width-page.php
2018-02-27 14:15:38 +11:00

39 lines
756 B
PHP

<?php
/**
* Template Name: Full Width Page Template
*
* @package Shoreditch
*/
get_header(); ?>
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'hero' );
endwhile; // End of the loop.
?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/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();
}
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_sidebar( 'footer' );
get_footer();