Skip to content
Snippets Groups Projects
Commit 921a5905 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-6512 The "fully visible global menu" option list should only appear...

ISTWCMS-6512 The "fully visible global menu" option list should only appear when the branding level option list is set to Full University branding
parent 6b1f9539
No related branches found
No related tags found
1 merge request!107ISTWCMS-6512 The "fully visible global menu" option list should only appear...
......@@ -287,12 +287,18 @@ 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',
];
$form['branding_options']['wcms_branding_menu_style'] = [
'#type' => 'select',
'#options' => [
'compressed' => t('Compressed ("jump to") global menu'),
'full' => t('Fully visible global menu'),
],
"#states" => [
'visible' => [
'select[name="wcms_branding_level"]' => ['value' => 'full'],
],
],
'#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