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
|
if (at_get_setting('enable_extensions') === 1) {
|
26
|
$form['at']['corners'] = array(
|
27
|
'#type' => 'fieldset',
|
28
|
'#title' => t('Rounded corners'),
|
29
|
'#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>'),
|
30
|
);
|
31
|
$form['at']['corners']['content_corner_radius'] = array(
|
32
|
'#type' => 'select',
|
33
|
'#title' => t('Main content radius'),
|
34
|
'#default_value' => theme_get_setting('content_corner_radius'),
|
35
|
'#description' => t('Change the corner radius for the main content area.'),
|
36
|
'#options' => array(
|
37
|
'rc-0' => t('none'),
|
38
|
'rc-4' => t('4px'),
|
39
|
'rc-6' => t('6px'),
|
40
|
'rc-8' => t('8px'),
|
41
|
'rc-10' => t('10px'),
|
42
|
'rc-12' => t('12px'),
|
43
|
),
|
44
|
);
|
45
|
$form['at']['corners']['tabs_corner_radius'] = array(
|
46
|
'#type' => 'select',
|
47
|
'#title' => t('Menu tabs radius'),
|
48
|
'#default_value' => theme_get_setting('tabs_corner_radius'),
|
49
|
'#description' => t('Change the corner radius for the main menu tabs.'),
|
50
|
'#options' => array(
|
51
|
'rct-0' => t('none'),
|
52
|
'rct-4' => t('4px'),
|
53
|
'rct-6' => t('6px'),
|
54
|
'rct-8' => t('8px'),
|
55
|
'rct-10' => t('10px'),
|
56
|
'rct-12' => t('12px'),
|
57
|
),
|
58
|
);
|
59
|
$form['at']['pagestyles'] = array(
|
60
|
'#type' => 'fieldset',
|
61
|
'#title' => t('Box Shadows and Textures'),
|
62
|
'#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>'),
|
63
|
);
|
64
|
$form['at']['pagestyles']['shadows'] = array(
|
65
|
'#type' => 'fieldset',
|
66
|
'#title' => t('Box Shadows'),
|
67
|
'#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>'),
|
68
|
);
|
69
|
$form['at']['pagestyles']['shadows']['box_shadows'] = array(
|
70
|
'#type' => 'radios',
|
71
|
'#title' => t('<strong>Apply a box shadow to the main content column</strong>'),
|
72
|
'#default_value' => theme_get_setting('box_shadows'),
|
73
|
'#options' => array(
|
74
|
'bs-n' => t('None'),
|
75
|
'bs-l' => t('Box shadow - light'),
|
76
|
'bs-d' => t('Box shadow - dark'),
|
77
|
),
|
78
|
);
|
79
|
$form['at']['pagestyles']['textures'] = array(
|
80
|
'#type' => 'fieldset',
|
81
|
'#title' => t('Textures'),
|
82
|
'#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>'),
|
83
|
);
|
84
|
$form['at']['pagestyles']['textures']['body_background'] = array(
|
85
|
'#type' => 'select',
|
86
|
'#title' => t('Select texture'),
|
87
|
'#default_value' => theme_get_setting('body_background'),
|
88
|
'#options' => array(
|
89
|
'bb-n' => t('None'),
|
90
|
'bb-h' => t('Hatch'),
|
91
|
'bb-vl' => t('Vertical lines'),
|
92
|
'bb-hl' => t('Horizontal lines'),
|
93
|
'bb-g' => t('Grid'),
|
94
|
'bb-d' => t('Dots'),
|
95
|
),
|
96
|
);
|
97
|
$form['at']['menu_styles'] = array(
|
98
|
'#type' => 'fieldset',
|
99
|
'#title' => t('Menu Bullets'),
|
100
|
'#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>'),
|
101
|
);
|
102
|
$form['at']['menu_styles']['menu_bullets'] = array(
|
103
|
'#type' => 'select',
|
104
|
'#title' => t('Menu Bullets'),
|
105
|
'#default_value' => theme_get_setting('menu_bullets'),
|
106
|
'#options' => array(
|
107
|
'mb-n' => t('None'),
|
108
|
'mb-dd' => t('Drupal default'),
|
109
|
'mb-ah' => t('Arrow head'),
|
110
|
'mb-ad' => t('Double arrow head'),
|
111
|
'mb-ca' => t('Circle arrow'),
|
112
|
'mb-fa' => t('Fat arrow'),
|
113
|
'mb-sa' => t('Skinny arrow'),
|
114
|
),
|
115
|
);
|
116
|
}
|
117
|
}
|