|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* @file |
|
5
|
|
|
* Add custom theme settings to One. |
|
6
|
|
|
*/ |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* Implements hook_form_FORM_ID_alter(). |
|
10
|
|
|
* |
|
11
|
|
|
* @param $form |
|
12
|
|
|
* The form. |
|
13
|
|
|
* @param $form_state |
|
14
|
|
|
* The form state. |
|
15
|
|
|
*/ |
|
16
|
|
|
function one_form_system_theme_settings_alter(&$form, $form_state) { |
|
|
|
|
|
|
17
|
|
|
$form['theme_options'] = array( |
|
18
|
|
|
'#type' => 'details', |
|
19
|
|
|
'#title' => t('One Options'), |
|
20
|
|
|
'#weight' => -1, |
|
21
|
|
|
'#open' => 'true', |
|
22
|
|
|
); |
|
23
|
|
|
|
|
24
|
|
|
$form['theme_options']['regions'] = array( |
|
25
|
|
|
'#type' => 'details', |
|
26
|
|
|
'#title' => t('Region Settings'), |
|
27
|
|
|
'#open' => 'true', |
|
28
|
|
|
); |
|
29
|
|
|
|
|
30
|
|
|
$form['theme_options']['regions']['meta_header_full_width'] = array( |
|
31
|
|
|
'#type' => 'checkbox', |
|
32
|
|
|
'#title' => t('Meta Header Full Width'), |
|
33
|
|
|
'#description' => t('Uses the .container-fluid class instead of .container.'), |
|
34
|
|
|
'#default_value' => theme_get_setting('meta_header_full_width'), |
|
35
|
|
|
); |
|
36
|
|
|
|
|
37
|
|
|
$form['theme_options']['regions']['navbar_full_width'] = array( |
|
38
|
|
|
'#type' => 'checkbox', |
|
39
|
|
|
'#title' => t('Navbar Full Width'), |
|
40
|
|
|
'#description' => t('Uses the .container-fluid class instead of .container.'), |
|
41
|
|
|
'#default_value' => theme_get_setting('navbar_full_width'), |
|
42
|
|
|
); |
|
43
|
|
|
|
|
44
|
|
|
$form['theme_options']['regions']['header_full_width'] = array( |
|
45
|
|
|
'#type' => 'checkbox', |
|
46
|
|
|
'#title' => t('Header Full Width'), |
|
47
|
|
|
'#description' => t('Uses the .container-fluid class instead of .container.'), |
|
48
|
|
|
'#default_value' => theme_get_setting('header_full_width'), |
|
49
|
|
|
); |
|
50
|
|
|
|
|
51
|
|
|
$form['theme_options']['regions']['footer_full_width'] = array( |
|
52
|
|
|
'#type' => 'checkbox', |
|
53
|
|
|
'#title' => t('Footer Full Width'), |
|
54
|
|
|
'#description' => t('Uses the .container-fluid class instead of .container.'), |
|
55
|
|
|
'#default_value' => theme_get_setting('footer_full_width'), |
|
56
|
|
|
); |
|
57
|
|
|
} |
|
58
|
|
|
|
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.