diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index 521080940222c76f0b427fd7b794d7c309f01088..4c966fbc38d967b93209c5ec2a9b38b96dbf41d9 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -168,6 +168,7 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { // 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_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 // 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 ], '#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', + ]; } /**