This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
um-config.php
1939 lines (1685 loc) · 81.7 KB
/
um-config.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
global $ultimatemember;
/***
*** @
***/
$core_pages = array(
'user' => __('User page','ultimatemember'),
'account' => __('Account page','ultimatemember'),
'members' => __('Members page','ultimatemember'),
'register' => __('Register page','ultimatemember'),
'login' => __('Login page','ultimatemember'),
'logout' => __('Logout page','ultimatemember'),
'password-reset' => __('Password reset page','ultimatemember'),
);
$core_pages = apply_filters('um_core_pages', $core_pages );
foreach( $core_pages as $page_s => $page ) {
$page_setup[] = array(
'id' => 'core_' . $page_s,
'type' => 'select',
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
'title' => $page,
'default' => ( isset( $ultimatemember->permalinks->core[ $page_s ] ) ) ? $ultimatemember->permalinks->core[ $page_s ] : '' ,
'options' => $ultimatemember->query->wp_pages(),
'placeholder' => __('Choose a page...','ultimatemember'),
'compiler' => true,
);
}
$this->sections[] = array(
'icon' => 'um-faicon-cog',
'title' => __( 'Setup','ultimatemember'),
'fields' => $page_setup
);
/***
*** @
***/
add_filter('redux/options/um_options/compiler', 'um_core_page_setting_saved', 100, 3);
function um_core_page_setting_saved($options, $css, $changed_values) {
$core_pages = array(
'user' => __('User page','ultimatemember'),
'account' => __('Account page','ultimatemember'),
'members' => __('Members page','ultimatemember'),
'register' => __('Register page','ultimatemember'),
'login' => __('Login page','ultimatemember'),
'logout' => __('Logout page','ultimatemember'),
'password-reset' => __('Password reset page','ultimatemember'),
);
$pages = get_option('um_core_pages');
$core_pages = apply_filters('um_core_pages', $core_pages );
foreach( $core_pages as $slug => $page ) {
$pages[ $slug ] = $options['core_' . $slug ];
}
update_option( 'um_core_pages', $pages );
}
/***
*** @
***/
$this->sections[] = array(
'icon' => 'um-faicon-user',
'title' => __( 'Users','ultimatemember'),
'fields' => array(
array(
'id' => 'default_role',
'type' => 'select',
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
'title' => __( 'Default New User Role','ultimatemember' ),
'desc' => __( 'Select the default role that will be assigned to user after registration If you did not specify custom role settings per form.','ultimatemember' ),
'default' => 'member',
'options' => $ultimatemember->query->get_roles(),
'placeholder' => __('Choose user role...','ultimatemember'),
),
array(
'id' => 'permalink_base',
'type' => 'select',
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
'title' => __( 'Profile Permalink Base','ultimatemember' ),
'desc' => __( 'Here you can control the permalink structure of the user profile URL globally','ultimatemember' ),
'default' => 'user_login',
'desc' => 'e.g. ' . trailingslashit( um_get_core_page('user') ) .'<strong>username</strong>/',
'options' => array(
'user_login' => __('Username','ultimatemember'),
'name' => __('First and Last Name','ultimatemember'),
'user_id' => __('User ID','ultimatemember'),
),
'placeholder' => __('Select...','ultimatemember')
),
array(
'id' => 'display_name',
'type' => 'select',
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
'title' => __( 'User Display Name','ultimatemember' ),
'desc' => __( 'This is the name that will be displayed for users on the front end of your site. Default setting uses first/last name as display name if it exists','ultimatemember' ),
'default' => 'full_name',
'options' => array(
'username' => __('Username','ultimatemember'),
'full_name' => __('First name & last name','ultimatemember'),
'sur_name' => __('Last name & first name','ultimatemember'),
'initial_name' => __('First name & first initial of last name','ultimatemember'),
'initial_name_f' => __('First initial of first name & last name','ultimatemember'),
'first_name' => __('First name only','ultimatemember'),
'public_name' => __('Display name','ultimatemember'),
'field' => __('Custom field(s)','ultimatemember'),
),
'placeholder' => __('Select...')
),
array(
'id' => 'display_name_field',
'type' => 'text',
'title' => __( 'Display Name Custom Field(s)','ultimatemember' ),
'desc' => __('Specify the custom field meta key or custom fields seperated by comma that you want to use to display users name on the frontend of your site','ultimatemember'),
'required' => array( 'display_name', '=', 'field' ),
),
array(
'id' => 'author_redirect',
'type' => 'switch',
'title' => __( 'Automatically redirect author page to their profile?','ultimatemember'),
'default' => 1,
'desc' => __('If enabled, author pages will automatically redirect to the user\'s profile page','ultimatemember'),
'on' => __('Yes','ultimatemember'),
'off' => __('No','ultimatemember'),
),
array(
'id' => 'members_page',
'type' => 'switch',
'title' => __( 'Enable Members Directory','ultimatemember' ),
'default' => 1,
'desc' => __('Control whether to enable or disable member directories on this site','ultimatemember'),
'on' => __('Yes','ultimatemember'),
'off' => __('No','ultimatemember'),
),
array(
'id' => 'use_gravatars',
'type' => 'switch',
'title' => __( 'Use Gravatars?','ultimatemember' ),
'default' => 0,
'desc' => __('Do you want to use gravatars instead of the default plugin profile photo (If the user did not upload a custom profile photo / avatar)','ultimatemember'),
'on' => __('Yes','ultimatemember'),
'off' => __('No','ultimatemember'),
),
array(
'id' => 'reset_require_strongpass',
'type' => 'switch',
'title' => __( 'Require a strong password? (when user resets password only)','ultimatemember' ),
'default' => 0,
'desc' => __('Enable or disable a strong password rules on password reset and change procedure','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
)
);
/***
*** @
***/
$this->sections[] = array(
'icon' => 'um-faicon-cog',
'title' => __( 'Account','ultimatemember'),
'fields' => array(
array(
'id' => 'account_tab_password',
'type' => 'switch',
'title' => __( 'Password Account Tab','ultimatemember' ),
'default' => 1,
'desc' => 'Enable/disable the Password account tab in account page',
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'account_tab_privacy',
'type' => 'switch',
'title' => __( 'Privacy Account Tab','ultimatemember' ),
'default' => 1,
'desc' => __('Enable/disable the Privacy account tab in account page','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'account_tab_notifications',
'type' => 'switch',
'title' => __( 'Notifications Account Tab','ultimatemember' ),
'default' => 1,
'desc' => __('Enable/disable the Notifications account tab in account page','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'account_tab_delete',
'type' => 'switch',
'title' => __( 'Delete Account Tab','ultimatemember' ),
'default' => 1,
'desc' => __('Enable/disable the Delete account tab in account page','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'delete_account_text',
'type' => 'editor',
'title' => __( 'Account Deletion Custom Text','ultimatemember' ),
'default' => __('Are you sure you want to delete your account? This will erase all of your account data from the site. To delete your account enter your password below','ultimatemember'),
'desc' => __('This is custom text that will be displayed to users before they delete their accounts from your site','ultimatemember'),
'args' => array(
'teeny' => false,
'media_buttons' => false,
'textarea_rows' => 6
),
),
array(
'id' => 'account_name',
'type' => 'switch',
'title' => __( 'Add a First & Last Name fields','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to enable these fields on the user account page by default or hide them.','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'account_email',
'type' => 'switch',
'title' => __( 'Allow users to change e-mail','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to allow users changing their email in account page.','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'account_require_strongpass',
'type' => 'switch',
'title' => __( 'Require a strong password?','ultimatemember' ),
'default' => 0,
'desc' => __('Enable or disable a strong password rules on account page / change password tab','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
)
);
/***
*** @
***/
$this->sections[] = array(
'icon' => 'um-faicon-lock',
'title' => __( 'Access','ultimatemember'),
'fields' => array(
array(
'id' => 'panic_key',
'type' => 'text',
'title' => __( 'Panic Key','ultimatemember' ),
'desc' => __('Panic Key is a random generated key that allow you to access the WordPress backend always regardless of backend settings.','ultimatemember'),
'default' => $ultimatemember->validation->randomize(),
'desc' => trailingslashit( get_bloginfo('url') ).'wp-admin/?um_panic_key=<strong>your_panic_key</strong>'
),
array(
'id' => 'accessible',
'type' => 'select',
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
'title' => __( 'Global Site Access','ultimatemember' ),
'default' => 0,
'desc' => __('Globally control the access of your site, you can have seperate restrict options per post/page by editing the desired item.','ultimatemember'),
'options' => array(
0 => 'Site accessible to Everyone',
2 => 'Site accessible to Logged In Users'
)
),
array(
'id' => 'access_redirect',
'type' => 'text',
'title' => __( 'Custom Redirect URL','ultimatemember' ),
'desc' => __('A logged out user will be redirected to this url If he is not permitted to access the site','ultimatemember'),
'required' => array( 'accessible', '=', 2 ),
),
array(
'id' => 'access_exclude_uris',
'type' => 'multi_text',
'default' => array(),
'title' => __( 'Exclude the following URLs','ultimatemember' ),
'desc' => __( 'Here you can exclude URLs beside the redirect URI to be accessible to everyone','ultimatemember' ),
'add_text' => __('Add New URL','ultimatemember'),
'required' => array( 'accessible', '=', 2 ),
),
array(
'id' => 'wpadmin_login',
'type' => 'switch',
'title' => __( 'Allow Backend Login Screen for Guests','ultimatemember' ),
'default' => 1,
'desc' => __('Control whether guests are able to access the WP-admin login screen or not','ultimatemember'),
'on' => __('Yes','ultimatemember'),
'off' => __('No','ultimatemember'),
),
array(
'id' => 'deny_admin_frontend_login',
'type' => 'switch',
'title' => __( 'Disable Admin Login via Frontend','ultimatemember' ),
'default' => 0,
'desc' => __('DO NOT turn this option on if you have set the option "Allow Backend Login Screen for Guests" to NO. This will result in being locked out of admin.','ultimatemember'),
'on' => __('Yes','ultimatemember'),
'off' => __('No','ultimatemember'),
),
array(
'id' => 'wpadmin_login_redirect',
'type' => 'select',
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
'title' => __( 'Redirect to alternative login page','ultimatemember' ),
'desc' => __( 'If you disable backend access to login screen, specify here where a user will be redirected','ultimatemember' ),
'required' => array( 'wpadmin_login', '=', 0 ),
'default' => 'um_login_page',
'options' => array(
'um_login_page' => 'UM Login Page',
'custom_url' => 'Custom URL',
)
),
array(
'id' => 'wpadmin_login_redirect_url',
'type' => 'text',
'title' => __( 'Custom URL','ultimatemember' ),
'desc' => __('Enter an alternate url here to redirect a user If they try to access the backend register screen','ultimatemember'),
'required' => array( 'wpadmin_login_redirect', '=', 'custom_url' ),
),
array(
'id' => 'wpadmin_register',
'type' => 'switch',
'title' => __( 'Allow Backend Register Screen for Guests','ultimatemember' ),
'default' => 1,
'desc' => __('Control whether guests are able to access the WP-admin register screen or not','ultimatemember'),
'on' => __('Yes','ultimatemember'),
'off' => __('No','ultimatemember'),
),
array(
'id' => 'wpadmin_register_redirect',
'type' => 'select',
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
'title' => __( 'Redirect to alternative register page','ultimatemember' ),
'desc' => __( 'If you disable backend access to register screen, specify here where a user will be redirected','ultimatemember' ),
'required' => array( 'wpadmin_register', '=', 0 ),
'default' => 'um_register_page',
'options' => array(
'um_register_page' => 'UM Register Page',
'custom_url' => 'Custom URL',
)
),
array(
'id' => 'wpadmin_register_redirect_url',
'type' => 'text',
'title' => __( 'Custom URL','ultimatemember' ),
'desc' => __('Enter an alternate url here to redirect a user If they try to access the backend register screen','ultimatemember'),
'required' => array( 'wpadmin_register_redirect', '=', 'custom_url' ),
),
array(
'id' => 'access_widget_admin_only',
'type' => 'switch',
'title' => __( 'Enable the Access Control widget for Admins only?','ultimatemember' ),
'default' => 1,
'on' => __('Yes','ultimatemember'),
'off' => __('No','ultimatemember'),
),
array(
'id' => 'wpadmin_allow_ips',
'type' => 'textarea',
'title' => __( 'Whitelisted Backend IPs','ultimatemember' ),
'desc' => __('Always allow the specified IP addresses to access the backend login screen and WP-admin to avoid being locked from site backend.','ultimatemember'),
),
array(
'id' => 'blocked_ips',
'type' => 'textarea',
'title' => __( 'Blocked IP Addresses','ultimatemember' ),
'desc' => __('This will block the listed IPs from signing up or signing in to the site, you can use full IP numbers or target specific range with a wildcard','ultimatemember'),
),
array(
'id' => 'blocked_emails',
'type' => 'textarea',
'title' => __( 'Blocked Email Addresses','ultimatemember' ),
'desc' => __('This will block the specified e-mail addresses from being able to sign up or sign in to your site. To block an entire domain, use something like *@domain.com','ultimatemember'),
),
array(
'id' => 'blocked_words',
'type' => 'textarea',
'title' => __( 'Blacklist Words','ultimatemember' ),
'desc' => __('This option lets you specify blacklist of words to prevent anyone from signing up with such a word as their username','ultimatemember'),
'default' => 'admin' . "\r\n" . 'administrator' . "\r\n" . 'webmaster' . "\r\n" . 'support' . "\r\n" . 'staff'
),
)
);
/***
*** @
***/
$this->sections[] = array(
'icon' => 'um-faicon-envelope-o',
'title' => __( 'Emails','ultimatemember'),
'fields' => array(
array(
'id' => 'mail_from',
'type' => 'text',
'title' => __( 'Mail appears from','ultimatemember' ),
'desc' => __( 'e.g. Site Name','ultimatemember' ),
'default' => get_bloginfo('name'),
),
array(
'id' => 'mail_from_addr',
'type' => 'text',
'title' => __( 'Mail appears from address','ultimatemember' ),
'desc' => __( 'e.g. admin@companyname.com','ultimatemember' ),
'default' => get_bloginfo('admin_email'),
),
array(
'id' => 'email_html',
'type' => 'switch',
'title' => __( 'Use HTML for E-mails?','ultimatemember' ),
'default' => 0,
'desc' => __('If you enable HTML for e-mails, you can customize the HTML e-mail templates found in <strong>templates/email</strong> folder.','ultimatemember'),
),
array(
'id' => 'welcome_email_on',
'type' => 'switch',
'title' => __( 'Account Welcome Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when his account is automatically approved','ultimatemember'),
),
array(
'id' => 'welcome_email_sub',
'type' => 'text',
'title' => __( 'Account Welcome Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Welcome to {site_name}!',
'required' => array( 'welcome_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'welcome_email',
'type' => 'textarea',
'title' => __( 'Account Welcome Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'welcome_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'Thank you for signing up with {site_name}! Your account is now active.' . "\r\n\r\n" .
'To login please visit the following url:' . "\r\n\r\n" .
'{login_url}' . "\r\n\r\n" .
'Your account e-mail: {email}' . "\r\n" .
'Your account username: {username}' . "\r\n" .
'Your account password: {password}' . "\r\n\r\n" .
'If you have any problems, please contact us at {admin_email}' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
array(
'id' => 'checkmail_email_on',
'type' => 'switch',
'title' => __( 'Account Activation Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when his account needs e-mail activation','ultimatemember'),
),
array(
'id' => 'checkmail_email_sub',
'type' => 'text',
'title' => __( 'Account Activation Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Please activate your account',
'required' => array( 'checkmail_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'checkmail_email',
'type' => 'textarea',
'title' => __( 'Account Activation Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'checkmail_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'Thank you for signing up with {site_name}! To activate your account, please click the link below to confirm your email address:' . "\r\n\r\n" .
'{account_activation_link}' . "\r\n\r\n" .
'If you have any problems, please contact us at {admin_email}' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
array(
'id' => 'pending_email_on',
'type' => 'switch',
'title' => __( 'Pending Review Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when his account needs admin review','ultimatemember'),
),
array(
'id' => 'pending_email_sub',
'type' => 'text',
'title' => __( 'Pending Review Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Your account is pending review',
'required' => array( 'pending_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'pending_email',
'type' => 'textarea',
'title' => __( 'Pending Review Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'pending_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'Thank you for signing up with {site_name}! Your account is currently being reviewed by a member of our team.' . "\r\n\r\n" .
'Please allow us some time to process your request.' . "\r\n\r\n" .
'If you have any problems, please contact us at {admin_email}' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
array(
'id' => 'approved_email_on',
'type' => 'switch',
'title' => __( 'Account Approved Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when his account is approved','ultimatemember'),
),
array(
'id' => 'approved_email_sub',
'type' => 'text',
'title' => __( 'Account Approved Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Your account at {site_name} is now active',
'required' => array( 'approved_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'approved_email',
'type' => 'textarea',
'title' => __( 'Account Approved Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'approved_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'Thank you for signing up with {site_name}! Your account has been approved and is now active.' . "\r\n\r\n" .
'To login please visit the following url:' . "\r\n\r\n" .
'{login_url}' . "\r\n\r\n" .
'Your account e-mail: {email}' . "\r\n" .
'Your account username: {username}' . "\r\n" .
'Your account password: {password}' . "\r\n\r\n" .
'If you have any problems, please contact us at {admin_email}' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
array(
'id' => 'rejected_email_on',
'type' => 'switch',
'title' => __( 'Account Rejected Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when his account is rejected','ultimatemember'),
),
array(
'id' => 'rejected_email_sub',
'type' => 'text',
'title' => __( 'Account Rejected Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Your account has been rejected',
'required' => array( 'rejected_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'rejected_email',
'type' => 'textarea',
'title' => __( 'Account Rejected Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'rejected_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'Thank you for applying for membership to {site_name}! We have reviewed your information and unfortunately we are unable to accept you as a member at this moment.' . "\r\n\r\n" .
'Please feel free to apply again at a future date.' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
array(
'id' => 'inactive_email_on',
'type' => 'switch',
'title' => __( 'Account Deactivated Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when his account is deactivated','ultimatemember'),
),
array(
'id' => 'inactive_email_sub',
'type' => 'text',
'title' => __( 'Account Deactivated Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Your account has been deactivated',
'required' => array( 'inactive_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'inactive_email',
'type' => 'textarea',
'title' => __( 'Account Deactivated Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'inactive_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'This is an automated email to let you know your {site_name} account has been deactivated.' . "\r\n\r\n" .
'If you would like your account to be reactivated please contact us at {admin_email}' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
array(
'id' => 'deletion_email_on',
'type' => 'switch',
'title' => __( 'Account Deleted Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when his account is deleted','ultimatemember'),
),
array(
'id' => 'deletion_email_sub',
'type' => 'text',
'title' => __( 'Account Deleted Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Your account has been deleted',
'required' => array( 'deletion_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'deletion_email',
'type' => 'textarea',
'title' => __( 'Account Deleted Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'deletion_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'This is an automated email to let you know your {site_name} account has been deleted. All of your personal information has been permanently deleted and you will no longer be able to login to {site_name}.' . "\r\n\r\n" .
'If your account has been deleted by accident please contact us at {admin_email}' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
array(
'id' => 'resetpw_email_on',
'type' => 'switch',
'title' => __( 'Password Reset Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when he request to reset password (Recommended, please keep on)','ultimatemember'),
),
array(
'id' => 'resetpw_email_sub',
'type' => 'text',
'title' => __( 'Password Reset Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Reset your password',
'required' => array( 'resetpw_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'resetpw_email',
'type' => 'textarea',
'title' => __( 'Password Reset Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'resetpw_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'We received a request to reset the password for your account. If you made this request, click the link below to change your password:' . "\r\n\r\n" .
'{password_reset_link}' . "\r\n\r\n" .
'If you didn\'t make this request, you can ignore this email' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
array(
'id' => 'changedpw_email_on',
'type' => 'switch',
'title' => __( 'Password Changed Email','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to send the user an email when he request to reset password (Recommended, please keep on)','ultimatemember'),
),
array(
'id' => 'changedpw_email_sub',
'type' => 'text',
'title' => __( 'Password Changed Email','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => 'Your {site_name} password has been changed',
'required' => array( 'changedpw_email_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'changedpw_email',
'type' => 'textarea',
'title' => __( 'Password Changed Email','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'required' => array( 'changedpw_email_on', '=', 1 ),
'default' => 'Hi {display_name},' . "\r\n\r\n" .
'You recently changed the password associated with your {site_name} account.' . "\r\n\r\n" .
'If you did not make this change and believe your {site_name} account has been compromised, please contact us at the following email address: {admin_email}' . "\r\n\r\n" .
'Thanks,' . "\r\n" .
'{site_name}',
),
)
);
/***
*** @
***/
$this->sections[] = array(
'icon' => 'um-faicon-bell-o',
'title' => __( 'Notifications','ultimatemember' ),
'fields' => array(
array(
'id' => 'admin_email',
'type' => 'text',
'title' => __( 'Admin E-mail Address','ultimatemember' ),
'default' => get_bloginfo('admin_email'),
'desc' => __( 'e.g. admin@companyname.com','ultimatemember' ),
),
array(
'id' => 'notification_new_user_on',
'type' => 'switch',
'title' => __( 'New User Notification','ultimatemember' ),
'default' => 1,
'desc' => __('Whether to receive notification when a new user account is approved','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'notification_new_user_sub',
'type' => 'text',
'title' => __( 'New User Notification','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => '[{site_name}] New user account',
'required' => array( 'notification_new_user_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'notification_new_user',
'type' => 'textarea',
'title' => __( 'New User Notification','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'default' => '{display_name} has just created an account on {site_name}. To view their profile click here:' . "\r\n\r\n" .
'{user_profile_link}' . "\r\n\r\n" .
'Here is the submitted registration form:' . "\r\n\r\n" .
'{submitted_registration}',
'required' => array( 'notification_new_user_on', '=', 1 ),
'desc' => __('This is the content of the e-mail','ultimatemember'),
),
array(
'id' => 'notification_review_on',
'type' => 'switch',
'title' => __( 'Account Needs Review Notification','ultimatemember' ),
'default' => 0,
'desc' => __('Whether to receive notification when an account needs admin review','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'notification_review_sub',
'type' => 'text',
'title' => __( 'Account Needs Review Notification','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => '[{site_name}] New user awaiting review',
'required' => array( 'notification_review_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'notification_review',
'type' => 'textarea',
'title' => __( 'Account Needs Review Notification','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'default' => '{display_name} has just applied for membership to {site_name} and is waiting to be reviewed.' . "\r\n\r\n" .
'To review this member please click the following link:' . "\r\n\r\n" .
'{user_profile_link}' . "\r\n\r\n" .
'Here is the submitted registration form:' . "\r\n\r\n" .
'{submitted_registration}',
'required' => array( 'notification_review_on', '=', 1 ),
'desc' => __('This is the content of the e-mail','ultimatemember'),
),
array(
'id' => 'notification_deletion_on',
'type' => 'switch',
'title' => __( 'Account Deletion Notification','ultimatemember' ),
'default' => 0,
'desc' => __('Whether to receive notification when an account is deleted','ultimatemember'),
'on' => __('On','ultimatemember'),
'off' => __('Off','ultimatemember'),
),
array(
'id' => 'notification_deletion_sub',
'type' => 'text',
'title' => __( 'Account Deletion Notification','ultimatemember' ),
'subtitle' => __( 'Subject Line','ultimatemember' ),
'default' => '[{site_name}] Account deleted',
'required' => array( 'notification_deletion_on', '=', 1 ),
'desc' => __('This is the subject line of the e-mail','ultimatemember'),
),
array(
'id' => 'notification_deletion',
'type' => 'textarea',
'title' => __( 'Account Deletion Notification','ultimatemember' ),
'subtitle' => __( 'Message Body','ultimatemember' ),
'default' => '{display_name} has just deleted their {site_name} account.',
'required' => array( 'notification_deletion_on', '=', 1 ),
'desc' => __('This is the content of the e-mail','ultimatemember'),
),
)
);
/***
*** @
***/
$this->sections[] = array(
'icon' => 'um-faicon-cloud-upload',
'title' => __( 'Uploads','ultimatemember'),
'fields' => array(
array(
'id' => 'profile_photo_max_size',
'type' => 'text',
'title' => __( 'Profile Photo Maximum File Size (bytes)','ultimatemember' ),
'desc' => __( 'Sets a maximum size for the uploaded photo','ultimatemember' ),
'validate' => 'numeric',
),
array(
'id' => 'cover_photo_max_size',
'type' => 'text',
'title' => __( 'Cover Photo Maximum File Size (bytes)','ultimatemember' ),
'desc' => __( 'Sets a maximum size for the uploaded cover','ultimatemember' ),
'validate' => 'numeric',
),
array(
'id' => 'photo_thumb_sizes',
'type' => 'multi_text',
'title' => __( 'Profile Photo Thumbnail Sizes (px)','ultimatemember' ),
'desc' => __( 'Here you can define which thumbnail sizes will be created for each profile photo upload.','ultimatemember' ),
'default' => array( 40, 80, 190 ),
'validate' => 'numeric',
'add_text' => __('Add New Size','ultimatemember'),
),
array(
'id' => 'cover_thumb_sizes',
'type' => 'multi_text',
'title' => __( 'Cover Photo Thumbnail Sizes (px)','ultimatemember' ),
'desc' => __( 'Here you can define which thumbnail sizes will be created for each cover photo upload.','ultimatemember' ),
'default' => array( 300, 600 ),
'validate' => 'numeric',
'add_text' => __('Add New Size','ultimatemember'),
),
array(
'id' => 'image_compression',
'type' => 'text',
'title' => __( 'Image Quality','ultimatemember' ),
'desc' => __( 'Quality is used to determine quality of image uploads, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default range is 60.','ultimatemember' ),
'default' => 60,
'validate' => 'numeric',
),
array(
'id' => 'image_max_width',
'type' => 'text',
'title' => __( 'Image Upload Maximum Width (px)','ultimatemember' ),
'desc' => __( 'Any image upload above this width will be resized to this limit automatically.','ultimatemember' ),
'default' => 1000,
'validate' => 'numeric',
),
array(
'id' => 'cover_min_width',
'type' => 'text',
'title' => __( 'Cover Photo Minimum Width (px)','ultimatemember' ),
'desc' => __( 'This will be the minimum width for cover photo uploads','ultimatemember' ),
'default' => 1000,
'validate' => 'numeric',
),
)
);
/***
*** @
***/
$this->sections[] = array(
'icon' => 'um-faicon-search',
'title' => __( 'SEO','ultimatemember'),
'fields' => array(
array(
'id' => 'profile_title',
'type' => 'text',
'title' => __('User Profile Title','ultimatemember'),
'default' => '{display_name} | ' . get_bloginfo('name'),
'desc' => __('This is the title that is displayed on a specific user profile','ultimatemember'),
),
array(
'id' => 'profile_desc',
'type' => 'textarea',
'default' => '{display_name} is on {site_name}. Join {site_name} to view {display_name}\'s profile',
'title' => __( 'User Profile Dynamic Meta Description','ultimatemember' ),
'desc' => __('This will be used in the meta description that is available for search-engines.','ultimatemember')
),
)
);
/***
*** @
***/
$this->sections[] = array(