-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathfull-width-page.php
More file actions
40 lines (33 loc) · 947 Bytes
/
full-width-page.php
File metadata and controls
40 lines (33 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Template Name: Full-Width
*
* The template for displaying pages with tabbed navigation at the top.
*
* Note: the parent page is shown under the "Overview" tab and
* the order of the other tabs is controlled by the child pages' 'order' fields.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Nightingale
* @copyright NHS Leadership Academy, Tony Blacker
* @version 1.1 21st August 2019
*/
get_header();
?>
<div id="primary" class=" nhsuk-grid-row nhsuk-width-restrict">
<div class="nhsuk-grid-column-full full-width">
<?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();
endif;
endwhile; // End of the loop.
?>
</div>
</div><!-- #primary -->
<?php
get_footer();