From 4a626a645355d98cb80435f2cfe64b2a49b2d81c Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 22 Apr 2016 13:29:22 -0400 Subject: [PATCH] adding blocks for chamber page --- functions.php | 3 +++ parts/glm-blocks.php | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index db72134..dae1c7c 100644 --- a/functions.php +++ b/functions.php @@ -7,6 +7,9 @@ $includePages = array(); $frontPageId = get_option('page_on_front'); add_action('widgets_init', 'glm_quicksite_widget_init'); +define("CHAMBER_BLOCKS", 771); +define("DEFAULT_BLOCKS", 772); + if (!function_exists('glm_quicksite_widget_init')) { function glm_quicksite_widget_init() diff --git a/parts/glm-blocks.php b/parts/glm-blocks.php index fb1d1b5..00ebe63 100644 --- a/parts/glm-blocks.php +++ b/parts/glm-blocks.php @@ -1,5 +1,19 @@ - +ID); +switch ($page_template) { +case 'front-page.php': + $defaultBlockGroup = DEFAULT_BLOCKS; + break; +case 'chamber-template.php': + $defaultBlockGroup = CHAMBER_BLOCKS; + break; +default: + $defaultBlockGroup = DEFAULT_BLOCKS; + break; +} +?> +
-- 2.17.1