Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_fdsu_theme_resp
Commits
2913057d
Commit
2913057d
authored
Jun 30, 2021
by
Kevin Paxman
Committed by
Kevin Paxman
Jun 30, 2021
Browse files
ISTWCMS-4791: add variable so theming knows what branding level was selected.
parent
1142c1de
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_fdsu_theme_resp.theme
View file @
2913057d
...
...
@@ -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).
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment