forked from shahraza/doo.custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdooplay.options.php
2094 lines (1854 loc) · 75.7 KB
/
dooplay.options.php
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 if( !defined('ABSPATH') ) { die; }
/**
* @package DooPlay
* @author Doothemes (Erick Meza & Brendha Mayuri)
* @since 2.1.8
*/
// All Settings
$settings = array(
'menu_title' => sprintf( __d('%s options'), DOO_THEME),
'menu_type' => 'theme',
'menu_slug' => 'dooplay',
'ajax_save' => true,
'show_reset_all' => false,
'max_width' => '1200',
'framework_title' => 'Dooplay <small>by DooThemes</small>',
);
// Define defaults colors
switch(cs_get_option('style','default')) {
case 'dark':
$mcolor = '#408BEA';
$bcolor = '#464e5a';
break;
case 'fusion':
$mcolor = '#408BEA';
$bcolor = '#9facc1';
break;
case 'default':
$mcolor = '#408BEA';
$bcolor = '#F5F7FA';
break;
}
// Framework Options
$options = array();
/**
************************
* SETTINGS
************************
*/
$options[] = array(
'title' => __d('Settings'),
'name' => 'settings',
'icon' => 'fa fa-cog',
'sections' => array(
/**
* Main Settings
* @since 2.1.8
* @version 1.0
*/
array(
'title' => __d('Main settings'),
'name' => 'settings-main',
'icon' => 'fa fa-minus',
'fields' => array(
array(
'id' => 'online',
'type' => 'switcher',
'title' => __d('Site Online'),
'label' => __d('Keep this field activated'),
'default' => true
),
array(
'type' => 'notice',
'class' => 'danger',
'content' => __d('Currently your website is in <strong>offline mode</strong>'),
'dependency' => array('online', '!=', true)
),
array(
'id' => 'offlinemessage',
'type' => 'textarea',
'title' => __d('Offline Message'),
'default' => __d('We are in maintenance, please try it later'),
'attributes' => array(
'placeholder' => __d('Offline mode message here'),
'rows' => 3,
),
'dependency' => array('online', '!=', true)
),
array(
'id' => 'ganalytics',
'type' => 'text',
'title' => __d('Google Analytics'),
'desc' => __d('Insert tracking code to use this function'),
'attributes' => array(
'placeholder' => 'UA-45182606-12',
'style' => 'width:200px'
)
),
array(
'id' => 'iperpage',
'type' => 'number',
'title' => __d('Items per page'),
'desc' => __d('Archive pages show at most'),
'default' => '30',
'attributes' => array(
'style' => 'width:100px'
)
),
array(
'id' => 'bperpage',
'type' => 'number',
'title' => __d('Post per page in blog'),
'desc' => __d('Archive pages show at most'),
'default' => '10',
'attributes' => array(
'style' => 'width:100px'
)
),
array(
'id' => 'itopimdb',
'type' => 'number',
'title' => __d('TOP IMDb items'),
'desc' => __d('Select the number of items to the page TOP IMDb'),
'default' => '50',
'attributes' => array(
'style' => 'width:100px'
)
),
array(
'id' => 'pagrange',
'type' => 'number',
'title' => __d('Pagination Range'),
'desc' => __d('Set a range of items to display in the paginator'),
'default' => '2',
'attributes' => array(
'style' => 'width:100px',
'max' => 4,
'min' => 1
)
),
array(
'id' => 'permits',
'type' => 'checkbox',
'title' => __d('General'),
'desc' => __d('Check whether to activate or deactivate'),
'options' => array(
'enls' => __d('Live search enable'),
'esst' => __d('Show similar titles enable'),
'eusr' => __d('User register enable'),
'demj' => __d('Emoji disable'),
'rvrp' => __d('Remove <code>?ver=</code> parameters'),
'mhtm' => __d('Minify HTML'),
'rhjp' => __d('Remove HTML, Java Script and CSS Commnets')
),
'default' => array('enls','esst','demj','rvrp','mhtm','rhjp')
),
array(
'type' => 'heading',
'content' => __d('Google reCAPTCHA v2')
),
array(
'id' => 'gcaptchasitekey',
'type' => 'text',
'title' => __d('Site key')
),
array(
'id' => 'gcaptchasecret',
'type' => 'text',
'title' => __d('Secret key')
),
array(
'type' => 'content',
'content' => '<a href="https://www.google.com/recaptcha/admin" target="_blank">'.__d('Get Google reCAPTCHA').'</a>'
),
array(
'type' => 'heading',
'content' => __d('Pages for DooPlay')
),
array(
'id' => 'pageaccount',
'type' => 'select',
'title' => __d('Account'),
'desc' => __d('Set User Account page'),
'options' => 'pages'
),
array(
'id' => 'pagetrending',
'type' => 'select',
'title' => __d('Trending'),
'desc' => __d('Set page to show trend content'),
'options' => 'pages'
),
array(
'id' => 'pageratings',
'type' => 'select',
'title' => __d('Ratings'),
'desc' => __d('Set page to show content rated by users'),
'options' => 'pages'
),
array(
'id' => 'pagecontact',
'type' => 'select',
'title' => __d('Contact'),
'desc' => __d('Set page to display the contact form'),
'options' => 'pages'
),
array(
'id' => 'pagetopimdb',
'type' => 'select',
'title' => __d('Top IMDb'),
'desc' => __d('Set page to show the best qualified content in IMDb'),
'options' => 'pages'
),
array(
'id' => 'pageblog',
'type' => 'select',
'title' => __d('Blog entries'),
'desc' => __d('Set page to show the entries in blog'),
'options' => 'pages'
),
array(
'type' => 'heading',
'content' => __d('Database cache')
),
array(
'id' => 'cachescheduler',
'type' => 'select',
'title' => __d('Scheduler'),
'desc' => __d('Cache cleaning'),
'after' => '<p>'.__d('It is important to clean expired cache at least once a day').'</p>',
'attributes' => array(
'style' => 'width:200px'
),
'options' => array(
'daily' => __d('Daily'),
'twicedaily' => __d('Twice daily'),
'hourly' => __d('Hourly')
),
),
array(
'type' => 'notice',
'class' => 'info',
'content' => __d('Storing cache as long as possible can be a very good idea'),
'dependency' => array('cachetime', '<=', 43200)
),
array(
'id' => 'cachetime',
'type' => 'number',
'title' => __d('Cache Timeout'),
'desc' => __d('Set the time in seconds'),
'default' => '86400',
'after' => '<p>'.__d('We recommend storing this cache for at least 86400 seconds').'</p>',
'attributes' => array(
'style' => 'width:100px'
)
)
)
),
/**
* Customize
* @since 2.1.8
* @version 1.0
*/
array(
'title' => __d('Customize'),
'name' => 'layout-custom',
'icon' => 'fa fa-minus',
'fields' => array(
array(
'id' => 'dynamicbg',
'type' => 'switcher',
'title' => __d('Single background'),
'desc' => __d('Check whether to activate or deactivate'),
'label' => __d('Enable dynamic background'),
'default' => false
),
array(
'id' => 'style',
'type' => 'select',
'title' => __d('Color Scheme'),
'desc' => __d('Select the default color scheme'),
'attributes' => array(
'style' => 'max-width:250px'
),
'options' => array(
'default' => __d('Default style'),
'fusion' => __d('Fusion stye'),
'dark' => __d('Dark stye')
),
'default' => 'default',
),
array(
'id' => 'font',
'type' => 'select',
'title' => __d('Font family'),
'desc' => __d('Select font-family by Google Fonts'),
'attributes' => array(
'style' => 'max-width:250px'
),
'options' => array(
'Roboto' => 'Roboto',
'Open+Sans' => 'Open Sans',
'Raleway' => 'Raleway',
'Source+Sans+Pro' => 'Source Sans Pro',
'Noto+Sans' => 'Noto Sans',
'Quicksand' => 'Quicksand',
'Questrial' => 'Questrial',
'Rubik' => 'Rubik',
'Archivo+Narrow' => 'Archivo Narrow',
'Work+Sans' => 'Work Sans',
'Signika' => 'Signika',
'Nunito+Sans' => 'Nunito Sans',
'Alegreya+Sans' => 'Alegreya Sans',
'BenchNine' => 'BenchNine',
'Yantramanav' => 'Yantramanav',
'Pontano Sans' => 'Pontano Sans',
'Gudea' => 'Gudea',
'Cabin+Condensed' => 'Cabin Condensed',
'Khand' => 'Khand',
'Ruda' => 'Ruda'
),
'default' => 'Roboto',
),
array(
'id' => 'maincolor',
'type' => 'color_picker',
'title' => __d('Primary color'),
'desc' => __d('Choose a color'),
'default' => $mcolor
),
array(
'id' => 'bgcolor',
'type' => 'color_picker',
'title' => __d('Background container'),
'desc' => __d('Choose a color'),
'default' => $bcolor
),
array(
'id' => 'featucolor',
'type' => 'color_picker',
'title' => __d('Featured marker'),
'desc' => __d('Choose a color'),
'default' => '#00be08'
),
array(
'type' => 'heading',
'content' => __d('Fusion alternative colors'),
'dependency' => array('style', '==', 'fusion')
),
array(
'id' => 'fbgcolor',
'type' => 'color_picker',
'title' => __d('Background header bar'),
'desc' => __d('Choose a color'),
'default' => '#000000',
'dependency' => array('style', '==', 'fusion')
),
array(
'id' => 'facolor',
'type' => 'color_picker',
'title' => __d('Header link color'),
'desc' => __d('Choose a color'),
'default' => '#ffffff',
'dependency' => array('style', '==', 'fusion')
),
array(
'id' => 'fhcolor',
'type' => 'color_picker',
'title' => __d('Header link hover color'),
'desc' => __d('Choose a color'),
'default' => '#408bea',
'dependency' => array('style', '==', 'fusion')
),
array(
'type' => 'heading',
'content' => __d('Custom CSS')
),
array(
'id' => 'css',
'type' => 'textarea',
'attributes' => array(
'placeholder' => '.YourClas{}',
'rows' => 7,
),
'after' => '<p>'.__d('Add only CSS code').'</p>'
),
array(
'type' => 'heading',
'content' => __d('Customize logos')
),
array(
'id' => 'headlogo',
'type' => 'image',
'title' => __d('Logo header'),
'desc' => __d('Upload your logo using the Upload Button')
),
array(
'id' => 'favicon',
'type' => 'image',
'title' => __d('Favicon'),
'desc' => __d('Upload a 16 x 16 px image that will represent your website\'s favicon')
),
array(
'id' => 'touchlogo',
'type' => 'image',
'title' => __d('Touch icon APP'),
'desc' => __d('Upload a 152 x 152 px image that will represent your Web APP')
),
array(
'id' => 'adminloginlogo',
'type' => 'image',
'title' => __d('Login / Register / WP-Admin'),
'desc' => __d('Upload your logo using the Upload Button')
),
array(
'type' => 'heading',
'content' => __d('Footer settings')
),
array(
'id' => 'footer',
'type' => 'radio',
'title' => __d('Footer'),
'default' => 'simple',
'options' => array(
'simple' => __d('Simple'),
'complete' => __d('Complete')
)
),
array(
'id' => 'footercopyright',
'type' => 'text',
'title' => __d('Footer copyright'),
'desc' => __d('Modify or remove copyright text')
),
array(
'id' => 'logofooter',
'type' => 'image',
'title' => __d('Logo footer'),
'dependency' => array('footer_complete', '==', true)
),
array(
'id' => 'footertext',
'type' => 'textarea',
'title' => __d('Footer text'),
'desc' => __d('Text under footer logo'),
'dependency' => array('footer_complete', '==', true)
),
array(
'id' => 'footerc1',
'type' => 'text',
'title' => __d('Title column 1'),
'desc' => __d('Footer menu'),
'dependency' => array('footer_complete', '==', true)
),
array(
'id' => 'footerc2',
'type' => 'text',
'title' => __d('Title column 2'),
'desc' => __d('Footer menu'),
'dependency' => array('footer_complete', '==', true)
),
array(
'id' => 'footerc3',
'type' => 'text',
'title' => __d('Title column 3'),
'desc' => __d('Footer menu'),
'dependency' => array('footer_complete', '==', true)
)
)
),
/**
* Comments
* @since 2.1.8
* @version 1.0
*/
array(
'title' => __d('Comments'),
'name' => 'settings-comments',
'icon' => 'fa fa-minus',
'fields' => array(
array(
'id' => 'comments',
'type' => 'radio',
'title' => __d('Comments system'),
'default' => 'wp',
'options' => array(
'wp' => __d('WordPress'),
'fb' => __d('Facebook'),
'dq' => __d('Disqus'),
'nn' => __d('None')
)
),
array(
'id' => 'commentspage',
'type' => 'switcher',
'title' => __d('Comments on pages'),
'label' => __d('Allow comments on all pages?'),
'dependency' => array('comments_nn', '!=', true)
),
array(
'type' => 'heading',
'content' => __d('Facebook comments'),
'dependency' => array('comments_fb', '==', true)
),
array(
'id' => 'fbappid',
'type' => 'text',
'title' => __d('App ID'),
'desc' => __d('Insert you Facebook app ID'),
'after' => '<p><a href="https://developers.facebook.com/apps/" target="_blank">'.__d('Facebook developers').'</a></p>',
'dependency' => array('comments_fb', '==', true)
),
array(
'id' => 'fblang',
'type' => 'select',
'title' => __d('APP language'),
'desc' => __d('Select language for the app of facebook'),
'options' => array(
'af_ZA' => __d('Afrikaans'),
'ak_GH' => __d('Akan'),
'am_ET' => __d('Amharic'),
'ar_AR' => __d('Arabic'),
'as_IN' => __d('Assamese'),
'ay_BO' => __d('Aymara'),
'az_AZ' => __d('Azerbaijani'),
'be_BY' => __d('Belarusian'),
'bg_BG' => __d('Bulgarian'),
'bn_IN' => __d('Bengali'),
'br_FR' => __d('Breton'),
'bs_BA' => __d('Bosnian'),
'ca_ES' => __d('Catalan'),
'cb_IQ' => __d('Sorani Kurdish'),
'ck_US' => __d('Cherokee'),
'co_FR' => __d('Corsican'),
'cs_CZ' => __d('Czech'),
'cx_PH' => __d('Cebuano'),
'cy_GB' => __d('Welsh'),
'da_DK' => __d('Danish'),
'de_DE' => __d('German'),
'el_GR' => __d('Greek'),
'en_GB' => __d('English (UK)'),
'en_IN' => __d('English (India)'),
'en_PI' => __d('English (Pirate)'),
'en_UD' => __d('English (Upside Down)'),
'en_US' => __d('English (US)'),
'eo_EO' => __d('Esperanto'),
'es_CL' => __d('Spanish (Chile)'),
'es_CO' => __d('Spanish (Colombia)'),
'es_ES' => __d('Spanish (Spain)'),
'es_LA' => __d('Spanish (Latin America)'),
'es_MX' => __d('Spanish (Mexico)'),
'es_VE' => __d('Spanish (Venezuela)'),
'et_EE' => __d('Estonian'),
'eu_ES' => __d('Basque'),
'fa_IR' => __d('Persian'),
'fb_LT' => __d('Leet Speak'),
'ff_NG' => __d('Fulah'),
'fi_FI' => __d('Finnish'),
'fo_FO' => __d('Faroese'),
'fr_CA' => __d('French (Canada)'),
'fr_FR' => __d('French (France)'),
'fy_NL' => __d('Frisian'),
'ga_IE' => __d('Irish'),
'gl_ES' => __d('Galician'),
'gn_PY' => __d('Guarani'),
'gu_IN' => __d('Gujarati'),
'gx_GR' => __d('Classical Greek'),
'ha_NG' => __d('Hausa'),
'he_IL' => __d('Hebrew'),
'hi_IN' => __d('Hindi'),
'hr_HR' => __d('Croatian'),
'hu_HU' => __d('Hungarian'),
'hy_AM' => __d('Armenian'),
'id_ID' => __d('Indonesian'),
'ig_NG' => __d('Igbo'),
'is_IS' => __d('Icelandic'),
'it_IT' => __d('Italian'),
'ja_JP' => __d('Japanese'),
'ja_KS' => __d('Japanese (Kansai)'),
'jv_ID' => __d('Javanese'),
'ka_GE' => __d('Georgian'),
'kk_KZ' => __d('Kazakh'),
'km_KH' => __d('Khmer'),
'kn_IN' => __d('Kannada'),
'ko_KR' => __d('Korean'),
'ku_TR' => __d('Kurdish (Kurmanji)'),
'ky_KG' => __d('Kyrgyz'),
'la_VA' => __d('Latin'),
'lg_UG' => __d('Ganda'),
'li_NL' => __d('Limburgish'),
'ln_CD' => __d('Lingala'),
'lo_LA' => __d('Lao'),
'lt_LT' => __d('Lithuanian'),
'lv_LV' => __d('Latvian'),
'mg_MG' => __d('Malagasy'),
'mi_NZ' => __d('Maori'),
'mk_MK' => __d('Macedonian'),
'ml_IN' => __d('Malayalam'),
'mn_MN' => __d('Mongolian'),
'mr_IN' => __d('Marathi'),
'ms_MY' => __d('Malay'),
'mt_MT' => __d('Maltese'),
'my_MM' => __d('Burmese'),
'nb_NO' => __d('Norwegian (bokmal)'),
'nd_ZW' => __d('Ndebele'),
'ne_NP' => __d('Nepali'),
'nl_BE' => __d('Dutch (Belgie)'),
'nl_NL' => __d('Dutch'),
'nn_NO' => __d('Norwegian (nynorsk)'),
'ny_MW' => __d('Chewa'),
'or_IN' => __d('Oriya'),
'pa_IN' => __d('Punjabi'),
'pl_PL' => __d('Polish'),
'ps_AF' => __d('Pashto'),
'pt_BR' => __d('Portuguese (Brazil)'),
'pt_PT' => __d('Portuguese (Portugal)'),
'qu_PE' => __d('Quechua'),
'rm_CH' => __d('Romansh'),
'ro_RO' => __d('Romanian'),
'ru_RU' => __d('Russian'),
'rw_RW' => __d('Kinyarwanda'),
'sa_IN' => __d('Sanskrit'),
'sc_IT' => __d('Sardinian'),
'se_NO' => __d('Northern Sami'),
'si_LK' => __d('Sinhala'),
'sk_SK' => __d('Slovak'),
'sl_SI' => __d('Slovenian'),
'sn_ZW' => __d('Shona'),
'so_SO' => __d('Somali'),
'sq_AL' => __d('Albanian'),
'sr_RS' => __d('Serbian'),
'sv_SE' => __d('Swedish'),
'sw_KE' => __d('Swahili'),
'sy_SY' => __d('Syriac'),
'sz_PL' => __d('Silesian'),
'ta_IN' => __d('Tamil'),
'te_IN' => __d('Telugu'),
'tg_TJ' => __d('Tajik'),
'th_TH' => __d('Thai'),
'tk_TM' => __d('Turkmen'),
'tl_PH' => __d('Filipino'),
'tl_ST' => __d('Klingon'),
'tr_TR' => __d('Turkish'),
'tt_RU' => __d('Tatar'),
'tz_MA' => __d('Tamazight'),
'uk_UA' => __d('Ukrainian'),
'ur_PK' => __d('Urdu'),
'uz_UZ' => __d('Uzbek'),
'vi_VN' => __d('Vietnamese'),
'wo_SN' => __d('Wolof'),
'xh_ZA' => __d('Xhosa'),
'yi_DE' => __d('Yiddish'),
'yo_NG' => __d('Yoruba'),
'zh_CN' => __d('Simplified Chinese (China)'),
'zh_HK' => __d('Traditional Chinese (Hong Kong)'),
'zh_TW' => __d('Traditional Chinese (Taiwan)'),
'zu_ZA' => __d('Zulu'),
'zz_TR' => __d('Zazaki')
),
'default' => 'en_US',
'dependency' => array('comments_fb', '==', true)
),
array(
'id' => 'fbadmin',
'type' => 'text',
'title' => __d('Admin user'),
'desc' => __d('Add user or user ID to manage comment'),
'dependency' => array('comments_fb', '==', true)
),
array(
'id' => 'fbscheme',
'type' => 'radio',
'title' => __d('Color Scheme'),
'default' => 'light',
'options' => array(
'light' => __d('Light color'),
'dark' => __d('Dark color')
),
'dependency' => array('comments_fb', '==', true)
),
array(
'id' => 'fbnumber',
'type' => 'number',
'title' => __d('Number of Posts'),
'default' => '10',
'dependency' => array('comments_fb', '==', true)
),
array(
'type' => 'heading',
'content' => __d('Disqus comments'),
'dependency' => array('comments_dq', '==', true)
),
array(
'id' => 'dqshortname',
'type' => 'text',
'title' => __d('Shortname'),
'desc' => __d('This is used to uniquely identify your website on Disqus. It cannot be changed'),
'after' => '<p><a href="https://help.disqus.com/installation/whats-a-shortname" target="_blank">'.__d('more info').'</p>',
'dependency' => array('comments_dq', '==', true)
),
array(
'type' => 'content',
'content' => '<a href="'.admin_url('options-discussion.php').'"><strong>'.__d('Discussion Settings').'</strong></a>',
'dependency' => array('comments_wp', '==', true)
)
)
),
/**
* Main Settings
* @since 2.1.8
* @version 1.0
*/
array(
'title' => __d('Links Module'),
'name' => 'settings-links',
'icon' => 'fa fa-minus',
'fields' => array(
array(
'id' => 'linkslanguages',
'type' => 'text',
'title' => __d('Set languages'),
'desc' => __d('Add comma separated values'),
'attributes' => array(
'placeholder' => 'English, Spanish, Russian, Italian, Portuguese, Turkish, Bulgarian, Chinese'
)
),
array(
'id' => 'linksquality',
'type' => 'text',
'title' => __d('Set resolutions quality'),
'desc' => __d('Add comma separated values'),
'attributes' => array(
'placeholder' => '4k 2160p, HD 1440p, HD 1080p, HD 720p, SD 480p, SD 360p, SD 240p'
)
),
array(
'id' => 'linksfrontpublishers',
'type' => 'checkbox',
'title' => __d('Front-End Links publishers'),
'desc' => __d('Check the user roles that can be published from Front-end'),
'options' => array(
'adm' => __d('Administrator'),
'edt' => __d('Editor'),
'atr' => __d('Author'),
'ctr' => __d('Contributor'),
'sbr' => __d('Subscriber')
),
'default' => array('adm','edt','atr','ctr','sbr')
),
array(
'id' => 'linkspublishers',
'type' => 'checkbox',
'title' => __d('Auto Publish'),
'desc' => __d('Mark the roles of users who can post links without being moderated'),
'options' => array(
'adm' => __d('Administrator'),
'edt' => __d('Editor'),
'atr' => __d('Author'),
'ctr' => __d('Contributor'),
'sbr' => __d('Subscriber')
),
'default' => array('adm','edt','atr','ctr')
),
array(
'id' => 'linksrowshow',
'type' => 'checkbox',
'title' => __d('Show in list'),
'desc' => __d('Select the items that you want to show in the links table'),
'options' => array(
'qua' => __d('Quality'),
'lan' => __d('Language'),
'siz' => __d('Size'),
'cli' => __d('Clicks'),
'add' => __d('Added'),
'use' => __d('User')
),
'default' => array('qua','lan','siz','cli','add','use')
),
array(
'id' => 'linkshoweditor',
'type' => 'checkbox',
'title' => __d('Links Editor'),
'label' => __d('Show link editor, if the main entry has not yet been published')
),
array(
'type' => 'notice',
'class' => 'info',
'content' => __d('This is not a secure method of adding links, there is a very high probability of data loss.'),
'dependency' => array('linkshoweditor', '==', true)
),
array(
'type' => 'heading',
'content' => __d('Redirection page')
),
array(
'id' => 'linktimewait',
'type' => 'number',
'title' => __d('Timeout'),
'desc' => __d('Timeout in seconds before redirecting the page automatically'),
'default' => '30',
'attributes' => array(
'style' => 'width:100px'
)
),
array(
'id' => 'linkoutputtype',
'type' => 'radio',
'title' => __d('Type Output'),
'desc' => __d('Select an output type upon completion of the wait time'),
'options' => array(
'btn' => __d('Clicking on a button'),
'clo' => __d('Redirecting the page automatically')
),
'default' => 'btn',
'dependency' => array('linktimewait', '>', '0')
),
array(
'id' => 'linkbtntext',
'type' => 'text',
'title' => __d('Button text'),
'desc' => __d('Customize the button'),
'default' => __d('Continue'),
'dependency' => array('linkoutputtype_btn|linktimewait', '==|>', true.'|0')
),
array(
'id' => 'linkbtntextunder',
'type' => 'text',
'title' => __d('Text under button'),
'default' => __d('Click on the button to continue'),
'dependency' => array('linkoutputtype_btn|linktimewait', '==|>', true.'|0')
),
array(
'id' => 'linkbtncolor',
'type' => 'color_picker',
'title' => __d('Main color'),
'desc' => __d('Select a color for customize redirection page'),
'default' => '#1e73be',
'dependency' => array('linkoutputtype_btn|linktimewait', '==|>', true.'|0')
),
array(
'type' => 'heading',
'content' => __d('Automation link')
),
array(
'id' => 'linksearchtype',
'type' => 'radio',
'title' => __d('Type Search'),
'desc' => __d('Select search type for subtitle'),
'options' => array(
'sbt' => __d('Search by title'),
'sbo' => __d('Search by original title')
),
'default' => 'sbt',
),
array(
'type' => 'heading',
'content' => __d('Shorteners')
),
array(
'type' => 'content',
'content' => '
<h3>'.__d('To obtain the link, use the <code>{{url}}</code> tag').'</h3>
<p>'.__d('To invalidate this function do not add any shortener').'</p>
'
),
array(
'id' => 'shorteners',
'type' => 'group',
'button_title' => __d('Add new shortener'),
'accordion_title' => __d('Add new shortener'),
'fields' => array(
array(
'id' => 'short',
'type' => 'text',
'attributes' => array(
'placeholder' => 'http://short.link/any_parameter/{url}'
)
)
)
)
)
),
/**
* Video Player Options
* @since 2.1.8
* @version 1.0
*/
array(
'title' => __d('Video Player'),
'name' => 'layout-player',
'icon' => 'fa fa-minus',
'fields' => array(
array(
'id' => 'playautoload',
'type' => 'switcher',
'title' => __d('Auto Load'),
'label' => __d('Load the first element of video player with the page')
),
array(
'type' => 'notice',
'class' => 'info',
'content' => __d('The first element of the player will be loaded between 0 and 4 seconds after completing the total load of the page'),