1
|
<?php
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
function corolla_form_system_theme_settings_alter(&$form, &$form_state) {
|
11
|
|
12
|
|
13
|
$form['at-release'] = array(
|
14
|
'#type' => 'hidden',
|
15
|
'#default_value' => '7.x-3.x',
|
16
|
);
|
17
|
|
18
|
|
19
|
|
20
|
$form['at-color'] = array(
|
21
|
'#type' => 'hidden',
|
22
|
'#default_value' => TRUE,
|
23
|
);
|
24
|
|
25
|
$enable_extensions = isset($form_state['values']['enable_extensions']);
|
26
|
if (($enable_extensions && $form_state['values']['enable_extensions'] == 1) || (!$enable_extensions && $form['at-settings']['extend']['enable_extensions']['#default_value'] == 1)) {
|
27
|
|
28
|
|
29
|
$form['at']['modify-output']['design']['page_full_width_wrappers'] = array(
|
30
|
'#access' => FALSE,
|
31
|
'#default_value' => 0,
|
32
|
);
|
33
|
|
34
|
$form['at']['corners'] = array(
|
35
|
'#type' => 'fieldset',
|
36
|
'#title' => t('Rounded corners'),
|
37
|
'#description' => t('<h3>Rounded Corners</h3><p>Rounded corners are implimented using CSS and only work in modern compliant browsers. You can set the radius for both the main content and main menu tabs.</p>'),
|
38
|
);
|
39
|
$form['at']['corners']['content_corner_radius'] = array(
|
40
|
'#type' => 'select',
|
41
|
'#title' => t('Main content radius'),
|
42
|
'#default_value' => theme_get_setting('content_corner_radius'),
|
43
|
'#description' => t('Change the corner radius for the main content area.'),
|
44
|
'#options' => array(
|
45
|
'rc-0' => t('none'),
|
46
|
'rc-4' => t('4px'),
|
47
|
'rc-6' => t('6px'),
|
48
|
'rc-8' => t('8px'),
|
49
|
'rc-10' => t('10px'),
|
50
|
'rc-12' => t('12px'),
|
51
|
),
|
52
|
);
|
53
|
$form['at']['corners']['tabs_corner_radius'] = array(
|
54
|
'#type' => 'select',
|
55
|
'#title' => t('Menu tabs radius'),
|
56
|
'#default_value' => theme_get_setting('tabs_corner_radius'),
|
57
|
'#description' => t('Change the corner radius for the main menu tabs.'),
|
58
|
'#options' => array(
|
59
|
'rct-0' => t('none'),
|
60
|
'rct-4' => t('4px'),
|
61
|
'rct-6' => t('6px'),
|
62
|
'rct-8' => t('8px'),
|
63
|
'rct-10' => t('10px'),
|
64
|
'rct-12' => t('12px'),
|
65
|
),
|
66
|
);
|
67
|
$form['at']['pagestyles'] = array(
|
68
|
'#type' => 'fieldset',
|
69
|
'#title' => t('Box Shadows and Textures'),
|
70
|
'#description' => t('<h3>Shadows and Textures</h3><p>The box shadows are implimented using CSS and only work in modern compliant browsers. The textures are small, semi-transparent images that tile to fill the entire background.</p>'),
|
71
|
);
|
72
|
$form['at']['pagestyles']['shadows'] = array(
|
73
|
'#type' => 'fieldset',
|
74
|
'#title' => t('Box Shadows'),
|
75
|
'#description' => t('<h3>Box Shadows</h3><p>Box shadows (a drop shadow/glow effect) apply to the main content column and work only in CSS3 compliant browsers such as Firefox, Safari and Chrome.</p>'),
|
76
|
);
|
77
|
$form['at']['pagestyles']['shadows']['box_shadows'] = array(
|
78
|
'#type' => 'radios',
|
79
|
'#title' => t('<strong>Apply a box shadow to the main content column</strong>'),
|
80
|
'#default_value' => theme_get_setting('box_shadows'),
|
81
|
'#options' => array(
|
82
|
'bs-n' => t('None'),
|
83
|
'bs-l' => t('Box shadow - light'),
|
84
|
'bs-d' => t('Box shadow - dark'),
|
85
|
),
|
86
|
);
|
87
|
$form['at']['pagestyles']['textures'] = array(
|
88
|
'#type' => 'fieldset',
|
89
|
'#title' => t('Textures'),
|
90
|
'#description' => t('<h3>Body Textures</h3><p>This setting adds a texture over the main background color - the darker the background the more these stand out, on light backgrounds the effect is subtle.</p>'),
|
91
|
);
|
92
|
$form['at']['pagestyles']['textures']['body_background'] = array(
|
93
|
'#type' => 'select',
|
94
|
'#title' => t('Select texture'),
|
95
|
'#default_value' => theme_get_setting('body_background'),
|
96
|
'#options' => array(
|
97
|
'bb-n' => t('None'),
|
98
|
'bb-h' => t('Hatch'),
|
99
|
'bb-vl' => t('Vertical lines'),
|
100
|
'bb-hl' => t('Horizontal lines'),
|
101
|
'bb-g' => t('Grid'),
|
102
|
'bb-d' => t('Dots'),
|
103
|
),
|
104
|
);
|
105
|
$form['at']['menu_styles'] = array(
|
106
|
'#type' => 'fieldset',
|
107
|
'#title' => t('Menu Bullets'),
|
108
|
'#description' => t('<h3>Menu Bullets</h3><p>This setting allows you to customize the bullet images used on menus items. Bullet images only show on normal vertical block menus.</p>'),
|
109
|
);
|
110
|
$form['at']['menu_styles']['menu_bullets'] = array(
|
111
|
'#type' => 'select',
|
112
|
'#title' => t('Menu Bullets'),
|
113
|
'#default_value' => theme_get_setting('menu_bullets'),
|
114
|
'#options' => array(
|
115
|
'mb-n' => t('None'),
|
116
|
'mb-dd' => t('Drupal default'),
|
117
|
'mb-ah' => t('Arrow head'),
|
118
|
'mb-ad' => t('Double arrow head'),
|
119
|
'mb-ca' => t('Circle arrow'),
|
120
|
'mb-fa' => t('Fat arrow'),
|
121
|
'mb-sa' => t('Skinny arrow'),
|
122
|
),
|
123
|
);
|
124
|
}
|
125
|
}
|