-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme-settings.php
More file actions
673 lines (667 loc) · 27.3 KB
/
theme-settings.php
File metadata and controls
673 lines (667 loc) · 27.3 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
<?php
// Pixture Reloaded
// Include Google Fonts Stuff
include_once(drupal_get_path('theme', 'adaptivetheme') . '/inc/google.web.fonts.inc');
// Set the correct selector automagically for Noggin header images
if (module_exists('noggin')) {
$default_var = variable_get('noggin:header_selector', 'div#header');
if ($default_var == 'div#header') {
variable_set('noggin:header_selector', '#header .header-inner');
}
}
/**
* @file theme-settings.php
*/
/**
* Implements hook_form_system_theme_settings_alter().
*
* @param $form['at']
* Nested array of form elements that comprise the form.
* @param $form['at']_state
* A keyed array containing the current state of the form.
*/
function pixture_reloaded_form_system_theme_settings_alter(&$form, &$form_state) {
$form['at']['font'] = array(
'#type' => 'fieldset',
'#title' => t('Fonts'),
'#description' => t('<h3>Fonts</h3><p>Here you can set a default font which will style all text. You can also set unique fonts for the page title, site name and slogan, and fonts for node, comment and block titles. First select the font type (Websafe or Google web font), then select the font family. You can preview Google web fonts here: <a href="!link" target="_blank">http://www.google.com/webfonts</a></p>', array('!link' => 'http://www.google.com/webfonts')),
);
$form['at']['font']['base_font_wrapper'] = array (
'#type' => 'fieldset',
'#title' => t('Default font'),
'#attributes' => array('class' => array('font-element-wrapper'))
);
$form['at']['font']['base_font_wrapper']['base_font_type'] = array (
'#type' => 'select',
'#title' => t('Type'),
'#options' => array (
'' => t('Websafe font'),
'gwf' => t('Google font'),
),
'#default_value' => theme_get_setting('base_font_type'),
);
$form ['at']['font']['base_font_wrapper']['base_font_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="base_font_type"]' => array (
'value' => ''
)
)
)
);
$form['at']['font']['base_font_wrapper']['base_font_container']['base_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('base_font'),
'#options' => array(
'bf-sss' => t('Trebuchet MS, Helvetica Neue, Arial, Helvetica, sans-serif'),
'bf-ssl' => t('Verdana, Geneva, Arial, Helvetica, sans-serif'),
'bf-a' => t('Arial, Helvetica, sans-serif'),
'bf-cc' => t('Calibri, Candara, Arial, Helvetica, sans-serif'),
'bf-m' => t('Segoe UI, Myriad Pro, Myriad, Arial, Helvetica, sans-serif'),
'bf-l' => t('Lucida Sans Unicode, Lucida Sans, Lucida Grande, Verdana, Geneva, sans-serif'),
'bf-ss' => t('Garamond, Perpetua, Times New Roman, serif'),
'bf-sl' => t('Georgia, Baskerville, Palatino, Palatino Linotype, Book Antiqua, Times New Roman, serif'),
'bf-ms' => t('Consolas, Monaco, Courier New, Courier, monospace'),
),
);
$form ['at'] ['font']['base_font_wrapper']['base_font_gwf_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="base_font_type"]' => array (
'value' => 'gwf'
)
)
)
);
$form['at']['font']['base_font_wrapper']['base_font_gwf_container']['base_font_gwf'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('base_font_gwf'),
'#options' => google_web_fonts_list_options(),
);
$form['at']['font']['site_name_font_wrapper'] = array (
'#type' => 'fieldset',
'#title' => t('Site Name'),
'#attributes' => array('class' => array('font-element-wrapper'))
);
$form['at']['font']['site_name_font_wrapper']['site_name_font_type'] = array (
'#type' => 'select',
'#title' => t('Type'),
'#options' => array (
'' => t('Websafe font'),
'gwf' => t('Google font'),
),
'#default_value' => theme_get_setting('site_name_font_type')
);
$form['at']['font']['site_name_font_wrapper']['site_name_font_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="site_name_font_type"]' => array (
'value' => ''
)
)
)
);
$form['at']['font']['site_name_font_wrapper']['site_name_font_container']['site_name_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('site_name_font'),
'#options' => array(
'snf-sss' => t('Candara, Trebuchet MS, Helvetica Neue, Arial, Helvetica, sans-serif'),
'snf-ssl' => t('Verdana, Geneva, Arial, Helvetica, sans-serif'),
'snf-a' => t('Arial, Helvetica, sans-serif'),
'snf-cc' => t('Calibri, Candara, Arial, Helvetica, sans-serif'),
'snf-m' => t('Segoe UI, Myriad Pro, Myriad, Arial, Helvetica, sans-serif'),
'snf-l' => t('Lucida Sans Unicode, Lucida Sans, Lucida Grande, Verdana, Geneva, sans-serif'),
'snf-ss' => t('Garamond, Perpetua, Times New Roman, serif'),
'snf-sl' => t('Georgia, Baskerville, Palatino, Palatino Linotype, Book Antiqua, Times New Roman, serif'),
'snf-ms' => t('Consolas, Monaco, Courier New, Courier, monospace'),
),
);
$form['at']['font']['site_name_font_wrapper']['site_name_font_gwf_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="site_name_font_type"]' => array (
'value' => 'gwf'
)
)
)
);
$form['at']['font']['site_name_font_wrapper']['site_name_font_gwf_container']['site_name_font_gwf'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('site_name_font_gwf'),
'#options' => google_web_fonts_list_options(),
);
$form['at']['font']['site_slogan_font_wrapper'] = array (
'#type' => 'fieldset',
'#title' => t('Site Slogan'),
'#attributes' => array('class' => array('font-element-wrapper'))
);
$form ['at']['font']['site_slogan_font_wrapper']['site_slogan_font_type'] = array (
'#type' => 'select',
'#title' => t('Type'),
'#options' => array (
'' => t('Websafe font'),
'gwf' => t('Google font'),
),
'#default_value' => theme_get_setting('site_slogan_font_type')
);
$form ['at']['font']['site_slogan_font_wrapper']['site_slogan_font_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="site_slogan_font_type"]' => array (
'value' => ''
)
)
)
);
$form['at']['font']['site_slogan_font_wrapper']['site_slogan_font_container']['site_slogan_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('site_slogan_font'),
'#options' => array(
'ssf-sss' => t('Candara, Trebuchet MS, Helvetica Neue, Arial, Helvetica, sans-serif'),
'ssf-ssl' => t('Verdana, Geneva, Arial, Helvetica, sans-serif'),
'ssf-a' => t('Arial, Helvetica, sans-serif'),
'ssf-cc' => t('Calibri, Candara, Arial, Helvetica, sans-serif'),
'ssf-m' => t('Segoe UI, Myriad Pro, Myriad, Arial, Helvetica, sans-serif'),
'ssf-l' => t('Lucida Sans Unicode, Lucida Sans, Lucida Grande, Verdana, Geneva, sans-serif'),
'ssf-ss' => t('Garamond, Perpetua, Times New Roman, serif'),
'ssf-sl' => t('Georgia, Baskerville, Palatino, Palatino Linotype, Book Antiqua, Times New Roman, serif'),
'ssf-ms' => t('Consolas, Monaco, Courier New, Courier, monospace'),
),
);
$form['at']['font']['site_slogan_font_wrapper']['site_slogan_font_gwf_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="site_slogan_font_type"]' => array (
'value' => 'gwf'
)
)
)
);
$form['at']['font']['site_slogan_font_wrapper']['site_slogan_font_gwf_container']['site_slogan_font_gwf'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('site_slogan_font_gwf'),
'#options' => google_web_fonts_list_options(),
);
$form['at']['font']['page_title_font_wrapper'] = array (
'#type' => 'fieldset',
'#title' => t('Page Title'),
'#attributes' => array('class' => array('font-element-wrapper'))
);
$form['at']['font']['page_title_font_wrapper']['page_title_font_type'] = array (
'#type' => 'select',
'#title' => t('Type'),
'#options' => array (
'' => t('Websafe font'),
'gwf' => t('Google font'),
),
'#default_value' => theme_get_setting('page_title_font_type')
);
$form['at']['font']['page_title_font_wrapper']['page_title_font_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="page_title_font_type"]' => array (
'value' => ''
)
)
)
);
$form['at']['font']['page_title_font_wrapper']['page_title_font_container']['page_title_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('page_title_font'),
'#options' => array(
'ptf-sss' => t('Candara, Trebuchet MS, Helvetica Neue, Arial, Helvetica, sans-serif'),
'ptf-ssl' => t('Verdana, Geneva, Arial, Helvetica, sans-serif'),
'ptf-a' => t('Arial, Helvetica, sans-serif'),
'ptf-cc' => t('Calibri, Candara, Arial, Helvetica, sans-serif'),
'ptf-m' => t('Segoe UI, Myriad Pro, Myriad, Arial, Helvetica, sans-serif'),
'ptf-l' => t('Lucida Sans Unicode, Lucida Sans, Lucida Grande, Verdana, Geneva, sans-serif'),
'ptf-ss' => t('Garamond, Perpetua, Times New Roman, serif'),
'ptf-sl' => t('Georgia, Baskerville, Palatino, Palatino Linotype, Book Antiqua, Times New Roman, serif'),
'ptf-ms' => t('Consolas, Monaco, Courier New, Courier, monospace'),
),
);
$form['at']['font']['page_title_font_wrapper']['page_title_font_gwf_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="page_title_font_type"]' => array (
'value' => 'gwf'
)
)
)
);
$form['at']['font']['page_title_font_wrapper']['page_title_font_gwf_container']['page_title_font_gwf'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('page_title_font_gwf'),
'#options' => google_web_fonts_list_options(),
);
// Node title font
$form['at']['font']['node_title_font_wrapper'] = array (
'#type' => 'fieldset',
'#title' => t('Node Title'),
'#attributes' => array('class' => array('font-element-wrapper'))
);
$form ['at']['font']['node_title_font_wrapper']['node_title_font_type'] = array (
'#type' => 'select',
'#title' => t('Type'),
'#options' => array (
'' => t('Websafe font'),
'gwf' => t('Google font'),
),
'#default_value' => theme_get_setting('node_title_font_type')
);
$form['at']['font']['node_title_font_wrapper']['node_title_font_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="node_title_font_type"]' => array (
'value' => ''
)
)
)
);
$form['at']['font']['node_title_font_wrapper']['node_title_font_container']['node_title_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('node_title_font'),
'#options' => array(
'ntf-sss' => t('Candara, Trebuchet MS, Helvetica Neue, Arial, Helvetica, sans-serif'),
'ntf-ssl' => t('Verdana, Geneva, Arial, Helvetica, sans-serif'),
'ntf-a' => t('Arial, Helvetica, sans-serif'),
'ntf-cc' => t('Calibri, Candara, Arial, Helvetica, sans-serif'),
'ntf-m' => t('Segoe UI, Myriad Pro, Myriad, Arial, Helvetica, sans-serif'),
'ntf-l' => t('Lucida Sans Unicode, Lucida Sans, Lucida Grande, Verdana, Geneva, sans-serif'),
'ntf-ss' => t('Garamond, Perpetua, Times New Roman, serif'),
'ntf-sl' => t('Georgia, Baskerville, Palatino, Palatino Linotype, Book Antiqua, Times New Roman, serif'),
'ntf-ms' => t('Consolas, Monaco, Courier New, Courier, monospace'),
),
);
$form['at']['font']['node_title_font_wrapper']['node_title_font_gwf_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="node_title_font_type"]' => array (
'value' => 'gwf'
)
)
)
);
$form['at']['font']['node_title_font_wrapper']['node_title_font_gwf_container']['node_title_font_gwf'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('node_title_font_gwf'),
'#options' => google_web_fonts_list_options(),
);
// Comment title font
$form['at']['font']['comment_title_font_wrapper'] = array (
'#type' => 'fieldset',
'#title' => t('Comment Title'),
'#attributes' => array('class' => array('font-element-wrapper'))
);
$form ['at']['font']['comment_title_font_wrapper']['comment_title_font_type'] = array (
'#type' => 'select',
'#title' => t('Type'),
'#options' => array (
'' => t('Websafe font'),
'gwf' => t('Google font'),
),
'#default_value' => theme_get_setting('comment_title_font_type')
);
$form['at']['font']['comment_title_font_wrapper']['comment_title_font_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="comment_title_font_type"]' => array (
'value' => ''
)
)
)
);
$form['at']['font']['comment_title_font_wrapper']['comment_title_font_container']['comment_title_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('comment_title_font'),
'#options' => array(
'ctf-sss' => t('Candara, Trebuchet MS, Helvetica Neue, Arial, Helvetica, sans-serif'),
'ctf-ssl' => t('Verdana, Geneva, Arial, Helvetica, sans-serif'),
'ctf-a' => t('Arial, Helvetica, sans-serif'),
'ctf-cc' => t('Calibri, Candara, Arial, Helvetica, sans-serif'),
'ctf-m' => t('Segoe UI, Myriad Pro, Myriad, Arial, Helvetica, sans-serif'),
'ctf-l' => t('Lucida Sans Unicode, Lucida Sans, Lucida Grande, Verdana, Geneva, sans-serif'),
'ctf-ss' => t('Garamond, Perpetua, Times New Roman, serif'),
'ctf-sl' => t('Georgia, Baskerville, Palatino, Palatino Linotype, Book Antiqua, Times New Roman, serif'),
'ctf-ms' => t('Consolas, Monaco, Courier New, Courier, monospace'),
),
);
$form ['at']['font']['comment_title_font_wrapper']['comment_title_font_gwf_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="comment_title_font_type"]' => array (
'value' => 'gwf'
)
)
)
);
$form['at']['font']['comment_title_font_wrapper']['comment_title_font_gwf_container']['comment_title_font_gwf'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('comment_title_font_gwf'),
'#options' => google_web_fonts_list_options(),
);
// Block title font
$form ['at']['font'] ['block_title_font_wrapper'] = array (
'#type' => 'fieldset',
'#title' => t('Block Title'),
'#attributes' => array('class' => array('font-element-wrapper'))
);
// Block title font
$form ['at']['font']['block_title_font_wrapper']['block_title_font_type'] = array (
'#type' => 'select',
'#title' => t('Type'),
'#options' => array (
'' => t('Websafe font'),
'gwf' => t('Google font'),
),
'#default_value' => theme_get_setting('block_title_font_type')
);
$form ['at']['font']['block_title_font_wrapper']['block_title_font_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="block_title_font_type"]' => array (
'value' => ''
)
)
)
);
$form['at']['font']['block_title_font_wrapper']['block_title_font_container']['block_title_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('block_title_font'),
'#options' => array(
'btf-sss' => t('Candara, Trebuchet MS, Helvetica Neue, Arial, Helvetica, sans-serif'),
'btf-ssl' => t('Verdana, Geneva, Arial, Helvetica, sans-serif'),
'btf-a' => t('Arial, Helvetica, sans-serif'),
'btf-cc' => t('Calibri, Candara, Arial, Helvetica, sans-serif'),
'btf-m' => t('Segoe UI, Myriad Pro, Myriad, Arial, Helvetica, sans-serif'),
'btf-l' => t('Lucida Sans Unicode, Lucida Sans, Lucida Grande, Verdana, Geneva, sans-serif'),
'btf-ss' => t('Garamond, Perpetua, Times New Roman, serif'),
'btf-sl' => t('Georgia, Baskerville, Palatino, Palatino Linotype, Book Antiqua, Times New Roman, serif'),
'btf-ms' => t('Consolas, Monaco, Courier New, Courier, monospace'),
),
);
$form ['at']['font']['block_title_font_wrapper']['block_title_font_gwf_container'] = array (
'#type' => 'container',
'#states' => array (
'visible' => array (
'select[name="block_title_font_type"]' => array (
'value' => 'gwf'
)
)
)
);
$form['at']['font']['block_title_font_wrapper']['block_title_font_gwf_container']['block_title_font_gwf'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#default_value' => theme_get_setting('block_title_font_gwf'),
'#options' => google_web_fonts_list_options(),
);
$form['at']['size'] = array(
'#type' => 'fieldset',
'#title' => t('Font Size'),
'#description' => t('<h3>Font Size</h3>'),
);
$form['at']['size']['font_size'] = array(
'#type' => 'select',
'#title' => t('Font Size'),
'#default_value' => theme_get_setting('font_size'),
'#description' => t('This sets a base font-size on the body element - all text will scale relative to this value.'),
'#options' => array(
'fs-smallest' => t('Smallest'),
'fs-small' => t('Small'),
'fs-medium' => t('Medium'),
'fs-large' => t('Large'),
'fs-largest' => t('Largest'),
),
);
$form['at']['headings'] = array(
'#type' => 'fieldset',
'#title' => t('Heading Styles'),
'#description' => t('<h3>Heading Styles</h3><p>Add extra styles to headings. Shadows ony work for CSS3 capable browsers such as Firefox, Safari, IE9 etc.</p>'),
);
$form['at']['headings']['headings_styles_caps'] = array(
'#type' => 'checkbox',
'#title' => t('All Caps'),
'#default_value' => theme_get_setting('headings_styles_caps'),
);
$form['at']['headings']['headings_styles_weight'] = array(
'#type' => 'checkbox',
'#title' => t('Font weight normal'),
'#default_value' => theme_get_setting('headings_styles_weight'),
);
$form['at']['headings']['headings_styles_shadow'] = array(
'#type' => 'checkbox',
'#title' => t('Text shadows'),
'#default_value' => theme_get_setting('headings_styles_shadow'),
);
$form['at']['corners'] = array(
'#type' => 'fieldset',
'#title' => t('Rounded corners'),
);
$form['at']['corners']['corner_radius'] = array(
'#type' => 'select',
'#title' => t('Corner radius'),
'#default_value' => theme_get_setting('corner_radius'),
'#description' => t('Change the corner radius for blocks, node teasers and comments.'),
'#options' => array(
'rc-0' => t('none'),
'rc-4' => t('4px'),
'rc-8' => t('8px'),
'rc-12' => t('12px'),
),
);
$form['at']['corners']['htc'] = array(
'#type' => 'fieldset',
'#title' => t('IE corners'),
);
$form['at']['corners']['htc']['ie_corners'] = array(
'#type' => 'checkbox',
'#title' => t('Enable rounded corners for Internet Explorer 6, 7 and 8'),
'#default_value' => theme_get_setting('ie_corners'),
'#description' => t('<p>NOTE: For this to work you must download install the <a href="!link">CSS3PIE</a> library to <code>sites/all/libraries/PIE</code>.</p><p>The path should be like this: <code>sites/all/libraries/PIE/PIE.htc</code></p><p>Then you MUST change the path in <strong>ie-htc.css</strong> to be absolute and match this path, e.g. <code>http://examplesite.com/sites/all/libraries/PIE/PIE.htc</code> - look in the <code>/css</code> folder to find this file.<p>Usage is at your own risk. Elements such as text inside other JS items such as drop menus or slideshows may be degraded in Internet Explorer.</p>', array('!link' => 'http://css3pie.com/')),
);
$form['at']['pagestyles'] = array(
'#type' => 'fieldset',
'#title' => t('Box Shadows and Textures'),
'#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>'),
);
$form['at']['pagestyles']['shadows'] = array(
'#type' => 'fieldset',
'#title' => t('Box Shadows'),
'#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>'),
);
$form['at']['pagestyles']['shadows']['box_shadows'] = array(
'#type' => 'radios',
'#title' => t('<strong>Apply a box shadow to the main content column</strong>'),
'#default_value' => theme_get_setting('box_shadows'),
'#options' => array(
'bs-n' => t('None'),
'bs-l' => t('Box shadow - light'),
'bs-d' => t('Box shadow - dark'),
),
);
$form['at']['pagestyles']['textures'] = array(
'#type' => 'fieldset',
'#title' => t('Textures'),
'#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>'),
);
$form['at']['pagestyles']['textures']['body_background'] = array(
'#type' => 'select',
'#title' => t('Select texture'),
'#default_value' => theme_get_setting('body_background'),
'#options' => array(
'bb-n' => t('None'),
'bb-h' => t('Hatch'),
'bb-vl' => t('Vertical lines'),
'bb-hl' => t('Horizontal lines'),
'bb-g' => t('Grid'),
'bb-d' => t('Dots'),
),
);
// Image styles
$form['at']['images'] = array(
'#type' => 'fieldset',
'#title' => t('Image Settings'),
'#description' => '<h3>Image Settings</h3>',
);
$form['at']['images']['alignment'] = array(
'#type' => 'fieldset',
'#title' => t('Image Alignment'),
);
$form['at']['images']['alignment']['image_alignment'] = array(
'#type' => 'radios',
'#title' => t('<strong>Image field alignment</strong>'),
'#default_value' => theme_get_setting('image_alignment'),
'#description' => t('This will only affect images added using an image-field. If you use another method such as embedding images directly into text areas this will not affect those images.'),
'#options' => array(
'ia-n' => t('None'),
'ia-l' => t('Left'),
'ia-c' => t('Centered'),
'ia-r' => t('Right'),
),
);
$form['at']['images']['captions'] = array(
'#type' => 'fieldset',
'#title' => t('Image Captions'),
'#description' => t('<strong>Display the image title as a caption</strong>'),
);
$form['at']['images']['captions']['image_caption_teaser'] = array(
'#type' => 'checkbox',
'#title' => t('Show captions on teaser view'),
'#default_value' => theme_get_setting('image_caption_teaser'),
);
$form['at']['images']['captions']['image_caption_full'] = array(
'#type' => 'checkbox',
'#title' => t('Show captions on full view'),
'#default_value' => theme_get_setting('image_caption_full'),
);
$form['at']['menus'] = array(
'#type' => 'fieldset',
'#title' => t('Menu Settings'),
);
$form['at']['menus']['mbp'] = array(
'#type' => 'fieldset',
'#title' => t('Menu Bar Alignment'),
'#description' => t('<h3>Menu Bar Alignment</h3><p>Position the Menu Bar left, center or right. This will position any menu (Superfish included) placed in the Menu Bar region.</p>'),
);
$form['at']['menus']['mbp']['menu_bar_position'] = array(
'#type' => 'radios',
'#title' => t('Set the position of the Menu bar'),
'#default_value' => theme_get_setting('menu_bar_position'),
'#options' => array(
'mbp-l' => t('Left (default)'),
'mbp-c' => t('Center'),
'mbp-r' => t('Right'),
),
);
$form['at']['menus']['mb'] = array(
'#type' => 'fieldset',
'#title' => t('Menu Bullets'),
'#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>'),
);
$form['at']['menus']['mb']['menu_bullets'] = array(
'#type' => 'select',
'#title' => t('Menu Bullets'),
'#default_value' => theme_get_setting('menu_bullets'),
'#options' => array(
'mb-n' => t('None'),
'mb-dd' => t('Drupal default'),
'mb-ah' => t('Arrow head'),
'mb-ad' => t('Double arrow head'),
'mb-ca' => t('Circle arrow'),
'mb-fa' => t('Fat arrow'),
'mb-sa' => t('Skinny arrow'),
),
);
} // endif styles
// Collapse all other forms.
$form['theme_settings']['#collapsible'] = TRUE;
$form['theme_settings']['#collapsed'] = TRUE;
$form['logo']['#collapsible'] = TRUE;
$form['logo']['#collapsed'] = TRUE;
$form['favicon']['#collapsible'] = TRUE;
$form['favicon']['#collapsed'] = TRUE;
// Noggin
if (module_exists('noggin')) {
// Rewrite the selector to suit Adaptivetheme and HTML5
$form['noggin']['settings']['header_selector']['#default_value'] = variable_get('noggin:header_selector', 'header#header');
// Extra fields for noggin settings
$form['atnoggin'] = array(
'#type' => 'fieldset',
'#title' => t('Header Image Extra Styles'),
'#description' => t('These settings extend the Noggin module Header Image Settings.'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#states' => array(
'invisible' => array(
'input[name="use_header"]' => array('checked' => FALSE),
),
),
);
$form['atnoggin']['noggin_image_vertical_alignment'] = array(
'#type' => 'radios',
'#title' => t('Image alignment - vertical'),
'#default_value' => theme_get_setting('noggin_image_vertical_alignment'),
'#options' => array(
't' => t('Top'),
'c' => t('Middle'),
'b' => t('Bottom'),
),
);
$form['atnoggin']['noggin_image_horizontal_alignment'] = array(
'#type' => 'radios',
'#title' => t('Image alignment - horizontal'),
'#default_value' => theme_get_setting('noggin_image_horizontal_alignment'),
'#options' => array(
'l' => t('Left'),
'r' => t('Right'),
'c' => t('Center'),
),
);
$form['atnoggin']['noggin_image_repeat'] = array(
'#type' => 'radios',
'#title' => t('Image repeat'),
'#default_value' => theme_get_setting('noggin_image_repeat'),
'#options' => array(
'ni-r-r' => t('Repeat'),
'ni-r-rx' => t('Horizontal repeat'),
'ni-r-ry' => t('Vertical repeat'),
'ni-r-nr' => t('No repeat'),
),
);
$form['atnoggin']['noggin_image_width'] = array(
'#type' => 'radios',
'#title' => t('Image width'),
'#default_value' => theme_get_setting('noggin_image_width'),
'#options' => array(
'ni-w-a' => t('Auto <span class="description">- use actual image dimensions</span>'),
'ni-w-ftw' => t('100% width <span class="description"> - stretch to fit, this only works in modern CSS3 capable browsers</span>'),
),
);
}