Skip to content

Commit

Permalink
Update SiteConfiguration.php
Browse files Browse the repository at this point in the history
Update for the new homepage footer option as well as background color choices for the above and below content regions.
  • Loading branch information
jnicholCU committed Nov 10, 2024
1 parent aef57da commit dfa9447
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 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,6 +342,7 @@ 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.'),
];
Expand Down

0 comments on commit dfa9447

Please sign in to comment.