From: Anthony Talarico Date: Fri, 22 Apr 2016 17:29:22 +0000 (-0400) Subject: adding blocks for chamber page X-Git-Tag: v1.0.0^2~75 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=4a626a645355d98cb80435f2cfe64b2a49b2d81c;p=WP-Themes%2Fthinkdunes.git adding blocks for chamber page --- 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; +} +?> +