-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme-settings.php
More file actions
73 lines (67 loc) · 1.63 KB
/
theme-settings.php
File metadata and controls
73 lines (67 loc) · 1.63 KB
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
73
<?php
/**
* @file
* Theme settings for Stanford Decanter.
*/
$form['styleguide'] = array(
'#type' => 'fieldset',
'#title' => t('Styleguide'),
'#collapsible' => TRUE,
);
$form['styleguide']['link'] = array(
'#type' => 'link',
'#title' => t('View the styleguide'),
'#href' => stanford_decanter_styleguide_path(),
'#attributes' => array(
'target' => '_blank',
'class' => array('button btn-cta'),
),
);
$form['styleguide']['styleguide_public'] = array(
'#type' => 'checkbox',
'#title' => t('Make Styleguide Public'),
'#default_value' => theme_get_setting('styleguide_public', 'stanford_decanter'),
'#description' => t('Check this box to make the styleguide publicly accessible.'),
);
$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);
}