-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_skin.class.php
More file actions
1700 lines (1571 loc) · 68.3 KB
/
_skin.class.php
File metadata and controls
1700 lines (1571 loc) · 68.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
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* This file implements a class derived of the generic Skin class in order to provide custom code for
* the skin in this folder.
*
* This file is part of the b2evolution project - {@link http://b2evolution.net/}
*
* @package skins
* @subpackage bootstrap_blog
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
/**
* Specific code for this skin.
*
* ATTENTION: if you make a new skin you have to change the class name below accordingly
*/
class bricks_Skin extends Skin
{
/**
* Skin version
* @var string
*/
var $version = '6.0.1';
/**
* Do we want to use style.min.css instead of style.css ?
*/
var $use_min_css = 'check'; // true|false|'check' Set this to true for better optimization
// Note: we leave this on "check" in the bootstrap_blog_skin so it's easier for beginners to just delete the .min.css file
// But for best performance, you should set it to true.
/**
* Get default name for the skin.
* Note: the admin can customize it.
*/
function get_default_name()
{
return 'Bricks Skin';
}
/**
* Get default type for the skin.
*/
function get_default_type()
{
return 'normal';
}
/**
* What evoSkins API does has this skin been designed with?
*
* This determines where we get the fallback templates from (skins_fallback_v*)
* (allows to use new markup in new b2evolution versions)
*/
function get_api_version()
{
return 6;
}
/**
* What CSS framework does has this skin been designed with?
*
* This may impact default markup returned by Skin::get_template() for example
*/
function get_css_framework()
{
return 'bootstrap';
}
/**
* Get supported collection kinds.
*
* This should be overloaded in skins.
*
* For each kind the answer could be:
* - 'yes' : this skin does support that collection kind (the result will be was is expected)
* - 'partial' : this skin is not a primary choice for this collection kind (but still produces an output that makes sense)
* - 'maybe' : this skin has not been tested with this collection kind
* - 'no' : this skin does not support that collection kind (the result would not be what is expected)
* There may be more possible answers in the future...
*/
public function get_supported_coll_kinds()
{
$supported_kinds = array(
'main' => 'no',
'std' => 'yes', // Blog
'photo' => 'yes',
'forum' => 'no',
'manual' => 'maybe',
'group' => 'no', // Tracker
// Any kind that is not listed should be considered as "maybe" supported
);
return $supported_kinds;
}
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
* @return array
*/
function get_param_definitions( $params )
{
global $Blog;
// Load to use function get_available_thumb_sizes();
load_funcs( 'files/model/_image.funcs.php' );
load_class( 'widgets/model/_widget.class.php', 'ComponentWidget' );
$r = array_merge( array(
/* LAYOUT OPTIONS
* ========================================================================== */
'section_layout_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('General Settings'),
),
'layout' => array(
'label' => T_('Layout'),
'note' => '',
'defaultvalue' => 'single_column',
'options' => array(
'single_column' => T_('Single Column Large'),
'single_column_normal' => T_('Single Column'),
'single_column_narrow' => T_('Single Column Narrow'),
'single_column_extra_narrow' => T_('Single Column Extra Narrow'),
'left_sidebar' => T_('Left Sidebar'),
'right_sidebar' => T_('Right Sidebar'),
),
'type' => 'select',
),
'max_image_height' => array(
'label' => T_('Max image height'),
'note' => 'px. ' . T_('Set maximum height for post images.'),
'defaultvalue' => '',
'type' => 'integer',
'allow_empty' => true,
),
'font_size' => array(
'label' => T_('Font size'),
'note' => '',
'defaultvalue' => 'default',
'options' => array(
'default' => T_('Default').' (14px)',
'standard' => T_('Standard').' (16px)',
'medium' => T_('Medium').' (18px)',
'large' => T_('Large').' (20px)',
'very_large' => T_('Very large').' (22px)',
),
'type' => 'select',
),
'back_to_top' => array(
'label' => T_( 'Back To Top Button' ),
'note' => T_( 'Check to display "Back to Top" button.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'section_layout_end' => array(
'layout' => 'end_fieldset',
),
/* CUSTOM COLOR OPTIONS
* ========================================================================== */
'section_color_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Custom Settings'),
),
'page_bg_color' => array(
'label' => T_('Background color'),
'note' => T_('Default value is').' <code>#ffffff</code>.',
'defaultvalue' => '#ffffff',
'type' => 'color',
),
'page_text_color' => array(
'label' => T_('Content color'),
'note' => T_('Default value is').' <code>#7e8082</code>.',
'defaultvalue' => '#7e8082',
'type' => 'color',
),
'page_link_color' => array(
'label' => T_('Link color'),
'note' => T_('Default value is').' <code>#4b4e53</code>.',
'defaultvalue' => '#4b4e53',
'type' => 'color',
),
'page_hover_link_color' => array(
'label' => T_('Hover link color'),
'note' => T_('Default value is').' <code>#101010</code>.',
'defaultvalue' => '#101010',
'type' => 'color',
),
// 'color_heading' => array(
// 'label' => T_('Title Color'),
// 'note' => T_('Default value is').' <code>#4b4e53</code>.',
// 'defaultvalue' => '#4b4e53',
// 'type' => 'color',
// ),
'panel_color' => array(
'label' => T_( 'Panel Content Color' ),
'note' => T_( 'Default value is' ).' <code>#7e8082</code>.',
'type' => 'color',
'defaultvalue' => '#7e8082'
),
'bgimg_text_color' => array(
'label' => T_('Text color on background image'),
'note' => T_('Default value is').' <code>#ffffff</code>.',
'defaultvalue' => '#ffffff',
'type' => 'color',
),
'bgimg_link_color' => array(
'label' => T_('Link color on background image'),
'note' => T_('Default value is').' <code>#6cb2ef</code>.',
'defaultvalue' => '#6cb2ef',
'type' => 'color',
),
'bgimg_hover_link_color' => array(
'label' => T_('Hover link color on background image'),
'note' => T_('Default value is').' <code>#6cb2ef</code>.',
'defaultvalue' => '#6cb2ef',
'type' => 'color',
),
'section_color_end' => array(
'layout' => 'end_fieldset',
),
/* NAVIGATION OPTIONS
* ========================================================================== */
'section_nav_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Navigation Settings' ),
),
'nav_background' => array(
'label' => T_( 'Background Color' ),
'note' => T_( 'Default value is' ).' <code>#ffffff</code>.',
'type' => 'color',
'defaultvalue' => '#ffffff',
),
'nav_color_link' => array(
'label' => T_( 'Menu Links Color' ),
'note' => T_( 'Default value is' ).' <code>#4b4e53</code>.',
'type' => 'color',
'defaultvalue' => '#4b4e53'
),
'nav_color_link_hover' => array(
'label' => T_( 'Menu Links Hover Color' ),
'note' => T_( 'Default value is' ).' <code>#111111</code>.',
'type' => 'color',
'defaultvalue' => '#111111'
),
'nav_search_icon' => array(
'label' => T_( 'Enable Search Icon' ),
'note' => T_( 'Check to enable search icon in main menu.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'section_stickynav_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Sticky Navigation Settings' ),
),
'nav_sticky' => array(
'label' => T_( 'Enable Sticky Menu' ),
'note' => T_( 'Check to enable sticky (fixed) navigation when scrolling.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'nav_background_sticky' => array(
'label' => T_( 'Sticky Menu Background Color' ),
'note' => T_( 'Set menu background color on scroll when "Sticky menu" option is enabled.' ) . ' ' . T_( 'Default value is' ).' <code>#ffffff</code>.',
'type' => 'color',
'defaultvalue' => '#ffffff',
),
'nav_color_link_sticky' => array(
'label' => T_( 'Sticky Menu Links Color' ),
'note' => T_( 'Set menu links color on scroll when "Sticky menu" option is enabled.' ) . ' ' . T_( 'Default value is' ).' <code>#4b4e53</code>.',
'type' => 'color',
'defaultvalue' => '#4b4e53'
),
'nav_color_link_hover_sticky' => array(
'label' => T_( 'Sticky Menu Links Hover Color' ),
'note' => T_( 'Set menu links hover color on scroll when "Sticky menu" option is enabled.' ) . ' ' . T_( 'Default value is' ).' <code>#111111</code>.',
'type' => 'color',
'defaultvalue' => '#111111'
),
'section_stickynav_end' => array(
'layout' => 'end_fieldset',
),
'section_transparentnav_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Transparent Navigation Settings' ),
),
'nav_bg_transparent' => array(
'label' => T_( 'Transparent Background' ),
'note' => T_( 'Check to enable transparent menu background.'),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'nav_cl_transparent' => array(
'label' => T_( 'Transparent Menu Links Color' ),
'note' => T_( 'Default value is' ).' <code>#ffffff</code>.',
'type' => 'color',
'defaultvalue' => '#ffffff',
),
'nav_clh_transparent' => array(
'label' => T_( 'Transparent Menu Hover Links Color' ),
'note' => T_( 'Default value is' ).' <code>#ff3b3b</code>.',
'type' => 'color',
'defaultvalue' => '#ff3b3b',
),
'section_transparentnav_end' => array(
'layout' => 'end_fieldset',
),
'section_nav_end' => array(
'layout' => 'end_fieldset',
),
/* MAIN HEADER OPTIONS
* ========================================================================== */
'section_header_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Main Header Settings' ),
),
'header_padding_top' => array(
'label' => T_( 'Top Padding' ),
'note' => 'px. ' . T_( 'Default value is' ).' <code>320px</code>.',
'type' => 'integer',
'allow_empty' => false,
'defaultvalue' => '320',
'size' => 4,
),
'header_content_mode' => array(
'label' => T_( 'Header Content Mode' ),
'note' => T_( 'Default value is').' <code>' . T_( 'Floated Content' ) . '</code>.',
'type' => 'select',
'options' => array(
'col-md-6 float' => T_( 'Floated Content' ),
'col-md-12 center' => T_( 'Centered Content' ),
),
'defaultvalue' => 'col-md-6 float'
),
'header_breadcrumb' => array(
'label' => T_( 'Enable Breadcrumb' ),
'note' => T_( 'Check to enable Breadcrumb in Header.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'header_bg_image' => array(
'label' => T_('Background image'),
'note' => T_('Set background image for Main Header.'),
'type' => 'fileselect',
'initialize_with' => 'skins/bricks_skin/assets/images/header/header-6.jpg',
'thumbnail_size' => 'fit-320x320',
),
'header_bg_pos_x' => array(
'label' => T_( 'Horizontal Background Position' ),
'note' => '%. '. T_( 'Default value is' ).' <code>50%</code>.',
'type' => 'integer',
'allow_empty' => false,
'size' => 3,
'defaultvalue' => 50,
),
'header_bg_pos_y' => array(
'label' => T_( 'Vertical Background Position' ),
'note' => '%. '.T_( 'Default value is' ).' <code>50%</code>.',
'type' => 'integer',
'allow_empty' => false,
'size' => 3,
'defaultvalue' => 50,
),
'header_bg_attachment' => array(
'label' => T_( 'Background Attachment' ),
'note' => T_( '' ),
'type' => 'select',
'options' => array(
'initial' => T_( 'Default' ),
'fixed' => T_( 'Fixed' ),
),
'defaultvalue' => 'initial',
),
'header_overlay' => array(
'label' => T_( 'Enable Overlay Color' ),
'note' => T_( 'Check to enable overlay color for header section.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'header_color_overlay' => array(
'label' => T_( 'Overlay Color' ),
'note' => T_( 'Default value is' ).' <code>#000000</code>.',
'type' => 'color',
'defaultvalue' => '#000000'
),
'header_co_opacity' => array(
'label' => T_( 'Overlay Color Opacity' ),
'note' => T_( 'Default value is' ).' <code>0.5</code>.',
'type' => 'select',
'options' => array(
'0' => '0',
'0.05' => '0.5',
'0.1' => '0.1',
'0.15' => '0.15',
'0.2' => '0.2',
'0.25' => '0.25',
'0.3' => '0.3',
'0.35' => '0.35',
'0.4' => '0.4',
'0.45' => '0.45',
'0.5' => '0.5',
'0.55' => '0.55',
'0.6' => '0.6',
'0.65' => '0.65',
'0.7' => '0.7',
'0.75' => '0.75',
'0.8' => '0.8',
'0.85' => '0.85',
'0.9' => '0.9',
'0.95' => '0.95',
'1' => '0.1',
),
'defaultvalue' => '0.5'
),
'section_header_end' => array(
'layout' => 'end_fieldset',
),
/* HEADER PAGE
* ========================================================================== */
'section_header_page_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Custom Header Settings' ),
),
'header_page_bg' => array(
'label' => T_( 'Header Background' ),
'note' => T_( 'Default value is' ).' <code>#eeeeee</code>.',
'type' => 'color',
'defaultvalue' => '#eeeeee',
),
'header_page_color_content' => array(
'label' => T_( 'Header Content Color' ),
'note' => T_( 'Default value is' ).' <code>#4b4e53</code>.',
'type' => 'color',
'defaultvalue' => '#4b4e53'
),
'header_page_pt' => array(
'label' => T_( 'Padding Top' ),
'note' => T_( 'px. Default value is' ).' <code>80px</code>.',
'type' => 'text',
'defaultvalue' => '80',
'size' => 4,
),
'header_page_pb' => array(
'label' => T_( 'Padding Bottom' ),
'note' => T_( 'px. Default value is' ).' <code>60px</code>.',
'type' => 'text',
'defaultvalue' => '60',
'size' => 4,
),
'header_page_content_mode' => array(
'label' => T_( 'Header Content Mode' ),
'note' => T_( 'Default value is' ).' <code>' . T_( 'Floated Mode' ) . '</code>.',
'type' => 'select',
'options' => array(
'col-md-6 float' => T_( 'Floated Mode' ),
'col-md-12 center' => T_( 'Centered Mode' ),
),
'defaultvalue' => 'col-md-6 float'
),
'section_header_page_end' => array(
'layout' => 'end_fieldset',
),
/* POSTS SETTINGS
* ========================================================================== */
'section_posts_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Posts Settings' ).' (disp=posts)',
),
'posts_header' => array(
'label' => T_( 'Header Style' ),
'note' => T_( 'Default value is' ).' <code>' . T_( 'Main Header' ) . '</code>.',
'type' => 'select',
'options' => array(
'header_main' => T_( 'Main Header' ),
'header_page' => T_( 'Custom Header' ),
),
'defaultvalue' => 'header_main',
),
'posts_layout' => array(
'label' => T_('Page Layout'),
'note' => '',
'defaultvalue' => 'single_column',
'options' => array(
'single_column' => T_('Single Column Large'),
'single_column_normal' => T_('Single Column'),
'single_column_narrow' => T_('Single Column Narrow'),
'single_column_extra_narrow' => T_('Single Column Extra Narrow'),
'left_sidebar' => T_('Left Sidebar'),
'right_sidebar' => T_('Right Sidebar'),
),
'type' => 'select',
),
'category_list_filter' => array(
'label' => T_( 'Category List Plugin' ),
'note' => T_( 'Check to display a list of categories for filtering posts.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'posts_column' => array(
'label' => T_( 'Post Columns' ),
'note' => T_( 'Set the number of post columns.' ) . ' ' . T_( 'Default value is' ).' <code>3 Columns</code>.',
'type' => 'select',
'options' => array(
'one_column' => T_('1 Column'),
'two_columns' => T_('2 Columns'),
'three_columns' => T_('3 Columns'),
'four_columns' => T_('4 Columns'),
),
'defaultvalue' => 'three_columns'
),
'posts_padding_column' => array(
'label' => T_( 'Post Columns Padding' ),
'note' => 'px. ' . T_( 'Set the ammount of padding on each side of post columns.' ) . ' ' . T_( 'Default value is' ) . ' <code>15px</code>.',
'type' => 'integer',
'defaultvalue' => '15',
'size' => 3,
'allow_empty' => false,
),
'posts_border_color' => array(
'label' => T_( 'Posts Border Color' ),
'note' => T_( 'Default value is' ).' <code>#eeeeee</code>.',
'type' => 'color',
'defaultvalue' => '#eeeeee'
),
'posts_featured_bg' => array(
'label' => T_( 'Featured Posts Background Color' ),
'note' => T_( 'Default value is' ).' <code>#f5f5f5</code>.',
'type' => 'color',
'defaultvalue' => '#f5f5f5'
),
'posts_featured_color' => array(
'label' => T_( 'Featured Posts Content Color' ),
'note' => T_( 'Default value is' ).' <code>#7e8082</code>.',
'type' => 'color',
'defaultvalue' => '#7e8082'
),
'posts_featured_border' => array(
'label' => T_( 'Featured Posts Border Color' ),
'note' => T_( 'Default value is' ).' <code>#eeeeee</code>.',
'type' => 'color',
'defaultvalue' => '#eeeeee'
),
'posts_top_pagination' => array(
'label' => T_( 'Top Pagination' ),
'note' => T_( 'Check to enable top pagination.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'posts_pagination_align' => array(
'label' => T_( 'Pagination Alignment' ),
'note' => T_( 'Default value is' ).' <code>' . T_( 'Left' ) . '</code>.',
'type' => 'select',
'options' => array(
'left' => T_( 'Left' ),
'center' => T_( 'Center' ),
'right' => T_( 'Right' ),
),
'defaultvalue' => 'left',
),
'section_posts_end' => array(
'layout' => 'end_fieldset',
),
/* SINGLE SETTINGS
* ========================================================================== */
'section_single_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Single Post Settings' ).' (disp=single & disp=page)',
),
'single_header' => array(
'label' => T_( 'Header Style' ),
'note' => T_( 'Default value is' ).' <code>' . T_( 'Custom Header' ) . '</code>.',
'type' => 'select',
'options' => array(
'header_main' => T_( 'Main Header' ),
'header_page' => T_( 'Custom Header' ),
),
'defaultvalue' => 'header_page',
),
'single_border_color' => array(
'label' => T_( 'Border Color' ),
'note' => T_( 'Default value is' ).' <code>#eeeeee</code>.',
'type' => 'color',
'defaultvalue' => '#eeeeee'
),
'single_comments_bg' => array(
'label' => T_( 'Comments Background Color' ),
'note' => T_( 'Default value is' ).' <code>#eeeeee</code>.',
'type' => 'color',
'defaultvalue' => '#eeeeee',
),
'single_comment_color' => array(
'label' => T_( 'Comments Content Color' ),
'note' => T_( 'Default value is' ).' <code>#7e8082</code>.',
'type' => 'color',
'defaultvalue' => '#7e8082'
),
'section_single_end' => array(
'layout' => 'end_fieldset',
),
/* SEARCH PAGE SETTINGS
* ========================================================================== */
'section_search_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Search Page Settings' ).' (disp=search)',
),
'search_header' => array(
'label' => T_( 'Header Style' ),
'note' => T_( 'Default value is' ).' <code>' . T_( 'Custom Header' ) . '</code>.',
'type' => 'select',
'options' => array(
'header_main' => T_( 'Main Header' ),
'header_page' => T_( 'Custom Header' ),
),
'defaultvalue' =>'header_page',
),
'search_box' => array(
'label' => T_( 'Display Search field' ),
'note' => T_( 'Check to display search field.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'search_pagi_align' => array(
'label' => T_( 'Pagination Alignment' ),
'note' => T_( 'Default value is' ).' <code>' . T_( 'Center' ) . '</code>.',
'type' => 'select',
'options' => array(
'left' => T_( 'Left' ),
'center' => T_( 'Center' ),
'right' => T_( 'Right' ),
),
'defaultvalue' => 'center',
),
'section_search_end' => array(
'layout' => 'end_fieldset',
),
/* MEDIAIDX SETTINGS
* ========================================================================== */
'section_gallery_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Media Index Page Settings' ).' (disp=mediaidx)',
),
'gallery_header' => array(
'label' => T_( 'Header Style' ),
'note' => T_( 'Select header style for media index page.' ),
'type' => 'select',
'options' => array(
'header_main' => T_( 'Main Header' ),
'header_page' => T_( 'Custom Header' ),
),
'defaultvalue' => 'header_page'
),
'gallery_thumb' => array(
'label' => T_( 'Gallery Images Size' ),
'note' => T_( 'Select the size for gallery images.' ),
'type' => 'select',
'options' => get_available_thumb_sizes(),
'defaultvalue' => 'crop-480x320'
),
'gallery_column' => array(
'label' => T_( 'Gallery Columns' ),
'note' => T_( 'Set the number of columns for displaying Gallery Images.' ),
'type' => 'select',
'options' => array(
'one_column' => T_( '1 Column' ),
'two_columns' => T_( '2 Columns' ),
'three_columns' => T_( '3 Columns' ),
'four_columns' => T_( '4 Columns' ),
),
'defaultvalue' => 'three_columns'
),
'gallery_gutter' => array(
'label' => T_( 'Gallery Columns Gutter' ),
'note' => 'px. ' . T_( 'Default value is' ).' <code>10px</code>.',
'type' => 'text',
'defaultvalue' => '10',
'size' => 3,
),
'gallery_title' => array(
'label' => T_( 'Display Post Titles' ),
'note' => T_('Check to display post titles when hovering gallery images.'),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'section_gallery_end' => array(
'layout' => 'end_fieldset',
),
/* CONTACTS PAGE SETTINGS
* ========================================================================== */
'section_contact_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Contact Settings' ).' (disp=msgform)',
),
'contact_map_show' => array(
'label' => T_( 'Display Map' ),
'note' => T_( 'Check to display Google map.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'contact_map_lat' => array(
'label' => T_( 'Location Latitude' ),
'note' => T_( 'Set the latitude for the map. Example' ).' <code>48.8583861</code>.',
'type' => 'text',
'defaultvalue' => '48.8583861',
'size' => 50,
),
'contact_map_lng' => array(
'label' => T_( 'Location Longitude' ),
'note' => T_( 'Set hte longitude for the map. Example' ).' <code>2.2944542</code>.',
'type' => 'text',
'defaultvalue' => '2.2944542',
'size' => 50,
),
'contact_map_zoom' => array(
'label' => T_( 'Zoom Map' ),
'note' => T_( 'Default value is' ).' <code>16</code>.',
'type' => 'select',
'options' => array(
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
'7' => '7',
'8' => '8',
'9' => '9',
'10' => '10',
'11' => '11',
'12' => '12',
'13' => '13',
'14' => '14',
'15' => '15',
'16' => '16',
'17' => '17',
'18' => '18',
),
'defaultvalue' => 16,
),
'contact_map_drag' => array(
'label' => T_( 'Draggable Map' ),
'note' => T_( 'Check to enable draggable map.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'contact_map_scrol' => array(
'label' => T_( 'Scrollwheel Map' ),
'note' => T_( 'Check to enable scrollwheel zoom on the map.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'contact_map_doubleclick' => array(
'label' => T_( 'Disable Double Click Zoom' ),
'note' => T_( 'Check to disable double click zoom on the map.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'contact_map_fullscreen' => array(
'label' => T_( 'Full Screen Control' ),
'note' => T_( 'Check to enable full screen control on the map.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'contact_map_disableDefaultUI' => array(
'label' => T_( 'Disable Default UI' ),
'note' => T_( 'Check to disable Default UI on the map.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'contact_map_marker_show' => array(
'label' => T_( 'Show Map Marker' ),
'note' => T_( 'Check to display map marker.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'contact_map_marker_lat' => array(
'label' => T_( 'Marker Latitude Coordinates' ),
'note' => T_( 'Set the Latitude Coordinates for marker. Example' ).' <code>48.8583861</code>.',
'type' => 'text',
'defaultvalue' => '',
'size' => 50,
),
'contact_map_marker_lng' => array(
'label' => T_( 'Marker Longitude Coordinates' ),
'note' => T_( 'Set the Longitude Coordinates for marker. Example' ).' <code>2.2944542</code>.',
'type' => 'text',
'defaultvalue' => '',
'size' => 50,
),
'contact_map_marker_content' => array(
'label' => T_( 'Content Marker' ),
'note' => T_( 'Add content for the Marker.' ),
'type' => 'textarea',
),
'contact_info_show' => array(
'label' => T_( 'Enable Conctact Info' ),
'note' => T_( 'Check to display contact info section.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'contact_info_address' => array(
'label' => T_( 'Contact Address Field' ),
'note' => T_( 'Type your contact address.' ),
'type' => 'textarea',
'defaultvalue' => 'Your Address location',
),
'contact_info_email' => array(
'label' => T_( 'Contact Email Field' ),
'note' => T_( 'Type your contact email.' ),
'type' => 'text',
'defaultvalue' => 'youremail@example.com',
'size' => 30,
),
'contact_info_number' => array(
'label' => T_( 'Contact Number Field' ),
'note' => T_( 'Type your contact number.' ),
'type' => 'text',
'defaultvalue' => T_( '(+123) 4567 8910' ),
'size' => 30,
),
'contact_info_bg' => array(
'label' => T_( 'Contact Info Section Background Color' ),
'note' => T_( 'Default value is' ).' <code>#f5f5f5</code>.',
'type' => 'color',
'defaultvalue' => '#f5f5f5',
),
'contact_info_color' => array(
'label' => T_( 'Contact Info Section Content Color' ),
'note' => T_( 'Default value is' ).' <code>#7e8082</code>.',
'type' => 'color',
'defaultvalue' => '#7e8082'
),
'section_contact_end' => array(
'layout' => 'end_fieldset',
),
/* SPECIAL WIDGET SETTINGS
* ========================================================================== */
'section_special_widget_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Special Widget Settings' ),
),
'sw_rm_button' => array(
'label' => T_( 'List-type Widgets "Read More" button' ),
'note' => T_( 'Check to display the "Read more" button after content on all list-type widgets (Excerpt and Teaser)' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'sw_bg_wl' => array(
'label' => T_( 'Background RWD Widget List' ),
'note' => T_( 'Default value is' ).' <code>#fafafa</code>.',
'type' => 'color',
'defaultvalue' => '#fafafa'
),
'sw_tag_color' => array(
'label' => T_( 'Tag Cloud Elements Color' ),
'note' => T_( 'Default value is' ).' <code>#7e8082</code>.',
'type' => 'color',
'defaultvalue' => '#7e8082',
),
'sw_tag_border' => array(
'label' => T_( 'Tag Cloud Elements Border Color' ),
'note' => T_( 'Default value is' ).' <code>#eeeeee</code>.',
'type' => 'color',
'defaultvalue' => '#eeeeee',
),
'sw_tag_color_hover' => array(
'label' => T_( 'Tag Cloud Elements Hover Color' ),
'note' => T_( 'Default value is' ).' <code>#ffffff</code>.',
'type' => 'color',
'defaultvalue' => '#ffffff',
),
'sw_tag_bg_hover' => array(
'label' => T_( 'Tag Cloud Elements Hover Background Color' ),
'note' => T_( 'Default value is' ).' <code>#4b4e53</code>.',
'type' => 'color',
'defaultvalue' => '#4b4e53'
),
'section_special_widget_end' => array(
'layout' => 'end_fieldset'
),
/* FOOTER OPTIONS
* ========================================================================== */
'section_footer_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Footer Settings' ),
),
'footer_background' => array(
'label' => T_( 'Background Color' ),
'note' => T_( 'Default value is' ).' <code>#ffffff</code>.',
'type' => 'color',
'defaultvalue' => '#ffffff'
),
'footer_wd_content_color' => array(
'label' => T_( 'Content Color' ),
'note' => T_( 'Default value is' ).' <code>#7e8082</code>.',
'type' => 'color',
'defaultvalue' => '#7e8082',
),
'footer_wd_color_link' => array(
'label' => T_( 'Links Color' ),
'note' => T_( 'Default value is' ).' <code>#7e8082</code>.',
'type' => 'color',
'defaultvalue' => '#7e8082',
),
'footer_wd_color_lh' => array(
'label' => T_( 'Links Hover color' ),
'note' => T_( 'Default value is' ).' <code>#101010</code>.',
'type' => 'color',
'defaultvalue' => '#101010'
),
'footer_border_color' => array(
'label' => T_( 'Borders Color' ),
'note' => T_( 'Default value is' ).' <code>#eeeeee</code>.',
'type' => 'color',
'defaultvalue' => '#eeeeee',
),
'footer_widget' => array(
'label' => T_( 'Enable Footer Container' ),
'note' => T_( 'Check to enable footer container.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'footer_widgets_columns' => array(
'label' => T_( 'Number of Widget Columns' ),
'note' => T_( 'Default value is' ).' <code>'. T_( '2 Columns' ) .'</code>. '. T_( 'This works only if previous option is enabled.' ),
'type' => 'select',
'options' => array(
'col-md-12' => T_( '1 Column' ),
'col-md-6' => T_( '2 Columns' ),
'col-md-4' => T_( '3 Columns' ),
'col-md-3' => T_( '4 Columns' ),
),
'defaultvalue' => 'col-md-3',
),
'footer_wd_title_color' => array(
'label' => T_( 'Widget Titles Color' ),
'note' => T_( 'Default color is' ).' <code>#4b4e53</code>.',
'type' => 'color',
'defaultvalue' => '#4b4e53'
),
'footer_copyright' => array(
'label' => T_( 'Footer Copyright' ),
'note' => T_( 'Check to enable footer copyright text.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'footer_bottom_mode' => array(
'label' => T_( 'Copyright Text Position' ),
'note' => T_( 'Set the position of the copyright text and social links.' ),
'type' => 'select',
'options' => array(
'float' => T_( 'Default' ),
'center' => T_( 'Centered' ),
),
'defaultvalue' => 'float'
),
'footer_social_icon' => array(
'label' => T_( 'Enable Social Icon' ),
'note' => T_( 'Check to display social icons section.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'section_footer_end' => array(
'layout' => 'end_fieldset'
),
/* COLOR IMAGE ZOOM OPTIONS
* ========================================================================== */