-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme-settings.php
72 lines (68 loc) · 1.64 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* @file
* Theme settings file for Basis.
*
* Although Basis itself does not provide any settings, we use this file to
* inform the user that the module supports color schemes if the Color module
* is enabled.
*/
if (module_exists('color')) {
$form['header'] = array(
'#type' => 'fieldset',
'#title' => t('Header Settings'),
'#collapsible' => TRUE,
);
$fields = array(
'header',
'base',
'slogan',
'titleslogan',
'hovermenu',
'menutoggle',
);
foreach ($fields as $field) {
$form['header'][$field] = color_get_color_element($form['theme']['#value'], $field, $form);
}
$form['general'] = array(
'#type' => 'fieldset',
'#title' => t('General Settings'),
'#collapsible' => TRUE,
);
$fields = array(
'bg',
'text',
'link',
'borders',
'formfocusborder',
);
foreach ($fields as $field) {
$form['general'][$field] = color_get_color_element($form['theme']['#value'], $field, $form);
}
$form['primary_tabs'] = array(
'#type' => 'fieldset',
'#title' => t('Tabs and Breadcrumb'),
'#collapsible' => TRUE,
);
$fields = array(
'primarytabs',
'primarytabstext',
'buttons',
);
foreach ($fields as $field) {
$form['primary_tabs'][$field] = color_get_color_element($form['theme']['#value'], $field, $form);
}
$form['footer'] = array(
'#type' => 'fieldset',
'#title' => t('Footer Settings'),
'#collapsible' => TRUE,
);
$fields = array(
'footerborder',
'footer',
'footertext',
);
foreach ($fields as $field) {
$form['footer'][$field] = color_get_color_element($form['theme']['#value'], $field, $form);
}
}