From 2913057d2e28e0fd64aadf2f9cb51f5266453cd0 Mon Sep 17 00:00:00 2001 From: kpaxman <kpaxman@uwaterloo.ca> Date: Wed, 30 Jun 2021 16:27:58 -0400 Subject: [PATCH] ISTWCMS-4791: add variable so theming knows what branding level was selected. --- uw_fdsu_theme_resp.theme | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index 058fdfed..b6a457bb 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -65,6 +65,9 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { // Get the region from variables. $region = $variables['elements']['#region']; + // Variables that we want to have access to regardless of region. + $variables['branding_level'] = theme_get_setting('wcms_branding_level', 'uw_fdsu_theme_resp') ? theme_get_setting('wcms_branding_level', 'uw_fdsu_theme_resp') : 'full'; + // If we are on the header, add the correct header classes // TO DO: Store the colour scheme used for the theme // (i.e. faculty colour and get the correct class here). -- GitLab