-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme-settings.php
110 lines (98 loc) · 4.12 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* Implements hook_form_system_theme_settings_alter() function.
*/
function procyon_form_system_theme_settings_alter(&$form, $form_state, $form_id = NULL) {
// Bug workaround (#943212).
if (isset($form_id)) {
return;
}
// We move default theme settings to new fieldset.
$form['theme_settings_fieldset'] = array(
'#type' => 'fieldset',
'#title' => t('Base theme settings'),
'#weight' => 2,
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['theme_settings_fieldset']['theme_settings'] = $form['theme_settings'];
unset($form['theme_settings']);
$form['theme_settings_fieldset']['logo'] = $form['logo'];
unset($form['logo']);
$form['theme_settings_fieldset']['favicon'] = $form['favicon'];
unset($form['favicon']);
$form['procyon_settings'] = array(
'#type' => 'fieldset',
'#title' => t('Procyon settings'),
'#weight' => 1,
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['procyon_settings']['procyon_rebuild_registry'] = array(
'#weight' => 1,
'#type' => 'checkbox',
'#title' => t('Rebuild theme registry on every page load.'),
'#default_value' => theme_get_setting('procyon_rebuild_registry')
);
$form['procyon_settings']['procyon_switch_checkboxes'] = array(
'#weight' => 2,
'#type' => 'checkbox',
'#title' => t('Procyon switch checkbox style.'),
'#description' => t('Checkboxes will be displayed as switchers.'),
'#default_value' => theme_get_setting('procyon_switch_checkboxes')
);
$form['procyon_settings']['procyon_switch_radios'] = array(
'#weight' => 3,
'#type' => 'checkbox',
'#title' => t('Procyon switch radio-button style.'),
'#description' => t('Radio-buttons will be themed.'),
'#default_value' => theme_get_setting('procyon_switch_radios')
);
$form['procyon_settings']['procyon_disable_grippie'] = array(
'#weight' => 4,
'#type' => 'checkbox',
'#title' => t('Disable textarea grippie.'),
'#description' => t('Modern browser support textarea resize out the box. You can disable default grippie.'),
'#default_value' => theme_get_setting('procyon_disable_grippie')
);
$form['procyon_settings']['procyon_login_page'] = array(
'#weight' => 5,
'#type' => 'checkbox',
'#title' => t('Special login page.'),
'#description' => t('Special login and a password recovery pages.'),
'#default_value' => theme_get_setting('procyon_login_page')
);
$form['procyon_settings']['procyon_error_page'] = array(
'#weight' => 6,
'#type' => 'checkbox',
'#title' => t('Special error pages.'),
'#description' => t('Special pages for 403 & 404 errors.'),
'#default_value' => theme_get_setting('procyon_error_page')
);
$form['procyon_settings']['procyon_do_not_go'] = array(
'#weight' => 7,
'#type' => 'checkbox',
'#title' => t('Screen saver "Do not go".'),
'#description' => t('Active Screen saver "Do not go" in region at page.tpl.php.'),
'#default_value' => theme_get_setting('procyon_do_not_go')
);
$form['procyon_settings']['procyon_back_to_top'] = array(
'#weight' => 8,
'#type' => 'checkbox',
'#title' => t('Back to top.'),
'#description' => t('Active button "Back to top".'),
'#default_value' => theme_get_setting('procyon_back_to_top')
);
$form['procyon_settings']['procyon_type_table'] = array(
'#weight' => 9,
'#type' => 'radios',
'#title' => t('Types of table:'),
'#options' => array(
'default' => t('Default'),
'border' => t('Border'),
'stripe' => t('Stripe'),
'border_stripe' => t('Border + Stripe')
),
'#default_value' => theme_get_setting('procyon_type_table')
);
}