From 8a19f610c7bc0768642ff343e98aa4c1bd91133f Mon Sep 17 00:00:00 2001 From: Pat Date: Mon, 27 Nov 2023 12:00:50 -0700 Subject: [PATCH] Adds Global label settings for Custom Filters 1-3 --- src/SiteConfiguration.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/SiteConfiguration.php b/src/SiteConfiguration.php index 2d9accc..e73f50d 100644 --- a/src/SiteConfiguration.php +++ b/src/SiteConfiguration.php @@ -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',