Skip to content

Commit

Permalink
Update SiteConfiguration.php
Browse files Browse the repository at this point in the history
Options for sidebar menu styles added. Default is the current D10 Gold, and the light gray option mimics the D7 style
  • Loading branch information
jnicholCU committed Dec 11, 2024
1 parent dd34c79 commit 68a7de6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/SiteConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,17 @@ public function buildThemeSettingsForm(array &$form, FormStateInterface &$form_s
'#description' => $this->t('Select a style for the main navigation menu.'),
];

$form['header']['ucb_sidebar_menu_style'] = [
'#type' => 'select',
'#title' => $this->t('Sidebar menu style'),
'#default_value' => theme_get_setting('ucb_sidebar_menu_style', $themeName) ?? 'gold',
'#options' => [
'gold' => $this->t('Gold'),
'light-gray' => $this->t('Light Gray'),
],
'#description' => $this->t('Select a style for the sidebar navigation menu.'),
];

$form['header']['ucb_breadcrumb_nav'] = [
'#type' => 'checkbox',
'#title' => $this->t('Show breadcrumb navigation on pages'),
Expand Down

0 comments on commit 68a7de6

Please sign in to comment.