Skip to content

Commit

Permalink
Merge pull request #71 from CuBoulder/issue/1435
Browse files Browse the repository at this point in the history
Update SiteConfiguration.php
  • Loading branch information
jcsparks authored Nov 12, 2024
2 parents aef57da + 3c936ca commit ff9f83d
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions src/SiteConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,66 @@ public function buildThemeSettingsForm(array &$form, FormStateInterface &$form_s
'#description' => $this->t('Headings are bold by default, but can also be set to the same font weight as normal text.'),
];

$form['content']['ucb_above_content_region_color'] = [
'#type' => 'select',
'#title' => $this->t('Above Content background color'),
'#default_value' => theme_get_setting('ucb_above_content_region_color', $themeName),
'#options' => [
'white' => $this->t('None'),
'light-gray' => $this->t('Light Gray'),
'dark-gray' => $this->t('Dark Gray'),
'black' => $this->t('Black'),
'gold' => $this->t('Gold'),
'tan' => $this->t('Tan'),
'light-blue' => $this->t('Light Blue'),
'medium-blue' => $this->t('Medium Blue'),
'dark-blue' => $this->t('Dark Blue'),
'light-green' => $this->t('Light Green'),
'brick' => $this->t('Brick'),
],
'#description' => $this->t('The global background color for this Block Layout region.'),
];

$form['content']['ucb_after_content_one_region_color'] = [
'#type' => 'select',
'#title' => $this->t('After Content 1 background color'),
'#default_value' => theme_get_setting('ucb_after_content_one_region_color', $themeName),
'#options' => [
'white' => $this->t('None'),
'light-gray' => $this->t('Light Gray'),
'dark-gray' => $this->t('Dark Gray'),
'black' => $this->t('Black'),
'gold' => $this->t('Gold'),
'tan' => $this->t('Tan'),
'light-blue' => $this->t('Light Blue'),
'medium-blue' => $this->t('Medium Blue'),
'dark-blue' => $this->t('Dark Blue'),
'light-green' => $this->t('Light Green'),
'brick' => $this->t('Brick'),
],
'#description' => $this->t('The global background color for this Block Layout region.'),
];

$form['content']['ucb_after_content_two_region_color'] = [
'#type' => 'select',
'#title' => $this->t('After Content 2 background color'),
'#default_value' => theme_get_setting('ucb_after_content_two_region_color', $themeName),
'#options' => [
'white' => $this->t('None'),
'light-gray' => $this->t('Light Gray'),
'dark-gray' => $this->t('Dark Gray'),
'black' => $this->t('Black'),
'gold' => $this->t('Gold'),
'tan' => $this->t('Tan'),
'light-blue' => $this->t('Light Blue'),
'medium-blue' => $this->t('Medium Blue'),
'dark-blue' => $this->t('Dark Blue'),
'light-green' => $this->t('Light Green'),
'brick' => $this->t('Brick'),
],
'#description' => $this->t('The global background color for this Block Layout region.'),
];

if ($this->user->hasPermission('edit ucb site advanced')) {
$form['advanced'] = [
'#type' => 'details',
Expand All @@ -282,9 +342,16 @@ public function buildThemeSettingsForm(array &$form, FormStateInterface &$form_s
$this->t('None'),
$this->t('Footer'),
$this->t('Header'),
$this->t('Homepage Layout'),
],
'#description' => $this->t('Check this box if you would like to display the "Be Boulder" slogan in the header.'),
];
$form['advanced']['ucb_homepage_header'] = [
'#type' => 'checkbox',
'#title' => $this->t('Hide the normal header bar. For the CU Homepage only.'),
'#default_value' => theme_get_setting('ucb_homepage_header', $themeName),
'#description' => $this->t('Check this box if you would like to hide the header. This is meant for the CU Homepage layout only.'),
];
$form['advanced']['ucb_secondary_menu_default_links'] = [
'#type' => 'checkbox',
'#title' => $this->t('Display the standard Boulder secondary menu in the header navigation region.'),
Expand Down

0 comments on commit ff9f83d

Please sign in to comment.