Skip to content

Commit

Permalink
Merge pull request #35 from CuBoulder/issue/tiamat-theme/543
Browse files Browse the repository at this point in the history
People List Filter Labels as a Global Setting
  • Loading branch information
jcsparks authored Nov 30, 2023
2 parents 179840e + aa7d2bd commit b9e332c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/SiteConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,26 @@ public function buildThemeSettingsForm(array &$form, FormStateInterface &$form_s
],
'#description' => $this->t('Select the preferred Global Date/Time format for dates on your site.'),
];
// Custom labels for filters 1-3 on People List Pages
$form['ucb_filter_1_label'] = [
'#type' => 'textfield',
'#title' => $this->t('Filter 1 Label'),
'#default_value' => theme_get_setting('ucb_filter_1_label', $themeName),
'#description' => $this->t('Choose the label that will be used for "Filter 1" on People List Pages'),
];
$form['ucb_filter_2_label'] = [
'#type' => 'textfield',
'#title' => $this->t('Filter 2 Label'),
'#default_value' => theme_get_setting('ucb_filter_2_label', $themeName),
'#description' => $this->t('Choose the label that will be used for "Filter 2" on People List Pages'),
];
$form['ucb_filter_3_label'] = [
'#type' => 'textfield',
'#title' => $this->t('Filter 3 Label'),
'#default_value' => theme_get_setting('ucb_filter_3_label', $themeName),
'#description' => $this->t('Choose the label that will be used for "Filter 3" on People List Pages'),
];

if ($this->user->hasPermission('edit ucb site advanced')) {
$form['advanced'] = [
'#type' => 'details',
Expand Down

0 comments on commit b9e332c

Please sign in to comment.