/
leyka-options-meta.php
832 lines (830 loc) · 48.4 KB
/
leyka-options-meta.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
<?php if( !defined('WPINC') ) die;
$email_placeholders =
"<span class='placeholders-help'>
<code>#SITE_NAME#</code> — ".__('a title of the website', 'leyka')."<br>
<code>#ORG_NAME#</code> — ".__('an official title of the organization', 'leyka')."<br>
<code>#DONATION_ID#</code> — ".__('an ID of current donation', 'leyka')."<br>
<code>#DONOR_NAME#</code> — ".__('a name of the donor', 'leyka')."<br>
<code>#SUM#</code> — ".__('a full sum of donation (without taking into account some payment commissions)', 'leyka')."<br>
<code>#PAYMENT_METHOD_NAME#</code> — ".__('a name of payment method used', 'leyka')."<br>
<code>#CAMPAIGN_NAME#</code> — ".__('a campaign to which donation was made', 'leyka')."<br>
<code>#PURPOSE#</code> — ".__('a campaign title meant for payment system (see campaign settings)', 'leyka')."<br>
<code>#DATE#</code> — ".__('a date of donation', 'leyka')."<br>
</span>";
// "self" is Leyka_Options_Controller
self::$_options_meta = array(
'org_full_name' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __('NGO name', 'leyka'),
'description' => __('Full official name of an NGO.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., Eastern charity foundation', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_face_fio_ip' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __('A full name of person representing the NGO', 'leyka'),
'description' => __("Enter a person's full name in nominative case.", 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., John Frederic Dow', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_face_fio_rp' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __('A full name of person representing the NGO, in genitive case', 'leyka'),
'description' => __("Enter a person's full name in genitive case.", 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., John Frederic Dow (in genitive case, if it exists)', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_face_position' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __('Position of a person representing an NGO', 'leyka'),
'description' => __('Enter an official position of a person representing the NGO.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., Director', 'leyka'), // For text fields
'length' => '60', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_address' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __("NGO's official address", 'leyka'),
'description' => __('Enter an official address of an NGO.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., Malrose str., 4, Washington, DC, USA', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_state_reg_number' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __('A state registration number of an NGO', 'leyka'),
'description' => __('Enter a state registration number of an NGO.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_kpp' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __("NGO's statement of the account number", 'leyka'),
'description' => __("Enter a statement of the account number of an NGO.", 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_inn' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __("NGO's individual number of a taxpayer", 'leyka'),
'description' => __('Enter an individual number of a taxpayer of an NGO.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_bank_account' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __("NGO's bank account number", 'leyka'),
'description' => __('Enter a bank account number of an NGO', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_bank_name' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __("NGO's bank name", 'leyka'),
'description' => __('Enter a full name for a bank of an NGO.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., First Columbia Credit Bank', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_bank_bic' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __("NGO's bank BIC number", 'leyka'),
'description' => __("Enter a BIC of the NGO's bank.", 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'org_bank_corr_account' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __("NGO's correspondent bank account number", 'leyka'),
'description' => __('Enter a correspondent account number of an NGO.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'donation_purpose_text' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => __('Charity donation', 'leyka'),
'title' => __('A payment purpose text in the bank order', 'leyka'),
'description' => '',
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., Charity donation', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'pm_available' => array(
'type' => 'multi_checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => array('text-text_box'),
'title' => __('Payment methods available on donation forms', 'leyka'),
'description' => __("Check out payment methods through that you'd want to receive a donation payments.", 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise. For checkbox, 1 means "at least 1 value"
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => 'leyka_get_gateways_pm_list',
'validation_rules' => array(), // List of regexp?..
),
'pm_order' => array(
'type' => 'text', // It's intentionally of text type :) Option contains a serialized string of an array
'default' => '', // PM will be ordered just as their gateways were added
'title' => __('Payment methods order on donation forms', 'leyka'),
'description' => '',
'required' => 0, // 1 if field is required, 0 otherwise. For checkbox, 1 means "at least 1 value"
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => '',
'validation_rules' => array(), // List of regexp?..
),
'auto_refresh_currency_rates' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '1',
'title' => __('Automatically refresh currency rates', 'leyka'),
'description' => __('Check to enable auto-refresh of currency rates. It will be performed every 24 hours and will require connection with http://cbr.ru website.', 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'currency_rur2usd' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __('RUR to USD currency rate', 'leyka'),
'description' => __('Please set the RUR to USD currency rate here.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '70.01', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_rur2eur' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '',
'title' => __('RUR to EUR currency rate', 'leyka'),
'description' => __('Please set the RUR to EUR currency rate here.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '80.81', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_rur_label' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => __('RUR', 'leyka'),
'title' => __('RUR label', 'leyka'),
'description' => __('Please set the RUR currency label here.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => 'For ex., «Roub.»', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_rur_min_sum' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 100,
'title' => __('Minimum sum available for RUR', 'leyka'),
'description' => __('Please set minimum sum available for RUR donations.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '100', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_rur_max_sum' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 30000,
'title' => __('Maximum sum available for RUR', 'leyka'),
'description' => __('Please set maximum sum available for RUR donations.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '30000', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_rur_flexible_default_amount' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 500,
'title' => __('Default amount of donation in RUR (for «flexible» donation type)', 'leyka'),
'description' => __('Please, set a default amount of donation when RUR selected as currency.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '500', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'currency_rur_fixed_amounts' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '100,300,500,1000',
'title' => __('Possible amounts of donation in RUR (for «fixed» donation type)', 'leyka'),
'description' => __('Please, set possible amounts of donation in RUR when «fixed» donation type is selected. Only an integer non-negative values, separated with commas.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '100,300,500,1000', // For text fields
'length' => 25, // For text fields
'list_entries' => '', // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'currency_usd_label' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => __('$', 'leyka'),
'title' => __('USD label', 'leyka'),
'description' => __('Please set the USD currency label here.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => 'For ex., «USD»', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_usd_min_sum' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 10,
'title' => __('Minimum sum available for USD', 'leyka'),
'description' => __('Please set minimum sum available for USD donations.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '0', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_usd_max_sum' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 1000,
'title' => __('Maximum sum available for USD', 'leyka'),
'description' => __('Please set maximum sum available for USD donations.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '1000', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_usd_flexible_default_amount' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 10,
'title' => __('Default amount of donation in USD (for «flexible» donation type)', 'leyka'),
'description' => __('Please, set a default amount of donation when RUR selected as currency.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '10', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'currency_usd_fixed_amounts' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '3,5,10,15,50',
'title' => __('Possible amounts of donation in USD (for «fixed» donation type)', 'leyka'),
'description' => __('Please, set possible amounts of donation in USD when «fixed» donation type is selected. Only an integer non-negative values, separated with commas.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '3,5,10,15,50', // For text fields
'length' => 25, // For text fields
'list_entries' => '', // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'currency_eur_label' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => __('euro', 'leyka'),
'title' => __('EUR label', 'leyka'),
'description' => __('Please set the EUR currency label here.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => 'For ex., «euro»', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_eur_min_sum' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 3,
'title' => __('Minimum sum available for EUR', 'leyka'),
'description' => __('Please set minimum sum available for EUR donations.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '0', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_eur_max_sum' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 650,
'title' => __('Maximum sum available for EUR', 'leyka'),
'description' => __('Please set maximum sum available for EUR donations.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '650', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // callback returns currencies selected in prev. option
'validation_rules' => array(), // List of regexp?..
),
'currency_eur_flexible_default_amount' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 5,
'title' => __('Default amount of donation in EUR (for «flexible» donation type)', 'leyka'),
'description' => __('Please, set a default amount of donation when EUR selected as currency.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '5', // For text fields
'length' => 6, // For text fields
'list_entries' => '', // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'currency_eur_fixed_amounts' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '3,5,10,100,500',
'title' => __('Possible amounts of donation in EUR (for «fixed» donation type)', 'leyka'),
'description' => __('Please, set possible amounts of donation in EUR when «fixed» donation type is selected. Only an integer non-negative values, separated with commas.', 'leyka'),
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '3,5,10,100,500', // For text fields
'length' => 25, // For text fields
'list_entries' => '', // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_from_name' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => get_bloginfo('name'),
'title' => __('Notification emails sender name', 'leyka'),
'description' => __('Enter the name that would be used in all notification emails as «from whom» field', 'leyka'),
'required' => 0, // If it does't set, we're using the site title
'placeholder' => __('Ex., Daisy Foundation website', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_from' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => leyka_get_default_email_from(),
'title' => __("Notification emails sender's email", 'leyka'),
'description' => __('Enter the email from which all Leyka emails would be sended', 'leyka'),
'required' => 0, // If it does't set, we're using the site email
'placeholder' => __('Ex., donations@daisyfoundation.org', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_thanks_title' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => __('Thank you for your donation!', 'leyka'),
'title' => __('A title of after-donation notice sended to a donor', 'leyka'),
'description' => __('Enter the title of the notification (or thankful) email with donation data that would be sended to each donor right after his donation is made.', 'leyka'),
'required' => 1,
'placeholder' => __('Ex., Daisy Foundation thanks you for your kindness', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_thanks_text' => array(
'type' => 'html', // Maybe, rich_html
'default' => __('Hello, #DONOR_NAME#!<br><br>You have chosed to make a #SUM# donation to the following charity campaign: #CAMPAIGN_NAME#, using #PAYMENT_METHOD_NAME#.<br><br>Sincerely thank you,<br>#ORG_NAME#', 'leyka'),
'title' => __('A text of after-donation notice sent to a donor', 'leyka'),
'description' => __('Enter the text of the notification email that would be sended to each donor right after his donation is made. It may include the following special entries:', 'leyka').$email_placeholders,
'required' => 1,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_recurrents_thanks_title' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => __('Thank you for your unwavering support!', 'leyka'),
'title' => __('A title of a recurring subscription donation notice sent to a donor', 'leyka'),
'description' => __('Enter the title of the notification (or thankful) email with donation data that would be sended to each donor on each rebill donation.', 'leyka'),
'required' => 1,
'placeholder' => __('Ex., Daisy Foundation thanks you for your kindness', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_recurrents_thanks_text' => array(
'type' => 'html', // Maybe, rich_html
'default' => __('Hello, #DONOR_NAME#!<br><br>We just take a #SUM# as your regular donation to the following charity campaign: #CAMPAIGN_NAME#, using #PAYMENT_METHOD_NAME#.<br><br>If you, regretfully, wish to stop the future regular donations to this campaign, please <a href="mailto:#SITE_EMAIL#">write us a letter about it</a>.<br><br>Sincerely thank you,<br>#ORG_NAME#', 'leyka'),
'title' => __('A text of a recurring subscription donation notice sent to a donor', 'leyka'),
'description' => __('Enter the text of the notification email that would be sended to each donor on each rebill donation. It may include the following special entries:', 'leyka').$email_placeholders,
'required' => 1,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_recurrents_ongoing_thanks_title' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => __('Thank you for your unwavering support!', 'leyka'),
'title' => __('A title of after-rebill donation notice sended to a donor', 'leyka'),
'description' => __('Enter the title of the notification (or thankful) email with donation data that would be sended to each donor on each rebill donation.', 'leyka'),
'required' => 1,
'placeholder' => __('Ex., Daisy Foundation thanks you for your kindness', 'leyka'), // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_recurrents_ongoing_thanks_text' => array(
'type' => 'html', // Maybe, rich_html
'default' => __('Hello, #DONOR_NAME#!<br><br>We just take a #SUM# as your regular donation to the following charity campaign: #CAMPAIGN_NAME#, using #PAYMENT_METHOD_NAME#.<br><br>If you, regretfully, wish to stop the future regular donations to this campaign, please <a href="mailto:#SITE_EMAIL#">write us a letter about it</a>.<br><br>Sincerely thank you,<br>#ORG_NAME#', 'leyka'),
'title' => __('A text of after-rebill donation notice sent to a donor', 'leyka'),
'description' => __('Enter the text of the notification email that would be sended to each donor on each rebill donation. It may include the following special entries:', 'leyka').$email_placeholders,
'required' => 1,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'send_donor_thanking_emails' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '1',
'title' => __('Send a thankful email to a donor on each funded donation', 'leyka'),
'description' => __('Check to send a thankful email to a donor on each funded donation', 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'notify_donations_managers' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '1',
'title' => __('Notify website personal of each incoming donation', 'leyka'),
'description' => __('Check to notify some website personnel (donations managers) of each incoming donation', 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'notify_managers_on_recurrents' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => '1',
'title' => __('Notify website personal of each incoming recurrent donation', 'leyka'),
'description' => __('Check to notify some website personnel (donations managers) of each incoming recurrent donation', 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'donations_managers_emails' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => leyka_get_default_dm_list(),
'title' => __('A comma-separated emails to notify of incoming donation', 'leyka'),
'description' => '',
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., admin@daisyfoundation.org,yourmail@domain.com', 'leyka'),
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_notification_title' => array(
'type' => 'text', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => __('New donation incoming', 'leyka'),
'title' => __('A title of new donation notification email', 'leyka'),
'description' => '',
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => __('For ex., new donation incoming', 'leyka'),
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'email_notification_text' => array(
'type' => 'html',
'default' => __('Hello!<br><br>A new donation has been made on a #SITE_NAME#:<br><ul><li>Campaign: #CAMPAIGN_NAME#.</li><li>Donation purpose: #PURPOSE#</li><li>Amount: #SUM#.</li><li>Payment method: #PAYMENT_METHOD_NAME#.</li><li>Date: #DATE#</li></ul><br><br>Your Leyka', 'leyka'),
'title' => __('A text of after-donation notification sended to a website personnel', 'leyka'),
'description' => __("Enter the text of the notification email that would be sended to each email stated before right after donation is made. It may include the following special entries:", 'leyka').$email_placeholders,
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'donation_form_template' => array(
'type' => 'radio', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 'radios',
'title' => __('Select a default template for all your donation forms', 'leyka'),
'description' => __('Select one of the form templates.', 'leyka'),
'required' => 1,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => 'leyka_get_form_templates_list',
'validation_rules' => array(), // List of regexp?..
),
'donation_sum_field_type' => array(
'type' => 'radio', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 'flexible',
'title' => __('Select a type of the sum field for all your donation forms', 'leyka'),
'description' => __('Select a type of the sum field. «Fixed» means a set of stable sum variants, while «flexible» is a free input field.', 'leyka'),
'required' => 1,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array('flexible' => __('Flexible', 'leyka'), 'fixed' => __('Fixed', 'leyka'), 'mixed' => __('Fixed sum variants + flexible field', 'leyka')),
'validation_rules' => array(), // List of regexp?..
),
'donation_form_mode' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 1,
'title' => __('Display all payment elements on campaign page automatically', 'leyka'),
'description' => __('When unchecked, all payment elements like donation forms or target completion level widgets will not be displayed automatically. To output them manually, use shortcodes inside campaign\'s content or template tags in campaign\'s template file.', 'leyka'),
'required' => 1,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(),
'validation_rules' => array(), // List of regexp?..
),
'scale_widget_place' => array(
'type' => 'radio', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 'top',
'title' => __('Select where Target completion widget will be placed at campaign pages', 'leyka'),
'description' => '',
'required' => 1,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(
'top' => __('Above page content', 'leyka'),
'bottom' => __('Below page content', 'leyka'),
'both' => __('Both', 'leyka'),
'-' => __('Nowhere', 'leyka'),
),
'validation_rules' => array(), // List of regexp?..
),
'donations_history_under_forms' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 1,
'title' => __('Donations history widget below donation forms', 'leyka'),
'description' => __('Display the widget automatically', 'leyka'),
'required' => 0,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(),
'validation_rules' => array(), // List of regexp?..
),
'show_campaign_sharing' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 1,
'title' => __('Campaign sharing widget below donation forms', 'leyka'),
'description' => __('Display the widget automatically', 'leyka'),
'required' => 0,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(),
'validation_rules' => array(), // List of regexp?..
),
'show_subscription_on_success' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 1,
'title' => __('Email subscription widget on the successful donation page', 'leyka'),
'description' => __('Display the widget automatically', 'leyka'),
'required' => 0,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(),
'validation_rules' => array(), // List of regexp?..
),
'revo_template_ask_donor_data' => array(
'type' => 'radio', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 'during-donation',
'title' => __('When to display donor data form fields?', 'leyka'),
'description' => '', //__('', 'leyka'),
'required' => 1,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(
'during-donation' => __('As a step during donation process', 'leyka'),
'success-page' => __('On a payment success page', 'leyka'),
'never' => __("Don't display the fields", 'leyka'),
),
'validation_rules' => array(), // List of regexp?..
),
'revo_template_show_thumbnail' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 1,
'title' => __('Display a thumbnail in inline page blocks', 'leyka'),
'description' => __('Check if you need to show a campaign thumbnail in inline page blocks.', 'leyka'),
'required' => 0,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'agree_to_terms_needed' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => 1,
'title' => __('To donate, donor must agree to the Terms of Service', 'leyka'),
'description' => __('Check if you must have donor to accept some terms before donating.', 'leyka'),
'required' => 0,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'agree_to_terms_text_text_part' => array(
'type' => 'text',
'default' => __('I agree with', 'leyka'),
'title' => __('Label of checkbox of Terms acception - the first (text) part', 'leyka'),
'description' => '',
'required' => 1,
'placeholder' => __('E.g., «I agree with»', 'leyka'),
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'agree_to_terms_text_link_part' => array(
'type' => 'text',
'default' => __('the Terms of the donation service', 'leyka'),
'title' => __('Label of checkbox of Terms acception - the second (link) part', 'leyka'),
'description' => '',
'required' => 1,
'placeholder' => __('For ex., the Terms of the donation service', 'leyka'),
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'terms_of_service_text' => array(
'type' => 'rich_html',
'default' => __('Terms of donation service text. Use <br /> for line-breaks, please.', 'leyka'),
'title' => __('A text of the Terms of donation service', 'leyka'),
'description' => __('Enter a text that will be shown to the donors to read Terms of Service. It have to include the following special entries:', 'leyka')."<span class='placeholders-help'>
<code>#LEGAL_NAME#</code> — ".__("a legal representative of the organization", 'leyka')."<br>
<code>#LEGAL_FACE#</code> — ".__("a legal representative of the organization", 'leyka')."<br>
<code>#LEGAL_FACE_RP#</code> — ".__("a legal representative of the organization (in genitive case)", 'leyka')."<br>
<code>#LEGAL_FACE_POSITION#</code> — ".__("an official position of the legal representative", 'leyka')."<br>
<code>#LEGAL_ADDRESS#</code> — ".__("an official organization's address", 'leyka')."<br>
<code>#STATE_REG_NUMBER#</code> — ".__("a state registration number of your organization", 'leyka')."<br>
<code>#KPP#</code> — ".__("an organization's statement of the account number", 'leyka')."<br>
<code>#INN#</code> — ".__("an organization's individual taxpayer number", 'leyka')."<br>
<code>#BANK_ACCOUNT#</code> — ".__("an organization's bank account number", 'leyka')."<br>
<code>#BANK_NAME#</code> — ".__("an organization's bank name", 'leyka')."<br>
<code>#BANK_BIC#</code> — ".__("an organization's bank indentification code", 'leyka')."<br>
<code>#BANK_CORR_ACCOUNT#</code> — ".__("an organization's bank correspondent account", 'leyka')."<br>
</span>",
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '',
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'terms_agreed_by_default' => array(
'type' => 'checkbox', // html, rich_html, select, radio, checkbox, multi_checkbox
'default' => false,
'title' => __('Donor agreement with Terms of Service checkbox is checked by default', 'leyka'),
'description' => __('When donor sees a donation form, Terms of Service agreement checkbox is checked by default.', 'leyka'),
'required' => false,
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'donation_submit_text' => array(
'type' => 'text',
'default' => __('Donate', 'leyka'),
'title' => __('Label of the button to submit a donation form', 'leyka'),
'description' => __('Enter the text for a submit buttons on a donation forms.', 'leyka'),
'required' => 1,
'placeholder' => __('For ex., «Donate» or «Support»', 'leyka'),
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'revo_donation_complete_button_text' => array(
'type' => 'text',
'default' => __('Complete donation', 'leyka'),
'title' => __('Label of the button to complete a donation', 'leyka'),
'description' => __('Enter the text for a complete donation buttons on a donation forms.', 'leyka'),
'required' => 1,
'placeholder' => __('For ex., «Complete donation» or «Close form»', 'leyka'),
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'revo_thankyou_text' => array(
'type' => 'text',
'default' => __('Thank you! We appreciate your help! Let\'s stay in touch.', 'leyka'),
'title' => __('Text on "Thank you" screen', 'leyka'),
'description' => '',
'required' => 1,
'placeholder' => __('For ex., «Thank you! We appreciate your help! Let\'s stay in touch.»', 'leyka'),
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'revo_thankyou_email_result_text' => array(
'type' => 'text',
'default' => __('We will inform you about the result by email', 'leyka'),
'title' => __('Text on "Donation process complete" page', 'leyka'),
'description' => '',
'required' => 1,
'placeholder' => __('For ex., «We will inform you about the result by email»', 'leyka'),
'length' => '', // For text fields
'list_entries' => array(), // For select, radio & checkbox fields
'validation_rules' => array(), // List of regexp?..
),
'success_page' => array(
'type' => 'select',
'default' => leyka_get_default_success_page(),
'title' => __('Page of successful donation', 'leyka'),
'description' => __('Select a page for donor to redirect to when payment is successful.', 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => 'leyka_get_pages_list',
'validation_rules' => array(), // List of regexp?..
),
'failure_page' => array(
'type' => 'select',
'default' => leyka_get_default_failure_page(),
'title' => __('Page of failed donation', 'leyka'),
'description' => __('Select a page for donor to redirect to when payment is failed for some reason.', 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => 'leyka_get_pages_list',
'validation_rules' => array(), // List of regexp?..
),
'load_scripts_if_need' => array(
'type' => 'checkbox',
'default' => true,
'title' => __('Load plugin scripts only if necessary', 'leyka'),
'description' => __("Check this to load Leyka scripts and styles only on an applicable pages. If this box is unchecked, plugin will load it's scripts on every website page.", 'leyka'),
'required' => false, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(),
'validation_rules' => array(), // List of regexp?..
),
'delete_plugin_options' => array(
'type' => 'checkbox',
'default' => 0,
'title' => __('Remove all plugin settings upon plugin uninstall', 'leyka'),
'description' => __('WARNING: checking this checkbox will cause loss of all Leyka settings upon plugin uninstall. Please, proceed with caution.', 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(),
'validation_rules' => array(), // List of regexp?..
),
'delete_plugin_data' => array(
'type' => 'checkbox',
'default' => 0,
'title' => __('Remove all plugin data upon plugin uninstall', 'leyka'),
'description' => __('WARNING: checking this checkbox will cause loss of ALL Leyka data, including all donation and campaign transaction history, upon plugin uninstall. Please, proceed with caution.', 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(),
'validation_rules' => array(), // List of regexp?..
),
'donors_data_editable' => array(
'type' => 'checkbox',
'default' => 0,
'title' => __("You can edit donors' data for all donation types", 'leyka'),
'description' => __("Donation administrators and managers are allowed to edit donors' data for non-correctional donations.", 'leyka'),
'required' => 0, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array(),
'validation_rules' => array(), // List of regexp?..
),
'main_currency' => array(
'type' => 'select',
'default' => 'rur',
'title' => __('Primary currency', 'leyka'),
'description' => '',
'required' => 1, // 1 if field is required, 0 otherwise
'placeholder' => '', // For text fields
'length' => '', // For text fields
'list_entries' => array('rur' => __('RUR', 'leyka'), 'usd' => __('$', 'leyka'), 'eur' => __('euro', 'leyka'),),
'validation_rules' => array(), // List of regexp?..
),
);