1 |
b9383c72
|
Julien Enselme
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
function simplecorp_form_system_theme_settings_alter(&$form, &$form_state) {
|
12 |
|
|
|
13 |
|
|
$form['mtt_settings'] = array(
|
14 |
|
|
'#type' => 'fieldset',
|
15 |
|
|
'#title' => t('SimpleCorp Theme Settings'),
|
16 |
|
|
'#collapsible' => FALSE,
|
17 |
|
|
'#collapsed' => FALSE,
|
18 |
|
|
);
|
19 |
|
|
|
20 |
|
|
$form['mtt_settings']['tabs'] = array(
|
21 |
|
|
'#type' => 'vertical_tabs',
|
22 |
|
|
);
|
23 |
|
|
|
24 |
|
|
$form['mtt_settings']['tabs']['looknfeel'] = array(
|
25 |
|
|
'#type' => 'fieldset',
|
26 |
|
|
'#title' => t('Look\'n\'Feel'),
|
27 |
|
|
'#collapsible' => TRUE,
|
28 |
|
|
'#collapsed' => FALSE,
|
29 |
|
|
);
|
30 |
|
|
|
31 |
|
|
$form['mtt_settings']['tabs']['looknfeel']['theme_colors'] = array(
|
32 |
|
|
'#type' => 'fieldset',
|
33 |
|
|
'#title' => t('Color Schemes'),
|
34 |
|
|
'#collapsible' => TRUE,
|
35 |
|
|
'#collapsed' => TRUE,
|
36 |
|
|
);
|
37 |
|
|
|
38 |
|
|
$form['mtt_settings']['tabs']['looknfeel']['theme_colors']['theme_color'] = array(
|
39 |
|
|
'#type' => 'select',
|
40 |
|
|
'#title' => t('Colors'),
|
41 |
|
|
'#description' => t('From the drop-down menu, select the color scheme you prefer.'),
|
42 |
|
|
'#default_value' => theme_get_setting('theme_color','simplecorp'),
|
43 |
|
|
'#options' => array(
|
44 |
|
|
'default' => t('Default'),
|
45 |
|
|
'dark-blue' => t('Dark Blue'),
|
46 |
|
|
'dark-blue-dark' => t('Dark Blue Dark'),
|
47 |
|
|
'dark-green' => t('Dark Green'),
|
48 |
|
|
'dark-green-dark' => t('Dark Green Dark'),
|
49 |
|
|
'dark-pink' => t('Dark Pink'),
|
50 |
|
|
'dark-purple' => t('Dark Purple'),
|
51 |
|
|
'dark-red' => t('Dark Red'),
|
52 |
|
|
'dark-yellow' => t('Dark Yellow'),
|
53 |
|
|
'light-blue-dark' => t('Light Blue Dark'),
|
54 |
|
|
'light-gray' => t('Light Gray'),
|
55 |
|
|
'light-green' => t('Light Green'),
|
56 |
|
|
'light-orange' => t('Light Orange'),
|
57 |
|
|
'light-purple' => t('Light Purple'),
|
58 |
|
|
'light-red' => t('Light Red'),
|
59 |
|
|
'light-yellow' => t('Light Yellow'),
|
60 |
|
|
),
|
61 |
|
|
);
|
62 |
|
|
|
63 |
|
|
$form['mtt_settings']['tabs']['looknfeel']['buttons'] = array(
|
64 |
|
|
'#type' => 'fieldset',
|
65 |
|
|
'#title' => t('Buttons'),
|
66 |
|
|
'#collapsible' => TRUE,
|
67 |
|
|
'#collapsed' => TRUE,
|
68 |
|
|
);
|
69 |
|
|
|
70 |
|
|
$form['mtt_settings']['tabs']['looknfeel']['buttons']['button_color'] = array(
|
71 |
|
|
'#type' => 'select',
|
72 |
|
|
'#title' => t('Colors'),
|
73 |
|
|
'#description' => t('From the drop-down menu, select the color scheme you prefer.'),
|
74 |
|
|
'#default_value' => theme_get_setting('button_color','simplecorp'),
|
75 |
|
|
'#options' => array(
|
76 |
|
|
'blue' => t('Blue'),
|
77 |
|
|
'steel_blue' => t('Steel Blue'),
|
78 |
|
|
'sea_blue' => t('Sea Blue'),
|
79 |
|
|
'green' => t('Green'),
|
80 |
|
|
'dark_green' => t('Dark Green'),
|
81 |
|
|
'fresh_green' => t('Fresh green'),
|
82 |
|
|
'earth_green' => t('Earth green'),
|
83 |
|
|
'red' => t('Red'),
|
84 |
|
|
'light_red' => t('Light red'),
|
85 |
|
|
'orange' => t('Orange'),
|
86 |
|
|
'purple' => t('Purple'),
|
87 |
|
|
'lavander' => t('Lavander'),
|
88 |
|
|
'grey' => t('Grey'),
|
89 |
|
|
'light_grey' => t('Light Grey'),
|
90 |
|
|
'dark_grey' => t('Dark Grey'),
|
91 |
|
|
'black' => t('Black'),
|
92 |
|
|
'' => t('Without Style'),
|
93 |
|
|
),
|
94 |
|
|
);
|
95 |
|
|
|
96 |
|
|
$form['mtt_settings']['tabs']['plugins'] = array(
|
97 |
|
|
'#type' => 'fieldset',
|
98 |
|
|
'#title' => t('Plugins'),
|
99 |
|
|
'#collapsible' => TRUE,
|
100 |
|
|
'#collapsed' => FALSE,
|
101 |
|
|
);
|
102 |
|
|
|
103 |
|
|
$form['mtt_settings']['tabs']['plugins']['header_tooltip'] = array(
|
104 |
|
|
'#type' => 'fieldset',
|
105 |
|
|
'#title' => t('Social Icons'),
|
106 |
|
|
'#collapsible' => TRUE,
|
107 |
|
|
'#collapsed' => TRUE,
|
108 |
|
|
);
|
109 |
|
|
|
110 |
|
|
$form['mtt_settings']['tabs']['plugins']['header_tooltip']['social_icons_display'] = array(
|
111 |
|
|
'#type' => 'checkbox',
|
112 |
|
|
'#title' => t('Show Social Icons'),
|
113 |
|
|
'#description' => t('Use the checkbox to enable or disable the Social Icons inside the header [<em>simplecorp/page.tpl.php</em>].'),
|
114 |
|
|
'#default_value' => theme_get_setting('social_icons_display','simplecorp'),
|
115 |
|
|
);
|
116 |
|
|
|
117 |
|
|
$form['mtt_settings']['tabs']['plugins']['header_tooltip']['header_tooltip_js'] = array(
|
118 |
|
|
'#type' => 'checkbox',
|
119 |
|
|
'#title' => t('Include javascript library for the Social Icons Tooltips'),
|
120 |
|
|
'#description' => t('Use the checkbox to include or not the javascript tipsy.js library for the Social Icons Tooltips [<em>simplecorp/js/plugins/jquery.tipsy.js</em>].<br> More info <a href="http://onehackoranother.com/projects/jquery/tipsy/" target="_blank">http://onehackoranother.com/projects/jquery/tipsy</a>.'),
|
121 |
|
|
'#default_value' => theme_get_setting('header_tooltip_js','simplecorp'),
|
122 |
|
|
);
|
123 |
|
|
|
124 |
|
|
$form['mtt_settings']['tabs']['plugins']['main_menu'] = array(
|
125 |
|
|
'#type' => 'fieldset',
|
126 |
|
|
'#title' => t('Main Menu Load Effect'),
|
127 |
|
|
'#collapsible' => TRUE,
|
128 |
|
|
'#collapsed' => TRUE,
|
129 |
|
|
);
|
130 |
|
|
|
131 |
|
|
$form['mtt_settings']['tabs']['plugins']['main_menu']['main_menu_custom_js'] = array(
|
132 |
|
|
'#type' => 'checkbox',
|
133 |
|
|
'#title' => t('Include javascript code for the main-menu load effect'),
|
134 |
|
|
'#description' => t('Use the checkbox to include or not the custom javascript code for the main-menu load effect.'),
|
135 |
|
|
'#default_value' => theme_get_setting('main_menu_custom_js','simplecorp'),
|
136 |
|
|
);
|
137 |
|
|
|
138 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow'] = array(
|
139 |
|
|
'#type' => 'fieldset',
|
140 |
|
|
'#title' => t('Front-page Slideshow'),
|
141 |
|
|
'#collapsible' => TRUE,
|
142 |
|
|
'#collapsed' => TRUE,
|
143 |
|
|
);
|
144 |
|
|
|
145 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow']['slideshow_display'] = array(
|
146 |
|
|
'#type' => 'checkbox',
|
147 |
|
|
'#title' => t('Show Slideshow'),
|
148 |
|
|
'#description' => t('Use the checkbox to enable or disable the front-page Slideshow [<em>simplecorp/page.tpl.php</em>].'),
|
149 |
|
|
'#default_value' => theme_get_setting('slideshow_display','simplecorp'),
|
150 |
|
|
);
|
151 |
|
|
|
152 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow']['slideshow_js'] = array(
|
153 |
|
|
'#type' => 'checkbox',
|
154 |
|
|
'#title' => t('Include Slideshow javascript code'),
|
155 |
|
|
'#description' => t('Use the checkbox to include or not the javascript code (Flexslider) for the Slideshow. <br>More info <a href="http://flexslider.woothemes.com/" target="_blank">http://flexslider.woothemes.com</a>.'),
|
156 |
|
|
'#default_value' => theme_get_setting('slideshow_js','simplecorp'),
|
157 |
|
|
);
|
158 |
|
|
|
159 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow']['slideshow_effect'] = array(
|
160 |
|
|
'#type' => 'select',
|
161 |
|
|
'#title' => t('Effects'),
|
162 |
|
|
'#description' => t('From the drop-down menu, select the Slideshow effect you prefer.'),
|
163 |
|
|
'#default_value' => theme_get_setting('slideshow_effect','simplecorp'),
|
164 |
|
|
'#options' => array(
|
165 |
|
|
'slide' => t('Slide'),
|
166 |
|
|
'fade' => t('Fade'),
|
167 |
|
|
),
|
168 |
|
|
);
|
169 |
|
|
|
170 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow']['slideshow_effect_time'] = array(
|
171 |
|
|
'#type' => 'textfield',
|
172 |
|
|
'#title' => t('Effect duration (sec)'),
|
173 |
|
|
'#default_value' => theme_get_setting('slideshow_effect_time','simplecorp'),
|
174 |
|
|
);
|
175 |
|
|
|
176 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow']['slideshow_random'] = array(
|
177 |
|
|
'#type' => 'checkbox',
|
178 |
|
|
'#title' => t('Randomize slide order'),
|
179 |
|
|
'#default_value' => theme_get_setting('slideshow_random','simplecorp'),
|
180 |
|
|
);
|
181 |
|
|
|
182 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow']['slideshow_pause'] = array(
|
183 |
|
|
'#type' => 'checkbox',
|
184 |
|
|
'#title' => t('Pause Slideshow on hover'),
|
185 |
|
|
'#default_value' => theme_get_setting('slideshow_pause','simplecorp'),
|
186 |
|
|
);
|
187 |
|
|
|
188 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow']['slideshow_controls'] = array(
|
189 |
|
|
'#type' => 'checkbox',
|
190 |
|
|
'#title' => t('Display Slideshow controls'),
|
191 |
|
|
'#default_value' => theme_get_setting('slideshow_controls','simplecorp'),
|
192 |
|
|
);
|
193 |
|
|
|
194 |
|
|
$form['mtt_settings']['tabs']['plugins']['slideshow']['slideshow_touch'] = array(
|
195 |
|
|
'#type' => 'checkbox',
|
196 |
|
|
'#title' => t('Allow touch swipe navigation'),
|
197 |
|
|
'#default_value' => theme_get_setting('slideshow_touch','simplecorp'),
|
198 |
|
|
);
|
199 |
|
|
|
200 |
|
|
$form['mtt_settings']['tabs']['plugins']['highlighted'] = array(
|
201 |
|
|
'#type' => 'fieldset',
|
202 |
|
|
'#title' => t('Front-page Featured Content'),
|
203 |
|
|
'#collapsible' => TRUE,
|
204 |
|
|
'#collapsed' => TRUE,
|
205 |
|
|
);
|
206 |
|
|
|
207 |
|
|
$form['mtt_settings']['tabs']['plugins']['highlighted']['highlighted_display'] = array(
|
208 |
|
|
'#type' => 'checkbox',
|
209 |
|
|
'#title' => t('Show Featured content'),
|
210 |
|
|
'#description' => t('Use the checkbox to enable or disable the front-page Featured content [<em>simplecorp/page.tpl.php</em>].'),
|
211 |
|
|
'#default_value' => theme_get_setting('highlighted_display','simplecorp'),
|
212 |
|
|
);
|
213 |
|
|
|
214 |
|
|
$form['mtt_settings']['tabs']['plugins']['carousel'] = array(
|
215 |
|
|
'#type' => 'fieldset',
|
216 |
|
|
'#title' => t('Front-page Carousel'),
|
217 |
|
|
'#collapsible' => TRUE,
|
218 |
|
|
'#collapsed' => TRUE,
|
219 |
|
|
);
|
220 |
|
|
|
221 |
|
|
$form['mtt_settings']['tabs']['plugins']['carousel']['carousel_display'] = array(
|
222 |
|
|
'#type' => 'checkbox',
|
223 |
|
|
'#title' => t('Show Carousel'),
|
224 |
|
|
'#description' => t('Use the checkbox to enable or disable the front-page Carousel [<em>page.tpl.php</em>].'),
|
225 |
|
|
'#default_value' => theme_get_setting('carousel_display','simplecorp'),
|
226 |
|
|
);
|
227 |
|
|
|
228 |
|
|
$form['mtt_settings']['tabs']['plugins']['carousel']['carousel_js'] = array(
|
229 |
|
|
'#type' => 'checkbox',
|
230 |
|
|
'#title' => t('Include Carousel javascript code'),
|
231 |
|
|
'#description' => t('Use the checkbox to include or not the javascript code (JCarousel) for the Carousel. <br>More info <a href="http://sorgalla.com/jcarousel/" target="_blank">http://sorgalla.com/jcarousel</a>.'),
|
232 |
|
|
'#default_value' => theme_get_setting('carousel_js','simplecorp'),
|
233 |
|
|
);
|
234 |
|
|
|
235 |
|
|
$form['mtt_settings']['tabs']['plugins']['carousel']['carousel_effect_time'] = array(
|
236 |
|
|
'#type' => 'textfield',
|
237 |
|
|
'#title' => t('Effect duration (sec)'),
|
238 |
|
|
'#default_value' => theme_get_setting('carousel_effect_time','simplecorp'),
|
239 |
|
|
);
|
240 |
|
|
|
241 |
|
|
$form['mtt_settings']['tabs']['plugins']['carousel']['carousel_effect'] = array(
|
242 |
|
|
'#type' => 'select',
|
243 |
|
|
'#title' => t('Effects'),
|
244 |
|
|
'#description' => t('From the drop-down menu, select the Carousel easing effect you prefer.'),
|
245 |
|
|
'#default_value' => theme_get_setting('carousel_effect','simplecorp'),
|
246 |
|
|
'#options' => array(
|
247 |
|
|
'linear' => 'linear',
|
248 |
|
|
'swing' => 'swing',
|
249 |
|
|
'easeInQuad' => 'easeInQuad',
|
250 |
|
|
'easeOutQuad' => 'easeOutQuad',
|
251 |
|
|
'easeInOutQuad' => 'easeInOutQuad',
|
252 |
|
|
'easeInCubic' => 'easeInCubic',
|
253 |
|
|
'easeOutCubic' => 'easeOutCubic',
|
254 |
|
|
'easeInOutCubic' => 'easeInOutCubic',
|
255 |
|
|
'easeInQuart' => 'easeInQuart',
|
256 |
|
|
'easeOutQuart' => 'easeOutQuart',
|
257 |
|
|
'easeInOutQuart' => 'easeInOutQuart',
|
258 |
|
|
'easeInQuint' => 'easeInQuint',
|
259 |
|
|
'easeOutQuint' => 'easeOutQuint',
|
260 |
|
|
'easeInOutQuint' => 'easeInOutQuint',
|
261 |
|
|
'easeInExpo' => 'easeInExpo',
|
262 |
|
|
'easeOutExpo' => 'easeOutExpo',
|
263 |
|
|
'easeInOutExpo' => 'easeInOutExpo',
|
264 |
|
|
'easeInSine' => 'easeInSine',
|
265 |
|
|
'easeOutSine' => 'easeOutSine',
|
266 |
|
|
'easeInOutSine' => 'easeInOutSine',
|
267 |
|
|
'easeInCirc' => 'easeInCirc',
|
268 |
|
|
'easeOutCirc' => 'easeOutCirc',
|
269 |
|
|
'easeInOutCirc' => 'easeInOutCirc',
|
270 |
|
|
'easeInElastic' => 'easeInElastic',
|
271 |
|
|
'easeOutElastic' => 'easeOutElastic',
|
272 |
|
|
'easeInOutElastic' => 'easeInOutElastic',
|
273 |
|
|
'easeInBack' => 'easeInBack',
|
274 |
|
|
'easeOutBack' => 'easeOutBack',
|
275 |
|
|
'easeInOutBack' => 'easeInOutBack',
|
276 |
|
|
'easeInBounce' => 'easeInBounce',
|
277 |
|
|
'easeOutBounce' => 'easeOutBounce',
|
278 |
|
|
'easeInOutBounce' => 'easeInOutBounce',
|
279 |
|
|
),
|
280 |
|
|
);
|
281 |
|
|
|
282 |
|
|
$form['mtt_settings']['tabs']['plugins']['quicksand'] = array(
|
283 |
|
|
'#type' => 'fieldset',
|
284 |
|
|
'#title' => t('Portfolio filters'),
|
285 |
|
|
'#collapsible' => TRUE,
|
286 |
|
|
'#collapsed' => TRUE,
|
287 |
|
|
);
|
288 |
|
|
|
289 |
|
|
$form['mtt_settings']['tabs']['plugins']['quicksand']['quicksand_js'] = array(
|
290 |
|
|
'#type' => 'checkbox',
|
291 |
|
|
'#title' => t('Include quicksand javascript code'),
|
292 |
|
|
'#description' => t('Use the checkbox to include or not the quicksand javascript code in order to reorder and filter portofolio items with a nice shuffling animation [<em>simplecorp/js/plugins/quicksand.js</em> & <em>simplecorp/js/plugins/quicksand_initialize.js</em>]. <br>More info <a href="http://razorjack.net/quicksand/" target="_blank">http://razorjack.net/quicksand</a>.'),
|
293 |
|
|
'#default_value' => theme_get_setting('quicksand_js','simplecorp'),
|
294 |
|
|
);
|
295 |
|
|
|
296 |
|
|
$form['mtt_settings']['tabs']['plugins']['prettyphoto'] = array(
|
297 |
|
|
'#type' => 'fieldset',
|
298 |
|
|
'#title' => t('PrettyPhoto'),
|
299 |
|
|
'#collapsible' => TRUE,
|
300 |
|
|
'#collapsed' => TRUE,
|
301 |
|
|
);
|
302 |
|
|
|
303 |
|
|
$form['mtt_settings']['tabs']['plugins']['prettyphoto']['prettyphoto_js'] = array(
|
304 |
|
|
'#type' => 'checkbox',
|
305 |
|
|
'#title' => t('Include prettyPhoto javascript and css code'),
|
306 |
|
|
'#description' => t('Use the checkbox to include or not the prettyPhoto javascript and css code in order to overlay images on the current page [<em>simplecorp/js/plugins/jquery.prettyPhoto.js</em> & <em>simplecorp/css/plugins/prettyPhoto.css</em>]. <br>More info <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/" target="_blank">http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone</a>.'),
|
307 |
|
|
'#default_value' => theme_get_setting('prettyphoto_js','simplecorp'),
|
308 |
|
|
);
|
309 |
|
|
|
310 |
|
|
$form['mtt_settings']['tabs']['plugins']['prettyphoto']['prettyphoto_theme'] = array(
|
311 |
|
|
'#type' => 'select',
|
312 |
|
|
'#title' => t('PrettyPhoto themes'),
|
313 |
|
|
'#description' => t('From the drop-down menu, select the theme you prefer.'),
|
314 |
|
|
'#default_value' => theme_get_setting('prettyphoto_theme','simplecorp'),
|
315 |
|
|
'#options' => array(
|
316 |
|
|
'pp_default' => t('Default'),
|
317 |
|
|
'light_rounded' => t('Light Rounded'),
|
318 |
|
|
'dark_rounded' => t('Dark Rounded'),
|
319 |
|
|
'light_square' => t('Light Square'),
|
320 |
|
|
'dark_square' => t('Dark Square'),
|
321 |
|
|
'facebook' => 'Facebook',
|
322 |
|
|
),
|
323 |
|
|
);
|
324 |
|
|
|
325 |
|
|
$form['mtt_settings']['tabs']['plugins']['prettyphoto']['prettyphoto_social_tools'] = array(
|
326 |
|
|
'#type' => 'checkbox',
|
327 |
|
|
'#title' => t('Show Twitter and Facebook share buttons'),
|
328 |
|
|
'#description' => t('Use the checkbox to enable or disable the Twitter and Facebook share buttons.'),
|
329 |
|
|
'#default_value' => theme_get_setting('prettyphoto_social_tools','simplecorp'),
|
330 |
|
|
);
|
331 |
|
|
|
332 |
|
|
$form['mtt_settings']['tabs']['plugins']['jtweetanywhere'] = array(
|
333 |
|
|
'#type' => 'fieldset',
|
334 |
|
|
'#title' => t('jTweetAnywhere'),
|
335 |
|
|
'#collapsible' => TRUE,
|
336 |
|
|
'#collapsed' => TRUE,
|
337 |
|
|
);
|
338 |
|
|
|
339 |
|
|
$form['mtt_settings']['tabs']['plugins']['jtweetanywhere']['jtweetanywhere_js'] = array(
|
340 |
|
|
'#type' => 'checkbox',
|
341 |
|
|
'#title' => t('Include jTweetAnywhere javascript and css code'),
|
342 |
|
|
'#description' => t('Use the checkbox to include or not the jTweetAnywhere javascript and css code in order to display tweets from your twitter acount [<em>simplecorp/js/plugins/jquery.jtweets-1.2.1.js</em> & <em>simplecorp/css/plugins/jquery.jtweets-1.2.1.css</em>]. To enable the plugin you must put the "<div id="#jTweets"></div>" placeholder as block into a region. More info about jTweetsAnywhere plugin <a href="http://thomasbillenstein.com/jTweetsAnywhere/" target="_blank">http://thomasbillenstein.com/jTweetsAnywhere</a>.'),
|
343 |
|
|
'#default_value' => theme_get_setting('jtweetanywhere_js','simplecorp'),
|
344 |
|
|
);
|
345 |
|
|
|
346 |
|
|
$form['mtt_settings']['tabs']['plugins']['jtweetanywhere']['jtweetanywhere_id'] = array(
|
347 |
|
|
'#type' => 'textfield',
|
348 |
|
|
'#title' => t('Your twitter acount username'),
|
349 |
|
|
'#description' => t('For example <em>morethanthemes</em>'),
|
350 |
|
|
'#default_value' => theme_get_setting('jtweetanywhere_id','simplecorp'),
|
351 |
|
|
);
|
352 |
|
|
|
353 |
|
|
$form['mtt_settings']['tabs']['shortcodes'] = array(
|
354 |
|
|
'#type' => 'fieldset',
|
355 |
|
|
'#title' => t('Shortcodes'),
|
356 |
|
|
'#collapsible' => TRUE,
|
357 |
|
|
'#collapsed' => FALSE,
|
358 |
|
|
);
|
359 |
|
|
|
360 |
|
|
$form['mtt_settings']['tabs']['shortcodes']['columns'] = array(
|
361 |
|
|
'#type' => 'fieldset',
|
362 |
|
|
'#title' => t('Columns'),
|
363 |
|
|
'#collapsible' => TRUE,
|
364 |
|
|
'#collapsed' => TRUE,
|
365 |
|
|
);
|
366 |
|
|
|
367 |
|
|
$form['mtt_settings']['tabs']['shortcodes']['columns']['columns_enable'] = array(
|
368 |
|
|
'#type' => 'checkbox',
|
369 |
|
|
'#title' => t('Include css file for custom grid [<em>simplecorp/css/shortcodes/columns.css</em>].'),
|
370 |
|
|
'#default_value' => theme_get_setting('columns_enable','simplecorp'),
|
371 |
|
|
);
|
372 |
|
|
|
373 |
|
|
$form['mtt_settings']['tabs']['shortcodes']['boxes'] = array(
|
374 |
|
|
'#type' => 'fieldset',
|
375 |
|
|
'#title' => t('Boxes'),
|
376 |
|
|
'#collapsible' => TRUE,
|
377 |
|
|
'#collapsed' => TRUE,
|
378 |
|
|
);
|
379 |
|
|
|
380 |
|
|
$form['mtt_settings']['tabs']['shortcodes']['boxes']['boxes_enable'] = array(
|
381 |
|
|
'#type' => 'checkbox',
|
382 |
|
|
'#title' => t('Include css file for additional message styles [<em>simplecorp/css/shortcodes/boxes.css</em>].'),
|
383 |
|
|
'#default_value' => theme_get_setting('boxes_enable','simplecorp'),
|
384 |
|
|
);
|
385 |
|
|
|
386 |
|
|
$form['mtt_settings']['tabs']['shortcodes']['lists'] = array(
|
387 |
|
|
'#type' => 'fieldset',
|
388 |
|
|
'#title' => t('Lists'),
|
389 |
|
|
'#collapsible' => TRUE,
|
390 |
|
|
'#collapsed' => TRUE,
|
391 |
|
|
);
|
392 |
|
|
|
393 |
|
|
$form['mtt_settings']['tabs']['shortcodes']['lists']['lists_enable'] = array(
|
394 |
|
|
'#type' => 'checkbox',
|
395 |
|
|
'#title' => t('Include css file for additional lists styles [<em>simplecorp/css/shortcodes/lists.css</em>].'),
|
396 |
|
|
'#default_value' => theme_get_setting('lists_enable','simplecorp'),
|
397 |
|
|
);
|
398 |
|
|
|
399 |
|
|
$form['mtt_settings']['tabs']['breadcrumb'] = array(
|
400 |
|
|
'#type' => 'fieldset',
|
401 |
|
|
'#title' => t('Breadcrumb'),
|
402 |
|
|
'#collapsible' => TRUE,
|
403 |
|
|
'#collapsed' => FALSE,
|
404 |
|
|
);
|
405 |
|
|
|
406 |
|
|
$form['mtt_settings']['tabs']['breadcrumb']['breadcrumb_display'] = array(
|
407 |
|
|
'#type' => 'checkbox',
|
408 |
|
|
'#title' => t('Show breadcrumb'),
|
409 |
|
|
'#description' => t('Use the checkbox to enable or disable the breadcrumb.'),
|
410 |
|
|
'#default_value' => theme_get_setting('breadcrumb_display','simplecorp'),
|
411 |
|
|
);
|
412 |
|
|
|
413 |
|
|
$form['mtt_settings']['tabs']['breadcrumb']['breadcrumb_separator'] = array(
|
414 |
|
|
'#type' => 'textfield',
|
415 |
|
|
'#title' => t('Breadcrumb separator'),
|
416 |
|
|
'#default_value' => theme_get_setting('breadcrumb_separator','simplecorp'),
|
417 |
|
|
'#size' => 5,
|
418 |
|
|
'#maxlength' => 10,
|
419 |
|
|
);
|
420 |
|
|
|
421 |
|
|
$form['mtt_settings']['tabs']['support']['responsive'] = array(
|
422 |
|
|
'#type' => 'fieldset',
|
423 |
|
|
'#title' => t('Responsive'),
|
424 |
|
|
'#collapsible' => TRUE,
|
425 |
|
|
'#collapsed' => FALSE,
|
426 |
|
|
);
|
427 |
|
|
|
428 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_menu'] = array(
|
429 |
|
|
'#type' => 'fieldset',
|
430 |
|
|
'#title' => t('Responsive menu'),
|
431 |
|
|
'#collapsible' => TRUE,
|
432 |
|
|
'#collapsed' => TRUE,
|
433 |
|
|
);
|
434 |
|
|
|
435 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_state'] = array(
|
436 |
|
|
'#type' => 'checkbox',
|
437 |
|
|
'#title' => t('Enable responsive menu'),
|
438 |
|
|
'#description' => t('Use the checkbox to enable the plugin which transforms the Main menu of your site to a dropdown select list when your browser is at mobile widths.'),
|
439 |
|
|
'#default_value' => theme_get_setting('responsive_menu_state', 'simplecorp'),
|
440 |
|
|
);
|
441 |
|
|
|
442 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_switchwidth'] = array(
|
443 |
|
|
'#type' => 'textfield',
|
444 |
|
|
'#title' => t('Switch width (px)'),
|
445 |
|
|
'#description' => t('Set the width (in pixels) at which the Main menu of the site will change to a dropdown select list.'),
|
446 |
|
|
'#default_value' => theme_get_setting('responsive_menu_switchwidth', 'simplecorp'),
|
447 |
|
|
);
|
448 |
|
|
|
449 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_topoptiontext'] = array(
|
450 |
|
|
'#type' => 'textfield',
|
451 |
|
|
'#title' => t('Top option text'),
|
452 |
|
|
'#description' => t('Set the very first option display text.'),
|
453 |
|
|
'#default_value' => theme_get_setting('responsive_menu_topoptiontext', 'simplecorp'),
|
454 |
|
|
);
|
455 |
|
|
|
456 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_meta'] = array(
|
457 |
|
|
'#type' => 'checkbox',
|
458 |
|
|
'#title' => t('Add meta tags to support responsive design on mobile devices.'),
|
459 |
|
|
'#default_value' => theme_get_setting('responsive_meta','simplecorp'),
|
460 |
|
|
);
|
461 |
|
|
|
462 |
|
|
$form['mtt_settings']['tabs']['support']['responsive']['responsive_respond'] = array(
|
463 |
|
|
'#type' => 'checkbox',
|
464 |
|
|
'#title' => t('Add Respond.js [<em>simplecorp/js/respond.min.js</em>] JavaScript to add basic CSS3 media query support to IE 6-8.'),
|
465 |
|
|
'#default_value' => theme_get_setting('responsive_respond','simplecorp'),
|
466 |
|
|
'#description' => t('IE 6-8 require a JavaScript polyfill solution to add basic support of CSS3 media queries. Note that you should enable <strong>Aggregate and compress CSS files</strong> through <em>/admin/config/development/performance</em>.'),
|
467 |
|
|
);
|
468 |
|
|
|
469 |
|
|
} |