-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy paththeme-settings.php
65 lines (59 loc) · 1.92 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
<?php
/**
* Implement hook_form_system_theme_settings_alter()
*/
function adminlte_form_system_theme_settings_alter(&$form, $form_state) {
$form['adminlte_group'] = array(
'#type' => 'fieldset',
'#title' => t('AdminLTE Configuration'),
'#weight' => -20,
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['adminlte_group']['skin_group'] = array(
'#type' => 'fieldset',
'#title' => t('Skin'),
'#description' => t('Enable theme skin'),
'#weight' => -20,
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['adminlte_group']['layout_group'] = array(
'#type' => 'fieldset',
'#title' => t('Layout Options'),
'#description' => t('Enable theme layout'),
'#weight' => -20,
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['adminlte_group']['layout_group']['layout_options'] = array(
'#type' => 'checkboxes',
'#options' => array(
'fixed' => t('fixed'),
'layout-boxed' => t('layout-boxed'),
'layout-top-nav' => t('layout-top-nav'),
'sidebar-collapse' => t('sidebar-collapse'),
//'sidebar-mini' => t('sidebar-mini'),
),
'#default_value' => theme_get_setting('layout_options'),
);
$form['adminlte_group']['skin_group']['skin'] = array(
'#type' => 'radios',
'#options' => array(
'skin-blue' => t('skin-blue'),
'skin-blue-light' => t('skin-blue-light'),
'skin-yellow' => t('skin-yellow'),
'skin-yellow-light' => t('skin-yellow-light'),
'skin-green' => t('skin-green'),
'skin-green-light' => t('skin-green-light'),
'skin-purple' => t('skin-purple'),
'skin-purple-light' => t('skin-purple-light'),
'skin-blue' => t('skin-blue'),
'skin-red' => t('skin-red'),
'skin-red-light' => t('skin-red-light'),
'skin-black' => t('skin-black'),
'skin-black-light' => t('skin-black-light'),
),
'#default_value' => theme_get_setting('skin'),
);
}