Skip to content

Commit

Permalink
Merge pull request #32 from CuBoulder/issue/31
Browse files Browse the repository at this point in the history
CU Boulder site configuration 2.5.1
  • Loading branch information
jcsparks authored Nov 17, 2023
2 parents 130e4a8 + e4b496c commit a7b4a0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions src/SiteConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,6 @@ public function buildThemeSettingsForm(array &$form, FormStateInterface &$form_s
'#description' => $this->t('Select if sidebar content should appear on the left or right side of a page.'),
];

$form['ucb_rave_alerts'] = [
'#type' => 'checkbox',
'#title' => $this->t('Show campus-wide alerts'),
'#default_value' => theme_get_setting('ucb_rave_alerts', $themeName),
'#description' => $this->t('If enabled, campus-wide alerts will be displayed at the top of the site.'),
];

$form['ucb_breadcrumb_nav'] = [
'#type' => 'checkbox',
'#title' => $this->t('Show breadcrumb navigation on pages'),
Expand Down Expand Up @@ -277,7 +270,12 @@ public function buildThemeSettingsForm(array &$form, FormStateInterface &$form_s
'#title' => $this->t('Advanced'),
'#open' => FALSE,
];
// @todo Add the custom logo stuff here
$form['advanced']['ucb_rave_alerts'] = [
'#type' => 'checkbox',
'#title' => $this->t('Show campus-wide alerts'),
'#default_value' => theme_get_setting('ucb_rave_alerts', $themeName),
'#description' => $this->t('If enabled, campus-wide alerts will be displayed at the top of the site.'),
];
$form['advanced']['ucb_be_boulder'] = [
'#type' => 'select',
'#title' => $this->t('Where to display the Be Boulder slogan on the site.'),
Expand Down
2 changes: 1 addition & 1 deletion ucb_site_configuration.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CU Boulder Site Configuration
description: 'Allows CU Boulder site administrators to configure site-specific settings.'
core_version_requirement: ^9 || ^10
type: module
version: '2.5'
version: '2.5.1'
package: CU Boulder
dependencies:
- block
Expand Down
1 change: 1 addition & 0 deletions ucb_site_configuration.module
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function ucb_site_configuration_form_node_form_alter(array &$form, FormStateInte
'#type' => 'details',
'#title' => t('Third-party services'),
'#group' => 'advanced',
'#weight' => 35,
'#open' => (bool) $contentServicesFieldDefaultOptions,
'ucb_external_services_enabled' => [
'#type' => 'checkboxes',
Expand Down

0 comments on commit a7b4a0b

Please sign in to comment.