-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheme-options.php
3153 lines (3042 loc) · 300 KB
/
eme-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' ) ) {
exit; // Exit if accessed directly.
}
function eme_add_options( $reset = 0 ) {
$contact_person_email_subject_localizable = __( "New booking for '#_EVENTNAME'", 'events-made-easy' );
$contact_person_email_body_localizable = __( '#_PERSONFULLNAME (#_PERSONEMAIL) will attend #_EVENTNAME on #_STARTDATE. They want to book #_RESPSEATS seat(s).<br>Now there are #_RESERVEDSEATS seat(s) booked, #_AVAILABLESEATS are still available.<br><br>Yours faithfully,<br>Events Manager', 'events-made-easy' );
$contactperson_cancelled_email_subject_localizable = __( "A booking has been cancelled for '#_EVENTNAME'", 'events-made-easy' );
$contactperson_cancelled_email_body_localizable = __( '#_PERSONFULLNAME (#_PERSONEMAIL) has cancelled for #_EVENTNAME on #_STARTDATE. <br>Now there are #_RESERVEDSEATS seat(s) booked, #_AVAILABLESEATS are still available.<br><br>Yours faithfully,<br>Events Manager', 'events-made-easy' );
$contact_person_pending_email_subject_localizable = __( "Approval required for new booking for '#_EVENTNAME'", 'events-made-easy' );
$contact_person_pending_email_body_localizable = __( '#_PERSONFULLNAME (#_PERSONEMAIL) would like to attend #_EVENTNAME on #_STARTDATE. They want to book #_RESPSEATS seat(s).<br>Now there are #_RESERVEDSEATS seat(s) booked, #_AVAILABLESEATS are still available.<br><br>Yours faithfully,<br>Events Manager', 'events-made-easy' );
$respondent_email_subject_localizable = __( "Booking for '#_EVENTNAME' confirmed", 'events-made-easy' );
$respondent_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>You have successfully booked #_RESPSEATS seat(s) for #_EVENTNAME.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$registration_pending_email_subject_localizable = __( "Booking for '#_EVENTNAME' is pending", 'events-made-easy' );
$registration_pending_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your request to book #_RESPSEATS seat(s) for #_EVENTNAME is pending.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$registration_userpending_email_subject_localizable = __( "Booking for '#_EVENTNAME' requires your confirmation", 'events-made-easy' );
$registration_userpending_email_body_localizable = __( "Dear #_PERSONFULLNAME,<br><br>Your request to book #_RESPSEATS seat(s) for #_EVENTNAME requires your confirmation.<br>Please click on this link to confirm #_BOOKING_CONFIRM_URL<br>If you did not make this booking, you don't need to do anything, it will then be removed automatically.<br><br>Yours faithfully,<br>#_CONTACTPERSON", 'events-made-easy' );
$registration_cancelled_email_subject_localizable = __( "Booking for '#_EVENTNAME' cancelled", 'events-made-easy' );
$registration_cancelled_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your request to book #_RESPSEATS seat(s) for #_EVENTNAME has been cancelled.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$registration_trashed_email_subject_localizable = __( "Booking for '#_EVENTNAME' deleted", 'events-made-easy' );
$registration_trashed_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your request to book #_RESPSEATS seat(s) for #_EVENTNAME has been deleted.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$registration_updated_email_subject_localizable = __( "Booking for '#_EVENTNAME' updated", 'events-made-easy' );
$registration_updated_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your request to book #_RESPSEATS seat(s) for #_EVENTNAME has been updated.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$registration_paid_email_subject_localizable = __( "Booking for '#_EVENTNAME' paid", 'events-made-easy' );
$registration_paid_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your request to book #_RESPSEATS seat(s) for #_EVENTNAME has been paid for.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$registration_pending_reminder_email_subject_localizable = __( "Reminder: pending booking for event '#_EVENTNAME'", 'events-made-easy' );
$registration_pending_reminder_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>This is a reminder that your request to book #_RESPSEATS seat(s) for #_EVENTNAME is pending.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$registration_reminder_email_subject_localizable = __( "Reminder: Booking for event '#_EVENTNAME'", 'events-made-easy' );
$registration_reminder_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>This is a reminder that you booked #_RESPSEATS seat(s) for #_EVENTNAME.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$registration_recorded_ok_html_localizable = __( 'Your booking has been recorded', 'events-made-easy' );
$registration_form_format_localizable = "<table class='eme-rsvp-form'>
<tr><th scope='row'>" . __( 'Last name', 'events-made-easy' ) . "*:</th><td>#_LASTNAME</td></tr>
<tr><th scope='row'>" . __( 'First name', 'events-made-easy' ) . "*:</th><td>#REQ_FIRSTNAME</td></tr>
<tr><th scope='row'>" . __( 'Email', 'events-made-easy' ) . "*:</th><td>#_EMAIL</td></tr>
<tr><th scope='row'>" . __( 'Phone number', 'events-made-easy' ) . ":</th><td>#_PHONE</td></tr>
<tr><th scope='row'>" . __( 'Seats', 'events-made-easy' ) . "*:</th><td>#_SEATS</td></tr>
<tr><th scope='row'>" . __( 'Comment', 'events-made-easy' ) . ':</th><td>#_COMMENT</td></tr>
</table>
#_SUBMIT
';
$cancel_form_format_localizable = "<table class='eme-rsvp-form'>
<tr><th scope='row'>" . __( 'Last name', 'events-made-easy' ) . "*:</th><td>#_LASTNAME</td></tr>
<tr><th scope='row'>" . __( 'First name', 'events-made-easy' ) . "*:</th><td>#REQ_FIRSTNAME</td></tr>
<tr><th scope='row'>" . __( 'Email', 'events-made-easy' ) . '*:</th><td>#_EMAIL</td></tr>
</table>
#_SUBMIT
';
$cancel_payment_form_format_localizable = __( "You're about to cancel the following bookings:", 'events-made-easy' ) . '<br>#_CANCEL_PAYMENT_LINE #_SUBMIT';
$cancel_payment_line_format_localizable = '#_STARTDATE #_STARTTIME: #_EVENTNAME (#_RESPSEATS ' . __( 'seats', 'events-made-easy' ) . ')<br>';
$cancelled_payment_format_localizable = __( 'The following bookings have been cancelled:', 'events-made-easy' ) . '<br>#_CANCEL_PAYMENT_LINE';
$eme_cpi_subject_localizable = __( 'Change personal info request', 'events-made-easy' );
$eme_cpi_body_localizable = __( 'Hi,<br><br>Please find below the info needed to change the personal info for each matching person<br>#_CHANGE_PERSON_INFO<br><br>Yours faithfully', 'events-made-easy' );
$eme_cpi_form_localizable = esc_html__( 'Last name: ', 'events-made-easy' ) . '#_LASTNAME <br>' . esc_html__( 'First name: ', 'events-made-easy' ) . '#_FIRSTNAME <br>' . esc_html__( 'Email: ', 'events-made-easy' ) . '#_EMAIL <br>';
$eme_gdpr_page_title_localizable = __( 'Personal info', 'events-made-easy' );
$eme_gdpr_subject_localizable = __( 'Personal info request', 'events-made-easy' );
$eme_gdpr_body_localizable = __( 'Hi, please copy/paste this link in your browser to be able to see all your personal info: #_GDPR_URL', 'events-made-easy' );
$eme_gdpr_approve_page_title_localizable = __( 'GDPR approval', 'events-made-easy' );
$eme_gdpr_approve_page_content_localizable = __( 'Thank you for allowing us to store your personal info.', 'events-made-easy' );
$eme_gdpr_approve_subject_localizable = __( 'Personal info approval request', 'events-made-easy' );
$eme_gdpr_approve_body_localizable = __( 'Hi, please copy/paste this link in your browser to allow us to store your personal info: #_GDPR_APPROVE_URL', 'events-made-easy' );
$eme_sub_subject_localizable = __( 'Subscription request', 'events-made-easy' );
$eme_sub_body_localizable = __( 'Hi, please copy/paste this link in your browser to subscribe: #_SUB_CONFIRM_URL . This link will expire within one day.', 'events-made-easy' );
$eme_unsub_subject_localizable = __( 'Unsubscription request', 'events-made-easy' );
$eme_unsub_body_localizable = __( 'Hi, please copy/paste this link in your browser to unsubscribe: #_UNSUB_CONFIRM_URL . This link will expire within one day.', 'events-made-easy' );
$eme_payment_button_label_localizable = __( 'Pay via %s', 'events-made-easy' );
$eme_payment_button_above_localizable = '<br>' . __( 'You can pay via %s. If you wish to do so, click the button below.', 'events-made-easy' );
$eme_rsvp_not_yet_allowed_localizable = __( 'Bookings not yet allowed on this date.', 'events-made-easy' );
$eme_rsvp_no_longer_allowed_localizable = __( 'Bookings no longer allowed on this date.', 'events-made-easy' );
$eme_rsvp_cancel_no_longer_allowed_localizable = __( 'Cancellations no longer allowed on this date.', 'events-made-easy' );
$eme_rsvp_full_localizable = __( 'Bookings no longer possible: no seats available anymore.', 'events-made-easy' );
$eme_rsvp_on_waiting_list_localizable = __( 'This booking will be put on the waiting list.', 'events-made-easy' );
$eme_form_required_field_string_localizable = __( 'Required field', 'events-made-easy' );
$eme_address1_localizable = __( 'Address line 1', 'events-made-easy' );
$eme_address2_localizable = __( 'Address line 2', 'events-made-easy' );
$eme_payment_redirect_msg_localizable = __( 'You will be redirected to the payment page in a few seconds, or click <a href="#_PAYMENT_URL">here</a> to go there immediately', 'events-made-easy' );
$eme_membership_unauth_attendance_msg_localizeable = __( 'OK, member #_MEMBERID (#_PERSONFULLNAME) is active.', 'events-made-easy' );
$eme_membership_attendance_msg_localizeable = __( 'OK, member #_MEMBERID (#_PERSONFULLNAME) is active.', 'events-made-easy' );
$task_signup_recorded_ok_html_localizable = __( 'You have successfully signed up for this task', 'events-made-easy' );
$task_signup_cancelled_ok_html_localizable = __( 'You have successfully cancelled your signup for this task', 'events-made-easy' );
$task_form_format_localizable = "<table class='eme-rsvp-form'>
<tr><th scope='row'>" . __( 'Last name', 'events-made-easy' ) . "*:</th><td>#_LASTNAME</td></tr>
<tr><th scope='row'>" . __( 'First name', 'events-made-easy' ) . "*:</th><td>#REQ_FIRSTNAME</td></tr>
<tr><th scope='row'>" . __( 'Email', 'events-made-easy' ) . '*:</th><td>#_EMAIL</td></tr>
</table>
#_SUBMIT
';
$task_cp_pending_email_subject_localizable = __( "Approval required for signup for task '#_TASKNAME' for '#_EVENTNAME'", 'events-made-easy' );
$task_cp_pending_email_body_localizable = __( 'Approval required: #_PERSONFULLNAME (#_PERSONEMAIL) signed up for #_TASKNAME (#_TASKSTARTDATE) for #_EVENTNAME on #_STARTDATE.<br>Now there are #_FREETASKSPACES free spaces for this task.<br><br>Yours faithfully,<br>Events Manager', 'events-made-easy' );
$task_cp_email_subject_localizable = __( "New signup for task '#_TASKNAME' for '#_EVENTNAME'", 'events-made-easy' );
$task_cp_email_body_localizable = __( '#_PERSONFULLNAME (#_PERSONEMAIL) signed up for #_TASKNAME (#_TASKSTARTDATE) for #_EVENTNAME on #_STARTDATE.<br>Now there are #_FREETASKSPACES free spaces for this task.<br><br>Yours faithfully,<br>Events Manager', 'events-made-easy' );
$task_cp_cancelled_email_subject_localizable = __( "A task signup has been cancelled for '#_EVENTNAME'", 'events-made-easy' );
$task_cp_cancelled_email_body_localizable = __( '#_PERSONFULLNAME (#_PERSONEMAIL) has cancelled his signup for #_TASKNAME (#_TASKBEGIN) for #_EVENTNAME on #_STARTDATE.<br>Now there are #_FREETASKSPACES free spaces for this task.<br><br>Yours faithfully,<br>Events Manager', 'events-made-easy' );
$task_signup_pending_email_subject_localizable = __( "Signup for task '#_TASKNAME' for '#_EVENTNAME' is pending approval", 'events-made-easy' );
$task_signup_pending_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your signup for #_TASKNAME (#_TASKBEGIN) for #_EVENTNAME is registered and pending approval.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$task_signup_email_subject_localizable = __( "Signup for task '#_TASKNAME' for '#_EVENTNAME'", 'events-made-easy' );
$task_signup_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>You have successfully signed up for #_TASKNAME (#_TASKBEGIN) for #_EVENTNAME.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$task_signup_cancelled_email_subject_localizable = __( "Signup for task '#_TASKNAME' for '#_EVENTNAME' cancelled", 'events-made-easy' );
$task_signup_cancelled_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your request to sign up for #_TASKNAME (#_TASKBEGIN) for #_EVENTNAME has been cancelled.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$task_signup_trashed_email_subject_localizable = __( "Signup for task '#_TASKNAME' for '#_EVENTNAME' deleted", 'events-made-easy' );
$task_signup_trashed_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your request to sign up for #_TASKNAME (#_TASKBEGIN) for #_EVENTNAME has been deleted.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
#$task_signup_updated_email_subject_localizable = __("Signup for task '#_TASKNAME' for '#_EVENTNAME' updated",'events-made-easy');
#$task_signup_updated_email_body_localizable = __("Dear #_PERSONFULLNAME,<br><br>Your request to sign up for #_TASKNAME (#_TASKBEGIN) for #_EVENTNAME has been updated.<br><br>Yours faithfully,<br>#_CONTACTPERSON",'events-made-easy');
$task_signup_reminder_email_subject_localizable = __( "Reminder: Signup for task '#_TASKNAME' for '#_EVENTNAME'", 'events-made-easy' );
$task_signup_reminder_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>This is a reminder that you signed up for #_TASKNAME (#_TASKBEGIN) for #_EVENTNAME.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$eme_bd_email_subject_localizable = __( 'Happy birthday #_PERSONFIRSTNAME', 'events-made-easy' );
$eme_bd_email_body_localizable = __( 'Hi #_PERSONFIRSTNAME,<br><br>Congratulations on your birthday!!!<br><br>From EME', 'events-made-easy' );
$contact_person_fs_newevent_email_subject_localizable = __('A new event has been submitted via the frontend','events-made-easy');
$contact_person_fs_newevent_email_body_localizable = __('The following event has been submitted:<br>#_EVENTNAME (#_STARTDATE #_SARTTIME), edit it here: #_EDITEVENTLINK <br><br>Yours faithfully,<br>#_CONTACTPERSON','events-made-easy');
#$registration_paid_email_subject_localizable = __( "Booking for '#_EVENTNAME' paid", 'events-made-easy' );
#$registration_paid_email_body_localizable = __( 'Dear #_PERSONFULLNAME,<br><br>Your request to book #_RESPSEATS seat(s) for #_EVENTNAME has been paid for.<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
$eme_options = [
'eme_event_list_item_format' => '<li>#_STARTDATE - #_STARTTIME<br> #_LINKEDNAME<br>#_TOWN </li>',
'eme_event_list_item_format_header' => DEFAULT_EVENT_LIST_HEADER_FORMAT,
'eme_cat_event_list_item_format_header' => DEFAULT_CAT_EVENT_LIST_HEADER_FORMAT,
'eme_event_list_item_format_footer' => DEFAULT_EVENT_LIST_FOOTER_FORMAT,
'eme_cat_event_list_item_format_footer' => DEFAULT_CAT_EVENT_LIST_FOOTER_FORMAT,
'eme_display_calendar_in_events_page' => 0,
'eme_display_events_in_events_page' => 0,
'eme_single_event_format' => '#_STARTDATE - #_STARTTIME<br>#_TOWN<br>#_NOTES<br>#_ADDBOOKINGFORM<br>#_MAP',
'eme_event_page_title_format' => '#_EVENTNAME',
'eme_event_html_title_format' => DEFAULT_EVENT_HTML_TITLE_FORMAT,
'eme_show_period_monthly_dateformat' => DEFAULT_SHOW_PERIOD_MONTHLY_DATEFORMAT,
'eme_show_period_yearly_dateformat' => DEFAULT_SHOW_PERIOD_YEARLY_DATEFORMAT,
'eme_filter_form_format' => DEFAULT_FILTER_FORM_FORMAT,
'eme_events_page_title' => DEFAULT_EVENTS_PAGE_TITLE,
'eme_no_events_message' => __( 'No events', 'events-made-easy' ),
'eme_form_required_field_string' => $eme_form_required_field_string_localizable,
'eme_location_page_title_format' => '#_LOCATIONNAME',
'eme_location_html_title_format' => DEFAULT_LOCATION_HTML_TITLE_FORMAT,
'eme_location_baloon_format' => "<strong>#_LOCATIONNAME</strong><br>#_ADDRESS - #_TOWN<br><a href='#_LOCATIONPAGEURL'>Details</a>",
'eme_location_map_icon' => '',
'eme_location_event_list_item_format' => DEFAULT_LOCATION_EVENT_LIST_ITEM_FORMAT,
'eme_location_no_events_message' => __( 'No events at this location', 'events-made-easy' ),
'eme_single_location_format' => '#_ADDRESS<br>#_TOWN<br>#_DESCRIPTION #_MAP',
'eme_page_access_denied' => __( 'Access denied!', 'events-made-easy' ),
'eme_membership_login_required_string' => __( 'You need to be logged in in order to be able to register for this membership.', 'events-made-easy' ),
'eme_membership_unauth_attendance_msg' => $eme_membership_unauth_attendance_msg_localizeable,
'eme_membership_attendance_msg' => $eme_membership_attendance_msg_localizeable,
'eme_members_show_people_info' => 0,
'eme_ical_title_format' => '#_EVENTNAME',
'eme_ical_description_format' => '#_NOTES',
'eme_ical_location_format' => '#_LOCATIONNAME, #_ADDRESS, #_TOWN',
'eme_rss_main_title' => get_bloginfo( 'title' ) . ' - ' . __( 'Events', 'events-made-easy' ),
'eme_rss_main_description' => get_bloginfo( 'description' ) . ' - ' . __( 'Events', 'events-made-easy' ),
'eme_rss_description_format' => '#_STARTDATE - #_STARTTIME <br> #_NOTES <br>#_LOCATIONNAME <br>#_ADDRESS <br>#_TOWN',
'eme_rss_title_format' => '#_EVENTNAME',
'eme_rss_show_pubdate' => 1,
'eme_rss_pubdate_startdate' => 0,
'eme_map_is_active' => true,
'eme_map_zooming' => true,
'eme_indiv_zoom_factor' => 14,
'eme_map_gesture_handling' => 0,
'eme_seo_permalink' => true,
'eme_permalink_events_prefix' => 'events',
'eme_permalink_locations_prefix' => 'locations',
'eme_permalink_categories_prefix' => '',
'eme_permalink_calendar_prefix' => '',
'eme_permalink_payments_prefix' => '',
'eme_default_contact_person' => -1,
'eme_honeypot_for_forms' => 1,
'eme_captcha_only_logged_out' => 0,
'eme_hcaptcha_for_forms' => 0,
'eme_hcaptcha_site_key' => '',
'eme_hcaptcha_secret_key' => '',
'eme_recaptcha_for_forms' => 0,
'eme_recaptcha_site_key' => '',
'eme_recaptcha_secret_key' => '',
'eme_cfcaptcha_for_forms' => 0,
'eme_cfcaptcha_site_key' => '',
'eme_cfcaptcha_secret_key' => '',
'eme_captcha_for_forms' => 0,
'eme_stay_on_edit_page' => 0,
'eme_rsvp_mail_notify_is_active' => 1,
'eme_rsvp_mail_notify_pending' => 1,
'eme_rsvp_mail_notify_paid' => 0,
'eme_rsvp_mail_notify_approved' => 1,
'eme_rsvp_check_required_fields' => 1,
'eme_contactperson_email_subject' => $contact_person_email_subject_localizable,
'eme_contactperson_email_body' => eme_br2nl( $contact_person_email_body_localizable ),
'eme_contactperson_cancelled_email_subject' => $contactperson_cancelled_email_subject_localizable,
'eme_contactperson_cancelled_email_body' => eme_br2nl( $contactperson_cancelled_email_body_localizable ),
'eme_contactperson_pending_email_subject' => $contact_person_pending_email_subject_localizable,
'eme_contactperson_pending_email_body' => eme_br2nl( $contact_person_pending_email_body_localizable ),
'eme_contactperson_ipn_email_subject' => '',
'eme_contactperson_ipn_email_body' => '',
'eme_contactperson_paid_email_subject' => '',
'eme_contactperson_paid_email_body' => '',
'eme_fs_author_ipn_email_subject' => '',
'eme_fs_author_ipn_email_body' => '',
'eme_fs_contactperson_ipn_email_subject' => '',
'eme_fs_contactperson_ipn_email_body' => '',
'eme_fs_contactperson_newevent_email_subject' => $contact_person_fs_newevent_email_subject_localizable,
'eme_fs_contactperson_newevent_email_body' => eme_br2nl( $contact_person_fs_newevent_email_body_localizable ),
'eme_respondent_email_subject' => $respondent_email_subject_localizable,
'eme_respondent_email_body' => eme_br2nl( $respondent_email_body_localizable ),
'eme_registration_pending_email_subject' => $registration_pending_email_subject_localizable,
'eme_registration_pending_email_body' => eme_br2nl( $registration_pending_email_body_localizable ),
'eme_registration_userpending_email_subject' => $registration_userpending_email_subject_localizable,
'eme_registration_userpending_email_body' => eme_br2nl( $registration_userpending_email_body_localizable ),
'eme_registration_cancelled_email_subject' => $registration_cancelled_email_subject_localizable,
'eme_registration_cancelled_email_body' => eme_br2nl( $registration_cancelled_email_body_localizable ),
'eme_registration_trashed_email_subject' => $registration_trashed_email_subject_localizable,
'eme_registration_trashed_email_body' => eme_br2nl( $registration_trashed_email_body_localizable ),
'eme_registration_updated_email_subject' => $registration_updated_email_subject_localizable,
'eme_registration_updated_email_body' => eme_br2nl( $registration_updated_email_body_localizable ),
'eme_registration_paid_email_subject' => $registration_paid_email_subject_localizable,
'eme_registration_paid_email_body' => eme_br2nl( $registration_paid_email_body_localizable ),
'eme_registration_pending_reminder_email_subject' => $registration_pending_reminder_email_subject_localizable,
'eme_registration_pending_reminder_email_body' => eme_br2nl( $registration_pending_reminder_email_body_localizable ),
'eme_registration_reminder_email_subject' => $registration_reminder_email_subject_localizable,
'eme_registration_reminder_email_body' => eme_br2nl( $registration_reminder_email_body_localizable ),
'eme_registration_recorded_ok_html' => $registration_recorded_ok_html_localizable,
'eme_registration_form_format' => $registration_form_format_localizable,
'eme_cancel_form_format' => $cancel_form_format_localizable,
'eme_cancel_payment_form_format' => $cancel_payment_form_format_localizable,
'eme_cancel_payment_line_format' => $cancel_payment_line_format_localizable,
'eme_cancelled_payment_format' => $cancelled_payment_format_localizable,
'eme_tasks_enabled' => true,
'eme_task_reminder_days' => '',
'eme_rsvp_pending_reminder_days' => '',
'eme_rsvp_approved_reminder_days' => '',
'eme_task_registered_users_only' => 0,
'eme_task_only_one_signup_pp' => 0,
'eme_task_requires_approval' => 0,
'eme_task_allow_overlap' => 0,
'eme_task_form_taskentry_format' => '#_TASKSIGNUPCHECKBOX #_TASKNAME (#_TASKBEGIN - #_TASKEND) (#_FREETASKSPACES/#_TASKSPACES) <br>',
'eme_task_form_format' => $task_form_format_localizable,
'eme_task_signup_format' => '#_FULLNAME <br>',
'eme_task_signup_recorded_ok_html' => $task_signup_recorded_ok_html_localizable,
'eme_cp_task_signup_pending_email_subject' => $task_cp_pending_email_subject_localizable,
'eme_cp_task_signup_pending_email_body' => $task_cp_pending_email_body_localizable,
'eme_cp_task_signup_email_subject' => $task_cp_email_subject_localizable,
'eme_cp_task_signup_email_body' => $task_cp_email_body_localizable,
'eme_cp_task_signup_cancelled_email_subject' => $task_cp_cancelled_email_subject_localizable,
'eme_cp_task_signup_cancelled_email_body' => $task_cp_cancelled_email_body_localizable,
'eme_task_signup_pending_email_subject' => $task_signup_pending_email_subject_localizable,
'eme_task_signup_pending_email_body' => $task_signup_pending_email_body_localizable,
'eme_task_signup_email_subject' => $task_signup_email_subject_localizable,
'eme_task_signup_email_body' => $task_signup_email_body_localizable,
'eme_task_signup_cancelled_email_subject' => $task_signup_cancelled_email_subject_localizable,
'eme_task_signup_cancelled_email_body' => $task_signup_cancelled_email_body_localizable,
'eme_task_signup_trashed_email_subject' => $task_signup_trashed_email_subject_localizable,
'eme_task_signup_trashed_email_body' => $task_signup_trashed_email_body_localizable,
'eme_task_signup_reminder_email_subject' => $task_signup_reminder_email_subject_localizable,
'eme_task_signup_reminder_email_body' => $task_signup_reminder_email_body_localizable,
'eme_bd_email_subject' => $eme_bd_email_subject_localizable,
'eme_bd_email_body' => $eme_bd_email_body_localizable,
'eme_gdpr_remove_old_attendances_days' => 0,
'eme_gdpr_anonymize_expired_member_days' => 0,
'eme_gdpr_remove_expired_member_days' => 0,
'eme_gdpr_anonymize_old_bookings_days' => 0,
'eme_gdpr_remove_old_events_days' => 0,
'eme_gdpr_archive_old_mailings_days' => 0,
'eme_gdpr_remove_old_signups_days' => 0,
'eme_gdpr_page_header' => '',
'eme_gdpr_page_footer' => '',
'eme_gdpr_page_title' => $eme_gdpr_page_title_localizable,
'eme_gdpr_subject' => $eme_gdpr_subject_localizable,
'eme_gdpr_body' => $eme_gdpr_body_localizable,
'eme_gdpr_approve_page_title' => $eme_gdpr_approve_page_title_localizable,
'eme_gdpr_approve_page_content' => $eme_gdpr_approve_page_content_localizable,
'eme_gdpr_approve_subject' => $eme_gdpr_approve_subject_localizable,
'eme_gdpr_approve_body' => $eme_gdpr_approve_body_localizable,
'eme_cpi_subject' => $eme_cpi_subject_localizable,
'eme_cpi_body' => $eme_cpi_body_localizable,
'eme_cpi_form' => $eme_cpi_form_localizable,
'eme_sub_subject' => $eme_sub_subject_localizable,
'eme_sub_body' => $eme_sub_body_localizable,
'eme_unsub_subject' => $eme_unsub_subject_localizable,
'eme_unsub_body' => $eme_unsub_body_localizable,
'eme_cancel_rsvp_days' => 0,
'eme_cancel_rsvp_age' => 0,
'eme_rsvp_check_without_accents' => 0,
'eme_smtp_host' => 'localhost',
'eme_smtp_port' => 25,
'eme_smtp_encryption' => '',
'eme_smtp_verify_cert' => 1,
'eme_smtp_auth' => 0,
'eme_smtp_username' => '',
'eme_smtp_password' => '',
'eme_mail_sender_name' => '',
'eme_mail_sender_address' => '',
'eme_mail_force_from' => 0,
'eme_mail_bcc_address' => '',
'eme_mail_send_method' => 'wp_mail',
'eme_mail_send_html' => 1,
'eme_rsvp_registered_users_only' => 0,
'eme_rsvp_reg_for_new_events' => 0,
'eme_rsvp_default_number_spaces' => 10,
'eme_rsvp_require_approval' => 0,
'eme_rsvp_require_user_confirmation' => 0,
'eme_rsvp_show_form_after_booking' => 0,
'eme_rsvp_hide_full_events' => 0,
'eme_rsvp_hide_rsvp_ended_events' => 0,
'eme_rsvp_admin_allow_overbooking' => 0,
'eme_attendees_list_format' => '<li>#_PERSONFULLNAME (#_ATTENDSEATS)</li>',
'eme_attendees_list_ignore_pending' => 0,
'eme_bookings_list_format' => '<li>#_PERSONFULLNAME (#_RESPSEATS)</li>',
'eme_bookings_list_ignore_pending' => 0,
'eme_bookings_list_header_format' => DEFAULT_BOOKINGS_LIST_HEADER_FORMAT,
'eme_bookings_list_footer_format' => DEFAULT_BOOKINGS_LIST_FOOTER_FORMAT,
'eme_full_calendar_event_format' => '<li>#_LINKEDNAME</li>',
'eme_small_calendar_event_title_format' => '#_EVENTNAME',
'eme_small_calendar_event_title_separator' => ', ',
'eme_cal_hide_past_events' => 0,
'eme_cal_show_single' => 1,
'eme_smtp_debug' => 0,
'eme_shortcodes_in_widgets' => 0,
'eme_load_js_in_header' => 0,
'eme_use_client_clock' => 0,
'eme_event_list_number_items' => 10,
'eme_use_select_for_locations' => false,
'eme_attributes_enabled' => false,
'eme_rsvp_enabled' => true,
'eme_rsvp_addbooking_submit_string' => __( 'Send your booking', 'events-made-easy' ),
'eme_rsvp_addbooking_min_spaces' => 1,
'eme_rsvp_addbooking_max_spaces' => 10,
'eme_rsvp_delbooking_submit_string' => __( 'Cancel your booking', 'events-made-easy' ),
'eme_address1_string' => $eme_address1_localizable,
'eme_address2_string' => $eme_address2_localizable,
'eme_rsvp_not_yet_allowed_string' => $eme_rsvp_not_yet_allowed_localizable,
'eme_rsvp_no_longer_allowed_string' => $eme_rsvp_no_longer_allowed_localizable,
'eme_rsvp_cancel_no_longer_allowed_string' => $eme_rsvp_cancel_no_longer_allowed_localizable,
'eme_rsvp_full_string' => $eme_rsvp_full_localizable,
'eme_rsvp_on_waiting_list_string' => $eme_rsvp_on_waiting_list_localizable,
'eme_rsvp_login_required_string' => __( 'You need to be logged in in order to be able to register for this event.', 'events-made-easy' ),
'eme_rsvp_invitation_required_string' => __( 'You need to be invited for this event in order to be able to register.', 'events-made-easy' ),
'eme_rsvp_email_already_registered_string' => __( 'This email has already registered.', 'events-made-easy' ),
'eme_rsvp_person_already_registered_string' => __( 'This person has already registered.', 'events-made-easy' ),
'eme_categories_enabled' => true,
'eme_cap_list_events' => DEFAULT_CAP_LIST_EVENTS,
'eme_cap_add_event' => DEFAULT_CAP_ADD_EVENT,
'eme_cap_author_event' => DEFAULT_CAP_AUTHOR_EVENT,
'eme_cap_publish_event' => DEFAULT_CAP_PUBLISH_EVENT,
'eme_cap_edit_events' => DEFAULT_CAP_EDIT_EVENTS,
'eme_cap_manage_task_signups' => DEFAULT_CAP_MANAGE_TASK_SIGNUPS,
'eme_cap_list_locations' => DEFAULT_CAP_LIST_LOCATIONS,
'eme_cap_add_locations' => DEFAULT_CAP_ADD_LOCATION,
'eme_cap_author_locations' => DEFAULT_CAP_AUTHOR_LOCATION,
'eme_cap_edit_locations' => DEFAULT_CAP_EDIT_LOCATIONS,
'eme_cap_categories' => DEFAULT_CAP_CATEGORIES,
'eme_cap_holidays' => DEFAULT_CAP_HOLIDAYS,
'eme_cap_templates' => DEFAULT_CAP_TEMPLATES,
'eme_cap_access_people' => DEFAULT_CAP_ACCESS_PEOPLE,
'eme_cap_list_people' => DEFAULT_CAP_EDIT_PEOPLE,
'eme_cap_edit_people' => DEFAULT_CAP_EDIT_PEOPLE,
'eme_cap_author_person' => DEFAULT_CAP_AUTHOR_PERSON,
'eme_cap_access_members' => DEFAULT_CAP_ACCESS_MEMBERS,
'eme_cap_list_members' => DEFAULT_CAP_EDIT_MEMBERS,
'eme_cap_edit_members' => DEFAULT_CAP_EDIT_MEMBERS,
'eme_cap_author_member' => DEFAULT_CAP_AUTHOR_MEMBER,
'eme_cap_discounts' => DEFAULT_CAP_DISCOUNTS,
'eme_cap_list_approve' => DEFAULT_CAP_LIST_APPROVE,
'eme_cap_author_approve' => DEFAULT_CAP_AUTHOR_APPROVE,
'eme_cap_approve' => DEFAULT_CAP_APPROVE,
'eme_cap_list_registrations' => DEFAULT_CAP_LIST_REGISTRATIONS,
'eme_cap_author_registrations' => DEFAULT_CAP_AUTHOR_REGISTRATIONS,
'eme_cap_registrations' => DEFAULT_CAP_REGISTRATIONS,
'eme_cap_attendancecheck' => DEFAULT_CAP_ATTENDANCECHECK,
'eme_cap_membercheck' => DEFAULT_CAP_MEMBERCHECK,
'eme_cap_forms' => DEFAULT_CAP_FORMS,
'eme_cap_cleanup' => DEFAULT_CAP_CLEANUP,
'eme_cap_settings' => DEFAULT_CAP_SETTINGS,
'eme_cap_send_mails' => DEFAULT_CAP_SEND_MAILS,
'eme_cap_send_other_mails' => DEFAULT_CAP_SEND_OTHER_MAILS,
'eme_cap_send_generic_mails' => DEFAULT_CAP_SEND_GENERIC_MAILS,
'eme_cap_view_mails' => DEFAULT_CAP_VIEW_MAILS,
'eme_cap_manage_mails' => DEFAULT_CAP_MANAGE_MAILS,
'eme_cap_list_attendances' => DEFAULT_CAP_LIST_ATTENDANCES,
'eme_cap_manage_attendances' => DEFAULT_CAP_MANAGE_ATTENDANCES,
'eme_limit_admin_event_listing' => 0,
'eme_html_header' => '',
'eme_html_footer' => '',
'eme_event_html_headers_format' => '',
'eme_location_html_headers_format' => '',
'eme_offline_payment' => '',
'eme_legacypaypal_url' => 'live',
'eme_legacypaypal_business' => '',
'eme_legacypaypal_no_tax' => 0,
'eme_legacypaypal_cost' => 0,
'eme_legacypaypal_cost2' => 0,
'eme_legacypaypal_button_label' => sprintf( $eme_payment_button_label_localizable, 'Paypal' ),
'eme_legacypaypal_button_img_url' => '',
'eme_legacypaypal_button_above' => sprintf( $eme_payment_button_above_localizable, 'Paypal' ),
'eme_legacypaypal_button_below' => '',
'eme_paypal_url' => 'live',
'eme_paypal_clientid' => '',
'eme_paypal_secret' => '',
'eme_paypal_cost' => 0,
'eme_paypal_cost2' => 0,
'eme_paypal_button_label' => sprintf( $eme_payment_button_label_localizable, 'Paypal' ),
'eme_paypal_button_img_url' => '',
'eme_paypal_button_above' => sprintf( $eme_payment_button_above_localizable, 'Paypal' ),
'eme_paypal_button_below' => '',
'eme_webmoney_demo' => 0,
'eme_webmoney_purse' => '',
'eme_webmoney_secret' => '',
'eme_webmoney_cost' => 0,
'eme_webmoney_cost2' => 0,
'eme_webmoney_button_label' => sprintf( $eme_payment_button_label_localizable, 'Webmoney' ),
'eme_webmoney_button_img_url' => '',
'eme_webmoney_button_above' => sprintf( $eme_payment_button_above_localizable, 'Webmoney' ),
'eme_webmoney_button_below' => '',
'eme_worldpay_demo' => 1,
'eme_worldpay_instid' => '',
'eme_worldpay_md5_secret' => '',
'eme_worldpay_md5_parameters' => 'instId:cartId:currency:amount',
'eme_worldpay_test_pwd' => '',
'eme_worldpay_live_pwd' => '',
'eme_worldpay_cost' => 0,
'eme_worldpay_cost2' => 0,
'eme_worldpay_button_label' => sprintf( $eme_payment_button_label_localizable, 'Worldpay' ),
'eme_worldpay_button_img_url' => '',
'eme_worldpay_button_above' => sprintf( $eme_payment_button_above_localizable, 'Worldpay' ),
'eme_worldpay_button_below' => '',
'eme_braintree_private_key' => '',
'eme_braintree_public_key' => '',
'eme_braintree_merchant_id' => '',
'eme_braintree_env' => 'production',
'eme_braintree_cost' => 0,
'eme_braintree_cost2' => 0,
'eme_braintree_button_label' => sprintf( $eme_payment_button_label_localizable, 'Braintree' ),
'eme_braintree_button_img_url' => '',
'eme_braintree_button_above' => sprintf( $eme_payment_button_above_localizable, 'Braintree' ),
'eme_braintree_button_below' => '',
'eme_instamojo_env' => 'sandbox',
'eme_instamojo_key' => '',
'eme_instamojo_auth_token' => '',
'eme_instamojo_salt' => '',
'eme_instamojo_cost' => 0,
'eme_Instamojo_cost2' => 0,
'eme_instamojo_button_label' => sprintf( $eme_payment_button_label_localizable, 'Instamojo' ),
'eme_instamojo_button_img_url' => '',
'eme_instamojo_button_above' => sprintf( $eme_payment_button_above_localizable, 'Instamojo' ),
'eme_instamojo_button_below' => '',
'eme_sumup_merchant_code' => '',
'eme_sumup_app_id' => '',
'eme_sumup_app_secret' => '',
'eme_sumup_cost' => 0,
'eme_sumup_cost2' => 0,
'eme_sumup_button_label' => sprintf( $eme_payment_button_label_localizable, 'SumUp' ),
'eme_sumup_button_img_url' => '',
'eme_sumup_button_above' => sprintf( $eme_payment_button_above_localizable, 'SumUp' ),
'eme_sumup_button_below' => '',
'eme_stripe_private_key' => '',
'eme_stripe_public_key' => '',
'eme_stripe_cost' => 0,
'eme_stripe_cost2' => 0,
'eme_stripe_button_label' => sprintf( $eme_payment_button_label_localizable, 'Stripe' ),
'eme_stripe_button_img_url' => '',
'eme_stripe_button_above' => sprintf( $eme_payment_button_above_localizable, 'Stripe' ),
'eme_stripe_button_below' => '',
'eme_stripe_payment_methods' => ['card'],
'eme_fdgg_url' => 'live',
'eme_fdgg_store_name' => '',
'eme_fdgg_shared_secret' => '',
'eme_fdgg_cost' => 0,
'eme_fdgg_cost2' => 0,
'eme_fdgg_button_label' => sprintf( $eme_payment_button_label_localizable, 'First Data' ),
'eme_fdgg_button_img_url' => '',
'eme_fdgg_button_above' => sprintf( $eme_payment_button_above_localizable, 'First Data' ),
'eme_fdgg_button_below' => '',
'eme_opayo_demo' => 1,
'eme_opayo_vendor_name' => '',
'eme_opayo_test_pwd' => '',
'eme_opayo_live_pwd' => '',
'eme_opayo_cost' => 0,
'eme_opayo_cost2' => 0,
'eme_opayo_button_label' => sprintf( $eme_payment_button_label_localizable, 'Opayo' ),
'eme_opayo_button_img_url' => '',
'eme_opayo_button_above' => sprintf( $eme_payment_button_above_localizable, 'Opayo' ),
'eme_opayo_button_below' => '',
'eme_mollie_api_key' => '',
'eme_mollie_cost' => 0,
'eme_mollie_cost2' => 0,
'eme_mollie_button_label' => sprintf( $eme_payment_button_label_localizable, 'Mollie' ),
'eme_mollie_button_img_url' => '',
'eme_mollie_button_above' => sprintf( $eme_payment_button_above_localizable, 'Mollie' ),
'eme_mollie_button_below' => __( 'Using Mollie, you can pay using one of the following methods:', 'events-made-easy' ) . '<br>',
'eme_payconiq_api_key' => '',
'eme_payconiq_env' => '',
'eme_payconiq_merchant_id' => '',
'eme_payconiq_cost' => 0,
'eme_payconiq_cost2' => 0,
'eme_payconiq_button_label' => sprintf( $eme_payment_button_label_localizable, 'Payconiq' ),
'eme_payconiq_button_img_url' => esc_url(EME_PLUGIN_URL) . 'images/payment_gateways/payconiq/logo.png',
'eme_payconiq_button_above' => sprintf( $eme_payment_button_above_localizable, 'Payconiq' ),
'eme_payconiq_button_below' => '',
'eme_mercadopago_demo' => 1,
'eme_mercadopago_sandbox_token' => '',
'eme_mercadopago_live_token' => '',
'eme_mercadopago_cost' => 0,
'eme_mercadopago_cost2' => 0,
'eme_mercadopago_button_label' => sprintf( $eme_payment_button_label_localizable, 'Mercado Pago' ),
'eme_mercadopago_button_img_url' => '',
'eme_mercadopago_button_above' => sprintf( $eme_payment_button_above_localizable, 'Mercado Pago' ),
'eme_mercadopago_button_below' => '',
'eme_fondy_merchant_id' => '',
'eme_fondy_secret_key' => '',
'eme_fondy_cost' => 0,
'eme_fondy_cost2' => 0,
'eme_fondy_button_label' => sprintf( $eme_payment_button_label_localizable, 'Fondy' ),
'eme_fondy_button_img_url' => '',
'eme_fondy_button_above' => sprintf( $eme_payment_button_above_localizable, 'Fondy' ),
'eme_fondy_button_below' => '',
'eme_event_initial_state' => EME_EVENT_STATUS_DRAFT,
'eme_use_external_url' => 1,
'eme_bd_email' => 0,
'eme_bd_email_members_only' => 0,
'eme_default_currency' => 'EUR',
'eme_default_vat' => '0',
'eme_default_price' => '0',
'eme_payment_refund_ok' => 1,
'eme_pg_submit_immediately' => 0,
'eme_payment_redirect' => 1,
'eme_payment_redirect_wait' => 5,
'eme_payment_redirect_msg' => $eme_payment_redirect_msg_localizable,
'eme_rsvp_start_target' => 'start',
'eme_rsvp_start_number_days' => 0,
'eme_rsvp_start_number_hours' => 0,
'eme_rsvp_end_target' => 'start',
'eme_rsvp_end_number_days' => 0,
'eme_rsvp_end_number_hours' => 0,
'eme_thumbnail_size' => 'thumbnail',
'eme_payment_form_header_format' => '',
'eme_payment_form_footer_format' => '',
'eme_multipayment_form_header_format' => '',
'eme_multipayment_form_footer_format' => '',
'eme_fs_payment_form_header_format' => '',
'eme_fs_payment_form_footer_format' => '',
'eme_payment_succes_format' => __( 'Payment success for your booking for #_EVENTNAME', 'events-made-easy' ),
'eme_payment_fail_format' => __( 'Payment failed for your booking for #_EVENTNAME', 'events-made-easy' ),
'eme_payment_member_succes_format' => __( 'Payment success for your membership signup for #_MEMBERSHIPNAME', 'events-made-easy' ),
'eme_payment_member_fail_format' => __( 'Payment failed for your membership signup for #_MEMBERSHIPNAME', 'events-made-easy' ),
'eme_payment_booking_already_paid_format' => __( 'This has already been paid for', 'events-made-easy' ),
'eme_payment_booking_on_waitinglist_format' => __( 'This booking is on a waitinglist, payment is not possible.', 'events-made-easy' ),
'eme_enable_notes_placeholders' => 0,
'eme_uninstall_drop_data' => 0,
'eme_uninstall_drop_settings' => 0,
'eme_csv_delimiter' => ';',
'eme_decimals' => 2,
'eme_timepicker_minutesstep' => 5,
'eme_localize_price' => 1,
'eme_autocomplete_sources' => 'none',
'eme_cron_cleanup_unpaid_minutes' => 0,
'eme_cron_cleanup_unconfirmed_minutes' => 0,
'eme_cron_send_queued' => '',
'eme_cron_queue_count' => 50,
'eme_mail_sleep' => 0,
'eme_queue_mails' => 1,
'eme_people_newsletter' => 1,
'eme_people_massmail' => 0,
'eme_massmail_popup' => 1,
'eme_massmail_popup_text' => __( 'You selected to not receive future mails. Are you sure about this?', 'events-made-easy' ),
'eme_add_events_locs_link_search' => 0,
'eme_booking_attach_ids' => '',
'eme_booking_attach_tmpl_ids' => [],
'eme_pending_attach_ids' => '',
'eme_pending_attach_tmpl_ids' => [],
'eme_paid_attach_ids' => '',
'eme_paid_attach_tmpl_ids' => [],
'eme_fs_ipn_attach_ids' => '',
'eme_fs_ipn_attach_tmpl_ids' => [],
'eme_subscribe_attach_ids' => [],
'eme_allowed_html' => '',
'eme_allowed_style_attr' => '',
'eme_redir_priv_event_url' => '',
'eme_redir_protected_pages_url' => '',
'eme_full_name_format' => '#_FIRSTNAME #_LASTNAME',
'eme_pdf_font' => 'dejavu sans',
'eme_frontend_nocache' => 0,
'eme_use_is_page_for_title' => 0,
'eme_mail_tracking' => 0,
'eme_mail_blacklist' => '',
'eme_backend_dateformat' => '',
'eme_backend_timeformat' => '',
'eme_check_free_waiting' => 0,
'eme_multisite_active' => 0,
'eme_rememberme' => 0,
'eme_fs' => [
'auto_publish' => EME_EVENT_STATUS_PUBLIC,
'guest_submit' => false,
'success_message' => __('New event succesfully created.','events-made-easy'),
'always_success_message' => 0,
'redirect_timeout' => 0,
'default_cat' => 0,
'guest_not_allowed_text' => '',
'redirect_to_login' => 0,
'cap_add_event' => 'edit_posts',
'force_location_creation' => 0,
'selected_captcha' => '',
'use_wysiwyg' => 0,
'allow_upload' => 0,
'price' => 0,
'currency' => '',
'payment_gateways' => [],
'contact_person' => 0,
'form_format' => '<h2>Event Information</h2>
<div class="input">
<label for="event_name">Event Name</label><br />
#_FIELD{event_name}
</div>
<div class="input select">
<label for="event_category_ids">Select the Event Category</label><br/>
#_FIELD{event_category_ids}
</div>
<fieldset>
<legend>Date & Time</legend>
<fieldset id="event_start">
<legend>Start</legend>
<div class="input">
<label for="event_start_date">Date</label>
#_FIELD{event_start_date}
</div>
<div class="input">
<label for="event_start_time">Time</label>
#_FIELD{event_start_time}
</div>
</fieldset>
<fieldset id="event_end">
<legend>End</legend>
<div class="input">
<label for="event_end_date">Date</label>
#_FIELD{event_end_date}
</div>
<div class="input">
<label for="event_end_time">Time</label>
#_FIELD{event_end_time}
</div>
</fieldset>
</fieldset>
<div class="input">
<label for="event_description">Description</label><br />
#REQ_FIELD{event_notes}
</div>
<div class="input">
<label for="event_contactperson_email_body">Contact E-mail body</label><br />
#_FIELD{event_contactperson_email_body}{textarea}
</div>
<div class="input">
<label for="event_url">Event External URL</label><br />
#_FIELD{event_url}
</div>
<h3>Location Information</h3>
<div class="input">
<label for="location_name">Location name</label>
#_FIELD{location_name}
</div>
<div class="input">
<label for="location_address1">Address</label>
#_FIELD{location_address1}
</div>
<div class="input">
<label for="location_city">City or Town</label>
#_FIELD{location_city}
</div>
<div class="map">
#_MAP
</div>
'
]
];
foreach ( $eme_options as $key => $value ) {
eme_add_option( $key, $value, $reset );
}
}
function eme_update_options( $db_version ) {
if ( $db_version ) {
if ( $db_version > 0 && $db_version < 49 ) {
delete_option( 'eme_events_admin_limit' );
}
if ( $db_version > 0 && $db_version < 55 ) {
$smtp_port = get_option( 'eme_rsvp_mail_port' );
delete_option( 'eme_rsvp_mail_port' );
update_option( 'eme_smtp_port', $smtp_port );
}
if ( $db_version < 70 ) {
delete_option( 'eme_google_checkout_type' );
delete_option( 'eme_google_merchant_id' );
delete_option( 'eme_google_merchant_key' );
delete_option( 'eme_google_cost' );
}
if ( $db_version < 105 ) {
delete_option( 'eme_phpold' );
delete_option( 'eme_conversion_needed' );
}
if ( $db_version < 119 ) {
// remove some deprecated options
$options = [ 'eme_image_max_width', 'eme_image_max_height', 'eme_image_max_size', 'eme_legacy', 'eme_deprecated', 'eme_legacy_warning', 'eme_list_events_page', 'eme_deny_mail_event_edit', 'eme_fb_app_id' ];
foreach ( $options as $opt ) {
delete_option( $opt );
}
// rename some options
$rename_options = [
'eme_cron_reminder_unpayed_minutes' => 'eme_cron_reminder_unpaid_minutes',
'eme_cron_cleanup_unpayed_minutes' => 'eme_cron_cleanup_unpaid_minutes',
'eme_cron_reminder_unpayed_subject' => 'eme_cron_reminder_unpaid_subject',
'eme_cron_reminder_unpayed_body' => 'eme_cron_reminder_unpaid_body',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
// remove old schedule
if ( wp_next_scheduled( 'eme_cron_cleanup_unpayed' ) ) {
wp_clear_scheduled_hook( 'eme_cron_cleanup_unpayed' );
}
}
if ( $db_version < 127 ) {
delete_option( 'eme_calc_price_dynamically' );
}
if ( $db_version < 157 ) {
delete_option( 'eme_rsvp_force_nl2br' );
}
if ( $db_version < 164 ) {
delete_option( 'eme_payment_add_bookingid_to_return' );
}
if ( $db_version < 184 ) {
delete_option( 'eme_payment_show_custom_return_page' );
}
if ( $db_version < 197 ) {
// rename some options
$rename_options = [
'eme_rsvp_required_field_string' => 'eme_form_required_field_string',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
}
if ( $db_version < 206 ) {
delete_option( 'eme_gmap_api_key' );
$rename_options = [
'eme_gmap_active' => 'eme_map_active',
'eme_gmap_zooming' => 'eme_map_zooming',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
}
if ( $db_version < 210 ) {
delete_option( 'eme_clean_session_data' );
}
if ( $db_version < 211 ) {
delete_option( 'eme_captcha_no_case' );
}
if ( $db_version < 218 ) {
delete_option( 'eme_global_zoom_factor' );
}
if ( $db_version < 229 ) {
delete_option( 'eme_paypal_s_encrypt' );
delete_option( 'eme_paypal_s_paypalcert' );
delete_option( 'eme_paypal_s_pubcert' );
delete_option( 'eme_paypal_s_privkey' );
delete_option( 'eme_paypal_s_certid' );
delete_option( 'eme_paypal_business' );
delete_option( 'eme_paypal_no_tax' );
}
if ( $db_version < 234 ) {
delete_option( 'eme_cancel_payment_header_format' );
delete_option( 'eme_cancel_payment_footer_format' );
delete_option( 'eme_cancelled_payment_header_format' );
delete_option( 'eme_cancelled_payment_line_format' );
delete_option( 'eme_cancelled_payment_footer_format' );
$cancel_payment_form_format_localizable = __( "You're about to cancel the following bookings:", 'events-made-easy' ) . '<br>#_CANCEL_PAYMENT_LINE #_SUBMIT';
update_option( 'eme_cancel_payment_form_format', $cancel_payment_form_format_localizable );
}
if ( $db_version < 241 ) {
delete_option( 'eme_stripe_data_img_url' );
}
if ( $db_version < 242 ) {
delete_option( 'eme_loop_protection' );
}
if ( $db_version < 247 ) {
// rename some options
$rename_options = [
'eme_registration_denied_email_subject' => 'eme_registration_trashed_email_subject',
'eme_registration_denied_email_body' => 'eme_registration_trashed_email_body',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
}
if ( $db_version < 250 ) {
// rename some options
$rename_options = [
'eme_cap_people' => 'eme_cap_edit_people',
'eme_cap_members' => 'eme_cap_edit_members',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
}
if ( $db_version < 278 ) {
delete_option( 'eme_ical_quote_tzid' );
}
if ( $db_version < 289 ) {
delete_option( 'eme_always_queue_mails' );
}
if ( $db_version < 298 ) {
// rename some options
$rename_options = [
'eme_captcha_for_booking' => 'eme_captcha_for_forms',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
delete_option( 'eme_donation_done' );
delete_option( 'eme_hello_to_user' );
}
if ( $db_version < 298 ) {
delete_option( 'eme_categories_separator' );
delete_option( 'eme_categorydescriptions_separator' );
delete_option( 'eme_linkedcategories_separator' );
delete_option( 'eme_global_maptype' );
delete_option( 'eme_indiv_maptype' );
}
if ( $db_version < 304 ) {
delete_option( 'eme_recurrence_enabled' );
}
if ( $db_version < 306 ) {
// rename some options
$rename_options = [
'eme_mail_recipient_format' => 'eme_full_name_format',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
}
if ( $db_version < 309 ) {
update_option( 'eme_full_name_format', '#_FIRSTNAME #_LASTNAME' );
$eme_cpi_body_localizable = __( 'Hi,<br><br>Please find below the info needed to change the personal info for each matching person<br>#_CHANGE_PERSON_INFO<br><br>Yours faithfully,<br>#_CONTACTPERSON', 'events-made-easy' );
update_option( 'eme_cpi_body', $eme_cpi_body_localizable );
}
if ( $db_version < 315 ) {
// rename some options
$rename_options = [
'eme_gdpr_remove_old_bookings_days' => 'eme_gdpr_anonymize_old_bookings_days',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
}
if ( $db_version < 327 ) {
delete_option( 'eme_disable_wpautop' );
}
if ( $db_version < 338 ) {
if ( wp_next_scheduled( 'eme_cron_reminder_unpaid' ) ) {
wp_unschedule_hook( 'eme_cron_reminder_unpaid' );
}
delete_option( 'eme_cron_reminder_unpaid_minutes' );
delete_option( 'eme_cron_reminder_unpaid_subject' );
delete_option( 'eme_cron_reminder_unpaid_body' );
}
if ( $db_version < 340 ) {
update_option( 'eme_cap_access_people', get_option( 'eme_cap_list_people' ) );
update_option( 'eme_cap_access_members', get_option( 'eme_cap_list_members' ) );
}
if ( $db_version < 347 ) {
delete_option( 'eme_paymill_demo' );
delete_option( 'eme_paymill_private_key' );
delete_option( 'eme_paymill_public_key' );
delete_option( 'eme_paymill_private_test_key' );
delete_option( 'eme_paymill_public_test_key' );
delete_option( 'eme_paymill_cost' );
delete_option( 'eme_paymill_cost2' );
delete_option( 'eme_paymill_button_label' );
delete_option( 'eme_paymill_button_img_url' );
delete_option( 'eme_paymill_button_above' );
delete_option( 'eme_paymill_button_below' );
delete_option( 'eme_sagepay_demo' );
delete_option( 'eme_sagepay_vendor_name' );
delete_option( 'eme_sagepay_test_pwd' );
delete_option( 'eme_sagepay_live_pwd' );
delete_option( 'eme_sagepay_cost' );
delete_option( 'eme_sagepay_cost2' );
delete_option( 'eme_sagepay_button_label' );
delete_option( 'eme_sagepay_button_img_url' );
delete_option( 'eme_sagepay_button_above' );
delete_option( 'eme_sagepay_button_below' );
}
if ( $db_version < 361 ) {
if ( ! empty( get_option( 'eme_mail_sender_address' ) ) ) {
update_option( 'eme_mail_force_from', 1 );
}
}
if ( $db_version < 366 ) {
if ( get_option( 'eme_payconiq_button_img_url' ) == 'images/payment_gateways/payconiq/logo.png') {
update_option( 'eme_payconiq_button_img_url', esc_url(EME_PLUGIN_URL) . 'images/payment_gateways/payconiq/logo.png' );
}
}
if ( $db_version < 379 ) {
$to_delete_options = [
'eme_2co_demo',
'eme_2co_secret',
'eme_2co_business',
'eme_2co_cost',
'eme_2co_cost',
'eme_2co_button_label',
'eme_2co_button_img_url',
'eme_2co_button_above',
'eme_2co_button_below'
];
foreach ( $to_delete_options as $to_delete_option ) {
delete_option( $to_delete_option );
}
// rename some options
$rename_options = [
'eme_rsvp_number_days' => 'eme_rsvp_end_number_days',
'eme_rsvp_number_hours' => 'eme_rsvp_end_number_hours',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
}
if ( $db_version < 388 ) {
// rename some options
$rename_options = [
'eme_rsvp_mail_SMTPAuth' => 'eme_smtp_auth',
'eme_rsvp_mail_send_method' => 'eme_mail_send_method',
'eme_rsvp_send_html' => 'eme_mail_send_html',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
delete_option('eme_unique_email_per_person');
}
if ( $db_version < 393 ) {
$fs_options = get_option('eme_fs');
$fs_options['form_format'] = preg_replace('/#_FIELD{location_longitude}|#_FIELD{location_latitude}|#_FIELD{location_id}/','',$fs_options['form_format']);
update_option( 'eme_fs', $fs_options);
}
if ( $db_version < 397 ) {
$fs_options = get_option('eme_fs');
$fs_options['price'] = 0;
$fs_options['payment_gateways'] = [];
$fs_options['selected_captcha'] = eme_get_selected_captcha($fs_options);
unset($fs_options['use_recaptcha']);
unset($fs_options['use_hcaptcha']);
unset($fs_options['use_cfcaptcha']);
unset($fs_options['use_captcha']);
update_option( 'eme_fs', $fs_options);
}
if ( $db_version < 400 ) {
// rename some options
$rename_options = [
'eme_csv_separator' => 'eme_csv_delimiter',
];
foreach ( $rename_options as $old_option => $new_option ) {
if ( get_option( $old_option ) ) {
update_option( $new_option, get_option( $old_option ) );
delete_option( $old_option );
}
}
}
}
// always reset the drop data option
update_option( 'eme_uninstall_drop_data', 0 );
update_option( 'eme_uninstall_drop_settings', 0 );