Skip to content
Snippets Groups Projects
Commit 6b1f9539 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch 'feature/ISTWCMS-6346-l26yan-Create-fully-visible-global-menu-option' into '1.1.x'

ISTWCMS-6346 Create fully visible global menu option

See merge request !104
parents 0a083d26 b1ba2772
No related branches found
No related tags found
1 merge request!104ISTWCMS-6346 Create fully visible global menu option
...@@ -168,6 +168,7 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { ...@@ -168,6 +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_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
...@@ -286,6 +287,14 @@ function uw_fdsu_theme_resp_form_system_theme_settings_alter(&$form, FormStateIn ...@@ -286,6 +287,14 @@ 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_menu_style'] = [
'#type' => 'select',
'#options' => [
'compressed' => t('Compressed ("jump to") global menu'),
'full' => t('Fully visible global menu'),
],
'#default_value' => theme_get_setting('wcms_branding_menu_style', 'uw_fdsu_theme_resp') ?: 'compressed',
];
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment