-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_skin.class.php
More file actions
executable file
·1928 lines (1798 loc) · 94.6 KB
/
_skin.class.php
File metadata and controls
executable file
·1928 lines (1798 loc) · 94.6 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 evoskins
* @subpackage bootstrap_gallery_skin
*/
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 stain_Skin extends Skin
{
var $version = '1.0';
/**
* 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
/**
* Get default name for the skin.
* Note: the admin can customize it.
*/
function get_default_name()
{
return 'Stain 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;
}
/**
* 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
*/
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(
/* General Setting
* ========================================================================== */
'section_general_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'General Settings' ),
),
'color_scheme' => array(
'label' => T_( 'Color Scheme' ),
'note' => T_( 'This color will be used for links and clickable elements.' ) . ' ' . T_( 'Default value is' ).' <code>#18C54D</code>.',
'type' => 'color',
'defaultvalue' => '#18C54D',
),
'body_color' => array(
'label' => T_( 'Content Color' ),
'note' => T_( 'Default value is' ).' <code>#555555</code>.',
'type' => 'color',
'defaultvalue' => '#555555'
),
'body_background' => array(
'label' => T_( 'Background Color' ),
'note' => T_( 'Default value is' ).' <code>#f6f6f6</code>.',
'type' => 'color',
'defaultvalue' => '#F6F6F6',
),
'max_image_height' => array(
'label' => T_('Max Image Height'),
'note' => 'px. ' . T_('Set maximum height for post images.'),
'defaultvalue' => '',
'type' => 'integer',
'allow_empty' => true,
),
'banner_public' => array(
'label' => T_('Display status badges'),
'note' => T_('Display status badges for posts and comments.'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'back_to_top' => array(
'label' => T_( 'Back To Top Button' ),
'note' => T_( 'Check to display back to top button.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'section_general_end' => array(
'layout' => 'end_fieldset',
),
/* Header
* ========================================================================== */
'section_header_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Header Settings' ),
),
'header_height' => array(
'label' => T_( 'Minimum Height' ),
'note' => 'px. ' . T_( 'Set the minimum height of the header section. If the content is bigger, header height will adapt.' ),
'type' => 'integer',
'defaultvalue' => '320',
'size' => 3,
'allow_empty' => false,
),
'header_custom_bg' => array(
'label' => T_( 'Background Image' ),
'note' => T_( 'If this field is left empty, default image will be applied.' ),
'type' => 'fileselect',
'initialize_with' => 'skins/stain_skin/assets/images/header/header-5.jpg',
'thumbnail_size' => 'fit-320x320'
),
'header_bg_position_x' => array(
'label' => T_( 'Horizontal Background Position' ),
'note' => '%. '.T_('Horizontal position of the background image.').' '.T_('Default value is' ).' <code>50%</code>.',
'type' => 'integer',
'defaultvalue' => '50',
'size' => 3,
),
'header_bg_position_y' => array(
'label' => T_( 'Vertical Background Position' ),
'note' => '%. '.T_('Vertical position of the background image.').' '.T_('Default value is' ).' <code>50%</code>.',
'type' => 'integer',
'defaultvalue' => '50',
'size' => 3,
),
'header_bg_attach' => array(
'label' => T_( 'Background Behavior' ),
'note' => '',
'type' => 'radio',
'defaultvalue' => 'initial',
'options' => array(
array( 'initial', T_( 'Default' ) ),
array( 'fixed', T_( 'Fixed' ) ),
),
),
'header_overlay' => array(
'label' => T_( 'Header Overlay' ),
'note' => T_( 'Check if you want to display color overlay for header section.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'color_overlay' => array(
'label' => T_( 'Header Overlay Color' ),
'note' => T_( 'Default value is' ).' <code>#000000</code>.',
'type' => 'color',
'defaultvalue' => '#000000',
),
'opcity_cv' => array(
'label' => T_( 'Header Overlay Color Opacity' ),
'note' => T_( 'Default value is' ).' <code>0.2</code>.',
'type' => 'select',
'options' => array(
'0' => '0',
'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' => '1',
),
'defaultvalue' => '0.2',
),
/* HEADER CONTENT OPTIONS
* ========================================================================== */
'section_head_con_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Header Content Settings'),
),
'header_content_top' => array(
'label' => T_( 'Content Padding Top' ),
'note' => 'px. '.T_( 'Default value is' ).' <code>125px.</code>',
'type' => 'integer',
'allow_empty' => false,
'defaultvalue' => '125',
'size' => 5,
),
'header_content_align' => array(
'label' => T_( 'Header Content Alignment' ),
'note' => T_('Set the content alignment in the header section.'),
'type' => 'radio',
'defaultvalue' => 'center',
'options' => array(
array( 'left', T_( 'Left' ) ),
array( 'center', T_( 'Center' ) ),
array( 'right', T_( 'Right' ) ),
),
),
'header_color_content' => array(
'label' => T_( 'Header Content Color' ),
'note' => T_( 'Default value is' ).' <code>#FFFFFF</code>.',
'type' => 'color',
'defaultvalue' => '#ffffff',
),
'header_text_shadow_content' => array(
'label' => T_( 'Header Text Shadow' ),
'note' => T_( 'Check to display text-shadow on title and tagline in header.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'section_head_con_end' => array(
'layout' => 'end_fieldset',
),
'section_header_end' => array(
'layout' => 'end_fieldset'
),
/* Main Navigation
* ========================================================================== */
'section_nav_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Main Navigation Menu Settings').' ('. T_( 'All Pages' ) .')',
),
'nav_bg' => array(
'label' => T_( 'Background Color' ),
'note' => T_( 'Default value is' ).' <code>#1B1B1B</code>.',
'type' => 'color',
'defaultvalue' => '#1B1B1B',
'size' => 20,
),
'nav_sticky' => array(
'label' => T_( 'Sticky Menu' ),
'note' => T_( 'Check to enable "sticky menu" ability.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'nav_sticky_shadow' => array(
'label' => T_( 'Sticky Menu Shadow' ),
'note' => T_( 'Check to display shadow below the sticky menu for easier distinguish from the content.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'nav_align' => array(
'label' => T_( 'Menu Alignment' ),
'note' => T_(''),
'type' => 'radio',
'defaultvalue' => 'center',
'options' => array(
array( 'left', T_( 'Left' ) ),
array( 'center', T_( 'Center' ) ),
array( 'right', T_( 'Right' ) ),
),
),
'nav_hover_style' => array (
'label' => T_( 'Menu Links Hover Animation' ),
'note' => T_( 'Choose the animation that appears when hovering menu links.' ),
'type' => 'select',
'options' => array(
'1' => T_('Hover animation 1'),
'2' => T_('Hover animation 2'),
'3' => T_('Hover animation 3'),
'4' => T_('Hover animation 4'),
'5' => T_('Hover animation 5'),
'6' => T_('Hover animation 6'),
),
'defaultvalue' => '1',
),
'nav_color' => array(
'label' => T_( 'Menu Links Color' ),
'note' => T_( 'Leave empty for default value.' ),
'type' => 'color',
'defaultvalue' => '',
),
'nav_color_hov' => array(
'label' => T_( 'Menu Links Hover Color' ),
'note' => T_( 'Default value is' ).' <code>#FFFFFF</code>. ',
'type' => 'color',
'defaultvalue' => '#FFFFFF',
),
'section_nav_end' => array(
'layout' => 'end_fieldset',
),
/* GALLERY SETTING
* ========================================================================== */
'section_gallery_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Category Page Settings' ),
),
'cat_heading_bgc' => array(
'label' => T_( 'Category Name Background Color' ),
'note' => T_( 'Default value is' ).' <code>#FFFFFF</code>.',
'type' => 'color',
'defaultvalue' => '#FFFFFF',
),
'gallery_show' => array(
'label' => T_( 'Posts Per Row' ),
'note' => T_( 'Select the number of posts per row.' ),
'type' => 'select',
'options' => array(
'one_column' => '1 ' . T_( 'Post' ),
'two_column' => '2 ' . T_( 'Posts' ),
'three_column' => '3 ' . T_( 'Posts' ),
'four_column' => '4 ' . T_( 'Posts' ),
),
'defaultvalue' => 'three_column',
),
'gallery_gutter' => array(
'label' => T_( 'Space Between Posts' ),
'note' => 'px. '.T_('Default value is').' <code>10px</code>.',
'type' => 'integer',
'defaultvalue' => '10',
'size' => 5
),
'gallery_thumb_size' => array(
'label' => T_('Post Thumbnail Size'),
'note' => '',
'defaultvalue' => 'fit-1280x720',
'type' => 'select',
'options' => array(
'original' => 'Original',
'fit-1280x720' => 'fit-1280x720',
'crop-480x320' => 'crop-480x320',
),
),
'cat_post_style' => array(
'label' => T_( 'Post Layout' ),
'note' => '"'.T_('Default').'" '.T_( 'post layout places image above the title.').' "'.T_('Background Image').'" '.T_('post layout places image behind the post content.' ),
'type' => 'select',
'defaultvalue' => 'default',
'options' => array(
'default' => T_( 'Default' ),
'bg_img' => T_( 'Background Image' ),
)
),
'gallery_hover_style' => array(
'label' => T_( 'Post Image Hover Animation' ),
'note' => T_( 'Select the hover animation for post images.' ),
'type' => 'select',
'defaultvalue' => 'opacity',
'options' => array(
'none' => T_('None'),
'opacity' => T_('Opacity change'),
'zoom' => T_('Zoom'),
'flip' => T_('Flip'),
'right_left' => T_('Right to Left'),
'left_right' => T_('Left to Right'),
'bt_top' => T_('Bottom to Top'),
'top_bt' => T_('Top to Bottom'),
),
),
'cat_img_color_overlay' => array(
'label' => T_( 'Post Image Hover Overlay Color' ),
'note' => T_( 'Default value is').' <code>#FFFFFF</code>.',
'type' => 'color',
'defaultvalue' => '#FFFFFF'
),
'cat_opcity_overlay' => array(
'label' => T_( 'Post Image Hover Overlay Color Opacity' ),
'note' => T_( 'Default value is' ).' <code>0.5</code>.',
'type' => 'select',
'options' => array(
'0' => '0',
'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' => '1',
),
'defaultvalue' => '0.5',
),
'gallery_bg' => array(
'label' => T_( 'Post Card Background Color' ),
'note' => T_( 'Default value is').' <code>#FFFFFF</code>.',
'type' => 'color',
'defaultvalue' => '#FFFFFF'
),
'cat_color_content' => array(
'label' => T_( 'Post Card Content Color' ),
'note' => T_( 'Default value is').' <code>#777777</code>.',
'type' => 'color',
'defaultvalue' => '#777777'
),
'gallery_shadow' => array(
'label' => T_( 'Post Card Shadow' ),
'note' => T_( 'Check to enable shadow behind the post cards.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'cat_title_size' => array(
'label' => T_( 'Post Title Size' ),
'note' => 'px. '.T_( 'Default value is').' <code>28px</code>.',
'type' => 'integer',
'defaultvalue' => '28',
'size' => 3,
),
'cat_post_excerpt' => array(
'label' => T_( 'Post Excerpt' ),
'note' => T_( 'Check to enable post excerpts.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'cat_post_tags' => array(
'label' => T_( 'Post Tags' ),
'note' => T_( 'Check to enable post tags.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'cat_post_comment' => array(
'label' => T_( 'Post Comments Count' ),
'note' => T_( 'Check to enable post comments count.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'section_gallery_end' => array(
'layout' => 'end_fieldset',
),
/* POST Settings
* ========================================================================== */
'section_posts_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Posts Page Settings' ),
),
'posts_full_width' => array(
'label' => T_( 'Full Width Container' ),
'note' => T_( 'Check to make post container have full screen width.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'posts_thumb_size' => array(
'label' => T_('Thumbnail size'),
'note' => '',
'defaultvalue' => 'crop-480x320',
'size' => 10,
'type' => 'select',
'options' => array(
'fit-1280x720' => 'fit-1280x720',
'crop-480x320' => 'crop-480x320',
),
),
'posts_show' => array(
'label' => T_( 'Posts Per Column' ),
'note' => T_( '' ),
'type' => 'select',
'options' => array(
'one_column' => '1 ' . T_( 'Column' ),
'two_column' => '2 ' . T_( 'Columns' ),
'three_column' => '3 ' . T_( 'Columns' ),
),
'defaultvalue' => 'three_column'
),
'posts_list_space' => array(
'label' => T_( 'Post Padding' ),
'note' => 'px. '.T_( 'Default value is').' <code>0px</code>.',
'type' => 'integer',
'defaultvalue' => '4',
'size' => 3,
'allow_empty' => false,
),
'posts_effect' => array(
'label' => T_( 'Post Load Animation' ),
'note' => T_( 'Select the animation type for loading posts.' ),
'type' => 'select',
'options' => array(
'0' => T_('None'),
'1' => T_('Opacity'),
'2' => T_('Move Up'),
'3' => T_('Scale Up'),
'4' => T_('Fall Perspective'),
'5' => T_('Fly'),
'6' => T_('Flip'),
'7' => T_('Helix'),
'8' => T_('Pop Up'),
),
'defaultvalue' => '4',
),
'section_posts_end' => array(
'layout' => 'end_fieldset',
),
/* Single Settings
* ========================================================================== */
'section_single_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Single Post Settings' ),
),
'single_image_style' => array(
'label' => T_( 'Style Image Gallery' ),
'note' => T_( 'Change the style layout image gallery.' ),
'type' => 'select',
'defaultvalue' => 'grid',
'options' => array(
'grid' => T_('Grid'),
'masonry' => 'Masonry',
),
),
'single_image_grid' => array(
'label' => T_( 'Image Gallery Column' ),
'note' => T_( 'Change the gallery column for single Image Gallery' ),
'type' => 'select',
'options' => array(
'12' => T_( '1 Column' ),
'6' => T_( '2 Column' ),
'4' => T_( '3 Column' ),
'3' => T_( '4 Column' ),
),
'defaultvalue' => '4',
),
'single_thumb_size' => array(
'label' => T_('Thumbnail size for Single Disp'),
'note' => T_('If you select "Masonry" Style for image gallery, the recommended thumbnail size is').' <code>fit-1280x720</code>.',
'defaultvalue' => 'crop-480x320',
'options' => get_available_thumb_sizes(),
'type' => 'select',
),
'section_single_end' => array(
'layout' => 'end_fieldset',
),
/* Mediaidx
* ========================================================================== */
'section_media_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Photo Index Page Settings'),
),
'max_mediaidx_height' => array(
'label' => T_('Max image height'),
'note' => 'px. ' . T_('Set the maximum image height.'),
'defaultvalue' => '',
'type' => 'integer',
'allow_empty' => true,
),
'mediaidx_column' => array(
'label' => T_( 'Image columns count' ),
'note' => T_( 'Select the number of image columns.' ),
'type' => 'select',
'options' => array(
'one' => '1 ' . T_('Column'),
'two' => '2 ' . T_('Columns'),
'three' => '3 ' . T_('Columns'),
'four' => '4 ' . T_('Columns'),
),
'defaultvalue' => 'three',
),
'mediaidx_space' => array(
'label' => T_( 'Image padding' ),
'note' => 'px. ' . T_( 'Set the padding of images.' ) . T_('Default value is').' <code>10</code>. ('.T_('Also accepts value 0') . ')',
'type' => 'integer',
'defaultvalue' => '10',
'size' => '5'
),
'mediaidx_thumb_size' => array(
'label' => T_('Image size'),
'note' => '',
'type' => 'select',
'defaultvalue' => 'fit-1280x720',
'options' => array(
'original' => 'Original',
'fit-1280x720' => 'fit-1280x720',
'fit-720x500' => 'fit-720x250',
'crop-480x320' => 'crop-480x320',
'crop-256x256' => 'crop-256x256',
'crop-192x192' => 'crop-192x192',
'crop-128x128' => 'crop-128x128',
'crop-top-320x320' => 'crop-top-320x320',
'crop-top-200x200' => 'crop-top-200x200',
'crop-top-160x160' => 'crop-top-160x160',
),
),
'mediaidx_display' => array(
'label' => T_( 'Number of images' ),
'note' => T_( 'Set the number of images showing on this page.' ),
'type' => 'integer',
'defaultvalue' => '20',
'size' => 5,
),
'mediaidx_effect' => array(
'label' => T_( 'Image appearance animation' ),
'note' => T_( 'Select your favorite animation for loading the images.' ),
'type' => 'select',
'options' => array(
'1' => T_('Opacity'),
'2' => T_('Move Up'),
'3' => T_('Scale Up'),
'4' => T_('Fall Perspective'),
'5' => T_('Fly'),
'6' => T_('Flip'),
'7' => T_('Helix'),
'8' => T_('Pop Up'),
),
'defaultvalue' => '3',
),
'mediaidx_hover_style' => array(
'label' => T_( 'Image hover animation' ),
'note' => T_( 'Select animation for hovering images.' ),
'type' => 'select',
'defaultvalue' => 'flip',
'options' => array(
'none' => T_('None'),
'opacity' => T_('Opacity'),
'flip' => T_('Flip'),
'zoom' => T_('Zoom'),
'tb' => T_('Top to Bottom'),
'bt' => T_('Bottom to Top'),
'rl' => T_('Right to Left'),
'lr' => T_('Left to Right'),
)
),
'mediaidx_view_btn' => array(
'label' => T_( 'Display "View" button' ),
'note' => T_( 'Check to display "View" button when hovering images.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
'mediaidx_hover_bg' => array(
'label' => T_( 'Image hover overlay color' ),
'note' => T_( 'Default value is').' <code>#FFFFFF</code>.',
'type' => 'color',
'defaultvalue' => '#FFFFFF',
),
'mediaidx_overlay_opacity' => array(
'label' => T_( 'Image hover overlay color opacity' ),
'note' => T_( 'Default value is' ).' <code>0.5</code>.',
'type' => 'select',
'defaultvalue' => '0.5',
'options' => array(
'0' => '0',
'0.05' => '0.05',
'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',
)
),
'mediaidx_title' => array(
'label' => T_( 'Display image title' ),
'note' => T_( 'Check to display image title.' ),
'type' => 'checkbox',
'defaultvalue' => 0,
),
'mediaidx_title_bg' => array(
'label' => T_( 'Title Background Color' ),
'note' => T_( 'Default value is').' <code>#FFFFFF</code>.',
'type' => 'color',
'defaultvalue' => '#ffffff',
),
'mediaidx_title_color' => array(
'label' => T_( 'Title Color' ),
'note' => T_( 'Default value is').' <code>#555555</code>.',
'type' => 'color',
'defaultvalue' => '#555555'
),
'mediaidx_title_shadow' => array(
'label' => T_( 'Title section shadow' ),
'note' => T_( 'Check to display shadow on title section.' ),
'type' => 'checkbox',
'defaultvalue' => 1,
),
// 'mediaidx_by' => array(
// 'label' => T_( 'Order by' ),
// 'note' => T_( 'How to order the images.' ),
// 'type' => 'select',
// 'options' => get_available_sort_options(),
// 'defaultvalue' => 'datestart',
// ),
'mediaidx_dir' => array(
'label' => T_( 'Direction' ),
'note' => T_( 'Select the order of sorting the images.' ),
'type' => 'select',
'options' => array(
'ASC' => T_( 'Ascending' ),
'DESC' => T_( 'Descending' ),
),
'defaultvalue' => 'ASC',
),
'section_media_end' => array(
'layout' => 'end_fieldset',
),
/* Search Disp Settings
* ========================================================================== */
'section_search_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Search Page Settings' ),
),
'header_search_height' => array(
'label' => T_( 'Header Height' ),
'note' => 'px. ' . T_('Set the minimum height of the header section. If the content is bigger, header height will adapt.'). ' '.T_( 'Default value is').' 520px.',
'type' => 'integer',
'defaultvalue' => '520',
'size' => 6,
),
'header_search_bg' => array(
'label' => T_( 'Background Image' ),
'type' => 'fileselect',
'initialize_with' => 'skins/stain_skin/assets/images/header/header-8.jpg',
'thumbnail_size' => 'fit-320x320'
),
'header_search_bg_attach' => array(
'label' => T_( 'Background Behavior' ),
'note' => T_( '' ),
'type' => 'radio',
'defaultvalue' => 'initial',
'options' => array(
array( 'initial', T_( 'Default' ) ),
array( 'fixed', T_( 'Fixed' ) ),
),
),
'header_search_heading' => array(
'label' => T_( 'Heading Text' ),
'note' => T_( 'Set the Heading Text.' ),
'type' => 'text',
'size' => '60',
'defaultvalue' => T_('Search anyting you want.'),
),
'header_search_subhead' => array(
'label' => T_( 'Subheading Text' ),
'note' => T_( 'Set the Subheading text.' ),
'type' => 'text',
'size' => '60',
'defaultvalue' => T_('Just type any word in the search box.'),
),
'header_btn_search' => array(
'label' => T_( 'Search Button Text' ),
'note' => '',
'type' => 'text',
'size' => '20',
'defaultvalue' => T_('Search'),
),
'search_align_pagination' => array(
'label' => T_( 'Pagination Alignment' ),
'note' => '',
'type' => 'radio',
'options' => array(
array( 'left', T_('Left') ),
array( 'center', T_( 'Center' ) ),
array( 'right', T_( 'Right' ) ),
),
'defaultvalue' => 'center',
),
'section_search_end' => array(
'layout' => 'end_fieldset',
),
/* BACKGROUND CONTENT FOR LOGIN, LOSSPASWORD, REGISTER AND 404
* ========================================================================== */
'section_bg_content_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'User Control Pages' ).' ( disp=login | disp=lostpassword | disp=register | disp=404/403 )',
),
'bgc_style' => array(
'label' => T_( 'Background Style' ),
'note' => T_( 'Select the background style for content box.' ),
'type' => 'select',
'defaultvalue' => 'bg_img',
'options' => array(
'bg_img' => T_( 'Background Image' ),
'bg_color' => T_( 'Background Color' ),
),
),
'bgc_img_custom' => array(
'label' => T_( 'Background Image' ),
'type' => 'fileselect',
'initialize_with' => 'skins/stain_skin/assets/images/content/bgc-1.jpg',
'thumbnail_size' => 'fit-320x320'
),
'bgc_color' => array(
'label' => T_( 'Background Color' ),
'note' => T_( 'Default value is' ).' <code>#FFFFFF</code>.',
'type' => 'color',
'defaultvalue' => '#FFFFFF',
),
'section_bg_content_end' => array(
'layout' => 'end_fieldset',
),
/* BACKGROUND CONTENT FOR 403 AND 404
* ========================================================================== */
'section_bg_content1_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Error and Not Found Pages' ).' (disp=404/403)',
),
'bgc_img_overlay' => array(
'label' => T_( 'Color Overlay' ),
'note' => T_( 'Change color overlay if using image for content background.' ),
'type' => 'color',
'defaultvalue' => '#FFFFFF',
),
'bgc_overlay_opacity' => array(
'label' => T_( 'Opacity Color Overlay' ),
'note' => T_( 'Set opacity for color overlay.'),
'type' => 'select',
'defaultvalue' => '0.5',
'options' => array(
'0' => '0',
'0.05' => '0.05',
'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',
)
),
'bgc_color_content' => array(
'label' => T_( 'Change Content Color' ),
'note' => T_( 'Set the color of the content box.').' '.T_('Default color is').' <code>#555555</code>.',
'type' => 'color',
'defaultvalue' => '#555555',
),
'section_bg_content1_end' => array(
'layout' => 'end_fieldset',
),
/* Special Widget Setting
* ========================================================================== */
'section_special_widget_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Special Widget Settings' ).' (All Disps)',
),
'ltw_readmore' => 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' => 1,
),
'rwd_bgc_widget' => array(
'label' => T_( 'RWD Widgets Background Color' ),
'note' => T_( 'Default value is' ).' <code>#FAFAFA</code>',
'type' => 'color',
'defaultvalue' => '#FAFAFA'
),
'section_special_widget_end' => array(
'layout' => 'end_fieldset',
),
/* Footer Settings
* ========================================================================== */
'section_footer_start' => array(
'layout' => 'begin_fieldset',
'label' => T_( 'Footer Settings' ),
),
'footer_bg' => array(
'label' => T_( 'Background Color' ),
'note' => T_( 'Default value is').' <code>#0E1215</code>.',
'type' => 'color',
'defaultvalue' => '#0E1215',
),
'footer_color_content' => array(
'label' => T_( 'Content Color' ),
'note' => T_( 'Default value is').' <code>#ffffff</code>.',
'type' => 'color',
'defaultvalue' => '#FFFFFF',
),
'footer_color_title' => array(
'label' => T_( 'Titles Color' ),
'note' => T_( 'Default value is').' <code>#ffffff</code>.',
'type' => 'color',
'defaultvalue' => '#FFFFFF',
),
'footer_color_link' => array(
'label' => T_( 'Links Color' ),
'note' => T_( 'Default value is').' <code>#ffffff</code>.',
'type' => 'color',
'defaultvalue' => '#FFFFFF',
),
'footer_widget' => array(
'label' => T_( 'Enable Footer Widget' ),
'note' => T_( 'Check to Enable footer widget container.'),
'type' => 'checkbox',
'defaultvalue' => '0'
),
'footer_widget_column' => array(
'label' => T_( 'Number of widget columns' ),
'note' => T_( '' ),
'type' => 'select',
'defaultvalue' => '3',
'options' => array(
'1' => '1 ' . T_( 'Column' ),
'2' => '2 ' . T_( 'Columns' ),
'3' => '3 ' . T_( 'Columns' ),
'4' => '4 ' . T_( 'Columns' ),
),
),
'footer_bottom_align' => array(
'label' => T_( 'Footer Bottom Layout' ),
'note' => T_(''),
'type' => 'select',
'defaultvalue' => 'float',
'options' => array(