From 204727b4e843af3a6487e31d26d86c693896bb13 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 21 Sep 2016 15:34:17 -0400 Subject: [PATCH] adding full width page template for events or any other page that needs full width --- functions.php | 3 ++- sections/interior-page.php | 43 ++++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/functions.php b/functions.php index 5d0d3f6..4b69bd3 100644 --- a/functions.php +++ b/functions.php @@ -211,7 +211,8 @@ add_filter( 'custom_page_templates', function( $now_templates ) { // this template by its slug in our index.php using get_page_template_slug // Below are some commented examples of custom quasi-templates. $templates = array( - 'page-chamber' => 'Chamber Page' + 'page-chamber' => 'Chamber Page', + 'full-width' => 'Full Width' // 'any-template-slug' => 'Sample Template' , ); diff --git a/sections/interior-page.php b/sections/interior-page.php index 6340255..9642400 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -16,29 +16,32 @@ echo ""; } ?> - - + + - - - - "; - if(function_exists('bcn_display') && !is_front_page()) - { - echo "
"; - bcn_display(); + ID ) == "full-width") { ?> +
+ +
+ + + "; + if(function_exists('bcn_display') && !is_front_page()) + { + echo "
"; + bcn_display(); + echo "
"; + } + get_template_part('parts/main-content'); + echo "
"; + echo "
"; + get_sidebar(); echo "
"; - } - get_template_part('parts/main-content'); - echo ""; - echo "
"; - get_sidebar(); - echo "
"; - } ?> - + } ?> + \ No newline at end of file -- 2.17.1