generated from backdrop-contrib/theme_template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme-settings.php
50 lines (47 loc) · 1018 Bytes
/
theme-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* @file
* Theme settings for Stanford Decanter.
*/
$form['global'] = array(
'#type' => 'fieldset',
'#title' => t('Global Settings'),
'#collapsible' => TRUE,
);
$fields = array(
'identity',
'identity_text',
'bg',
'text',
'link',
'title',
);
foreach ($fields as $field) {
$form['global'][$field] = color_get_color_element($form['theme']['#value'], $field, $form);
}
$form['forms'] = array(
'#type' => 'fieldset',
'#title' => t('Form Settings'),
'#collapsible' => TRUE,
);
$fields = array(
'form_borders',
'form_focus',
'form_error',
'form_ok'
);
foreach ($fields as $field) {
$form['forms'][$field] = color_get_color_element($form['theme']['#value'], $field, $form);
}
$form['footer'] = array(
'#type' => 'fieldset',
'#title' => t('Local Footer Settings'),
'#collapsible' => TRUE,
);
$fields = array(
'footer',
'footer_text',
);
foreach ($fields as $field) {
$form['footer'][$field] = color_get_color_element($form['theme']['#value'], $field, $form);
}