-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_skin.class.php
More file actions
1987 lines (1812 loc) · 100 KB
/
Copy path_skin.class.php
File metadata and controls
1987 lines (1812 loc) · 100 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 starter_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 business_Skin extends Skin
{
var $version = '6.3.5';
/**
* 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 'Business Blog 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' => 'partial',
'std' => 'yes', // Blog
'photo' => 'Yes',
'forum' => 'no',
'manual' => 'maybe',
'group' => 'maybe', // 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 )
{
// Load to use function get_available_thumb_sizes()
load_funcs( 'files/model/_image.funcs.php' );
$r = array_merge( array(
'section_general_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('General Settings')
),
'layout' => array(
'label' => T_('Layout Settings'),
'note' => '',
'type' => 'select',
'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'),
),
'defaultvalue' => 'right_sidebar',
),
'max_image_height' => array(
'label' => T_( 'Max Image Height' ),
'note' => 'px',
'defaultvalue' => '',
'type' => 'integer',
'allow_empty' => true,
),
'color_schemes' => array(
'label' => T_('Color Scheme'),
'note' => T_('Default color scheme is') . ' #1DC6DF.',
'defaultvalue' => '#1dc6df',
'type' => 'color',
),
'background_disp' => array(
'label' => T_('Background Color'),
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'single_bg' => array(
'label' => T_('Background color for') . ' disp=single ' . T_('and') . ' disp=page',
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'comments_bg' => array(
'label' => T_('Background color for') . ' disp=comments',
'note' => T_('Default color is') . ' #F7F7F7.',
'defaultvalue' => '#F7F7F7',
'type' => 'color',
),
'arcdir_bg' => array(
'label' => T_('Background color for') . ' disp=archive',
'note' => T_('Default color is') . ' #F7F7F7.',
'defaultvalue' => '#F7F7F7',
'type' => 'color',
),
'catdir_bg' => array(
'label' => T_('Background color for') . ' disp=category',
'note' => T_('Default color is') . ' #F7F7F7.',
'defaultvalue' => '#F7F7F7',
'type' => 'color',
),
'postidx_bg' => array(
'label' => T_('Background color for') . ' disp=postidx',
'note' => T_('Default color is') . ' #F7F7F7.',
'defaultvalue' => '#F7F7F7',
'type' => 'color',
),
'tags_bg' => array(
'label' => T_('Background color for') . ' disp=tags',
'note' => T_('Default color is') . ' #F7F7F7.',
'defaultvalue' => '#F7F7F7',
'type' => 'color',
),
'back_to_top' => array(
'label' => T_('Display Back To Top'),
'note' => T_('Check to display back to top button.'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
/*'bgimg_text_color' => array(
'label' => T_('Text Color on Background Image'),
'note' => T_('E-g: #00ff00 for green'),
'defaultvalue' => '#ffffff',
'type' => 'color',
),
'bgimg_link_color' => array(
'label' => T_('Link Color on Background Image'),
'note' => T_('E-g: #00ff00 for green'),
'defaultvalue' => '#ffffff',
'type' => 'color',
),
'bgimg_hover_link_color' => array(
'label' => T_('Hover Link Color on Background Image'),
'note' => T_('E-g: #00ff00 for green'),
'defaultvalue' => '#ffffff',
'type' => 'color',
),*/
'section_general_end' => array(
'layout' => 'end_fieldset',
),
/**
* ============================================================================
* Section Typograpy
* ============================================================================
*/
'section_typograpy_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Typograpy Settings')
),
'typograpy_fz' => array(
'label' => T_('Font Size'),
'note' => '',
'type' => 'radio',
'options' => array(
array( 'small', T_('Small') ),
array( 'normal', T_('Normal') ),
array( 'large', T_('Large') ),
),
'defaultvalue' => 'small',
),
'color_content' => array(
'label' => T_('Page Text Color'),
'note' => T_('Change page text color here. This field is left blank by default.'),
'defaultvalue' => '',
'allow_empty' => true,
'type' => 'color',
),
'section_typograpy_end' => array(
'layout' => 'end_fieldset',
),
// End Section Typograpy
/**
* ============================================================================
* Section Header Top Options
* ============================================================================
*/
'section_header_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Header Top Settings')
),
'ht_show' => array(
'label' => T_('Display Header Top'),
'note' => T_('Check to display special header section.'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'ht_contact_info' => array(
'label' => T_('Header Top Section Text'),
'defaultvalue' => 'Contact Us on 0800 123 4567 or [email protected]',
'note' => '<br />' . T_('Add your contact info'),
'type' => 'text',
'size' => '60'
),
'header_top_color' => array(
'label' => T_('Header Top Section Color'),
'note' => T_('Default color is') . ' #777777.',
'defaultvalue' => '#777777',
'type' => 'color',
),
'header_top_bg' => array(
'label' => T_('Header Top Section Background Color'),
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'section_header_end' => array(
'layout' => 'end_fieldset',
),
// End Section Header Options
/**
* ============================================================================
* Section MainHeader Options
* ============================================================================
*/
'section_main_header_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Main Header Settings')
),
'header_sticky' => array(
'label' => T_('Activate Sticky Main Header'),
'note' => T_('Check to activate sticky main header'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'site_tite_color' => array(
'label' => T_('Site Title Color'),
'note' => T_('Default color is') . ' #333333.',
'defaultvalue' => '#333333',
'type' => 'color',
),
'menu_link_color' => array(
'label' => T_('Menu Links Color'),
'note' => T_('Default color is') . ' #333333.',
'defaultvalue' => '#333333',
'type' => 'color',
),
'main_header_bg' => array(
'label' => T_('Main Header Background Color'),
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'section_main_header_end' => array(
'layout' => 'end_fieldset',
),
// End Section Main Header Options
/**
* ============================================================================
* Options Disp Front
* ============================================================================
*/
'section_disp_front_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Front Page Settings')
),
'layout_front' => array(
'label' => T_('Layout Settings'),
'note' => '',
'type' => 'select',
'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'),
),
'defaultvalue' => 'single_column',
),
'front_bg' => array(
'label' => T_('Background color for') . ' disp=front',
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'section_disp_front_end' => array(
'layout' => 'end_fieldset',
),
// End Section Typograpy
/**
* ============================================================================
* Options Disp Posts
* ============================================================================
*/
'section_disp_post_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Posts Page Settings')
),
'layout_posts' => array(
'label' => T_('Posts Page Layout'),
'note' => '',
'type' => 'select',
'options' => array(
'regular' => T_( 'Regular' ),
'mini_blog' => T_( 'Mini Blog Layout' ),
'masonry' => T_( 'Masonry Layout' ),
),
'defaultvalue' => 'regular',
),
'posts_masonry_column' => array(
'label' => T_( 'Masonry Layout Columns' ),
'note' => T_( 'Select the number of column for Masonry layout.' ),
'type' => 'select',
'options' => array(
'two_columns' => '2 '.T_( 'Columns' ),
'three_columns' => '3 '.T_( 'Columns' ),
'four_columns' => '4 '.T_( 'Columns' ),
),
'defaultvalue' => 'three_column'
),
'regular_post_bg' => array(
'label' => T_('Background Color for Regular Layout'),
'note' => T_('Default background color is') . ' #F7F7F7.',
'defaultvalue' => '#F7F7F7',
'type' => 'color',
),
'mini_blog_bg' => array(
'label' => T_('Background Color for Mini Blog'),
'note' => T_('Default background color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'post_info_color' => array(
'label' => T_('Post Info Content Color'),
'note' => T_('Default color is') . ' #999999.',
'defaultvalue' => '#999999',
'type' => 'color',
),
'post_info_link' => array(
'label' => T_('Post Info Link Color'),
'note' => T_('Default color is') . ' #333333.',
'defaultvalue' => '#333333',
'type' => 'color',
),
// 'pagination_top_show' => array(
// 'label' => T_('Show Pagination Top'),
// 'note' => T_('Check to display Pagination top'),
// 'defaultvalue' => 0,
// 'type' => 'checkbox',
// ),
'pagination_bottom_show' => array(
'label' => T_('Show Bottom Pagination'),
'note' => T_('Check to display Bottom Pagination.'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'pagination_align' => array(
'label' => T_('Pagination Alignment'),
'note' => T_('Select left, right or centered alignment for the pagination.'),
'defaultvalue' => 'center',
'type' => 'select',
'options' => array(
'left' => T_('Left'),
'center' => T_('Center'),
'right' => T_('Right'),
),
),
'section_disp_post_end' => array(
'layout' => 'end_fieldset',
),
// End Options Disp Posts
/**
* ============================================================================
* Tags Layout
* ============================================================================
*/
'section_tags_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Tags Page Settings')
),
'tags_color' => array(
'label' => T_('Post Tags Color'),
'note' => T_('Default color is') . ' #333333.',
'defaultvalue' => '#333333',
'type' => 'color',
),
'tags_bg_color' => array(
'label' => T_('Post Tags Background Color'),
'note' => T_('Default color is') . ' #F7F7F7.',
'defaultvalue' => '#F7F7F7',
'type' => 'color',
),
'tags_bdr_color' => array(
'label' => T_('Post Tags Border Color'),
'note' => T_('Default color is') . ' #E4E4E4.',
'defaultvalue' => '#E4E4E4',
'type' => 'color',
),
'section_tags_end' => array(
'layout' => 'end_fieldset',
),
// End Single Disp
/**
* ============================================================================
* Disp Single and Page Options
* ============================================================================
*/
// 'section_single_start' => array(
// 'layout' => 'begin_fieldset',
// 'label' => T_('Disp Single and Page Options')
// ),
//
// 'section_single_end' => array(
// 'layout' => 'end_fieldset',
// ),
// End Single Disp
/**
* ============================================================================
* Sidebar Widget Options
* ============================================================================
*/
'section_sidebar_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Sidebar Settings (All pages)')
),
'sidebar_title_widget' => array(
'label' => T_('Widget Title Color'),
'note' => T_('Default color is') . ' #000000.',
'defaultvalue' => '#000000',
'type' => 'color',
),
'sidebar_color_content' => array(
'label' => T_('Widget Content Color'),
'note' => T_('Default color is') . ' #333333.',
'defaultvalue' => '#333333',
'type' => 'color',
),
'sidebar_color_link' => array(
'label' => T_('Widget Link Color'),
'note' => T_('Default color is') . ' #333333.',
'defaultvalue' => '#333333',
'type' => 'color',
),
'sidebar_border_widget' => array(
'label' => T_('Widget Border Color'),
'note' => T_('Default color is') . ' #EEEEEE.',
'defaultvalue' => '#EEEEEE',
'type' => 'color',
),
'section_sidebar_end' => array(
'layout' => 'end_fieldset',
),
// End Section Sidebar Widget Options
/**
* ============================================================================
* Footer Options
* ============================================================================
*/
'section_footer_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Footer Settings')
),
'footer_dispay' => array(
'label' => T_('Display Footer Widget'),
'note' => T_('Check to display footer widget area with 4 columns.'),
'defaultvalue' => 0,
'type' => 'checkbox',
),
'footer_title_color' => array(
'label' => T_('Footer Widgets Title Color'),
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'footer_text_content' => array(
'label' => T_('Footer Content Color'),
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'footer_link_color' => array(
'label' => T_('Footer Links Color'),
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'footer_border_widget' => array(
'label' => T_('Footer Widgets Border Color'),
'note' => T_('Default color is') . ' #333333.',
'defaultvalue' => '#333333',
'type' => 'color',
),
'copyright_color' => array(
'label' => T_('Copyright Content Color'),
'note' => T_('Default color is') . ' #999999.',
'defaultvalue' => '#999999',
'type' => 'color',
),
'footer_bg' => array(
'label' => T_('Footer Background Color'),
'note' => T_('Default color is') . ' #222222.',
'defaultvalue' => '#222222',
'type' => 'color',
),
'section_footer_end' => array(
'layout' => 'end_fieldset',
),
// End Section Footer Top
/**
* ============================================================================
* Photo Index Options
* ============================================================================
*/
'section_mediaidx_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Media Post Settings') . ' (disp=mediaidx)'
),
'mediaidx_layout' => array(
'label' => T_( 'Layout settings' ),
'note' => '',
'type' => 'select',
'options' => array(
'no_sidebar' => T_( 'No Sidebar' ),
'left_sidebar' => T_( 'Left Sidebar' ),
'right_sidebar' => T_( 'Right Sidebar' ),
),
'defaultvalue' => 'no_sidebar',
),
'mediaidx_thumb_size' => array(
'label' => T_('Thumbnail Size for Media Index'),
'note' => '',
'defaultvalue' => 'fit-1280x720',
'options' => get_available_thumb_sizes(),
'type' => 'select',
),
'mediaidx_grid' => array(
'label' => T_('Column Count'),
'note' => '',
'defaultvalue' => 'two_column',
'type' => 'select',
'options' => array(
'one_column' => '1 '.T_('Column'),
'two_column' => '2 '.T_('Columns'),
'three_column' => '3 '.T_('Columns'),
),
),
'mediaidx_style' => array(
'label' => T_('Media Items Layout'),
'note' => '',
'defaultvalue' => 'default',
'type' => 'select',
'options' => array(
'default' => T_('Default'),
'box' => T_('Box Layout'),
),
),
'padding_column' => array(
'label' => T_('Image Padding'),
'note' => 'px.' . T_('efault padding is').' 15px',
'defaultvalue' => '15',
'type' => 'integer',
'allow_empty' => true,
),
'mediaidx_title' => array(
'label' => T_('Display Image Title'),
'note' => T_('Check to display title of the image.'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'mediaidx_title_style' => array(
'label' => T_('Title Style'),
'note' => T_('Select the title style for Photo Index Page Items.'),
'defaultvalue' => 'default',
'type' => 'select',
'options' => array(
'default' => T_('Default'),
'hover' => T_('Hover Style'),
),
),
'mediaidx_bg' => array(
'label' => T_('Background Color for').' disp=mediaidx',
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'mediaidx_bg_content' => array(
'label' => T_('Background Color for Media Index Page Content'),
'note' => T_('Default color is') . ' #FFFFFF.',
'defaultvalue' => '#FFFFFF',
'type' => 'color',
),
'mediaidx_title_color' => array(
'label' => T_('Media Index Page Title Color'),
'note' => T_('Default color is') . ' #222222.' . T_(' Activated when you use box style and display image title.'),
'defaultvalue' => '#222222',
'type' => 'color',
),
'section_mediaidx_end' => array(
'layout' => 'end_fieldset',
),
// End Photo Index Disp
/**
* ============================================================================
* Search Disp
* ============================================================================
*/
'section_search_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Search Page Settings'). ' (disp=search)'
),
'search_title' => array(
'label' => T_('Search Box Title'),
'defaultvalue' => T_('Search Results'),
'note' => T_('Change the title of the Search Box.'),
'type' => 'text',
'size' => '30'
),
'search_button_text' => array(
'label' => T_('Button Text'),
'defaultvalue' => T_('Search'),
'note' => T_('Change the text of the search button.'),
'type' => 'text',
'size' => '20'
),
'search_field' => array(
'label' => T_('Show Search Field'),
'note' => T_('Check to display search field.'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'search_text_info' => array(
'label' => T_('Search Info Text Color'),
'note' => T_('Default color is') . ' #999999.',
'defaultvalue' => '#999999',
'type' => 'color',
),
'search_bg' => array(
'label' => T_('Background Color'),
'note' => T_('Default background color is') . ' #F7F7F7.',
'defaultvalue' => '#F7F7F7',
'type' => 'color',
),
'section_search_end' => array(
'layout' => 'end_fieldset',
),
// End Search Disp
/**
* ============================================================================
* Color Box
* ============================================================================
*/
'section_colorbox_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Colorbox Image Zoom')
),
'colorbox' => array(
'label' => T_('Colorbox Image Zoom'),
'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'colorbox_vote_post' => array(
'label' => T_('Voting on Post Images'),
'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'colorbox_vote_post_numbers' => array(
'label' => T_('Display Votes'),
'note' => T_('Check to display number of likes and dislikes'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'colorbox_vote_comment' => array(
'label' => T_('Voting on Comment Images'),
'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'colorbox_vote_comment_numbers' => array(
'label' => T_('Display Votes'),
'note' => T_('Check to display number of likes and dislikes'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'colorbox_vote_user' => array(
'label' => T_('Voting on User Images'),
'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'colorbox_vote_user_numbers' => array(
'label' => T_('Display Votes'),
'note' => T_('Check to display number of likes and dislikes'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'section_colorbox_end' => array(
'layout' => 'end_fieldset',
),
// End Color Box
/**
* ============================================================================
* Username Option
* ============================================================================
*/
'section_username_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('Username Settings')
),
'bubbletip' => array(
'label' => T_('Username bubble tips'),
'note' => T_('Check to enable bubble tips on usernames'),
'defaultvalue' => 0,
'type' => 'checkbox',
),
'autocomplete_usernames' => array(
'label' => T_('Autocomplete usernames'),
'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'),
'defaultvalue' => 1,
'type' => 'checkbox',
),
'section_username_end' => array(
'layout' => 'end_fieldset',
),
// End Username Options
'section_access_start' => array(
'layout' => 'begin_fieldset',
'label' => T_('When access is denied or requires login... (disp=access_denied and disp=access_requires_login)')
),
'access_login_containers' => array(
'label' => T_('Display on login screen'),
'note' => '',
'type' => 'checklist',
'options' => array(
array( 'header', sprintf( T_('"%s" container'), NT_('Header') ), 1 ),
array( 'sidebar', sprintf( T_('"%s" container'), NT_('Sidebar') ), 0 ),
array( 'footer', sprintf( T_('"%s" container'), NT_('Footer') ), 1 ),
),
),
'section_access_end' => array(
'layout' => 'end_fieldset',
),
), parent::get_param_definitions( $params ) );
return $r;
}
/**
* Get ready for displaying the skin.
*
* This may register some CSS or JS...
*/
function display_init()
{
global $Messages, $debug, $disp;
// Request some common features that the parent function (Skin::display_init()) knows how to provide:
parent::display_init( array(
'jquery', // Load jQuery
'font_awesome', // Load Font Awesome (and use its icons as a priority over the Bootstrap glyphicons)
'bootstrap', // Load Bootstrap (without 'bootstrap_theme_css')
'bootstrap_evo_css', // Load the b2evo_base styles for Bootstrap (instead of the old b2evo_base styles)
'bootstrap_messages', // Initialize $Messages Class to use Bootstrap styles
'style_css', // Load the style.css file of the current skin
'colorbox', // Load Colorbox (a lightweight Lightbox alternative + customizations for b2evo)
'bootstrap_init_tooltips', // Inline JS to init Bootstrap tooltips (E.g. on comment form for allowed file extensions)
'disp_auto', // Automatically include additional CSS and/or JS required by certain disps (replace with 'disp_off' to disable this)
) );
//Include script and styles for Sticky Menu
require_js( 'assets/js/jquery.sticky.js', 'relative' );
if ( $disp == 'mediadix' || $this->get_setting( 'layout_posts' ) == 'masonry' ) {
require_js( 'assets/js/masonry.pkgd.min.js', 'relative' );
require_js( 'assets/js/imagesloaded.pkgd.min.js', 'relative' );
}
// Include Masonry Grind for MediaIdx
if ( $disp == 'mediaidx' ) {
add_js_headline("
jQuery( document ).ready( function($) {
$('.evo_image_index').imagesLoaded().done( function( instance ) {
$('.evo_image_index').masonry({
// options
itemSelector: '.grid-item',
});
});
});
");
}
require_js( 'assets/js/scripts.js', 'relative' );
// Skin specific initializations:
// Add Custome CSS
$custom_css = '';
/**
* ============================================================================
* This is Title
* ============================================================================
*/
if ( $bg_color = $this->get_setting( 'background_disp' ) ) {
$custom_css .= '
#skin_wrapper
{ background-color: '. $bg_color .' }
';
}
/**
* ============================================================================
* General Settings
* ============================================================================
*/
if ( $color = $this->get_setting( 'color_schemes' ) ) {
// Disp Posts
$custom_css .= '
a, a:hover, a:focus, a:active,
#main-header .primary-nav .nav a:hover, #main-header .primary-nav .nav a:active, #main-header .primary-nav .nav a:focus,
#main-header .primary-nav .nav > li.active a,
#main-content .evo_post_title h1 a:hover, #mini-blog .evo_post_title h1 a:hover, #main-content .evo_post_title h2 a:hover, #mini-blog .evo_post_title h2 a:hover, #main-content .evo_post_title h3 a:hover, #mini-blog .evo_post_title h3 a:hover, #main-content .evo_post_title h1 a:active, #mini-blog .evo_post_title h1 a:active, #main-content .evo_post_title h2 a:active, #mini-blog .evo_post_title h2 a:active, #main-content .evo_post_title h3 a:active, #mini-blog .evo_post_title h3 a:active, #main-content .evo_post_title h1 a:focus, #mini-blog .evo_post_title h1 a:focus, #main-content .evo_post_title h2 a:focus, #mini-blog .evo_post_title h2 a:focus, #main-content .evo_post_title h3 a:focus, #mini-blog .evo_post_title h3 a:focus,
#main-content .evo_post .small.text-muted a:hover, #mini-blog .evo_post .small.text-muted a:hover, #main-content .evo_post .small.text-muted a .glyphicon:hover, #mini-blog .evo_post .small.text-muted a .glyphicon:hover,
.pagination li a,
#main-sidebar .evo_widget a:hover, #main-sidebar .evo_widget a:active, #main-sidebar .evo_widget a:focus,
#main-sidebar .widget_plugin_evo_Calr .bCalendarTable td a,
#main-footer .widget_footer .evo_widget a:hover, #main-footer .widget_footer .evo_widget a:active, #main-footer .widget_footer .evo_widget a:focus,
#main-footer .widget_footer .widget_plugin_evo_Calr .bCalendarTable tbody a, #main-footer .widget_footer .widget_plugin_evo_Calr tfoot a,
.disp_catdir #main-content .widget_core_coll_category_list a:hover, .disp_catdir #main-content .widget_core_coll_category_list a:active, .disp_catdir #main-content .widget_core_coll_category_list a:focus,
.disp_arcdir #main-content .widget_plugin_achive a:hover, .disp_arcdir #main-content .widget_plugin_achive a:focus, .disp_arcdir #main-content .widget_plugin_achive a:active,
.disp_postidx #main-content .widget_core_coll_post_list a:hover, .disp_postidx #main-content .widget_core_coll_post_list a:focus, .disp_postidx #main-content .widget_core_coll_post_list a:active,
.disp_sitemap .content_sitemap .evo_widget a:hover, .disp_sitemap .content_sitemap .evo_widget a:active, .disp_sitemap .content_sitemap .evo_widget a:focus,
.disp_posts .evo_featured_post header .small.text-muted a:hover, .disp_posts .evo_featured_post header .small.text-muted a:active, .disp_posts .evo_featured_post header .small.text-muted a:focus,
.widget_core_coll_comment_list ul li:hover a::after
{ color: '.$color.' }
#main-header .primary-nav .nav a::after,
.disp_posts .evo_intro_post,
.disp_posts #main-content .posts_date,
.disp_posts #main-content .timeline,
#main-content .evo_post .evo_image_block a::before, #mini-blog .evo_post .evo_image_block a::before, #main-content .evo_post .evo_post_gallery__image a::before, #mini-blog .evo_post .evo_post_gallery__image a::before,
#main-content .evo_post .evo_post__full_text .evo_post_more_link a:hover, #mini-blog .evo_post .evo_post__full_text .evo_post_more_link a:hover, #main-content .evo_post .evo_post__excerpt_text .evo_post_more_link a:hover, #mini-blog .evo_post .evo_post__excerpt_text .evo_post_more_link a:hover,
.pagination .active span, .pagination .active span:hover,
.pagination li a:hover, .pagination li span:hover, .pagination li a:focus, .pagination li span:focus,
#main-content .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:hover, #mini-blog .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:hover, #main-content .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:active, #mini-blog .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:active, #main-content .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:focus, #mini-blog .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:focus,
#main-sidebar .widget_core_coll_search_form .compact_search_form .search_submit,
#main-sidebar .widget_core_coll_media_index .widget_flow_blocks > div a::before,
#main-sidebar .widget_core_coll_tag_cloud .tag_cloud a:hover, #main-sidebar .widget_core_coll_tag_cloud .tag_cloud a:active, #main-sidebar .widget_core_coll_tag_cloud .tag_cloud a:focus,
#main-sidebar .widget_plugin_evo_Calr .bCalendarTable #bCalendarToday,
#main-footer .widget_footer .widget_core_coll_tag_cloud .tag_cloud a:hover, #main-footer .widget_footer .widget_core_coll_tag_cloud .tag_cloud a:active, #main-footer .widget_footer .widget_core_coll_tag_cloud .tag_cloud a:focus,
#main-footer .widget_footer .widget_plugin_evo_Calr .bCalendarTable #bCalendarToday,
.widget_core_coll_search_form .compact_search_form .search_submit,
.widget_core_coll_media_index .widget_flow_blocks > div a::before,
.close-menu, .cd-top,
.disp_tags #main-content .tag_cloud a:hover, .disp_tags #main-content .tag_cloud a:active, .disp_tags #main-content .tag_cloud a:focus,
.disp_sitemap .content_sitemap .title_widgets::after,
.posts_mini_layout #mini-blog .msg_nothing,
.disp_front #main-content .widget_core_coll_featured_intro .jumbotron,
.disp_posts .evo_featured_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:hover, .disp_posts .evo_featured_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:active, .disp_posts .evo_featured_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:focus,
#main-content .post_tags a:hover, #mini-blog .post_tags a:hover, #main-content .post_tags a:active, #mini-blog .post_tags a:active, #main-content .post_tags a:focus, #mini-blog .post_tags a:focus,
.disp_mediaidx #main-mediaidx .widget_core_coll_media_index .evo_image_index li figure.box.title.title_overlay .note,
.disp_mediaidx #main-mediaidx .widget_core_coll_media_index .evo_image_index .title_overlay .note,
.disp_posts .evo_featured_post,
.posts_mini_layout #mini-blog .evo_featured_post .post_tags a:hover,
.posts_mini_layout #mini-blog .evo_featured_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:hover,
.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover, .evo_form__thread .control-buttons .btn-primary,
.skin-form .panel-heading, .evo_panel__login .btn.btn-success, .evo_panel__lostpass .btn.btn-success, .evo_panel__register .btn.btn-success, .evo_panel__activation .btn.btn-success,
.evo_form .submit, .detail_threads .results .panel-heading, .detail_messages .evo_private_messages_list .panel .panel-heading, .detail_messages .evo_private_messages_list .panel .SaveButton.btn-primary, .detail_contacts .results .panel-heading, .detail_contacts .form_send_contacts .btn-default:hover, .detail_contacts .form_send_contacts .btn-default:active, .detail_contacts .form_send_contacts .btn-default:focus, .detail_contacts .form_add_contacts .SaveButton
{ background-color: '.$color.'; }
.pagination .active span, .pagination .active span:hover,
.pagination li a:hover, .pagination li span:hover, .pagination li a:focus, .pagination li span:focus,
.posts_mini_layout #mini-blog .pagination li a, .posts_mini_layout #mini-blog .pagination li span,
#main-content .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:hover, #mini-blog .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:hover, #main-content .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:active, #mini-blog .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:active, #main-content .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:focus, #mini-blog .evo_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:focus,
#main-sidebar .widget_core_coll_search_form .compact_search_form .search_submit,
#main-sidebar .widget_core_coll_search_form .compact_search_form .search_field,
#main-sidebar .widget_core_coll_tag_cloud .tag_cloud a:hover, #main-sidebar .widget_core_coll_tag_cloud .tag_cloud a:active, #main-sidebar .widget_core_coll_tag_cloud .tag_cloud a:focus,
#main-footer .widget_footer .widget_plugin_evo_Calr .bCalendarTable #bCalendarToday,
.widget_core_coll_search_form .compact_search_form .search_submit,
#main-sidebar input[type="email"]:focus, #main-sidebar input[type="number"]:focus, #main-sidebar input[type="password"]:focus, #main-sidebar input[type="tel"]:focus, #main-sidebar input[type="url"]:focus, #main-sidebar input[type="text"]:focus,
.disp_tags #main-content .tag_cloud a:hover, .disp_tags #main-content .tag_cloud a:active, .disp_tags #main-content .tag_cloud a:focus,
.disp_posts .evo_featured_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:hover, .disp_posts .evo_featured_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:active, .disp_posts .evo_featured_post .evo_post__excerpt_text .evo_post__excerpt_more_link a:focus,
#main-content .post_tags a:hover, #mini-blog .post_tags a:hover, #main-content .post_tags a:active, #mini-blog .post_tags a:active, #main-content .post_tags a:focus, #mini-blog .post_tags a:focus,
.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover,
.skin-form, .evo_panel__login .form_text_input, .evo_panel__lostpass .form_text_input, .evo_panel__register .form_text_input, .evo_panel__activation .form_text_input, .evo_panel__login .btn.btn-success, .evo_panel__lostpass .btn.btn-success, .evo_panel__register .btn.btn-success, .evo_panel__activation .btn.btn-success,
#login_form input:focus:invalid:focus, #login_form select:focus:invalid:focus, #login_form textarea:focus:invalid:focus,
.evo_panel__login .form_text_input:focus, .evo_panel__lostpass .form_text_input:focus, .evo_panel__register .form_text_input:focus, .evo_panel__activation .form_text_input:focus,
.evo_form__thread .control-buttons .btn-primary, .evo_form__thread:hover,
.evo_form .form_text_input:hover, .evo_form .form_textarea_input:hover, .evo_form .form_text_input:active, .evo_form .form_textarea_input:active, .evo_form .form_text_input:focus, .evo_form .form_textarea_input:focus,
.evo_form .submit,
.evo_form__thread .form-control:hover, .evo_form__thread .token-input-list-facebook:hover, .evo_form__thread .form-control:focus, .evo_form__thread .token-input-list-facebook:focus, .evo_form__thread .form-control:active, .evo_form__thread .token-input-list-facebook:active, .detail_threads .results,
.detail_threads .results .form_text_input:hover, .detail_threads .results .form_text_input:active, .detail_threads .results .form_text_input:focus, .detail_messages .evo_private_messages_list .panel, .detail_messages .evo_private_messages_list .panel .SaveButton.btn-primary, .detail_messages .evo_private_messages_list .results .form_text_input:focus, .detail_messages .evo_private_messages_list .results .form_text_input:hover, .detail_messages .evo_private_messages_list .results .form_text_input:active, .detail_contacts .results, .detail_contacts .results .form_text_input:hover, .detail_contacts .results .form_text_input:active, .detail_contacts .results .form_text_input:focus, .detail_contacts .form_send_contacts .btn-default, .detail_contacts .form_add_contacts .input-sm, .detail_contacts .form_add_contacts .SaveButton
{ border-color: '.$color.'; }
.page_title,
.disp_sitemap .content_sitemap .title_widgets
{ border-bottom-color: '.$color.'; }
';
// Disp Single
$custom_css .= '
.disp_single #main-content .pager .previous a:hover, .disp_page #main-content .pager .previous a:hover, .disp_single #main-content .pager .next a:hover, .disp_page #main-content .pager .next a:hover, .disp_single #main-content .pager .previous a:active, .disp_page #main-content .pager .previous a:active, .disp_single #main-content .pager .next a:active, .disp_page #main-content .pager .next a:active, .disp_single #main-content .pager .previous a:focus, .disp_page #main-content .pager .previous a:focus, .disp_single #main-content .pager .next a:focus, .disp_page #main-content .pager .next a:focus,
.disp_single #main-content .evo_post .single_tags a:hover, .disp_page #main-content .evo_post .single_tags a:hover, .disp_single #main-content .evo_post .single_tags a:active, .disp_page #main-content .evo_post .single_tags a:active, .disp_single #main-content .evo_post .single_tags a:focus, .disp_page #main-content .evo_post .single_tags a:focus,
.disp_single #main-content .evo_post #feedbacks .evo_comment .panel-heading .evo_comment_title a, .disp_page #main-content .evo_post #feedbacks .evo_comment .panel-heading .evo_comment_title a,