Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_fdsu_theme_resp
Commits
b1ba2772
Commit
b1ba2772
authored
1 year ago
by
Kevin Paxman
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6346: update variable name to better describe what it is.
parent
2d095eea
No related branches found
No related tags found
1 merge request
!104
ISTWCMS-6346 Create fully visible global menu option
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uw_fdsu_theme_resp.theme
+3
-3
3 additions, 3 deletions
uw_fdsu_theme_resp.theme
with
3 additions
and
3 deletions
uw_fdsu_theme_resp.theme
+
3
−
3
View file @
b1ba2772
...
@@ -168,7 +168,7 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
...
@@ -168,7 +168,7 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
// Variables that we want to have access to regardless of 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'
;
$variables
[
'branding_level'
]
=
theme_get_setting
(
'wcms_branding_level'
,
'uw_fdsu_theme_resp'
)
?
theme_get_setting
(
'wcms_branding_level'
,
'uw_fdsu_theme_resp'
)
:
'full'
;
$variables
[
'branding_
option
'
]
=
theme_get_setting
(
'wcms_branding_
option
'
,
'uw_fdsu_theme_resp'
)
?
theme_get_setting
(
'wcms_branding_
option
'
,
'uw_fdsu_theme_resp'
)
:
'compressed'
;
$variables
[
'branding_
menu_style
'
]
=
theme_get_setting
(
'wcms_branding_
menu_style
'
,
'uw_fdsu_theme_resp'
)
?
theme_get_setting
(
'wcms_branding_
menu_style
'
,
'uw_fdsu_theme_resp'
)
:
'compressed'
;
// If we are on the header, add the correct header classes
// If we are on the header, add the correct header classes
// TO DO: Store the colour scheme used for the theme
// TO DO: Store the colour scheme used for the theme
...
@@ -287,13 +287,13 @@ function uw_fdsu_theme_resp_form_system_theme_settings_alter(&$form, FormStateIn
...
@@ -287,13 +287,13 @@ function uw_fdsu_theme_resp_form_system_theme_settings_alter(&$form, FormStateIn
],
],
'#default_value'
=>
theme_get_setting
(
'wcms_branding_level'
,
'uw_fdsu_theme_resp'
)
?:
'full'
,
'#default_value'
=>
theme_get_setting
(
'wcms_branding_level'
,
'uw_fdsu_theme_resp'
)
?:
'full'
,
];
];
$form
[
'branding_options'
][
'wcms_branding_
option
'
]
=
[
$form
[
'branding_options'
][
'wcms_branding_
menu_style
'
]
=
[
'#type'
=>
'select'
,
'#type'
=>
'select'
,
'#options'
=>
[
'#options'
=>
[
'compressed'
=>
t
(
'Compressed ("jump to") global menu'
),
'compressed'
=>
t
(
'Compressed ("jump to") global menu'
),
'full'
=>
t
(
'Fully visible global menu'
),
'full'
=>
t
(
'Fully visible global menu'
),
],
],
'#default_value'
=>
theme_get_setting
(
'wcms_branding_
option
'
,
'uw_fdsu_theme_resp'
)
?:
'compressed'
,
'#default_value'
=>
theme_get_setting
(
'wcms_branding_
menu_style
'
,
'uw_fdsu_theme_resp'
)
?:
'compressed'
,
];
];
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment