From b23d702b267f4c261ecb0368c753c4c52b589669 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 8 Sep 2016 10:38:55 -0400 Subject: [PATCH] added full width template to interior page.php --- functions.php | 3 +- sections/interior-page.php | 66 ++++++++++++++++++-------------------- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/functions.php b/functions.php index ddf5979..8b7b8c5 100644 --- a/functions.php +++ b/functions.php @@ -205,7 +205,8 @@ add_filter( 'custom_page_templates', function( $now_templates ) { // Below are some commented examples of custom quasi-templates. $templates = array( 'partners-blocks' => 'Partners Page Blocks', - 'members-only' => 'Members Only' + 'members-only' => 'Members Only', + 'full-width' => 'Full Width' // 'any-template-slug' => 'Sample Template' , ); diff --git a/sections/interior-page.php b/sections/interior-page.php index 2173b42..e5091f3 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -1,8 +1,8 @@
ID ) == "partners-blocks") { ?> -
+
-
+
- + ID); ?>
ID ) == "partners-blocks") { ?> - - ID); ?> - - - post_content) ; ?> - - - - - ID ) == "members-only") { ?> - - ID); ?> -
- - -
-
+ + post_content) ; ?> -
- - -
-
- "; - get_template_part('parts/main-content'); - echo "
"; - echo "
"; - get_sidebar(); - echo "
"; - } - ?> + + + + ID ) == "members-only") { ?> + + +
+ +
+
+ post_content) ; ?> +
+ + ID ) == "full-width") { ?> +
+ post_content) ; ?> +
+ + "; + get_template_part('parts/main-content'); + echo "
"; + echo "
"; + get_sidebar(); + echo "
"; + } ?> +
\ No newline at end of file -- 2.17.1