WP User Avatar - Version 3.1.3

Version Description

  • Fixed edge cases where post content was overridden.
  • Fixed bug where buddypress avatar override wasn't working.
  • Removed the shortcode builder due to wp.org no longer accepting code inserters.
Download this release

Release Info

Developer Collizo4sky
Plugin Icon 128x128 WP User Avatar
Version 3.1.3
Comparing to
See all releases

Code changes from version 3.1.2 to 3.1.3

Files changed (38) hide show
  1. assets/css/admin-style.css +5 -0
  2. assets/js/admin.js +2 -1
  3. assets/js/create-form.js +1 -1
  4. changelog.txt +6 -1
  5. languages/wp-user-avatar.pot +97 -704
  6. readme.txt +6 -1
  7. src/Admin/SettingsPages/AddNewForm.php +35 -14
  8. src/Admin/SettingsPages/Forms.php +17 -90
  9. src/Admin/SettingsPages/MemberDirectories.php +0 -3
  10. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php +0 -135
  11. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php +0 -78
  12. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php +0 -135
  13. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php +0 -78
  14. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php +0 -115
  15. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php +0 -113
  16. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/EditShortcodeMemberDirectories.php +0 -78
  17. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/edit_screen.php +0 -49
  18. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php +0 -205
  19. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php +0 -91
  20. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/EditShortcodeRegistration.php +0 -99
  21. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php +0 -108
  22. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php +0 -196
  23. src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php +0 -49
  24. src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php +0 -602
  25. src/Classes/AjaxHandler.php +0 -15
  26. src/Classes/BuddyPressBbPress.php +1 -1
  27. src/Classes/EditUserProfile.php +3 -3
  28. src/Classes/ShortcodeThemeFactory.php +1 -1
  29. src/RegisterScripts.php +5 -0
  30. src/ShortcodeParser/Builder/builder-preview.php +0 -31
  31. src/ShortcodeParser/MyAccount/MyAccountTag.php +0 -2
  32. vendor/autoload.php +1 -1
  33. vendor/composer/InstalledVersions.php +2 -2
  34. vendor/composer/autoload_classmap.php +0 -8
  35. vendor/composer/autoload_real.php +7 -7
  36. vendor/composer/autoload_static.php +4 -12
  37. vendor/composer/installed.php +2 -2
  38. wp-user-avatar.php +2 -2
assets/css/admin-style.css CHANGED
@@ -34,6 +34,11 @@
34
  color: #555;
35
  }
36
 
 
 
 
 
 
37
  .pp-add-new-form-wrapper .pp-builder-select-active {
38
  border: 2px solid #3498db;
39
  }
34
  color: #555;
35
  }
36
 
37
+ .pp-add-new-form-wrapper .pp-hald-first a {
38
+ color: initial;
39
+ text-decoration: none;
40
+ }
41
+
42
  .pp-add-new-form-wrapper .pp-builder-select-active {
43
  border: 2px solid #3498db;
44
  }
assets/js/admin.js CHANGED
@@ -36,7 +36,8 @@
36
  data: {
37
  builder_structure: builder_structure,
38
  builder_css: css_codemirror_editor.getValue(),
39
- action: 'pp-builder-preview'
 
40
  },
41
  beforeSend: function () {
42
  if (currentRequest != null) {
36
  data: {
37
  builder_structure: builder_structure,
38
  builder_css: css_codemirror_editor.getValue(),
39
+ action: 'pp-builder-preview',
40
+ _wpnonce: ppress_admin_globals.nonce
41
  },
42
  beforeSend: function () {
43
  if (currentRequest != null) {
assets/js/create-form.js CHANGED
@@ -17,7 +17,7 @@
17
  };
18
 
19
  fb.fetchThemes = function () {
20
- $(document).on('click', '.pp-hald-first', function (e) {
21
  e.preventDefault();
22
  $('.pp-half-meta-inner').removeClass('pp-builder-select-active');
23
  $(this).find('.pp-half-meta-inner').addClass('pp-builder-select-active');
17
  };
18
 
19
  fb.fetchThemes = function () {
20
+ $(document).on('click', '.pp-hald-first.ppbd-active', function (e) {
21
  e.preventDefault();
22
  $('.pp-half-meta-inner').removeClass('pp-builder-select-active');
23
  $(this).find('.pp-half-meta-inner').addClass('pp-builder-select-active');
changelog.txt CHANGED
@@ -1,4 +1,9 @@
1
- = 3.1.2 =
 
 
 
 
 
2
  * Fixed issue where registration with username requirement disabled wasn't working.
3
  * Fixed fatal error caused during user registration.
4
 
1
+ = 3.1.3 =
2
+ * Fixed edge cases where post content was overridden.
3
+ * Fixed bug where buddypress avatar override wasn't working.
4
+ * Removed the shortcode builder due to wp.org no longer accepting code inserters.
5
+
6
+ = 3.1.2 =
7
  * Fixed issue where registration with username requirement disabled wasn't working.
8
  * Fixed fatal error caused during user registration.
9
 
languages/wp-user-avatar.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the ProfilePress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: ProfilePress 3.1.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
- "POT-Creation-Date: 2021-05-22 16:43:19+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -18,15 +18,6 @@ msgid "Profile & Cover Photo"
18
  msgstr ""
19
 
20
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:79
21
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:33
22
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:32
23
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:36
24
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/edit_screen.php:30
25
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:35
26
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:41
27
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php:30
28
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:492
29
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:503
30
  msgid "Available Shortcodes"
31
  msgstr ""
32
 
@@ -55,7 +46,7 @@ msgstr ""
55
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:78
56
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:131
57
  #: src/Classes/ImageUploader.php:49
58
- #: src/ShortcodeParser/MyAccount/MyAccountTag.php:487
59
  msgid "Profile Picture"
60
  msgstr ""
61
 
@@ -455,7 +446,6 @@ msgstr ""
455
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
456
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
457
  #: src/Admin/SettingsPages/GeneralSettings.php:234
458
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:224
459
  #: src/Functions/GlobalFunctions.php:1224
460
  #: src/Functions/GlobalFunctions.php:1250
461
  #: src/Functions/GlobalFunctions.php:1272
@@ -467,38 +457,45 @@ msgid "Custom URL Here"
467
  msgstr ""
468
 
469
  #: src/Admin/SettingsPages/AddNewForm.php:27
470
- #: src/Admin/SettingsPages/MemberDirectories.php:41
471
  msgid "Add Member Directory"
472
  msgstr ""
473
 
474
- #: src/Admin/SettingsPages/AddNewForm.php:47
475
  msgid "Drag & Drop Builder"
476
  msgstr ""
477
 
478
- #: src/Admin/SettingsPages/AddNewForm.php:48
479
  msgid ""
480
  "Create beautiful, responsive forms with easy to use drag & drop form builder."
481
  msgstr ""
482
 
483
- #: src/Admin/SettingsPages/AddNewForm.php:51
484
- msgid "Try Now"
485
  msgstr ""
486
 
487
- #: src/Admin/SettingsPages/AddNewForm.php:59
 
488
  msgid "Shortcode Builder"
489
  msgstr ""
490
 
491
- #: src/Admin/SettingsPages/AddNewForm.php:60
 
492
  msgid ""
493
  "Code your own from scratch with complete control and flexibility using "
494
  "shortcodes."
495
  msgstr ""
496
 
497
- #: src/Admin/SettingsPages/AddNewForm.php:63 src/Classes/AjaxHandler.php:117
498
  msgid "Build Now"
499
  msgstr ""
500
 
501
- #: src/Admin/SettingsPages/AddNewForm.php:98
 
 
 
 
 
502
  msgid "Back to Overview"
503
  msgstr ""
504
 
@@ -550,26 +547,12 @@ msgid "No custom field available. %sClick here to create one%s."
550
  msgstr ""
551
 
552
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1255
553
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:22
554
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:21
555
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:25
556
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/edit_screen.php:20
557
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:22
558
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:30
559
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php:20
560
  msgid "Enter title here"
561
  msgstr ""
562
 
563
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1257
564
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1274
565
  #: src/Admin/SettingsPages/EmailSettings/CustomizerTrait.php:11
566
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:24
567
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:23
568
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:27
569
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/edit_screen.php:22
570
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:24
571
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:32
572
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php:22
573
  #: src/AdminBarDashboardAccess/include.settings-page.php:54
574
  #: src/AdminBarDashboardAccess/include.settings-page.php:109
575
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1004
@@ -583,13 +566,10 @@ msgstr ""
583
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1335
584
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1374
585
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1421
586
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:60
587
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:67
588
  msgid "Success Message"
589
  msgstr ""
590
 
591
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1341
592
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:77
593
  msgid "New User Role"
594
  msgstr ""
595
 
@@ -606,8 +586,6 @@ msgid "Check to disable username requirement"
606
  msgstr ""
607
 
608
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1351
609
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:99
610
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:93
611
  msgid ""
612
  "Disable requirement for users to enter a username during registration. "
613
  "Usernames will automatically be generated from their email addresses."
@@ -623,7 +601,6 @@ msgid "Edit Profile Settings"
623
  msgstr ""
624
 
625
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1397
626
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:59
627
  #: src/Classes/ExtensionManager.php:77
628
  msgid "Passwordless Login"
629
  msgstr ""
@@ -656,11 +633,6 @@ msgid "Label"
656
  msgstr ""
657
 
658
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1455
659
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:52
660
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:50
661
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:54
662
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:58
663
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:59
664
  msgid "Processing Label"
665
  msgstr ""
666
 
@@ -699,11 +671,6 @@ msgstr ""
699
  #: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:232
700
  #: src/Admin/SettingsPages/GeneralSettings.php:26
701
  #: src/Admin/SettingsPages/GeneralSettings.php:27
702
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:30
703
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:29
704
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:33
705
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:31
706
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:38
707
  #: src/Classes/Miscellaneous.php:17
708
  msgid "Settings"
709
  msgstr ""
@@ -764,10 +731,6 @@ msgstr ""
764
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Textarea.php:40
765
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Username.php:30
766
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Website.php:30
767
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:29
768
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:65
769
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:83
770
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:247
771
  #: src/Themes/DragDrop/AbstractBuildScratch.php:436
772
  msgid "Placeholder"
773
  msgstr ""
@@ -1654,10 +1617,6 @@ msgstr ""
1654
  msgid "Upgrade Now"
1655
  msgstr ""
1656
 
1657
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:110
1658
- msgid "Upgrade to Premium"
1659
- msgstr ""
1660
-
1661
  #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:110
1662
  msgid "Upgrade Plan"
1663
  msgstr ""
@@ -1709,12 +1668,6 @@ msgid "Duplicate"
1709
  msgstr ""
1710
 
1711
  #: src/Admin/SettingsPages/FormList.php:237
1712
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:74
1713
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:74
1714
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:109
1715
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/edit_screen.php:45
1716
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:104
1717
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php:45
1718
  #: src/Classes/FormPreviewHandler.php:45
1719
  #: src/Functions/custom-settings-api.php:856
1720
  msgid "Preview"
@@ -1724,78 +1677,78 @@ msgstr ""
1724
  msgid "Drag & Drop"
1725
  msgstr ""
1726
 
1727
- #: src/Admin/SettingsPages/Forms.php:54 src/Admin/SettingsPages/Forms.php:80
1728
  msgid "Forms & Profiles"
1729
  msgstr ""
1730
 
1731
- #: src/Admin/SettingsPages/Forms.php:57
1732
  msgid "Edit Form"
1733
  msgstr ""
1734
 
1735
- #: src/Admin/SettingsPages/Forms.php:61
1736
  msgid "Add Form"
1737
  msgstr ""
1738
 
1739
- #: src/Admin/SettingsPages/Forms.php:65 src/Admin/SettingsPages/Forms.php:69
1740
  msgid "Edit Frontend Profile"
1741
  msgstr ""
1742
 
1743
- #: src/Admin/SettingsPages/Forms.php:95
1744
  msgid ""
1745
  "Melange combines login, registration & password reset forms in a single form."
1746
  msgstr ""
1747
 
1748
- #: src/Admin/SettingsPages/Forms.php:112
1749
  msgid "Filter by Type"
1750
  msgstr ""
1751
 
1752
- #: src/Admin/SettingsPages/Forms.php:116
1753
  #: src/Admin/SettingsPages/GeneralSettings.php:131
1754
  #: src/Admin/SettingsPages/GeneralSettings.php:246
1755
- #: src/Classes/AjaxHandler.php:55 src/NavigationMenuLinks/Backend.php:34
1756
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:235
1757
  #: src/Themes/DragDrop/AbstractBuildScratch.php:180
1758
  #: src/Widgets/TabbedWidget.php:107
1759
  msgid "Login"
1760
  msgstr ""
1761
 
1762
- #: src/Admin/SettingsPages/Forms.php:121
1763
  #: src/Admin/SettingsPages/GeneralSettings.php:117
1764
- #: src/Classes/AjaxHandler.php:60
1765
  msgid "Registration"
1766
  msgstr ""
1767
 
1768
- #: src/Admin/SettingsPages/Forms.php:127
1769
  #: src/Admin/SettingsPages/GeneralSettings.php:263
1770
- #: src/Classes/AjaxHandler.php:65
1771
  msgid "Password Reset"
1772
  msgstr ""
1773
 
1774
- #: src/Admin/SettingsPages/Forms.php:132 src/Classes/AjaxHandler.php:70
1775
  #: src/NavigationMenuLinks/Backend.php:32
1776
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:301
1777
  msgid "Edit Profile"
1778
  msgstr ""
1779
 
1780
- #: src/Admin/SettingsPages/Forms.php:137 src/Classes/AjaxHandler.php:76
1781
  msgid "Melange"
1782
  msgstr ""
1783
 
1784
- #: src/Admin/SettingsPages/Forms.php:143 src/Classes/AjaxHandler.php:83
1785
  msgid "User Profile"
1786
  msgstr ""
1787
 
1788
- #: src/Admin/SettingsPages/Forms.php:175
1789
  msgid "Forms"
1790
  msgstr ""
1791
 
1792
- #: src/Admin/SettingsPages/Forms.php:217
1793
- #: src/Admin/SettingsPages/MemberDirectories.php:107
1794
  msgid "Live Preview"
1795
  msgstr ""
1796
 
1797
- #: src/Admin/SettingsPages/Forms.php:358
1798
- #: src/Admin/SettingsPages/MemberDirectories.php:203
1799
  msgid "Add New"
1800
  msgstr ""
1801
 
@@ -2209,34 +2162,16 @@ msgid "Check to change bbPress profile URL to ProfilePress front-end profile."
2209
  msgstr ""
2210
 
2211
  #: src/Admin/SettingsPages/IDUserColumn.php:20
2212
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:34
2213
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:54
2214
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:39
2215
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:57
2216
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:33
2217
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:51
2218
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:69
2219
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:87
2220
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:120
2221
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:42
2222
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:86
2223
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:108
2224
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:130
2225
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:152
2226
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:174
2227
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:243
2228
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:302
2229
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:375
2230
  msgid "ID"
2231
  msgstr ""
2232
 
2233
- #: src/Admin/SettingsPages/MemberDirectories.php:38
2234
- #: src/Admin/SettingsPages/MemberDirectories.php:56
2235
- #: src/Admin/SettingsPages/MemberDirectories.php:88
2236
  msgid "Member Directories"
2237
  msgstr ""
2238
 
2239
- #: src/Admin/SettingsPages/MemberDirectories.php:45
2240
  msgid "Edit Member Directory"
2241
  msgstr ""
2242
 
@@ -2244,586 +2179,6 @@ msgstr ""
2244
  msgid "No members directory is currently available. %sConsider creating one%s"
2245
  msgstr ""
2246
 
2247
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:25
2248
- msgid "Button to delete profile picture"
2249
- msgstr ""
2250
-
2251
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:29
2252
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:49
2253
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:53
2254
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:47
2255
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:116
2256
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:371
2257
- msgid "Button label"
2258
- msgstr ""
2259
-
2260
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:31
2261
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1071
2262
- msgid "Delete Avatar"
2263
- msgstr ""
2264
-
2265
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:38
2266
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:58
2267
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:43
2268
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:61
2269
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:37
2270
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:55
2271
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:73
2272
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:91
2273
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:106
2274
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:124
2275
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:32
2276
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:46
2277
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:90
2278
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:112
2279
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:134
2280
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:156
2281
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:178
2282
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:251
2283
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:306
2284
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:379
2285
- msgid "CSS class"
2286
- msgstr ""
2287
-
2288
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:45
2289
- msgid "Button to delete profile cover image"
2290
- msgstr ""
2291
-
2292
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:51
2293
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1107
2294
- msgid "Delete Cover Image"
2295
- msgstr ""
2296
-
2297
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:76
2298
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:78
2299
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php:51
2300
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:141
2301
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/EditShortcodeRegistration.php:35
2302
- msgid "Form updated"
2303
- msgstr ""
2304
-
2305
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:99
2306
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:99
2307
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php:76
2308
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/EditShortcodeMemberDirectories.php:44
2309
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:166
2310
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/EditShortcodeRegistration.php:61
2311
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:162
2312
- msgid "Title is empty"
2313
- msgstr ""
2314
-
2315
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php:101
2316
- msgid "Form Structure is missing"
2317
- msgstr ""
2318
-
2319
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:28
2320
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:27
2321
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:31
2322
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/edit_screen.php:26
2323
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:28
2324
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:36
2325
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php:26
2326
- msgid "Structure"
2327
- msgstr ""
2328
-
2329
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:29
2330
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:28
2331
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:32
2332
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/edit_screen.php:27
2333
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:30
2334
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:37
2335
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php:27
2336
- msgid "CSS"
2337
- msgstr ""
2338
-
2339
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:47
2340
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:45
2341
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:49
2342
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:53
2343
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:54
2344
- msgid "General Settings"
2345
- msgstr ""
2346
-
2347
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:56
2348
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:54
2349
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:58
2350
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:62
2351
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:63
2352
- msgid "This is the text shown on the submit button when the form is submitted."
2353
- msgstr ""
2354
-
2355
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php:64
2356
- msgid "Message to display when a user profile is edited."
2357
- msgstr ""
2358
-
2359
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:25
2360
- msgid "Username / Email address field"
2361
- msgstr ""
2362
-
2363
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:30
2364
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:283
2365
- msgid "Password field"
2366
- msgstr ""
2367
-
2368
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:35
2369
- msgid "Remeber Me checkbox"
2370
- msgstr ""
2371
-
2372
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:49
2373
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:367
2374
- msgid "Form submit button"
2375
- msgstr ""
2376
-
2377
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php:101
2378
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/EditShortcodeMemberDirectories.php:46
2379
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:168
2380
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/EditShortcodeRegistration.php:63
2381
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:164
2382
- msgid "Structure is missing"
2383
- msgstr ""
2384
-
2385
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:63
2386
- msgid "Make this a passwordless login"
2387
- msgstr ""
2388
-
2389
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php:64
2390
- msgid ""
2391
- "Passwordless login allows users to sign in to your WordPress site via a one-"
2392
- "time URL sent to their email address."
2393
- msgstr ""
2394
-
2395
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php:24
2396
- msgid ""
2397
- "All login form shortcodes, HTML and CSS codes should be inside of this "
2398
- "shortcode. That is [pp-login-form]...[/pp-login-form]"
2399
- msgstr ""
2400
-
2401
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php:28
2402
- msgid ""
2403
- "All registration form shortcodes, HTML and CSS codes should be inside of "
2404
- "this shortcode. That is [pp-registration-form]...[/pp-registration-form]"
2405
- msgstr ""
2406
-
2407
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php:32
2408
- msgid ""
2409
- "All password reset form shortcodes, HTML and CSS codes should be inside of "
2410
- "this shortcode. That is [pp-password-reset-form]...[/pp-password-reset-form]"
2411
- msgstr ""
2412
-
2413
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php:36
2414
- msgid ""
2415
- "All edit profile form shortcodes, HTML and CSS codes should be inside of "
2416
- "this shortcode. That is [pp-password-reset-form]...[/pp-password-reset-form]"
2417
- msgstr ""
2418
-
2419
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php:78
2420
- msgid "Melange Design is missing"
2421
- msgstr ""
2422
-
2423
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:63
2424
- msgid "Registration Success Message"
2425
- msgstr ""
2426
-
2427
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:68
2428
- msgid "Message displayed on successful user registration."
2429
- msgstr ""
2430
-
2431
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:73
2432
- msgid "Password-reset Success Message"
2433
- msgstr ""
2434
-
2435
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:78
2436
- msgid "Message displayed on successful user password reset."
2437
- msgstr ""
2438
-
2439
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:83
2440
- msgid "Edit-profile Success Message"
2441
- msgstr ""
2442
-
2443
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:88
2444
- msgid "Message displayed on users successfully editing their profile"
2445
- msgstr ""
2446
-
2447
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:93
2448
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:86
2449
- msgid "Disable Username Requirement"
2450
- msgstr ""
2451
-
2452
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php:97
2453
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:90
2454
- msgid "Check to Disable"
2455
- msgstr ""
2456
-
2457
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/EditShortcodeMemberDirectories.php:24
2458
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:141
2459
- #: src/ContentProtection/SettingsPage.php:134
2460
- #: src/Themes/DragDrop/AbstractTheme.php:114
2461
- msgid "Changes saved."
2462
- msgstr ""
2463
-
2464
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:25
2465
- msgid "Username / Email field - Password reset form"
2466
- msgstr ""
2467
-
2468
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:43
2469
- msgid "Submit button - Password reset form"
2470
- msgstr ""
2471
-
2472
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:61
2473
- msgid "Password field - Password reset handler form"
2474
- msgstr ""
2475
-
2476
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:79
2477
- msgid "Confirm password field - Password reset handler form"
2478
- msgstr ""
2479
-
2480
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:97
2481
- msgid "Password strength meter - Password reset handler form"
2482
- msgstr ""
2483
-
2484
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:101
2485
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:297
2486
- msgid "Enforce strong password"
2487
- msgstr ""
2488
-
2489
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:103
2490
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:299
2491
- msgid "Yes"
2492
- msgstr ""
2493
-
2494
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:103
2495
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:299
2496
- msgid "No"
2497
- msgstr ""
2498
-
2499
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:112
2500
- msgid "Submit button - Password reset handler form"
2501
- msgstr ""
2502
-
2503
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php:170
2504
- msgid "Password Reset Handler Form Structure is missing"
2505
- msgstr ""
2506
-
2507
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:29
2508
- msgid "Password Reset Handler Form"
2509
- msgstr ""
2510
-
2511
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:71
2512
- msgid "Message to display on successful user password reset."
2513
- msgstr ""
2514
-
2515
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:83
2516
- msgid "Reset Form Preview"
2517
- msgstr ""
2518
-
2519
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php:84
2520
- msgid "Handler Form Preview"
2521
- msgstr ""
2522
-
2523
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:68
2524
- msgid "Success message"
2525
- msgstr ""
2526
-
2527
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:72
2528
- msgid "Message to display on successful user registration."
2529
- msgstr ""
2530
-
2531
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php:81
2532
- msgid "Role of users registered through this form."
2533
- msgstr ""
2534
-
2535
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:24
2536
- msgid "Username of user"
2537
- msgstr ""
2538
-
2539
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:28
2540
- msgid "Email address of user"
2541
- msgstr ""
2542
-
2543
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:32
2544
- msgid "Website URL of user"
2545
- msgstr ""
2546
-
2547
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:36
2548
- msgid "Nickname of user"
2549
- msgstr ""
2550
-
2551
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:40
2552
- msgid "Display name of user"
2553
- msgstr ""
2554
-
2555
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:44
2556
- msgid "First name of user"
2557
- msgstr ""
2558
-
2559
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:48
2560
- msgid "Last name of user"
2561
- msgstr ""
2562
-
2563
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:52
2564
- msgid "Biographical info of user"
2565
- msgstr ""
2566
-
2567
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:56
2568
- msgid "Custom field information"
2569
- msgstr ""
2570
-
2571
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:60
2572
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:70
2573
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:235
2574
- msgid "Field key"
2575
- msgstr ""
2576
-
2577
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:66
2578
- msgid "Link to uploaded file"
2579
- msgstr ""
2580
-
2581
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:74
2582
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:94
2583
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:116
2584
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:138
2585
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:160
2586
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:182
2587
- msgid "Check to return URL"
2588
- msgstr ""
2589
-
2590
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:80
2591
- msgid "URL of User profile picture or avatar"
2592
- msgstr ""
2593
-
2594
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:84
2595
- msgid "Date of user registration"
2596
- msgstr ""
2597
-
2598
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:88
2599
- msgid "Number of posts published by user"
2600
- msgstr ""
2601
-
2602
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:92
2603
- msgid "Number of comments submitted by user"
2604
- msgstr ""
2605
-
2606
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:96
2607
- msgid "List of posts authored by user"
2608
- msgstr ""
2609
-
2610
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:100
2611
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:110
2612
- msgid "Limit"
2613
- msgstr ""
2614
-
2615
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:106
2616
- msgid "List of comments by user"
2617
- msgstr ""
2618
-
2619
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:116
2620
- msgid "URL to author posts page"
2621
- msgstr ""
2622
-
2623
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:120
2624
- msgid ""
2625
- "Hide content if profile information is empty. Do not forget to close the "
2626
- "shortcode with [/profile-hide-empty-data]"
2627
- msgstr ""
2628
-
2629
- #: src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php:124
2630
- msgid "Field ID"
2631
- msgstr ""
2632
-
2633
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:24
2634
- msgid "Displays user's avatar"
2635
- msgstr ""
2636
-
2637
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:28
2638
- msgid "Size of avatar"
2639
- msgstr ""
2640
-
2641
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:38
2642
- msgid "Displays user's cover image"
2643
- msgstr ""
2644
-
2645
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:50
2646
- msgid "Alternate text"
2647
- msgstr ""
2648
-
2649
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:56
2650
- msgid "Displays password hint"
2651
- msgstr ""
2652
-
2653
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:60
2654
- msgid "Social login button"
2655
- msgstr ""
2656
-
2657
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:64
2658
- msgid "Social network"
2659
- msgstr ""
2660
-
2661
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:67
2662
- #: src/Classes/UserSignupLocationListingPage.php:43
2663
- #: src/Themes/DragDrop/AbstractBuildScratch.php:284
2664
- msgid "Facebook"
2665
- msgstr ""
2666
-
2667
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:68
2668
- #: src/Classes/UserSignupLocationListingPage.php:47
2669
- #: src/Themes/DragDrop/AbstractBuildScratch.php:285
2670
- msgid "Twitter"
2671
- msgstr ""
2672
-
2673
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:69
2674
- #: src/Classes/UserSignupLocationListingPage.php:51
2675
- #: src/Themes/DragDrop/AbstractBuildScratch.php:286
2676
- msgid "Google"
2677
- msgstr ""
2678
-
2679
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:70
2680
- #: src/Classes/UserSignupLocationListingPage.php:55
2681
- #: src/Themes/DragDrop/AbstractBuildScratch.php:287
2682
- msgid "LinkedIn"
2683
- msgstr ""
2684
-
2685
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:71
2686
- msgid "VK"
2687
- msgstr ""
2688
-
2689
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:72
2690
- #: src/Classes/UserSignupLocationListingPage.php:59
2691
- #: src/Themes/DragDrop/AbstractBuildScratch.php:288
2692
- msgid "GitHub"
2693
- msgstr ""
2694
-
2695
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:78
2696
- msgid "Link to registration page"
2697
- msgstr ""
2698
-
2699
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:82
2700
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:104
2701
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:126
2702
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:148
2703
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:170
2704
- msgid "Link label"
2705
- msgstr ""
2706
-
2707
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:100
2708
- msgid "Link to login page"
2709
- msgstr ""
2710
-
2711
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:122
2712
- msgid "Link to password reset page"
2713
- msgstr ""
2714
-
2715
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:144
2716
- msgid "Link to My Account page"
2717
- msgstr ""
2718
-
2719
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:166
2720
- msgid "Link to log out"
2721
- msgstr ""
2722
-
2723
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:188
2724
- msgid "Link to login with Facebook"
2725
- msgstr ""
2726
-
2727
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:192
2728
- msgid "Link to login with Twitter"
2729
- msgstr ""
2730
-
2731
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:196
2732
- msgid "Link to login with LinkedIn"
2733
- msgstr ""
2734
-
2735
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:200
2736
- msgid "Link to login with Google"
2737
- msgstr ""
2738
-
2739
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:204
2740
- msgid "Link to login with GitHub"
2741
- msgstr ""
2742
-
2743
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:208
2744
- msgid "Link to login with VK"
2745
- msgstr ""
2746
-
2747
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:255
2748
- msgid "Default field value"
2749
- msgstr ""
2750
-
2751
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:266
2752
- msgid "Mark as required"
2753
- msgstr ""
2754
-
2755
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:278
2756
- msgid "Username field"
2757
- msgstr ""
2758
-
2759
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:288
2760
- msgid "Confirm password field"
2761
- msgstr ""
2762
-
2763
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:293
2764
- msgid "Password strength meter"
2765
- msgstr ""
2766
-
2767
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:312
2768
- msgid "Email address field"
2769
- msgstr ""
2770
-
2771
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:317
2772
- msgid "Confirm email address field"
2773
- msgstr ""
2774
-
2775
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:322
2776
- msgid "Website field"
2777
- msgstr ""
2778
-
2779
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:327
2780
- msgid "Nickname field"
2781
- msgstr ""
2782
-
2783
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:332
2784
- msgid "Display name field"
2785
- msgstr ""
2786
-
2787
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:337
2788
- msgid "First name field"
2789
- msgstr ""
2790
-
2791
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:342
2792
- msgid "Last name field"
2793
- msgstr ""
2794
-
2795
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:347
2796
- msgid "Biographical info field"
2797
- msgstr ""
2798
-
2799
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:352
2800
- msgid "Profile picture upload field"
2801
- msgstr ""
2802
-
2803
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:357
2804
- msgid "Profile cover image upload field"
2805
- msgstr ""
2806
-
2807
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:362
2808
- msgid "Custom field"
2809
- msgstr ""
2810
-
2811
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:409
2812
- msgid "Search shortcodes"
2813
- msgstr ""
2814
-
2815
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:419
2816
- msgid "Select"
2817
- msgstr ""
2818
-
2819
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:453
2820
- msgid "Shortcode copied to clipboard."
2821
- msgstr ""
2822
-
2823
- #: src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php:596
2824
- msgid "Copy to clipboard"
2825
- msgstr ""
2826
-
2827
  #: src/Admin/SettingsPages/ToolsSettingsPage.php:40
2828
  msgid "Logs"
2829
  msgstr ""
@@ -2941,55 +2296,55 @@ msgid ""
2941
  "\""
2942
  msgstr ""
2943
 
2944
- #: src/Classes/AjaxHandler.php:46
2945
  msgid ""
2946
  "Melange is a way to combine login, registration & password reset forms in a "
2947
  "single form."
2948
  msgstr ""
2949
 
2950
- #: src/Classes/AjaxHandler.php:50
2951
  msgid "Select Form Type"
2952
  msgstr ""
2953
 
2954
- #: src/Classes/AjaxHandler.php:51
2955
  msgid "Loading..."
2956
  msgstr ""
2957
 
2958
- #: src/Classes/AjaxHandler.php:102
2959
  msgid "Create from Scratch"
2960
  msgstr ""
2961
 
2962
- #: src/Classes/AjaxHandler.php:108
2963
  msgid "Do it Yourself"
2964
  msgstr ""
2965
 
2966
- #: src/Classes/AjaxHandler.php:111
2967
  msgid "Get Started Creating Your Own Form"
2968
  msgstr ""
2969
 
2970
- #: src/Classes/AjaxHandler.php:152
2971
  msgid "Select this template"
2972
  msgstr ""
2973
 
2974
- #: src/Classes/AjaxHandler.php:153
2975
  #: src/ContentProtection/ContentConditions.php:274
2976
  msgid "Select Template"
2977
  msgstr ""
2978
 
2979
- #: src/Classes/AjaxHandler.php:162
2980
  msgid "Enter a Name"
2981
  msgstr ""
2982
 
2983
- #: src/Classes/AjaxHandler.php:218 src/Classes/AjaxHandler.php:241
2984
  #: src/Classes/PasswordReset.php:359
2985
  msgid "Unexpected error. Please try again."
2986
  msgstr ""
2987
 
2988
- #: src/Classes/AjaxHandler.php:250
2989
  msgid "Form with similar name exist already."
2990
  msgstr ""
2991
 
2992
- #: src/Classes/AjaxHandler.php:540
2993
  msgid "Security validation failed. Try again"
2994
  msgstr ""
2995
 
@@ -3334,6 +2689,31 @@ msgstr ""
3334
  msgid "Registered Via"
3335
  msgstr ""
3336
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3337
  #: src/Classes/UserSignupLocationListingPage.php:63
3338
  msgid "Vkontakte"
3339
  msgstr ""
@@ -3475,6 +2855,11 @@ msgstr ""
3475
  msgid "Title cannot be empty."
3476
  msgstr ""
3477
 
 
 
 
 
 
3478
  #: src/ContentProtection/SettingsPage.php:156
3479
  msgid "Add a Protection Rule"
3480
  msgstr ""
@@ -4715,7 +4100,7 @@ msgstr ""
4715
  msgid "Member Directory"
4716
  msgstr ""
4717
 
4718
- #: src/RegisterScripts.php:64 src/RegisterScripts.php:108
4719
  msgid "Are you sure?"
4720
  msgstr ""
4721
 
@@ -4835,6 +4220,14 @@ msgstr ""
4835
  msgid "custom field not defined"
4836
  msgstr ""
4837
 
 
 
 
 
 
 
 
 
4838
  #: src/ShortcodeParser/Builder/FrontendProfileBuilder.php:113
4839
  msgid "This user has not created any post."
4840
  msgstr ""
@@ -4930,7 +4323,7 @@ msgstr ""
4930
  msgid "Email Notifications"
4931
  msgstr ""
4932
 
4933
- #: src/ShortcodeParser/MyAccount/MyAccountTag.php:486
4934
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:87
4935
  msgid "Cover Image (min. width: 1000px)"
4936
  msgstr ""
@@ -5796,9 +5189,9 @@ msgstr ""
5796
  msgid "ProfilePress"
5797
  msgstr ""
5798
 
5799
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.2) #-#-#-#-#
5800
  #. Plugin URI of the plugin/theme
5801
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.2) #-#-#-#-#
5802
  #. Author URI of the plugin/theme
5803
  msgid "https://profilepress.net"
5804
  msgstr ""
2
  # This file is distributed under the same license as the ProfilePress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: ProfilePress 3.1.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
+ "POT-Creation-Date: 2021-05-26 15:39:50+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
18
  msgstr ""
19
 
20
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:79
 
 
 
 
 
 
 
 
 
21
  msgid "Available Shortcodes"
22
  msgstr ""
23
 
46
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:78
47
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:131
48
  #: src/Classes/ImageUploader.php:49
49
+ #: src/ShortcodeParser/MyAccount/MyAccountTag.php:485
50
  msgid "Profile Picture"
51
  msgstr ""
52
 
446
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
447
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
448
  #: src/Admin/SettingsPages/GeneralSettings.php:234
 
449
  #: src/Functions/GlobalFunctions.php:1224
450
  #: src/Functions/GlobalFunctions.php:1250
451
  #: src/Functions/GlobalFunctions.php:1272
457
  msgstr ""
458
 
459
  #: src/Admin/SettingsPages/AddNewForm.php:27
460
+ #: src/Admin/SettingsPages/MemberDirectories.php:38
461
  msgid "Add Member Directory"
462
  msgstr ""
463
 
464
+ #: src/Admin/SettingsPages/AddNewForm.php:48
465
  msgid "Drag & Drop Builder"
466
  msgstr ""
467
 
468
+ #: src/Admin/SettingsPages/AddNewForm.php:49
469
  msgid ""
470
  "Create beautiful, responsive forms with easy to use drag & drop form builder."
471
  msgstr ""
472
 
473
+ #: src/Admin/SettingsPages/AddNewForm.php:52
474
+ msgid "Get Started"
475
  msgstr ""
476
 
477
+ #: src/Admin/SettingsPages/AddNewForm.php:62
478
+ #: src/Admin/SettingsPages/AddNewForm.php:78
479
  msgid "Shortcode Builder"
480
  msgstr ""
481
 
482
+ #: src/Admin/SettingsPages/AddNewForm.php:63
483
+ #: src/Admin/SettingsPages/AddNewForm.php:79
484
  msgid ""
485
  "Code your own from scratch with complete control and flexibility using "
486
  "shortcodes."
487
  msgstr ""
488
 
489
+ #: src/Admin/SettingsPages/AddNewForm.php:66 src/Classes/AjaxHandler.php:115
490
  msgid "Build Now"
491
  msgstr ""
492
 
493
+ #: src/Admin/SettingsPages/AddNewForm.php:82
494
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:110
495
+ msgid "Upgrade to Premium"
496
+ msgstr ""
497
+
498
+ #: src/Admin/SettingsPages/AddNewForm.php:119
499
  msgid "Back to Overview"
500
  msgstr ""
501
 
547
  msgstr ""
548
 
549
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1255
 
 
 
 
 
 
 
550
  msgid "Enter title here"
551
  msgstr ""
552
 
553
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1257
554
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1274
555
  #: src/Admin/SettingsPages/EmailSettings/CustomizerTrait.php:11
 
 
 
 
 
 
 
556
  #: src/AdminBarDashboardAccess/include.settings-page.php:54
557
  #: src/AdminBarDashboardAccess/include.settings-page.php:109
558
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1004
566
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1335
567
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1374
568
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1421
 
 
569
  msgid "Success Message"
570
  msgstr ""
571
 
572
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1341
 
573
  msgid "New User Role"
574
  msgstr ""
575
 
586
  msgstr ""
587
 
588
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1351
 
 
589
  msgid ""
590
  "Disable requirement for users to enter a username during registration. "
591
  "Usernames will automatically be generated from their email addresses."
601
  msgstr ""
602
 
603
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1397
 
604
  #: src/Classes/ExtensionManager.php:77
605
  msgid "Passwordless Login"
606
  msgstr ""
633
  msgstr ""
634
 
635
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1455
 
 
 
 
 
636
  msgid "Processing Label"
637
  msgstr ""
638
 
671
  #: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:232
672
  #: src/Admin/SettingsPages/GeneralSettings.php:26
673
  #: src/Admin/SettingsPages/GeneralSettings.php:27
 
 
 
 
 
674
  #: src/Classes/Miscellaneous.php:17
675
  msgid "Settings"
676
  msgstr ""
731
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Textarea.php:40
732
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Username.php:30
733
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Website.php:30
 
 
 
 
734
  #: src/Themes/DragDrop/AbstractBuildScratch.php:436
735
  msgid "Placeholder"
736
  msgstr ""
1617
  msgid "Upgrade Now"
1618
  msgstr ""
1619
 
 
 
 
 
1620
  #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:110
1621
  msgid "Upgrade Plan"
1622
  msgstr ""
1668
  msgstr ""
1669
 
1670
  #: src/Admin/SettingsPages/FormList.php:237
 
 
 
 
 
 
1671
  #: src/Classes/FormPreviewHandler.php:45
1672
  #: src/Functions/custom-settings-api.php:856
1673
  msgid "Preview"
1677
  msgid "Drag & Drop"
1678
  msgstr ""
1679
 
1680
+ #: src/Admin/SettingsPages/Forms.php:37 src/Admin/SettingsPages/Forms.php:63
1681
  msgid "Forms & Profiles"
1682
  msgstr ""
1683
 
1684
+ #: src/Admin/SettingsPages/Forms.php:40
1685
  msgid "Edit Form"
1686
  msgstr ""
1687
 
1688
+ #: src/Admin/SettingsPages/Forms.php:44
1689
  msgid "Add Form"
1690
  msgstr ""
1691
 
1692
+ #: src/Admin/SettingsPages/Forms.php:48 src/Admin/SettingsPages/Forms.php:52
1693
  msgid "Edit Frontend Profile"
1694
  msgstr ""
1695
 
1696
+ #: src/Admin/SettingsPages/Forms.php:78
1697
  msgid ""
1698
  "Melange combines login, registration & password reset forms in a single form."
1699
  msgstr ""
1700
 
1701
+ #: src/Admin/SettingsPages/Forms.php:95
1702
  msgid "Filter by Type"
1703
  msgstr ""
1704
 
1705
+ #: src/Admin/SettingsPages/Forms.php:99
1706
  #: src/Admin/SettingsPages/GeneralSettings.php:131
1707
  #: src/Admin/SettingsPages/GeneralSettings.php:246
1708
+ #: src/Classes/AjaxHandler.php:53 src/NavigationMenuLinks/Backend.php:34
1709
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:235
1710
  #: src/Themes/DragDrop/AbstractBuildScratch.php:180
1711
  #: src/Widgets/TabbedWidget.php:107
1712
  msgid "Login"
1713
  msgstr ""
1714
 
1715
+ #: src/Admin/SettingsPages/Forms.php:104
1716
  #: src/Admin/SettingsPages/GeneralSettings.php:117
1717
+ #: src/Classes/AjaxHandler.php:58
1718
  msgid "Registration"
1719
  msgstr ""
1720
 
1721
+ #: src/Admin/SettingsPages/Forms.php:110
1722
  #: src/Admin/SettingsPages/GeneralSettings.php:263
1723
+ #: src/Classes/AjaxHandler.php:63
1724
  msgid "Password Reset"
1725
  msgstr ""
1726
 
1727
+ #: src/Admin/SettingsPages/Forms.php:115 src/Classes/AjaxHandler.php:68
1728
  #: src/NavigationMenuLinks/Backend.php:32
1729
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:301
1730
  msgid "Edit Profile"
1731
  msgstr ""
1732
 
1733
+ #: src/Admin/SettingsPages/Forms.php:122 src/Classes/AjaxHandler.php:74
1734
  msgid "Melange"
1735
  msgstr ""
1736
 
1737
+ #: src/Admin/SettingsPages/Forms.php:130 src/Classes/AjaxHandler.php:81
1738
  msgid "User Profile"
1739
  msgstr ""
1740
 
1741
+ #: src/Admin/SettingsPages/Forms.php:162
1742
  msgid "Forms"
1743
  msgstr ""
1744
 
1745
+ #: src/Admin/SettingsPages/Forms.php:204
1746
+ #: src/Admin/SettingsPages/MemberDirectories.php:104
1747
  msgid "Live Preview"
1748
  msgstr ""
1749
 
1750
+ #: src/Admin/SettingsPages/Forms.php:285
1751
+ #: src/Admin/SettingsPages/MemberDirectories.php:200
1752
  msgid "Add New"
1753
  msgstr ""
1754
 
2162
  msgstr ""
2163
 
2164
  #: src/Admin/SettingsPages/IDUserColumn.php:20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2165
  msgid "ID"
2166
  msgstr ""
2167
 
2168
+ #: src/Admin/SettingsPages/MemberDirectories.php:35
2169
+ #: src/Admin/SettingsPages/MemberDirectories.php:53
2170
+ #: src/Admin/SettingsPages/MemberDirectories.php:85
2171
  msgid "Member Directories"
2172
  msgstr ""
2173
 
2174
+ #: src/Admin/SettingsPages/MemberDirectories.php:42
2175
  msgid "Edit Member Directory"
2176
  msgstr ""
2177
 
2179
  msgid "No members directory is currently available. %sConsider creating one%s"
2180
  msgstr ""
2181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2182
  #: src/Admin/SettingsPages/ToolsSettingsPage.php:40
2183
  msgid "Logs"
2184
  msgstr ""
2296
  "\""
2297
  msgstr ""
2298
 
2299
+ #: src/Classes/AjaxHandler.php:44
2300
  msgid ""
2301
  "Melange is a way to combine login, registration & password reset forms in a "
2302
  "single form."
2303
  msgstr ""
2304
 
2305
+ #: src/Classes/AjaxHandler.php:48
2306
  msgid "Select Form Type"
2307
  msgstr ""
2308
 
2309
+ #: src/Classes/AjaxHandler.php:49
2310
  msgid "Loading..."
2311
  msgstr ""
2312
 
2313
+ #: src/Classes/AjaxHandler.php:100
2314
  msgid "Create from Scratch"
2315
  msgstr ""
2316
 
2317
+ #: src/Classes/AjaxHandler.php:106
2318
  msgid "Do it Yourself"
2319
  msgstr ""
2320
 
2321
+ #: src/Classes/AjaxHandler.php:109
2322
  msgid "Get Started Creating Your Own Form"
2323
  msgstr ""
2324
 
2325
+ #: src/Classes/AjaxHandler.php:150
2326
  msgid "Select this template"
2327
  msgstr ""
2328
 
2329
+ #: src/Classes/AjaxHandler.php:151
2330
  #: src/ContentProtection/ContentConditions.php:274
2331
  msgid "Select Template"
2332
  msgstr ""
2333
 
2334
+ #: src/Classes/AjaxHandler.php:160
2335
  msgid "Enter a Name"
2336
  msgstr ""
2337
 
2338
+ #: src/Classes/AjaxHandler.php:216 src/Classes/AjaxHandler.php:239
2339
  #: src/Classes/PasswordReset.php:359
2340
  msgid "Unexpected error. Please try again."
2341
  msgstr ""
2342
 
2343
+ #: src/Classes/AjaxHandler.php:248
2344
  msgid "Form with similar name exist already."
2345
  msgstr ""
2346
 
2347
+ #: src/Classes/AjaxHandler.php:525
2348
  msgid "Security validation failed. Try again"
2349
  msgstr ""
2350
 
2689
  msgid "Registered Via"
2690
  msgstr ""
2691
 
2692
+ #: src/Classes/UserSignupLocationListingPage.php:43
2693
+ #: src/Themes/DragDrop/AbstractBuildScratch.php:284
2694
+ msgid "Facebook"
2695
+ msgstr ""
2696
+
2697
+ #: src/Classes/UserSignupLocationListingPage.php:47
2698
+ #: src/Themes/DragDrop/AbstractBuildScratch.php:285
2699
+ msgid "Twitter"
2700
+ msgstr ""
2701
+
2702
+ #: src/Classes/UserSignupLocationListingPage.php:51
2703
+ #: src/Themes/DragDrop/AbstractBuildScratch.php:286
2704
+ msgid "Google"
2705
+ msgstr ""
2706
+
2707
+ #: src/Classes/UserSignupLocationListingPage.php:55
2708
+ #: src/Themes/DragDrop/AbstractBuildScratch.php:287
2709
+ msgid "LinkedIn"
2710
+ msgstr ""
2711
+
2712
+ #: src/Classes/UserSignupLocationListingPage.php:59
2713
+ #: src/Themes/DragDrop/AbstractBuildScratch.php:288
2714
+ msgid "GitHub"
2715
+ msgstr ""
2716
+
2717
  #: src/Classes/UserSignupLocationListingPage.php:63
2718
  msgid "Vkontakte"
2719
  msgstr ""
2855
  msgid "Title cannot be empty."
2856
  msgstr ""
2857
 
2858
+ #: src/ContentProtection/SettingsPage.php:134
2859
+ #: src/Themes/DragDrop/AbstractTheme.php:114
2860
+ msgid "Changes saved."
2861
+ msgstr ""
2862
+
2863
  #: src/ContentProtection/SettingsPage.php:156
2864
  msgid "Add a Protection Rule"
2865
  msgstr ""
4100
  msgid "Member Directory"
4101
  msgstr ""
4102
 
4103
+ #: src/RegisterScripts.php:64 src/RegisterScripts.php:113
4104
  msgid "Are you sure?"
4105
  msgstr ""
4106
 
4220
  msgid "custom field not defined"
4221
  msgstr ""
4222
 
4223
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1071
4224
+ msgid "Delete Avatar"
4225
+ msgstr ""
4226
+
4227
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1107
4228
+ msgid "Delete Cover Image"
4229
+ msgstr ""
4230
+
4231
  #: src/ShortcodeParser/Builder/FrontendProfileBuilder.php:113
4232
  msgid "This user has not created any post."
4233
  msgstr ""
4323
  msgid "Email Notifications"
4324
  msgstr ""
4325
 
4326
+ #: src/ShortcodeParser/MyAccount/MyAccountTag.php:484
4327
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:87
4328
  msgid "Cover Image (min. width: 1000px)"
4329
  msgstr ""
5189
  msgid "ProfilePress"
5190
  msgstr ""
5191
 
5192
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.3) #-#-#-#-#
5193
  #. Plugin URI of the plugin/theme
5194
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.3) #-#-#-#-#
5195
  #. Author URI of the plugin/theme
5196
  msgid "https://profilepress.net"
5197
  msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: user registration, user profile, registration form, membership, login form
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 5.7
8
- Stable tag: 3.1.2
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
@@ -119,6 +119,11 @@ No. You can create and manage your forms, user profiles and member directories w
119
 
120
  == Changelog ==
121
 
 
 
 
 
 
122
  = 3.1.2 =
123
  * Fixed issue where registration with username requirement disabled wasn't working.
124
  * Fixed fatal error caused during user registration.
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 5.7
8
+ Stable tag: 3.1.3
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
119
 
120
  == Changelog ==
121
 
122
+ = 3.1.3 =
123
+ * Fixed edge cases where post content was overridden.
124
+ * Fixed bug where buddypress avatar override wasn't working.
125
+ * Removed the shortcode builder due to wp.org no longer accepting code inserters.
126
+
127
  = 3.1.2 =
128
  * Fixed issue where registration with username requirement disabled wasn't working.
129
  * Fixed fatal error caused during user registration.
src/Admin/SettingsPages/AddNewForm.php CHANGED
@@ -23,7 +23,7 @@ class AddNewForm extends AbstractSettingsPage
23
  add_filter('wp_cspa_main_content_area', [$this, 'form_list']);
24
 
25
  $instance = Custom_Settings_Page_Api::instance();
26
- if($_GET['page'] == PPRESS_MEMBER_DIRECTORIES_SLUG) {
27
  $instance->page_header(__('Add Member Directory', 'wp-user-avatar'));
28
  }
29
  $this->register_core_settings($instance, true);
@@ -39,29 +39,50 @@ class AddNewForm extends AbstractSettingsPage
39
  <div class="profile-press-design-gateway">
40
  <div class="profile-press-design-gateway-inner">
41
  <div class="pp-half clearfix">
42
- <div class="pp-hald-first" data-builder-type="dragDropBuilder">
43
  <div class="pp-half-meta-inner">
44
  <div class="pp-half-first-thumb responsive-image">
45
- <img src="<?= PPRESS_ASSETS_URL; ?>/images/admin/dragdrop-builder-icon.png"></div>
 
46
  <div class="pp-half-meta">
47
  <h2><?php _e('Drag & Drop Builder', 'wp-user-avatar') ?></h2>
48
  <p><?php _e('Create beautiful, responsive forms with easy to use drag & drop form builder.', 'wp-user-avatar'); ?></p>
49
  </div>
50
  </div>
51
- <button class="pp-builder-create-btn"><?php _e('Try Now', 'wp-user-avatar'); ?></button>
52
  </div>
53
- <div class="pp-hald-first" data-builder-type="shortcodeBuilder">
54
- <div class="pp-half-meta-inner">
55
- <div class="pp-half-first-thumb responsive-image">
56
- <img src="<?= PPRESS_ASSETS_URL; ?>/images/admin/shortcode-builder-icon.png">
57
- </div>
58
- <div class="pp-half-meta">
59
- <h2><?php _e('Shortcode Builder', 'wp-user-avatar'); ?></h2>
60
- <p><?php _e('Code your own from scratch with complete control and flexibility using shortcodes.', 'wp-user-avatar'); ?></p>
 
 
 
61
  </div>
 
62
  </div>
63
- <button class="pp-builder-create-btn"><?php _e('Build Now', 'wp-user-avatar'); ?></button>
64
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  </div>
66
  </div>
67
  </div>
23
  add_filter('wp_cspa_main_content_area', [$this, 'form_list']);
24
 
25
  $instance = Custom_Settings_Page_Api::instance();
26
+ if ($_GET['page'] == PPRESS_MEMBER_DIRECTORIES_SLUG) {
27
  $instance->page_header(__('Add Member Directory', 'wp-user-avatar'));
28
  }
29
  $this->register_core_settings($instance, true);
39
  <div class="profile-press-design-gateway">
40
  <div class="profile-press-design-gateway-inner">
41
  <div class="pp-half clearfix">
42
+ <div class="pp-hald-first ppbd-active" data-builder-type="dragDropBuilder">
43
  <div class="pp-half-meta-inner">
44
  <div class="pp-half-first-thumb responsive-image">
45
+ <img src="<?= PPRESS_ASSETS_URL; ?>/images/admin/dragdrop-builder-icon.png">
46
+ </div>
47
  <div class="pp-half-meta">
48
  <h2><?php _e('Drag & Drop Builder', 'wp-user-avatar') ?></h2>
49
  <p><?php _e('Create beautiful, responsive forms with easy to use drag & drop form builder.', 'wp-user-avatar'); ?></p>
50
  </div>
51
  </div>
52
+ <button class="pp-builder-create-btn"><?php _e('Get Started', 'wp-user-avatar'); ?></button>
53
  </div>
54
+
55
+ <?php if (class_exists('ProfilePress\Libsodium\Libsodium')) : ?>
56
+ <div class="pp-hald-first ppbd-active" data-builder-type="shortcodeBuilder">
57
+ <div class="pp-half-meta-inner">
58
+ <div class="pp-half-first-thumb responsive-image">
59
+ <img src="<?= PPRESS_ASSETS_URL; ?>/images/admin/shortcode-builder-icon.png">
60
+ </div>
61
+ <div class="pp-half-meta">
62
+ <h2><?php _e('Shortcode Builder', 'wp-user-avatar'); ?></h2>
63
+ <p><?php _e('Code your own from scratch with complete control and flexibility using shortcodes.', 'wp-user-avatar'); ?></p>
64
+ </div>
65
  </div>
66
+ <button class="pp-builder-create-btn"><?php _e('Build Now', 'wp-user-avatar'); ?></button>
67
  </div>
68
+ <?php endif; ?>
69
+
70
+ <?php if ( ! class_exists('ProfilePress\Libsodium\Libsodium')) : ?>
71
+ <div class="pp-hald-first">
72
+ <a target="_blank" href='https://profilepress.net/pricing/?utm_source=wp_dashboard&utm_medium=upgrade&utm_campaign=shortcode_builder_upsell'>
73
+ <div class="pp-half-meta-inner">
74
+ <div class="pp-half-first-thumb responsive-image">
75
+ <img src="<?= PPRESS_ASSETS_URL; ?>/images/admin/shortcode-builder-icon.png">
76
+ </div>
77
+ <div class="pp-half-meta">
78
+ <h2><?php _e('Shortcode Builder', 'wp-user-avatar'); ?></h2>
79
+ <p><?php _e('Code your own from scratch with complete control and flexibility using shortcodes.', 'wp-user-avatar'); ?></p>
80
+ </div>
81
+ </div>
82
+ <button class="pp-builder-create-btn"><?php _e('Upgrade to Premium', 'wp-user-avatar'); ?></button>
83
+ </a>
84
+ </div>
85
+ <?php endif; ?>
86
  </div>
87
  </div>
88
  </div>
src/Admin/SettingsPages/Forms.php CHANGED
@@ -3,12 +3,6 @@
3
  namespace ProfilePress\Core\Admin\SettingsPages;
4
 
5
  use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\DragDropBuilder;
6
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeEditProfile\EditShortcodeEditProfile;
7
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeLogin\EditShortcodeLogin;
8
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodePasswordReset\EditShortcodePasswordReset;
9
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeMelange\EditShortcodeMelange;
10
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeRegistration\EditShortcodeRegistration;
11
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeUserProfile\EditShortcodeUserProfile;
12
  use ProfilePress\Core\Classes\FormRepository as FR;
13
  use ProfilePress\Custom_Settings_Page_Api;
14
 
@@ -24,12 +18,6 @@ class Forms extends AbstractSettingsPage
24
  */
25
  protected $forms_instance;
26
 
27
- protected $EditShortcodeLoginInstance;
28
- protected $EditShortcodeRegistrationInstance;
29
- protected $EditShortcodePasswordResetInstance;
30
- protected $EditShortcodeMelangeInstance;
31
- protected $EditShortcodeEditProfileInstance;
32
- protected $EditShortcodeUserProfileInstance;
33
  protected $DragDropClassInstance;
34
 
35
  public function __construct()
@@ -39,14 +27,9 @@ class Forms extends AbstractSettingsPage
39
  add_filter('set-screen-option', array($this, 'set_screen'), 10, 3);
40
  add_filter('set_screen_option_forms_per_page', array($this, 'set_screen'), 10, 3);
41
 
42
- $this->EditShortcodeLoginInstance = EditShortcodeLogin::get_instance();
43
- $this->EditShortcodeRegistrationInstance = EditShortcodeRegistration::get_instance();
44
- $this->EditShortcodePasswordResetInstance = EditShortcodePasswordReset::get_instance();
45
- $this->EditShortcodeEditProfileInstance = EditShortcodeEditProfile::get_instance();
46
- $this->EditShortcodeMelangeInstance = EditShortcodeMelange::get_instance();
47
- $this->EditShortcodeUserProfileInstance = EditShortcodeUserProfile::get_instance();
48
-
49
  $this->DragDropClassInstance = DragDropBuilder::get_instance();
 
 
50
  }
51
 
52
  public function admin_page_title()
@@ -132,12 +115,16 @@ class Forms extends AbstractSettingsPage
132
  <?php _e('Edit Profile', 'wp-user-avatar'); ?>
133
  </a>
134
  </li>
135
- <li>
136
- <a href="<?php echo $melange_url; ?>" class="<?php echo $melange_menu_active; ?>">
137
- <?php _e('Melange', 'wp-user-avatar'); ?>
138
- </a>
139
- <span class="pp-melange-jbox dashicons dashicons-editor-help" title="<?php echo $melange_jbox; ?>"></span>
140
- </li>
 
 
 
 
141
  <li>
142
  <a href="<?php echo $user_profile_url; ?>" class="<?php echo $user_profile_menu_active; ?>">
143
  <?php _e('User Profile', 'wp-user-avatar'); ?>
@@ -249,72 +236,12 @@ class Forms extends AbstractSettingsPage
249
  return AddNewForm::get_instance()->settings_admin_page();
250
  }
251
 
252
- if ( ! empty($_GET['view'])) {
253
 
254
- $form_id = absint($_GET['id']);
255
-
256
- $page_header = $this->admin_page_title();
257
-
258
- $shortcode_builder_page_header = sprintf(
259
- '<div class="wrap ppSCB"><h2>%s %s</h2><form method="post">%s',
260
- $page_header,
261
- $this->live_form_preview_btn(false),
262
- ppress_nonce_field()
263
- );
264
-
265
- if ($_GET['view'] == 'edit-shortcode-login') {
266
- $this->no_form_exist_redirect($form_id, FR::LOGIN_TYPE);
267
- echo $shortcode_builder_page_header;
268
- $this->EditShortcodeLoginInstance->edit_screen();
269
- echo '</form></div>';
270
-
271
- return;
272
- }
273
-
274
- if ($_GET['view'] == 'edit-shortcode-registration') {
275
- $this->no_form_exist_redirect($form_id, FR::REGISTRATION_TYPE);
276
- echo $shortcode_builder_page_header;
277
- $this->EditShortcodeRegistrationInstance->edit_screen();
278
- echo '</form></div>';
279
-
280
- return;
281
- }
282
-
283
- if ($_GET['view'] == 'edit-shortcode-password-reset') {
284
- $this->no_form_exist_redirect($form_id, FR::PASSWORD_RESET_TYPE);
285
- echo $shortcode_builder_page_header;
286
- $this->EditShortcodePasswordResetInstance->edit_screen();
287
- echo '</form></div>';
288
-
289
- return;
290
- }
291
-
292
- if ($_GET['view'] == 'edit-shortcode-melange') {
293
- $this->no_form_exist_redirect($form_id, FR::MELANGE_TYPE);
294
- echo $shortcode_builder_page_header;
295
- $this->EditShortcodeMelangeInstance->edit_screen();
296
- echo '</form></div>';
297
-
298
- return;
299
- }
300
-
301
- if ($_GET['view'] == 'edit-shortcode-edit-profile') {
302
- $this->no_form_exist_redirect($form_id, FR::EDIT_PROFILE_TYPE);
303
- echo $shortcode_builder_page_header;
304
- $this->EditShortcodeEditProfileInstance->edit_screen();
305
- echo '</form></div>';
306
-
307
- return;
308
- }
309
-
310
- if ($_GET['view'] == 'edit-shortcode-user-profile') {
311
- Forms::get_instance()->no_form_exist_redirect($form_id, FR::USER_PROFILE_TYPE);
312
- echo $shortcode_builder_page_header;
313
- $this->EditShortcodeUserProfileInstance->edit_screen();
314
- echo '</form></div>';
315
-
316
- return;
317
- }
318
 
319
  add_filter('wp_cspa_settings_page_sidebar', [$this->DragDropClassInstance, 'sidebar_section']);
320
  add_action('wp_cspa_before_closing_header', [$this, 'live_form_preview_btn']);
3
  namespace ProfilePress\Core\Admin\SettingsPages;
4
 
5
  use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\DragDropBuilder;
 
 
 
 
 
 
6
  use ProfilePress\Core\Classes\FormRepository as FR;
7
  use ProfilePress\Custom_Settings_Page_Api;
8
 
18
  */
19
  protected $forms_instance;
20
 
 
 
 
 
 
 
21
  protected $DragDropClassInstance;
22
 
23
  public function __construct()
27
  add_filter('set-screen-option', array($this, 'set_screen'), 10, 3);
28
  add_filter('set_screen_option_forms_per_page', array($this, 'set_screen'), 10, 3);
29
 
 
 
 
 
 
 
 
30
  $this->DragDropClassInstance = DragDropBuilder::get_instance();
31
+
32
+ do_action('ppress_admin_forms_class_constructor');
33
  }
34
 
35
  public function admin_page_title()
115
  <?php _e('Edit Profile', 'wp-user-avatar'); ?>
116
  </a>
117
  </li>
118
+
119
+ <?php if ( class_exists('ProfilePress\Libsodium\Libsodium')) : ?>
120
+ <li>
121
+ <a href="<?php echo $melange_url; ?>" class="<?php echo $melange_menu_active; ?>">
122
+ <?php _e('Melange', 'wp-user-avatar'); ?>
123
+ </a>
124
+ <span class="pp-melange-jbox dashicons dashicons-editor-help" title="<?php echo $melange_jbox; ?>"></span>
125
+ </li>
126
+ <?php endif; ?>
127
+
128
  <li>
129
  <a href="<?php echo $user_profile_url; ?>" class="<?php echo $user_profile_menu_active; ?>">
130
  <?php _e('User Profile', 'wp-user-avatar'); ?>
236
  return AddNewForm::get_instance()->settings_admin_page();
237
  }
238
 
 
239
 
240
+ $short_circuit = apply_filters('ppress_forms_settings_admin_page_short_circuit', false);
241
+
242
+ if (false !== $short_circuit) return $short_circuit;
243
+
244
+ if ( ! empty($_GET['view'])) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
 
246
  add_filter('wp_cspa_settings_page_sidebar', [$this->DragDropClassInstance, 'sidebar_section']);
247
  add_action('wp_cspa_before_closing_header', [$this, 'live_form_preview_btn']);
src/Admin/SettingsPages/MemberDirectories.php CHANGED
@@ -3,7 +3,6 @@
3
  namespace ProfilePress\Core\Admin\SettingsPages;
4
 
5
  use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\DragDropBuilder;
6
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeUserProfile\EditShortcodeUserProfile;
7
  use ProfilePress\Core\Classes\FormRepository as FR;
8
  use ProfilePress\Custom_Settings_Page_Api;
9
 
@@ -28,8 +27,6 @@ class MemberDirectories extends AbstractSettingsPage
28
  add_filter('set-screen-option', array($this, 'set_screen'), 10, 3);
29
  add_filter('set_screen_option_forms_per_page', array($this, 'set_screen'), 10, 3);
30
 
31
- $this->EditShortcodeMemberDirectoriesInstance = EditShortcodeUserProfile::get_instance();
32
-
33
  $this->DragDropClassInstance = DragDropBuilder::get_instance();
34
  }
35
 
3
  namespace ProfilePress\Core\Admin\SettingsPages;
4
 
5
  use ProfilePress\Core\Admin\SettingsPages\DragDropBuilder\DragDropBuilder;
 
6
  use ProfilePress\Core\Classes\FormRepository as FR;
7
  use ProfilePress\Custom_Settings_Page_Api;
8
 
27
  add_filter('set-screen-option', array($this, 'set_screen'), 10, 3);
28
  add_filter('set_screen_option_forms_per_page', array($this, 'set_screen'), 10, 3);
29
 
 
 
30
  $this->DragDropClassInstance = DragDropBuilder::get_instance();
31
  }
32
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php DELETED
@@ -1,135 +0,0 @@
1
- <?php
2
-
3
- namespace ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeEditProfile;
4
-
5
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\ShortcodeInserterTrait;
6
- use ProfilePress\Core\Classes\FormRepository;
7
-
8
- class EditShortcodeEditProfile
9
- {
10
- use ShortcodeInserterTrait;
11
-
12
- private $edit_profile_builder_errors;
13
-
14
- public function __construct()
15
- {
16
- add_action('admin_init', [$this, 'save_edit']);
17
- add_action('ppress_admin_notices', [$this, 'admin_notices']);
18
- }
19
-
20
- public function available_shortcodes()
21
- {
22
- $shortcodes = self::reg_edit_profile_available_shortcodes('edit-profile');
23
-
24
- $shortcodes['pp-remove-avatar-button'] = [
25
- 'description' => esc_html__('Button to delete profile picture', 'wp-user-avatar'),
26
- 'shortcode' => 'pp-remove-avatar-button',
27
- 'attributes' => [
28
- 'label' => [
29
- 'label' => esc_html__('Button label', 'wp-user-avatar'),
30
- 'field' => 'text',
31
- 'placeholder' => esc_html__('Delete Avatar', 'wp-user-avatar')
32
- ],
33
- 'id' => [
34
- 'label' => esc_html__('ID', 'wp-user-avatar'),
35
- 'field' => 'text'
36
- ],
37
- 'class' => [
38
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
39
- 'field' => 'text'
40
- ],
41
- ]
42
- ];
43
-
44
- $shortcodes['pp-remove-cover-image-button'] = [
45
- 'description' => esc_html__('Button to delete profile cover image', 'wp-user-avatar'),
46
- 'shortcode' => 'pp-remove-cover-image-button',
47
- 'attributes' => [
48
- 'label' => [
49
- 'label' => esc_html__('Button label', 'wp-user-avatar'),
50
- 'field' => 'text',
51
- 'placeholder' => esc_html__('Delete Cover Image', 'wp-user-avatar')
52
- ],
53
- 'id' => [
54
- 'label' => esc_html__('ID', 'wp-user-avatar'),
55
- 'field' => 'text'
56
- ],
57
- 'class' => [
58
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
59
- 'field' => 'text'
60
- ],
61
- ]
62
- ];
63
-
64
- return $shortcodes;
65
- }
66
-
67
- public function admin_notices()
68
- {
69
- if (isset($this->edit_profile_builder_errors)) {
70
- echo '<div id="message" class="error notice is-dismissible"><p><strong>' . $this->edit_profile_builder_errors . '</strong></p></div>';
71
-
72
- return;
73
- }
74
-
75
- if (@$_GET['view'] == 'edit-shortcode-edit-profile' && @$_GET['form-edited']) {
76
- echo '<div id="message" class="updated notice is-dismissible"><p><strong>' . esc_html__('Form updated', 'wp-user-avatar') . '</strong></p></div>';
77
- }
78
- }
79
-
80
- public function edit_screen()
81
- {
82
- // we're using here because this method is only called when the view is called for the form type.
83
- $this->traitInit($this->available_shortcodes());
84
-
85
- require PPRESS_ADMIN_SETTINGS_PAGE_FOLDER . 'ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php';
86
- }
87
-
88
- public function save_edit()
89
- {
90
- if ( ! current_user_can('manage_options') || ! isset($_POST['edit_user_profile']) || ! ppress_verify_nonce()) return;
91
-
92
- $id = absint($_GET['id']);
93
- $title = @sanitize_text_field($_POST['eup_title']);
94
- $structure = @stripslashes($_POST['eup_structure']);
95
- $css = @stripslashes($_POST['eup_css']);
96
- $success_edit_profile = @stripslashes($_POST['eup_success_edit_profile']);
97
-
98
- if (empty($title)) {
99
- $this->edit_profile_builder_errors = esc_html__('Title is empty', 'wp-user-avatar');
100
- } elseif (empty($structure)) {
101
- $this->edit_profile_builder_errors = esc_html__('Form Structure is missing', 'wp-user-avatar');
102
- }
103
-
104
- if (isset($this->edit_profile_builder_errors)) return;
105
-
106
- FormRepository::update_form(
107
- $id,
108
- FormRepository::EDIT_PROFILE_TYPE,
109
- $title,
110
- apply_filters('ppress_shortcode_builder_registration_meta', [
111
- FormRepository::FORM_STRUCTURE => $structure,
112
- FormRepository::FORM_CSS => $css,
113
- FormRepository::PROCESSING_LABEL => sanitize_text_field($_POST['processing_label']),
114
- FormRepository::SUCCESS_MESSAGE => $success_edit_profile,
115
- ])
116
- );
117
-
118
- wp_safe_redirect(esc_url_raw(add_query_arg('form-edited', 'true')));
119
- exit;
120
- }
121
-
122
- /**
123
- * @return EditShortcodeEditProfile
124
- */
125
- public static function get_instance()
126
- {
127
- static $instance = null;
128
-
129
- if (is_null($instance)) {
130
- $instance = new self();
131
- }
132
-
133
- return $instance;
134
- }
135
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/edit_screen.php DELETED
@@ -1,78 +0,0 @@
1
- <?php
2
-
3
- use ProfilePress\Core\Classes\FormRepository;
4
-
5
- $form_id = absint($_GET['id']);
6
-
7
- $title = FormRepository::get_name($form_id, FormRepository::EDIT_PROFILE_TYPE);
8
- $structure = FormRepository::get_form_meta($form_id, FormRepository::EDIT_PROFILE_TYPE, FormRepository::FORM_STRUCTURE);
9
- $css = FormRepository::get_form_meta($form_id, FormRepository::EDIT_PROFILE_TYPE, FormRepository::FORM_CSS);
10
-
11
- $success_message = FormRepository::get_form_meta($form_id, FormRepository::EDIT_PROFILE_TYPE, FormRepository::SUCCESS_MESSAGE);
12
-
13
- $title = isset($_POST['eup_title']) ? esc_attr($_POST['eup_title']) : $title;
14
- $content = isset($_POST['eup_structure']) ? stripslashes($_POST['eup_structure']) : $structure;
15
- ?>
16
-
17
- <form method="post">
18
- <div class="ppSCB-margin-r">
19
- <div class="ppSCB-tab-box">
20
- <div id="titlediv">
21
- <div id="titlewrap">
22
- <label class="screen-reader-text" id="title-prompt-text" for="title"><?= esc_html__('Enter title here', 'wp-user-avatar') ?></label>
23
- <input name="eup_title" type="text" value="<?= $title ?>" id="title">
24
- <input class="ppSCB-save-btn button-primary" type="submit" name="edit_user_profile" value="<?= esc_html__('Save Changes', 'wp-user-avatar') ?>">
25
- </div>
26
- </div>
27
- <h2 class="nav-tab-wrapper">
28
- <a class="nav-tab" href="#ppStructure"><?= esc_html__('Structure', 'wp-user-avatar') ?></a>
29
- <a class="nav-tab" href="#ppCSS"><?= esc_html__('CSS', 'wp-user-avatar') ?></a>
30
- <a class="nav-tab" href="#ppSettings"><?= esc_html__('Settings', 'wp-user-avatar') ?></a>
31
-
32
- <span class="pp-form-builder-shortcodes-btn">
33
- <a href="#" id="ppress-available-shortcodes-btn" class="button button-secondary"><?= esc_html__('Available Shortcodes', 'wp-user-avatar') ?></a>
34
- </span>
35
-
36
- </h2>
37
- <div class="ppSCB-tab-box-div">
38
- <div id="ppStructure" class="ppSCB-tab-content">
39
- <textarea rows="30" name="eup_structure" id="pp_edit_profile_structure"><?php echo $content ?></textarea>
40
- <div class="ppSCB-clear-both"></div>
41
- </div>
42
- <div id="ppCSS" class="ppSCB-tab-content">
43
- <textarea rows="30" name="eup_css" id="pp_edit_profile_css"><?php echo isset($_POST['eup_css']) ? stripslashes($_POST['eup_css']) : $css; ?></textarea>
44
- <div class="ppSCB-clear-both"></div>
45
- </div>
46
- <div id="ppSettings" class="ppSCB-tab-content">
47
- <h4 class="ppSCB-tab-content-header"><?=esc_html__('General Settings', 'wp-user-avatar')?></h4>
48
- <table class="form-table">
49
- <?php do_action('ppress_shortcode_builder_edit_profile_screen_before', $form_id); ?>
50
- <tr>
51
- <th scope="row">
52
- <label for="processing_label"><?php _e('Processing Label', 'wp-user-avatar'); ?></label>
53
- </th>
54
- <td>
55
- <input type="text" name="processing_label" id="processing_label" value="<?= FormRepository::get_processing_label($form_id, FormRepository::EDIT_PROFILE_TYPE); ?>"/>
56
- <p class="description"><?php _e('This is the text shown on the submit button when the form is submitted.', 'wp-user-avatar'); ?></p>
57
- </td>
58
- </tr>
59
- <tr>
60
- <th scope="row"><label for="message_success"><?=__('Success Message', 'wp-user-avatar')?></label>
61
- </th>
62
- <td>
63
- <textarea name="eup_success_edit_profile" id="message_success"><?php echo isset($_POST['eup_success_edit_profile']) ? $_POST['eup_success_edit_profile'] : stripslashes(esc_textarea($success_message)); ?></textarea>
64
- <p class="description"><?=__('Message to display when a user profile is edited.', 'wp-user-avatar')?></p>
65
- </td>
66
- </tr>
67
- <?php do_action('ppress_shortcode_builder_edit_profile_screen_after', $form_id); ?>
68
- </table>
69
- <div class="ppSCB-clear-both"></div>
70
- </div>
71
- </div>
72
- </div>
73
- <div class="ppSCB-sidebar">
74
- <h3><?= esc_html__('Preview', 'wp-user-avatar') ?></h3>
75
- <iframe id="indexIframe"></iframe>
76
- </div>
77
- </div>
78
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php DELETED
@@ -1,135 +0,0 @@
1
- <?php
2
-
3
- namespace ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeLogin;
4
-
5
-
6
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\ShortcodeInserterTrait;
7
- use ProfilePress\Core\Classes\FormRepository;
8
-
9
- class EditShortcodeLogin
10
- {
11
- use ShortcodeInserterTrait;
12
-
13
- private $login_builder_errors;
14
-
15
- public function __construct()
16
- {
17
- add_action('admin_init', [$this, 'save_edit']);
18
- add_action('ppress_admin_notices', [$this, 'admin_notices']);
19
- }
20
-
21
- public function available_shortcodes()
22
- {
23
- return apply_filters('ppress_login_available_shortcodes', [
24
- 'login-username' => [
25
- 'description' => esc_html__('Username / Email address field', 'wp-user-avatar'),
26
- 'shortcode' => 'login-username',
27
- 'attributes' => self::popular_attributes()
28
- ],
29
- 'login-password' => [
30
- 'description' => esc_html__('Password field', 'wp-user-avatar'),
31
- 'shortcode' => 'login-password',
32
- 'attributes' => self::popular_attributes()
33
- ],
34
- 'login-remember' => [
35
- 'description' => esc_html__('Remeber Me checkbox', 'wp-user-avatar'),
36
- 'shortcode' => 'login-remember',
37
- 'attributes' => [
38
- 'id' => [
39
- 'label' => esc_html__('ID', 'wp-user-avatar'),
40
- 'field' => 'text'
41
- ],
42
- 'class' => [
43
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
44
- 'field' => 'text'
45
- ]
46
- ]
47
- ],
48
- 'login-submit' => [
49
- 'description' => esc_html__('Form submit button', 'wp-user-avatar'),
50
- 'shortcode' => 'login-submit',
51
- 'attributes' => [
52
- 'value' => [
53
- 'label' => esc_html__('Button label', 'wp-user-avatar'),
54
- 'field' => 'text'
55
- ],
56
- 'id' => [
57
- 'label' => esc_html__('ID', 'wp-user-avatar'),
58
- 'field' => 'text'
59
- ],
60
- 'class' => [
61
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
62
- 'field' => 'text'
63
- ],
64
- ]
65
- ],
66
- ]) + self::global_shortcodes();
67
- }
68
-
69
- public function admin_notices()
70
- {
71
- if (isset($this->login_builder_errors)) {
72
- echo '<div id="message" class="error notice is-dismissible"><p><strong>' . $this->login_builder_errors . '</strong></p></div>';
73
-
74
- return;
75
- }
76
-
77
- if (@$_GET['view'] == 'edit-shortcode-login' && @$_GET['form-edited']) {
78
- echo '<div id="message" class="updated notice is-dismissible"><p><strong>' . esc_html__('Form updated', 'wp-user-avatar') . '</strong></p></div>';
79
- }
80
- }
81
-
82
- public function edit_screen()
83
- {
84
- $this->traitInit($this->available_shortcodes());
85
- require PPRESS_ADMIN_SETTINGS_PAGE_FOLDER . 'ShortcodeBuilder/EditShortcodeLogin/edit_screen.php';
86
- }
87
-
88
- public function save_edit()
89
- {
90
- if ( ! current_user_can('manage_options') || ! isset($_POST['edit_login']) || ! ppress_verify_nonce()) return;
91
-
92
- $id = absint($_GET['id']);
93
- $title = @sanitize_text_field($_POST['lfb_title']);
94
- $structure = @stripslashes($_POST['lfb_structure']);
95
- $css = @stripslashes($_POST['lfb_css']);
96
- $make_passwordless = @sanitize_text_field($_POST['lfb_make_passwordless']);
97
-
98
- if (empty($title)) {
99
- $this->login_builder_errors = esc_html__('Title is empty', 'wp-user-avatar');
100
- } elseif (empty($structure)) {
101
- $this->login_builder_errors = esc_html__('Structure is missing', 'wp-user-avatar');
102
- }
103
-
104
- if (isset($this->login_builder_errors)) return;
105
-
106
- FormRepository::update_form(
107
- $id,
108
- FormRepository::LOGIN_TYPE,
109
- $title,
110
- apply_filters('ppress_shortcode_builder_registration_meta', [
111
- FormRepository::FORM_STRUCTURE => $structure,
112
- FormRepository::FORM_CSS => $css,
113
- FormRepository::PROCESSING_LABEL => sanitize_text_field($_POST['processing_label']),
114
- FormRepository::PASSWORDLESS_LOGIN => ! empty($make_passwordless)
115
- ])
116
- );
117
-
118
- wp_safe_redirect(esc_url_raw(add_query_arg('form-edited', 'true')));
119
- exit;
120
- }
121
-
122
- /**
123
- * @return EditShortcodeLogin
124
- */
125
- public static function get_instance()
126
- {
127
- static $instance = null;
128
-
129
- if (is_null($instance)) {
130
- $instance = new self();
131
- }
132
-
133
- return $instance;
134
- }
135
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/edit_screen.php DELETED
@@ -1,78 +0,0 @@
1
- <?php
2
-
3
- use ProfilePress\Core\Classes\FormRepository;
4
-
5
- $form_id = absint($_GET['id']);
6
-
7
- $title = FormRepository::get_name($form_id, FormRepository::LOGIN_TYPE);
8
- $structure = FormRepository::get_form_meta($form_id, FormRepository::LOGIN_TYPE, FormRepository::FORM_STRUCTURE, true);
9
- $css = FormRepository::get_form_meta($form_id, FormRepository::LOGIN_TYPE, FormRepository::FORM_CSS, true);
10
-
11
- $make_passwordless = FormRepository::is_login_passwordless($form_id) ? 'yes' : 'no';
12
- $content = isset($_POST['lfb_structure']) ? stripslashes($_POST['lfb_structure']) : $structure;
13
-
14
- ?>
15
-
16
- <form method="post">
17
- <div class="ppSCB-margin-r">
18
- <div class="ppSCB-tab-box">
19
- <div id="titlediv">
20
- <div id="titlewrap">
21
- <label class="screen-reader-text" id="title-prompt-text" for="title"><?= esc_html__('Enter title here', 'wp-user-avatar') ?></label>
22
- <input name="lfb_title" type="text" value="<?= $title ?>" id="title">
23
- <input class="ppSCB-save-btn button-primary" type="submit" name="edit_login" value="<?= esc_html__('Save Changes', 'wp-user-avatar') ?>">
24
- </div>
25
- </div>
26
- <h2 class="nav-tab-wrapper">
27
- <a class="nav-tab" href="#ppStructure"><?= esc_html__('Structure', 'wp-user-avatar') ?></a>
28
- <a class="nav-tab" href="#ppCSS"><?= esc_html__('CSS', 'wp-user-avatar') ?></a>
29
- <a class="nav-tab" href="#ppSettings"><?= esc_html__('Settings', 'wp-user-avatar') ?></a>
30
-
31
- <span class="pp-form-builder-shortcodes-btn">
32
- <a href="#" id="ppress-available-shortcodes-btn" class="button button-secondary"><?= esc_html__('Available Shortcodes', 'wp-user-avatar') ?></a>
33
- </span>
34
- </h2>
35
- <div class="ppSCB-tab-box-div">
36
- <div id="ppStructure" class="ppSCB-tab-content">
37
- <textarea rows="30" name="lfb_structure" id="pp_login_structure"><?php echo $content ?></textarea>
38
- <div class="ppSCB-clear-both"></div>
39
- </div>
40
- <div id="ppCSS" class="ppSCB-tab-content">
41
- <textarea rows="30" name="lfb_css" id="pp_login_css"><?php echo isset($_POST['lfb_css']) ? stripslashes($_POST['lfb_css']) : $css; ?></textarea>
42
- <div class="ppSCB-clear-both"></div>
43
- </div>
44
- <div id="ppSettings" class="ppSCB-tab-content">
45
- <h4 class="ppSCB-tab-content-header"><?=esc_html__('General Settings', 'wp-user-avatar')?></h4>
46
- <table class="form-table">
47
- <?php do_action('ppress_shortcode_builder_login_screen_before', $form_id); ?>
48
- <tr>
49
- <th scope="row">
50
- <label for="processing_label"><?php _e('Processing Label', 'wp-user-avatar'); ?></label>
51
- </th>
52
- <td>
53
- <input type="text" name="processing_label" id="processing_label" value="<?= FormRepository::get_processing_label($form_id, FormRepository::LOGIN_TYPE); ?>"/>
54
- <p class="description"><?php _e('This is the text shown on the submit button when the form is submitted.', 'wp-user-avatar'); ?></p>
55
- </td>
56
- </tr>
57
- <tr>
58
- <th scope="row">
59
- <label for="description"><?php _e('Passwordless Login', 'wp-user-avatar'); ?></label>
60
- </th>
61
- <td>
62
- <input type="checkbox" name="lfb_make_passwordless" id="make-login-passwordless" value="yes" <?php checked('yes', $make_passwordless); ?> />
63
- <label for="make-login-passwordless"><strong><?php _e('Make this a passwordless login', 'wp-user-avatar'); ?></strong></label>
64
- <p class="description"><?php _e('Passwordless login allows users to sign in to your WordPress site via a one-time URL sent to their email address.', 'wp-user-avatar'); ?></p>
65
- </td>
66
- </tr>
67
- <?php do_action('ppress_shortcode_builder_login_screen_after', $form_id); ?>
68
- </table>
69
- <div class="ppSCB-clear-both"></div>
70
- </div>
71
- </div>
72
- </div>
73
- <div class="ppSCB-sidebar">
74
- <h3><?= esc_html__('Preview', 'wp-user-avatar') ?></h3>
75
- <iframe id="indexIframe"></iframe>
76
- </div>
77
- </div>
78
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php DELETED
@@ -1,115 +0,0 @@
1
- <?php
2
-
3
- namespace ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeMelange;
4
-
5
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\ShortcodeInserterTrait;
6
- use ProfilePress\Core\Classes\FormRepository;
7
-
8
- class EditShortcodeMelange
9
- {
10
- use ShortcodeInserterTrait;
11
-
12
- private $melange_errors;
13
-
14
- public function __construct()
15
- {
16
- add_action('admin_init', [$this, 'save_edit']);
17
- add_action('ppress_admin_notices', [$this, 'admin_notices']);
18
- }
19
-
20
- public function available_shortcodes()
21
- {
22
- return apply_filters('ppress_melange_available_shortcodes', [
23
- 'pp-login-form' => [
24
- 'description' => esc_html__('All login form shortcodes, HTML and CSS codes should be inside of this shortcode. That is [pp-login-form]...[/pp-login-form]', 'wp-user-avatar'),
25
- 'shortcode' => 'pp-login-form',
26
- ],
27
- 'pp-registration-form' => [
28
- 'description' => esc_html__('All registration form shortcodes, HTML and CSS codes should be inside of this shortcode. That is [pp-registration-form]...[/pp-registration-form]', 'wp-user-avatar'),
29
- 'shortcode' => 'pp-registration-form',
30
- ],
31
- 'pp-password-reset-form' => [
32
- 'description' => esc_html__('All password reset form shortcodes, HTML and CSS codes should be inside of this shortcode. That is [pp-password-reset-form]...[/pp-password-reset-form]', 'wp-user-avatar'),
33
- 'shortcode' => 'pp-password-reset-form',
34
- ],
35
- 'pp-edit-profile-form' => [
36
- 'description' => esc_html__('All edit profile form shortcodes, HTML and CSS codes should be inside of this shortcode. That is [pp-password-reset-form]...[/pp-password-reset-form]', 'wp-user-avatar'),
37
- 'shortcode' => 'pp-edit-profile-form',
38
- ],
39
- ]) + self::global_shortcodes();
40
- }
41
-
42
- public function admin_notices()
43
- {
44
- if (isset($this->melange_errors)) {
45
- echo '<div id="message" class="error notice is-dismissible"><p><strong>' . $this->melange_errors . '</strong></p></div>';
46
-
47
- return;
48
- }
49
-
50
- if (@$_GET['view'] == 'edit-shortcode-melange' && @$_GET['form-edited']) {
51
- echo '<div id="message" class="updated notice is-dismissible"><p><strong>' . esc_html__('Form updated', 'wp-user-avatar') . '</strong></p></div>';
52
- }
53
- }
54
-
55
- public function edit_screen()
56
- {
57
- $this->traitInit($this->available_shortcodes());
58
- require PPRESS_ADMIN_SETTINGS_PAGE_FOLDER . 'ShortcodeBuilder/EditShortcodeMelange/edit_screen.php';
59
- }
60
-
61
- public function save_edit()
62
- {
63
- if ( ! current_user_can('manage_options') || ! isset($_POST['edit_melange']) || ! ppress_verify_nonce()) return;
64
-
65
- $id = absint($_GET['id']);
66
- $title = @sanitize_text_field($_POST['mfb_title']);
67
- $structure = @stripslashes($_POST['mfb_structure']);
68
- $css = @stripslashes($_POST['mfb_css']);
69
- $registration_msg = @stripslashes($_POST['mfb_success_registration']);
70
- $password_reset_msg = @stripslashes($_POST['mfb_success_password_reset']);
71
- $edit_profile_msg = @stripslashes($_POST['mfb_success_edit_profile']);
72
- $disable_username_requirement = esc_attr(@$_POST['mfb_disable_username_requirement']);
73
-
74
- // catch and save form generated errors in property @melange_errors
75
- if (empty($title)) {
76
- $this->melange_errors = esc_html__('Title is empty', 'wp-user-avatar');
77
- } elseif (empty($structure)) {
78
- $this->melange_errors = esc_html__('Melange Design is missing', 'wp-user-avatar');
79
- }
80
-
81
- if (isset($this->melange_errors)) return;
82
-
83
- FormRepository::update_form(
84
- $id,
85
- FormRepository::MELANGE_TYPE,
86
- $title,
87
- apply_filters('ppress_shortcode_builder_registration_meta', [
88
- FormRepository::FORM_STRUCTURE => $structure,
89
- FormRepository::FORM_CSS => $css,
90
- FormRepository::PROCESSING_LABEL => sanitize_text_field($_POST['processing_label']),
91
- FormRepository::MELANGE_EDIT_PROFILE_SUCCESS_MESSAGE => $edit_profile_msg,
92
- FormRepository::MELANGE_PASSWORD_RESET_SUCCESS_MESSAGE => $password_reset_msg,
93
- FormRepository::MELANGE_REGISTRATION_SUCCESS_MESSAGE => $registration_msg,
94
- FormRepository::DISABLE_USERNAME_REQUIREMENT => $disable_username_requirement == 'yes'
95
- ])
96
- );
97
-
98
- wp_safe_redirect(esc_url_raw(add_query_arg('form-edited', 'true')));
99
- exit;
100
- }
101
-
102
- /**
103
- * @return EditShortcodeMelange
104
- */
105
- public static function get_instance()
106
- {
107
- static $instance = null;
108
-
109
- if (is_null($instance)) {
110
- $instance = new self();
111
- }
112
-
113
- return $instance;
114
- }
115
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/edit_screen.php DELETED
@@ -1,113 +0,0 @@
1
- <?php
2
-
3
- use ProfilePress\Core\Classes\FormRepository;
4
-
5
- $form_id = absint($_GET['id']);
6
-
7
- $title = FormRepository::get_name($form_id, FormRepository::MELANGE_TYPE);
8
- $structure = FormRepository::get_form_meta($form_id, FormRepository::MELANGE_TYPE, FormRepository::FORM_STRUCTURE);
9
- $css = FormRepository::get_form_meta($form_id, FormRepository::MELANGE_TYPE, FormRepository::FORM_CSS);
10
-
11
- $registration_success_message = FormRepository::get_form_meta($form_id, FormRepository::MELANGE_TYPE, FormRepository::MELANGE_REGISTRATION_SUCCESS_MESSAGE);
12
- $edit_profile_success_message = FormRepository::get_form_meta($form_id, FormRepository::MELANGE_TYPE, FormRepository::MELANGE_EDIT_PROFILE_SUCCESS_MESSAGE);
13
- $password_reset_success_message = FormRepository::get_form_meta($form_id, FormRepository::MELANGE_TYPE, FormRepository::MELANGE_PASSWORD_RESET_SUCCESS_MESSAGE);
14
- $disable_username_requirement = FormRepository::get_form_meta($form_id, FormRepository::MELANGE_TYPE, FormRepository::DISABLE_USERNAME_REQUIREMENT) ? 'yes' : 'no';
15
-
16
- $title = isset($_POST['mfb_title']) ? esc_attr($_POST['mfb_title']) : $title;
17
- $content = isset($_POST['mfb_structure']) ? stripslashes($_POST['mfb_structure']) : $structure;
18
- ?>
19
-
20
- <form method="post">
21
- <div class="ppSCB-margin-r">
22
- <div class="ppSCB-tab-box">
23
- <div id="titlediv">
24
- <div id="titlewrap">
25
- <label class="screen-reader-text" id="title-prompt-text" for="title"><?= esc_html__('Enter title here', 'wp-user-avatar') ?></label>
26
- <input name="mfb_title" type="text" value="<?= $title ?>" id="title">
27
- <input class="ppSCB-save-btn button-primary" type="submit" name="edit_melange" value="<?= esc_html__('Save Changes', 'wp-user-avatar') ?>">
28
- </div>
29
- </div>
30
- <h2 class="nav-tab-wrapper">
31
- <a class="nav-tab" href="#ppStructure"><?= esc_html__('Structure', 'wp-user-avatar') ?></a>
32
- <a class="nav-tab" href="#ppCSS"><?= esc_html__('CSS', 'wp-user-avatar') ?></a>
33
- <a class="nav-tab" href="#ppSettings"><?= esc_html__('Settings', 'wp-user-avatar') ?></a>
34
-
35
- <span class="pp-form-builder-shortcodes-btn">
36
- <a href="#" id="ppress-available-shortcodes-btn" class="button button-secondary"><?= esc_html__('Available Shortcodes', 'wp-user-avatar') ?></a>
37
- </span>
38
- </h2>
39
- <div class="ppSCB-tab-box-div">
40
- <div id="ppStructure" class="ppSCB-tab-content">
41
- <textarea rows="30" name="mfb_structure" id="pp_melange_structure"><?php echo $content ?></textarea>
42
- <div class="ppSCB-clear-both"></div>
43
- </div>
44
- <div id="ppCSS" class="ppSCB-tab-content">
45
- <textarea rows="30" name="mfb_css" id="pp_melange_css"><?php echo isset($_POST['mfb_css']) ? stripslashes($_POST['mfb_css']) : $css; ?></textarea>
46
- <div class="ppSCB-clear-both"></div>
47
- </div>
48
- <div id="ppSettings" class="ppSCB-tab-content">
49
- <h4 class="ppSCB-tab-content-header"><?=esc_html__('General Settings', 'wp-user-avatar')?></h4>
50
- <table class="form-table">
51
- <?php do_action('ppress_shortcode_builder_melange_screen_before', $form_id); ?>
52
- <tr>
53
- <th scope="row">
54
- <label for="processing_label"><?php _e('Processing Label', 'wp-user-avatar'); ?></label>
55
- </th>
56
- <td>
57
- <input type="text" name="processing_label" id="processing_label" value="<?= FormRepository::get_processing_label($form_id, FormRepository::MELANGE_TYPE); ?>"/>
58
- <p class="description"><?php _e('This is the text shown on the submit button when the form is submitted.', 'wp-user-avatar'); ?></p>
59
- </td>
60
- </tr>
61
- <tr>
62
- <th scope="row">
63
- <label for="reg_message_success"><?php _e('Registration Success Message', 'wp-user-avatar'); ?></label>
64
- </th>
65
- <td>
66
- <textarea name="mfb_success_registration" id="reg_message_success"><?php echo isset($_POST['mfb_success_registration']) ? $_POST['mfb_success_registration'] : $registration_success_message; ?></textarea>
67
-
68
- <p class="description"><?php _e('Message displayed on successful user registration.', 'wp-user-avatar'); ?></p>
69
- </td>
70
- </tr>
71
- <tr>
72
- <th scope="row">
73
- <label for="mfb_success_password_reset"><?php _e('Password-reset Success Message', 'wp-user-avatar'); ?></label>
74
- </th>
75
- <td>
76
- <textarea name="mfb_success_password_reset" id="mfb_success_password_reset"><?php echo isset($_POST['mfb_success_password_reset']) ? $_POST['mfb_success_password_reset'] : $password_reset_success_message; ?></textarea>
77
-
78
- <p class="description"><?php _e('Message displayed on successful user password reset.', 'wp-user-avatar'); ?></p>
79
- </td>
80
- </tr>
81
- <tr>
82
- <th scope="row">
83
- <label for="mfb_success_edit_profile"><?php _e('Edit-profile Success Message', 'wp-user-avatar'); ?></label>
84
- </th>
85
- <td>
86
- <textarea name="mfb_success_edit_profile" id="mfb_success_edit_profile"><?php echo isset($_POST['mfb_success_edit_profile']) ? $_POST['mfb_success_edit_profile'] : $edit_profile_success_message; ?></textarea>
87
-
88
- <p class="description"><?php _e('Message displayed on users successfully editing their profile', 'wp-user-avatar'); ?></p>
89
- </td>
90
- </tr>
91
- <tr>
92
- <th scope="row">
93
- <label for="disable_username_requirement_melange"><?php _e('Disable Username Requirement', 'wp-user-avatar'); ?></label>
94
- </th>
95
- <td>
96
- <input type="checkbox" name="mfb_disable_username_requirement" id="disable_username_requirement_melange" value="yes" <?php checked('yes', $disable_username_requirement); ?> />
97
- <label for="disable_username_requirement_melange"><strong><?php _e('Check to Disable', 'wp-user-avatar'); ?></strong></label>
98
-
99
- <p class="description"><?php _e('Disable requirement for users to enter a username during registration. Usernames will automatically be generated from their email addresses.', 'wp-user-avatar'); ?></p>
100
- </td>
101
- </tr>
102
- <?php do_action('ppress_shortcode_builder_melange_screen_after', $form_id); ?>
103
- </table>
104
- <div class="ppSCB-clear-both"></div>
105
- </div>
106
- </div>
107
- </div>
108
- <div class="ppSCB-sidebar">
109
- <h3><?= esc_html__('Preview', 'wp-user-avatar') ?></h3>
110
- <iframe id="indexIframe"></iframe>
111
- </div>
112
- </div>
113
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/EditShortcodeMemberDirectories.php DELETED
@@ -1,78 +0,0 @@
1
- <?php
2
-
3
- namespace ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeMemberDirectories;
4
-
5
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeUserProfile\EditShortcodeUserProfile;
6
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\ShortcodeInserterTrait;
7
- use ProfilePress\Core\Classes\FormRepository;
8
-
9
- class EditShortcodeMemberDirectories extends EditShortcodeUserProfile
10
- {
11
- use ShortcodeInserterTrait;
12
-
13
- private $builder_errors;
14
-
15
- public function admin_notices()
16
- {
17
- if (isset($this->builder_errors)) {
18
- echo '<div id="message" class="error notice is-dismissible"><p><strong>' . $this->builder_errors . '</strong></p></div>';
19
-
20
- return;
21
- }
22
-
23
- if (@$_GET['view'] == 'edit-shortcode-member-directory' && @$_GET['form-edited']) {
24
- echo '<div id="message" class="updated notice is-dismissible"><p><strong>' . esc_html__('Changes saved.', 'wp-user-avatar') . '</strong></p></div>';
25
- }
26
- }
27
-
28
- public function edit_screen()
29
- {
30
- $this->traitInit($this->available_shortcodes());
31
- require dirname(__FILE__) . '/edit_screen.php';
32
- }
33
-
34
- public function save_edit()
35
- {
36
- if ( ! current_user_can('manage_options') || ! isset($_POST['edit_member_directory']) || ! ppress_verify_nonce()) return;
37
-
38
- $id = absint($_GET['id']);
39
- $title = @sanitize_text_field($_POST['md_title']);
40
- $structure = @stripslashes($_POST['md_structure']);
41
- $css = @stripslashes($_POST['md_css']);
42
-
43
- if (empty($title)) {
44
- $this->builder_errors = esc_html__('Title is empty', 'wp-user-avatar');
45
- } elseif (empty($structure)) {
46
- $this->builder_errors = esc_html__('Structure is missing', 'wp-user-avatar');
47
- }
48
-
49
- if (isset($this->builder_errors)) return;
50
-
51
- FormRepository::update_form(
52
- $id,
53
- FormRepository::MEMBERS_DIRECTORY_TYPE,
54
- $title,
55
- apply_filters('ppress_shortcode_builder_registration_meta', [
56
- FormRepository::FORM_STRUCTURE => $structure,
57
- FormRepository::FORM_CSS => $css,
58
- ])
59
- );
60
-
61
- wp_safe_redirect(esc_url_raw(add_query_arg('form-edited', 'true')));
62
- exit;
63
- }
64
-
65
- /**
66
- * @return self
67
- */
68
- public static function get_instance()
69
- {
70
- static $instance = null;
71
-
72
- if (is_null($instance)) {
73
- $instance = new self();
74
- }
75
-
76
- return $instance;
77
- }
78
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/edit_screen.php DELETED
@@ -1,49 +0,0 @@
1
- <?php
2
-
3
- use ProfilePress\Core\Classes\FormRepository;
4
-
5
- $form_id = absint($_GET['id']);
6
-
7
- $title = FormRepository::get_name($form_id, FormRepository::MEMBERS_DIRECTORY_TYPE);
8
- $structure = FormRepository::get_form_meta($form_id, FormRepository::MEMBERS_DIRECTORY_TYPE, FormRepository::FORM_STRUCTURE);
9
- $css = FormRepository::get_form_meta($form_id, FormRepository::MEMBERS_DIRECTORY_TYPE, FormRepository::FORM_CSS);
10
-
11
- $content = isset($_POST['md_structure']) ? stripslashes($_POST['md_structure']) : $structure;
12
-
13
- ?>
14
-
15
- <form method="post">
16
- <div class="ppSCB-margin-r">
17
- <div class="ppSCB-tab-box">
18
- <div id="titlediv">
19
- <div id="titlewrap">
20
- <label class="screen-reader-text" id="title-prompt-text" for="title"><?= esc_html__('Enter title here', 'wp-user-avatar') ?></label>
21
- <input name="md_title" type="text" value="<?= $title ?>" id="title">
22
- <input class="ppSCB-save-btn button-primary" type="submit" name="edit_member_directory" value="<?= esc_html__('Save Changes', 'wp-user-avatar') ?>">
23
- </div>
24
- </div>
25
- <h2 class="nav-tab-wrapper">
26
- <a class="nav-tab" href="#ppStructure"><?= esc_html__('Structure', 'wp-user-avatar') ?></a>
27
- <a class="nav-tab" href="#ppCSS"><?= esc_html__('CSS', 'wp-user-avatar') ?></a>
28
-
29
- <span class="pp-form-builder-shortcodes-btn">
30
- <a href="#" id="ppress-available-shortcodes-btn" class="button button-secondary"><?= esc_html__('Available Shortcodes', 'wp-user-avatar') ?></a>
31
- </span>
32
- </h2>
33
- <div class="ppSCB-tab-box-div">
34
- <div id="ppStructure" class="ppSCB-tab-content">
35
- <textarea rows="30" name="md_structure" id="pp_fe_profile_structure"><?php echo $content ?></textarea>
36
- <div class="ppSCB-clear-both"></div>
37
- </div>
38
- <div id="ppCSS" class="ppSCB-tab-content">
39
- <textarea rows="30" name="md_css" id="pp_fe_profile_css"><?php echo isset($_POST['md_css']) ? stripslashes($_POST['md_css']) : $css; ?></textarea>
40
- <div class="ppSCB-clear-both"></div>
41
- </div>
42
- </div>
43
- </div>
44
- <div class="ppSCB-sidebar">
45
- <h3><?= esc_html__('Preview', 'wp-user-avatar') ?></h3>
46
- <iframe id="indexIframe"></iframe>
47
- </div>
48
- </div>
49
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php DELETED
@@ -1,205 +0,0 @@
1
- <?php
2
-
3
- namespace ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodePasswordReset;
4
-
5
-
6
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\ShortcodeInserterTrait;
7
- use ProfilePress\Core\Classes\FormRepository;
8
-
9
- class EditShortcodePasswordReset
10
- {
11
- use ShortcodeInserterTrait;
12
-
13
- private $password_reset_builder_errors;
14
-
15
- public function __construct()
16
- {
17
- add_action('admin_init', [$this, 'save_edit']);
18
- add_action('ppress_admin_notices', [$this, 'admin_notices']);
19
- }
20
-
21
- public function available_shortcodes()
22
- {
23
- return apply_filters('ppress_password_reset_available_shortcodes', [
24
- 'user-login' => [
25
- 'description' => esc_html__('Username / Email field - Password reset form', 'wp-user-avatar'),
26
- 'shortcode' => 'user-login',
27
- 'attributes' => [
28
- 'placeholder' => [
29
- 'label' => esc_html__('Placeholder', 'wp-user-avatar'),
30
- 'field' => 'text'
31
- ],
32
- 'id' => [
33
- 'label' => esc_html__('ID', 'wp-user-avatar'),
34
- 'field' => 'text'
35
- ],
36
- 'class' => [
37
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
38
- 'field' => 'text'
39
- ]
40
- ]
41
- ],
42
- 'reset-submit' => [
43
- 'description' => esc_html__('Submit button - Password reset form', 'wp-user-avatar'),
44
- 'shortcode' => 'reset-submit',
45
- 'attributes' => [
46
- 'value' => [
47
- 'label' => esc_html__('Button label', 'wp-user-avatar'),
48
- 'field' => 'text'
49
- ],
50
- 'id' => [
51
- 'label' => esc_html__('ID', 'wp-user-avatar'),
52
- 'field' => 'text'
53
- ],
54
- 'class' => [
55
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
56
- 'field' => 'text'
57
- ],
58
- ]
59
- ],
60
- 'enter-password' => [
61
- 'description' => esc_html__('Password field - Password reset handler form', 'wp-user-avatar'),
62
- 'shortcode' => 'enter-password',
63
- 'attributes' => [
64
- 'placeholder' => [
65
- 'label' => esc_html__('Placeholder', 'wp-user-avatar'),
66
- 'field' => 'text'
67
- ],
68
- 'id' => [
69
- 'label' => esc_html__('ID', 'wp-user-avatar'),
70
- 'field' => 'text'
71
- ],
72
- 'class' => [
73
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
74
- 'field' => 'text'
75
- ]
76
- ]
77
- ],
78
- 're-enter-password' => [
79
- 'description' => esc_html__('Confirm password field - Password reset handler form', 'wp-user-avatar'),
80
- 'shortcode' => 're-enter-password',
81
- 'attributes' => [
82
- 'placeholder' => [
83
- 'label' => esc_html__('Placeholder', 'wp-user-avatar'),
84
- 'field' => 'text'
85
- ],
86
- 'id' => [
87
- 'label' => esc_html__('ID', 'wp-user-avatar'),
88
- 'field' => 'text'
89
- ],
90
- 'class' => [
91
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
92
- 'field' => 'text'
93
- ]
94
- ]
95
- ],
96
- 'reset-password-meter' => [
97
- 'description' => esc_html__('Password strength meter - Password reset handler form', 'wp-user-avatar'),
98
- 'shortcode' => 'reset-password-meter',
99
- 'attributes' => [
100
- 'enforce' => [
101
- 'label' => esc_html__('Enforce strong password', 'wp-user-avatar'),
102
- 'field' => 'select',
103
- 'options' => ['true' => esc_html__('Yes', 'wp-user-avatar'), 'false' => esc_html__('No', 'wp-user-avatar')]
104
- ],
105
- 'class' => [
106
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
107
- 'field' => 'text'
108
- ]
109
- ]
110
- ],
111
- 'password-reset-submit' => [
112
- 'description' => esc_html__('Submit button - Password reset handler form', 'wp-user-avatar'),
113
- 'shortcode' => 'password-reset-submit',
114
- 'attributes' => [
115
- 'value' => [
116
- 'label' => esc_html__('Button label', 'wp-user-avatar'),
117
- 'field' => 'text'
118
- ],
119
- 'id' => [
120
- 'label' => esc_html__('ID', 'wp-user-avatar'),
121
- 'field' => 'text'
122
- ],
123
- 'class' => [
124
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
125
- 'field' => 'text'
126
- ],
127
- ]
128
- ],
129
- ]) + self::global_shortcodes();
130
- }
131
-
132
- public function admin_notices()
133
- {
134
- if (isset($this->password_reset_builder_errors)) {
135
- echo '<div id="message" class="error notice is-dismissible"><p><strong>' . $this->password_reset_builder_errors . '</strong></p></div>';
136
-
137
- return;
138
- }
139
-
140
- if (@$_GET['view'] == 'edit-shortcode-password-reset' && @$_GET['form-edited']) {
141
- echo '<div id="message" class="updated notice is-dismissible"><p><strong>' . esc_html__('Form updated', 'wp-user-avatar') . '</strong></p></div>';
142
- }
143
- }
144
-
145
- public function edit_screen()
146
- {
147
- $this->traitInit($this->available_shortcodes());
148
-
149
- require PPRESS_ADMIN_SETTINGS_PAGE_FOLDER . 'ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php';
150
- }
151
-
152
- public function save_edit()
153
- {
154
- if ( ! current_user_can('manage_options') || ! isset($_POST['edit_password_reset']) || ! ppress_verify_nonce()) return;
155
-
156
- $id = absint($_GET['id']);
157
-
158
- $title = @sanitize_text_field($_POST['prb_title']);
159
- $structure = @stripslashes($_POST['prb_structure']);
160
- $handler_structure = @stripslashes($_POST['prb_handler_structure']);
161
- $css = @stripslashes($_POST['prb_css']);
162
- $success_password_reset = @stripslashes($_POST['prb_success_password_reset']);
163
-
164
- // catch and save form generated errors in property @password_reset_builder_errors
165
- if (empty($title)) {
166
- $this->password_reset_builder_errors = esc_html__('Title is empty', 'wp-user-avatar');
167
- } elseif (empty($structure)) {
168
- $this->password_reset_builder_errors = esc_html__('Structure is missing', 'wp-user-avatar');
169
- } elseif (empty($handler_structure)) {
170
- $this->password_reset_builder_errors = esc_html__('Password Reset Handler Form Structure is missing', 'wp-user-avatar');
171
- }
172
-
173
- if (isset($this->password_reset_builder_errors)) return;
174
-
175
- FormRepository::update_form(
176
- $id,
177
- FormRepository::PASSWORD_RESET_TYPE,
178
- $title,
179
- apply_filters('ppress_shortcode_builder_registration_meta', [
180
- FormRepository::FORM_STRUCTURE => $structure,
181
- FormRepository::FORM_CSS => $css,
182
- FormRepository::PROCESSING_LABEL => sanitize_text_field($_POST['processing_label']),
183
- FormRepository::SUCCESS_MESSAGE => $success_password_reset,
184
- FormRepository::PASSWORD_RESET_HANDLER => $handler_structure
185
- ])
186
- );
187
-
188
- wp_safe_redirect(esc_url_raw(add_query_arg('form-edited', 'true')));
189
- exit;
190
- }
191
-
192
- /**
193
- * @return EditShortcodePasswordReset
194
- */
195
- public static function get_instance()
196
- {
197
- static $instance = null;
198
-
199
- if (is_null($instance)) {
200
- $instance = new self();
201
- }
202
-
203
- return $instance;
204
- }
205
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/edit_screen.php DELETED
@@ -1,91 +0,0 @@
1
- <?php
2
-
3
- use ProfilePress\Core\Classes\FormRepository;
4
-
5
- $form_id = absint($_GET['id']);
6
-
7
- $title = FormRepository::get_name($form_id, FormRepository::PASSWORD_RESET_TYPE);
8
- $structure = FormRepository::get_form_meta($form_id, FormRepository::PASSWORD_RESET_TYPE, FormRepository::FORM_STRUCTURE);
9
- $password_reset_handler = FormRepository::get_form_meta($form_id, FormRepository::PASSWORD_RESET_TYPE, FormRepository::PASSWORD_RESET_HANDLER);
10
- $css = FormRepository::get_form_meta($form_id, FormRepository::PASSWORD_RESET_TYPE, FormRepository::FORM_CSS);
11
-
12
- $success_message = FormRepository::get_form_meta($form_id, FormRepository::PASSWORD_RESET_TYPE, FormRepository::SUCCESS_MESSAGE);
13
-
14
- $content = isset($_POST['prb_structure']) ? stripslashes($_POST['prb_structure']) : $structure;
15
- ?>
16
-
17
- <form method="post">
18
- <div class="ppSCB-margin-r passwordReset">
19
- <div class="ppSCB-tab-box">
20
- <div id="titlediv">
21
- <div id="titlewrap">
22
- <label class="screen-reader-text" id="title-prompt-text" for="title"><?= esc_html__('Enter title here', 'wp-user-avatar') ?></label>
23
- <input name="prb_title" type="text" value="<?= $title ?>" id="title">
24
- <input class="ppSCB-save-btn button-primary" type="submit" name="edit_password_reset" value="<?= esc_html__('Save Changes', 'wp-user-avatar') ?>">
25
- </div>
26
- </div>
27
- <h2 class="nav-tab-wrapper">
28
- <a class="nav-tab" href="#ppStructure"><?= esc_html__('Structure', 'wp-user-avatar') ?></a>
29
- <a class="nav-tab" href="#ppHandlerStructure"><?= esc_html__('Password Reset Handler Form', 'wp-user-avatar') ?></a>
30
- <a class="nav-tab" href="#ppCSS"><?= esc_html__('CSS', 'wp-user-avatar') ?></a>
31
- <a class="nav-tab" href="#ppSettings"><?= esc_html__('Settings', 'wp-user-avatar') ?></a>
32
-
33
-
34
- <span class="pp-form-builder-shortcodes-btn">
35
- <a href="#" id="ppress-available-shortcodes-btn" class="button button-secondary"><?= esc_html__('Available Shortcodes', 'wp-user-avatar') ?></a>
36
- </span>
37
- </h2>
38
- <div class="ppSCB-tab-box-div">
39
- <div id="ppStructure" class="ppSCB-tab-content">
40
- <textarea rows="30" name="prb_structure" id="pp_password_structure"><?php echo $content ?></textarea>
41
- <div class="ppSCB-clear-both"></div>
42
- </div>
43
- <div id="ppHandlerStructure" class="ppSCB-tab-content">
44
- <?php $content2 = isset($_POST['prb_handler_structure']) ? stripslashes($_POST['prb_handler_structure']) : $password_reset_handler; ?>
45
- <textarea rows="30" name="prb_handler_structure" id="pp_password_handler_structure"><?php echo $content2 ?></textarea>
46
- <div class="ppSCB-clear-both"></div>
47
- </div>
48
- <div id="ppCSS" class="ppSCB-tab-content">
49
- <textarea rows="30" name="prb_css" id="pp_password_css"><?php echo isset($_POST['prb_css']) ? stripslashes($_POST['prb_css']) : $css; ?></textarea>
50
- <div class="ppSCB-clear-both"></div>
51
- </div>
52
- <div id="ppSettings" class="ppSCB-tab-content">
53
- <h4 class="ppSCB-tab-content-header"><?=esc_html__('General Settings', 'wp-user-avatar')?></h4>
54
- <table class="form-table">
55
- <?php do_action('ppress_shortcode_builder_password_reset_screen_before', $form_id); ?>
56
- <tr>
57
- <th scope="row">
58
- <label for="processing_label"><?php _e('Processing Label', 'wp-user-avatar'); ?></label>
59
- </th>
60
- <td>
61
- <input type="text" name="processing_label" id="processing_label" value="<?= FormRepository::get_processing_label($form_id, FormRepository::PASSWORD_RESET_TYPE); ?>"/>
62
- <p class="description"><?php _e('This is the text shown on the submit button when the form is submitted.', 'wp-user-avatar'); ?></p>
63
- </td>
64
- </tr>
65
- <tr>
66
- <th scope="row">
67
- <label for="message_success"><?= esc_html__('Success Message', 'wp-user-avatar') ?></label>
68
- </th>
69
- <td>
70
- <textarea name="prb_success_password_reset" id="message_success"><?php echo isset($_POST['prb_success_password_reset']) ? stripslashes(esc_textarea($_POST['prb_success_password_reset'])) : $success_message; ?></textarea>
71
- <p class="description"><?= esc_html__('Message to display on successful user password reset.', 'wp-user-avatar') ?></p>
72
- </td>
73
- </tr>
74
- <?php do_action('ppress_shortcode_builder_password_reset_screen_after', $form_id); ?>
75
- </table>
76
- <div class="ppSCB-clear-both"></div>
77
- </div>
78
- </div>
79
- </div>
80
- <div class="ppSCB-sidebar password-reset">
81
- <div class="ppSCB-preview-header">
82
- <div class="ppSCB-preview-h-left">
83
- <h3><?= esc_html__('Reset Form Preview', 'wp-user-avatar') ?></h3></div>
84
- <div class="ppSCB-preview-h-right"><h3><?= esc_html__('Handler Form Preview', 'wp-user-avatar') ?></h3>
85
- </div>
86
- </div>
87
- <iframe id="indexIframe"></iframe>
88
- <iframe id="handlerIframe"></iframe>
89
- </div>
90
- </div>
91
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/EditShortcodeRegistration.php DELETED
@@ -1,99 +0,0 @@
1
- <?php
2
-
3
- namespace ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeRegistration;
4
-
5
-
6
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\ShortcodeInserterTrait;
7
- use ProfilePress\Core\Classes\FormRepository;
8
-
9
- class EditShortcodeRegistration
10
- {
11
- use ShortcodeInserterTrait;
12
-
13
- private $registration_builder_errors;
14
-
15
- public function __construct()
16
- {
17
- add_action('admin_init', [$this, 'save_edit']);
18
- add_action('ppress_admin_notices', [$this, 'admin_notices']);
19
- }
20
-
21
- public function available_shortcodes()
22
- {
23
- return self::reg_edit_profile_available_shortcodes();
24
- }
25
-
26
- public function admin_notices()
27
- {
28
- if (isset($this->registration_builder_errors)) {
29
- echo '<div id="message" class="error notice is-dismissible"><p><strong>' . $this->registration_builder_errors . '</strong></p></div>';
30
-
31
- return;
32
- }
33
-
34
- if (@$_GET['view'] == 'edit-shortcode-registration' && @$_GET['form-edited']) {
35
- echo '<div id="message" class="updated notice is-dismissible"><p><strong>' . esc_html__('Form updated', 'wp-user-avatar') . '</strong></p></div>';
36
- }
37
- }
38
-
39
- public function edit_screen()
40
- {
41
- // we're using here because this method is only called when the view is called for the form type.
42
- $this->traitInit($this->available_shortcodes());
43
-
44
- require PPRESS_ADMIN_SETTINGS_PAGE_FOLDER . 'ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php';
45
- }
46
-
47
- public function save_edit()
48
- {
49
- if ( ! current_user_can('manage_options') || ! isset($_POST['edit_registration']) || ! ppress_verify_nonce()) return;
50
-
51
- $id = absint($_GET['id']);
52
- $title = @sanitize_text_field($_POST['rfb_title']);
53
- $structure = @stripslashes($_POST['rfb_structure']);
54
- $css = @stripslashes($_POST['rfb_css']);
55
- $success_registration = @stripslashes($_POST['rfb_success_registration']);
56
- $user_role = esc_attr($_POST['rfb_new_user_role']);
57
- $disable_username_requirement = esc_attr(@$_POST['rfb_disable_username_requirement']);
58
-
59
- // catch and save form generated errors in property @registration_builder_errors
60
- if (empty($title)) {
61
- $this->registration_builder_errors = esc_html__('Title is empty', 'wp-user-avatar');
62
- } elseif (empty($structure)) {
63
- $this->registration_builder_errors = esc_html__('Structure is missing', 'wp-user-avatar');
64
- }
65
-
66
- if (isset($this->registration_builder_errors)) return;
67
-
68
- FormRepository::update_form(
69
- $id,
70
- FormRepository::REGISTRATION_TYPE,
71
- $title,
72
- apply_filters('ppress_shortcode_builder_registration_meta', [
73
- FormRepository::FORM_STRUCTURE => $structure,
74
- FormRepository::FORM_CSS => $css,
75
- FormRepository::PROCESSING_LABEL => sanitize_text_field($_POST['processing_label']),
76
- FormRepository::SUCCESS_MESSAGE => $success_registration,
77
- FormRepository::REGISTRATION_USER_ROLE => $user_role,
78
- FormRepository::DISABLE_USERNAME_REQUIREMENT => $disable_username_requirement == 'yes'
79
- ])
80
- );
81
-
82
- wp_safe_redirect(esc_url_raw(add_query_arg('form-edited', 'true')));
83
- exit;
84
- }
85
-
86
- /**
87
- * @return EditShortcodeRegistration
88
- */
89
- public static function get_instance()
90
- {
91
- static $instance = null;
92
-
93
- if (is_null($instance)) {
94
- $instance = new self();
95
- }
96
-
97
- return $instance;
98
- }
99
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/edit_screen.php DELETED
@@ -1,108 +0,0 @@
1
- <?php
2
-
3
- use ProfilePress\Core\Classes\FormRepository;
4
-
5
- $form_id = absint($_GET['id']);
6
-
7
- $title = FormRepository::get_name($form_id, FormRepository::REGISTRATION_TYPE);
8
- $structure = FormRepository::get_form_meta($form_id, FormRepository::REGISTRATION_TYPE, FormRepository::FORM_STRUCTURE);
9
- $css = FormRepository::get_form_meta($form_id, FormRepository::REGISTRATION_TYPE, FormRepository::FORM_CSS);
10
-
11
- $new_user_role = FormRepository::get_form_meta($form_id, FormRepository::REGISTRATION_TYPE, FormRepository::REGISTRATION_USER_ROLE);
12
- $success_message = FormRepository::get_form_meta($form_id, FormRepository::REGISTRATION_TYPE, FormRepository::SUCCESS_MESSAGE);
13
- $disable_username_requirement = FormRepository::get_form_meta($form_id, FormRepository::REGISTRATION_TYPE, FormRepository::DISABLE_USERNAME_REQUIREMENT) ? 'yes' : 'no';
14
-
15
- $selected = get_option('default_role');
16
- if ( ! empty($new_user_role)) $selected = $new_user_role;
17
-
18
- if (isset($_POST['rfb_new_user_role'])) $selected = sanitize_text_field($_POST['rfb_new_user_role']);
19
-
20
- $title = isset($_POST['rfb_title']) ? sanitize_title($_POST['rfb_title']) : $title;
21
-
22
- $content = isset($_POST['rfb_structure']) ? stripslashes($_POST['rfb_structure']) : $structure;
23
- ?>
24
-
25
- <form method="post">
26
- <div class="ppSCB-margin-r">
27
- <div class="ppSCB-tab-box">
28
- <div id="titlediv">
29
- <div id="titlewrap">
30
- <label class="screen-reader-text" id="title-prompt-text" for="title"><?= esc_html__('Enter title here', 'wp-user-avatar') ?></label>
31
- <input name="rfb_title" type="text" value="<?= $title ?>" id="title">
32
- <input class="ppSCB-save-btn button-primary" type="submit" name="edit_registration" value="<?= esc_html__('Save Changes', 'wp-user-avatar') ?>">
33
- </div>
34
- </div>
35
- <h2 class="nav-tab-wrapper">
36
- <a class="nav-tab" href="#ppStructure"><?= esc_html__('Structure', 'wp-user-avatar') ?></a>
37
- <a class="nav-tab" href="#ppCSS"><?= esc_html__('CSS', 'wp-user-avatar') ?></a>
38
- <a class="nav-tab" href="#ppSettings"><?= esc_html__('Settings', 'wp-user-avatar') ?></a>
39
-
40
- <span class="pp-form-builder-shortcodes-btn">
41
- <a href="#" id="ppress-available-shortcodes-btn" class="button button-secondary"><?= esc_html__('Available Shortcodes', 'wp-user-avatar') ?></a>
42
- </span>
43
- </h2>
44
- <div class="ppSCB-tab-box-div">
45
- <div id="ppStructure" class="ppSCB-tab-content">
46
- <textarea rows="30" name="rfb_structure" id="pp_registration_structure"><?php echo $content ?></textarea>
47
- <div class="ppSCB-clear-both"></div>
48
- </div>
49
- <div id="ppCSS" class="ppSCB-tab-content">
50
- <textarea rows="30" name="rfb_css" id="pp_registration_css"><?php echo isset($_POST['rfb_css']) ? stripslashes($_POST['rfb_css']) : $css; ?></textarea>
51
- <div class="ppSCB-clear-both"></div>
52
- </div>
53
- <div id="ppSettings" class="ppSCB-tab-content">
54
- <h4 class="ppSCB-tab-content-header"><?=esc_html__('General Settings', 'wp-user-avatar')?></h4>
55
- <table class="form-table">
56
- <?php do_action('ppress_shortcode_builder_registration_screen_before', $form_id); ?>
57
- <tr>
58
- <th scope="row">
59
- <label for="processing_label"><?php _e('Processing Label', 'wp-user-avatar'); ?></label>
60
- </th>
61
- <td>
62
- <input type="text" name="processing_label" id="processing_label" value="<?= FormRepository::get_processing_label($form_id, FormRepository::REGISTRATION_TYPE); ?>"/>
63
- <p class="description"><?php _e('This is the text shown on the submit button when the form is submitted.', 'wp-user-avatar'); ?></p>
64
- </td>
65
- </tr>
66
- <tr>
67
- <th scope="row">
68
- <label for="message_success"><?php esc_attr_e('Success message', 'wp-user-avatar'); ?></label>
69
- </th>
70
- <td>
71
- <textarea name="rfb_success_registration" id="message_success"><?= $success_message ?></textarea>
72
- <p class="description"><?php esc_attr_e('Message to display on successful user registration.', 'wp-user-avatar'); ?></p>
73
- </td>
74
- </tr>
75
- <tr>
76
- <th scope="row">
77
- <label for="new_user_role"><?php esc_attr_e('New User Role', 'wp-user-avatar'); ?></label>
78
- </th>
79
- <td>
80
- <select name="rfb_new_user_role" id="new_user_role"><?php wp_dropdown_roles($selected); ?></select>
81
- <p class="description"><?php esc_attr_e('Role of users registered through this form.', 'wp-user-avatar'); ?></p>
82
- </td>
83
- </tr>
84
- <tr>
85
- <th scope="row">
86
- <label for="disable_username_requirement"><?php esc_attr_e('Disable Username Requirement', 'wp-user-avatar'); ?></label>
87
- </th>
88
- <td>
89
- <input type="checkbox" name="rfb_disable_username_requirement" id="disable_username_requirement" value="yes" <?php checked('yes', $disable_username_requirement); ?> />
90
- <label for="disable_username_requirement"><strong><?php _e('Check to Disable', 'wp-user-avatar'); ?></strong></label>
91
-
92
- <p class="description">
93
- <?php _e('Disable requirement for users to enter a username during registration. Usernames will automatically be generated from their email addresses.', 'wp-user-avatar'); ?>
94
- </p>
95
- </td>
96
- </tr>
97
- <?php do_action('ppress_shortcode_builder_registration_screen_after', $form_id); ?>
98
- </table>
99
- <div class="ppSCB-clear-both"></div>
100
- </div>
101
- </div>
102
- </div>
103
- <div class="ppSCB-sidebar">
104
- <h3><?= esc_html__('Preview', 'wp-user-avatar') ?></h3>
105
- <iframe id="indexIframe"></iframe>
106
- </div>
107
- </div>
108
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php DELETED
@@ -1,196 +0,0 @@
1
- <?php
2
-
3
- namespace ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\EditShortcodeUserProfile;
4
-
5
- use ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder\ShortcodeInserterTrait;
6
- use ProfilePress\Core\Classes\FormRepository;
7
-
8
- class EditShortcodeUserProfile
9
- {
10
- use ShortcodeInserterTrait;
11
-
12
- private $builder_errors;
13
-
14
- public function __construct()
15
- {
16
- add_action('admin_init', [$this, 'save_edit']);
17
- add_action('ppress_admin_notices', [$this, 'admin_notices']);
18
- }
19
-
20
- public function available_shortcodes()
21
- {
22
- return apply_filters('ppress_user_profile_available_shortcodes', [
23
- 'profile-username' => [
24
- 'description' => esc_html__('Username of user', 'wp-user-avatar'),
25
- 'shortcode' => 'profile-username',
26
- ],
27
- 'profile-email' => [
28
- 'description' => esc_html__('Email address of user', 'wp-user-avatar'),
29
- 'shortcode' => 'profile-email',
30
- ],
31
- 'profile-website' => [
32
- 'description' => esc_html__('Website URL of user', 'wp-user-avatar'),
33
- 'shortcode' => 'profile-website',
34
- ],
35
- 'profile-nickname' => [
36
- 'description' => esc_html__('Nickname of user', 'wp-user-avatar'),
37
- 'shortcode' => 'profile-nickname',
38
- ],
39
- 'profile-display-name' => [
40
- 'description' => esc_html__('Display name of user', 'wp-user-avatar'),
41
- 'shortcode' => 'profile-display-name',
42
- ],
43
- 'profile-first-name' => [
44
- 'description' => esc_html__('First name of user', 'wp-user-avatar'),
45
- 'shortcode' => 'profile-first-name',
46
- ],
47
- 'profile-last-name' => [
48
- 'description' => esc_html__('Last name of user', 'wp-user-avatar'),
49
- 'shortcode' => 'profile-last-name',
50
- ],
51
- 'profile-bio' => [
52
- 'description' => esc_html__('Biographical info of user', 'wp-user-avatar'),
53
- 'shortcode' => 'profile-bio',
54
- ],
55
- 'profile-cpf' => [
56
- 'description' => esc_html__('Custom field information', 'wp-user-avatar'),
57
- 'shortcode' => 'profile-cpf',
58
- 'attributes' => [
59
- 'key' => [
60
- 'label' => esc_html__('Field key', 'wp-user-avatar'),
61
- 'field' => 'text'
62
- ]
63
- ]
64
- ],
65
- 'profile-file' => [
66
- 'description' => esc_html__('Link to uploaded file', 'wp-user-avatar'),
67
- 'shortcode' => 'profile-file',
68
- 'attributes' => [
69
- 'key' => [
70
- 'label' => esc_html__('Field key', 'wp-user-avatar'),
71
- 'field' => 'text'
72
- ],
73
- 'raw' => [
74
- 'label' => esc_html__('Check to return URL', 'wp-user-avatar'),
75
- 'field' => 'checkbox'
76
- ],
77
- ]
78
- ],
79
- 'profile-avatar-url' => [
80
- 'description' => esc_html__('URL of User profile picture or avatar', 'wp-user-avatar'),
81
- 'shortcode' => 'profile-avatar-url'
82
- ],
83
- 'profile-date-registered' => [
84
- 'description' => esc_html__('Date of user registration', 'wp-user-avatar'),
85
- 'shortcode' => 'profile-date-registered'
86
- ],
87
- 'profile-post-count' => [
88
- 'description' => esc_html__('Number of posts published by user', 'wp-user-avatar'),
89
- 'shortcode' => 'profile-post-count'
90
- ],
91
- 'profile-comment-count' => [
92
- 'description' => esc_html__('Number of comments submitted by user', 'wp-user-avatar'),
93
- 'shortcode' => 'profile-comment-count'
94
- ],
95
- 'profile-post-list' => [
96
- 'description' => esc_html__('List of posts authored by user', 'wp-user-avatar'),
97
- 'shortcode' => 'profile-post-list',
98
- 'attributes' => [
99
- 'limit' => [
100
- 'label' => esc_html__('Limit', 'wp-user-avatar'),
101
- 'field' => 'number'
102
- ]
103
- ]
104
- ],
105
- 'profile-comment-list' => [
106
- 'description' => esc_html__('List of comments by user', 'wp-user-avatar'),
107
- 'shortcode' => 'profile-comment-list',
108
- 'attributes' => [
109
- 'limit' => [
110
- 'label' => esc_html__('Limit', 'wp-user-avatar'),
111
- 'field' => 'number'
112
- ]
113
- ]
114
- ],
115
- 'profile-author-posts-url' => [
116
- 'description' => esc_html__('URL to author posts page', 'wp-user-avatar'),
117
- 'shortcode' => 'profile-author-posts-url'
118
- ],
119
- 'profile-hide-empty-data' => [
120
- 'description' => esc_html__('Hide content if profile information is empty. Do not forget to close the shortcode with [/profile-hide-empty-data]', 'wp-user-avatar'),
121
- 'shortcode' => 'profile-hide-empty-data',
122
- 'attributes' => [
123
- 'field' => [
124
- 'label' => esc_html__('Field ID', 'wp-user-avatar'),
125
- 'field' => 'text'
126
- ]
127
- ]
128
- ],
129
- ]) + self::global_shortcodes();
130
- }
131
-
132
- public function admin_notices()
133
- {
134
- if (isset($this->builder_errors)) {
135
- echo '<div id="message" class="error notice is-dismissible"><p><strong>' . $this->builder_errors . '</strong></p></div>';
136
-
137
- return;
138
- }
139
-
140
- if (@$_GET['view'] == 'edit-shortcode-user-profile' && @$_GET['form-edited']) {
141
- echo '<div id="message" class="updated notice is-dismissible"><p><strong>' . esc_html__('Changes saved.', 'wp-user-avatar') . '</strong></p></div>';
142
- }
143
- }
144
-
145
- public function edit_screen()
146
- {
147
- $this->traitInit($this->available_shortcodes());
148
- require PPRESS_ADMIN_SETTINGS_PAGE_FOLDER . 'ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php';
149
- }
150
-
151
- public function save_edit()
152
- {
153
- if ( ! current_user_can('manage_options') || ! isset($_POST['edit_user_profile_page']) || ! ppress_verify_nonce()) return;
154
-
155
- $id = absint($_GET['id']);
156
- $title = @sanitize_text_field($_POST['fep_title']);
157
- $structure = @stripslashes($_POST['fep_structure']);
158
- $css = @stripslashes($_POST['fep_css']);
159
-
160
-
161
- if (empty($title)) {
162
- $this->builder_errors = esc_html__('Title is empty', 'wp-user-avatar');
163
- } elseif (empty($structure)) {
164
- $this->builder_errors = esc_html__('Structure is missing', 'wp-user-avatar');
165
- }
166
-
167
- if (isset($this->builder_errors)) return;
168
-
169
- FormRepository::update_form(
170
- $id,
171
- FormRepository::USER_PROFILE_TYPE,
172
- $title,
173
- apply_filters('ppress_shortcode_builder_registration_meta', [
174
- FormRepository::FORM_STRUCTURE => $structure,
175
- FormRepository::FORM_CSS => $css,
176
- ])
177
- );
178
-
179
- wp_safe_redirect(esc_url_raw(add_query_arg('form-edited', 'true')));
180
- exit;
181
- }
182
-
183
- /**
184
- * @return EditShortcodeUserProfile
185
- */
186
- public static function get_instance()
187
- {
188
- static $instance = null;
189
-
190
- if (is_null($instance)) {
191
- $instance = new self();
192
- }
193
-
194
- return $instance;
195
- }
196
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/edit_screen.php DELETED
@@ -1,49 +0,0 @@
1
- <?php
2
-
3
- use ProfilePress\Core\Classes\FormRepository;
4
-
5
- $form_id = absint($_GET['id']);
6
-
7
- $title = FormRepository::get_name($form_id, FormRepository::USER_PROFILE_TYPE);
8
- $structure = FormRepository::get_form_meta($form_id, FormRepository::USER_PROFILE_TYPE, FormRepository::FORM_STRUCTURE);
9
- $css = FormRepository::get_form_meta($form_id, FormRepository::USER_PROFILE_TYPE, FormRepository::FORM_CSS);
10
-
11
- $content = isset($_POST['fep_structure']) ? stripslashes($_POST['fep_structure']) : $structure;
12
-
13
- ?>
14
-
15
- <form method="post">
16
- <div class="ppSCB-margin-r">
17
- <div class="ppSCB-tab-box">
18
- <div id="titlediv">
19
- <div id="titlewrap">
20
- <label class="screen-reader-text" id="title-prompt-text" for="title"><?= esc_html__('Enter title here', 'wp-user-avatar') ?></label>
21
- <input name="fep_title" type="text" value="<?= $title ?>" id="title">
22
- <input class="ppSCB-save-btn button-primary" type="submit" name="edit_user_profile_page" value="<?= esc_html__('Save Changes', 'wp-user-avatar') ?>">
23
- </div>
24
- </div>
25
- <h2 class="nav-tab-wrapper">
26
- <a class="nav-tab" href="#ppStructure"><?= esc_html__('Structure', 'wp-user-avatar') ?></a>
27
- <a class="nav-tab" href="#ppCSS"><?= esc_html__('CSS', 'wp-user-avatar') ?></a>
28
-
29
- <span class="pp-form-builder-shortcodes-btn">
30
- <a href="#" id="ppress-available-shortcodes-btn" class="button button-secondary"><?= esc_html__('Available Shortcodes', 'wp-user-avatar') ?></a>
31
- </span>
32
- </h2>
33
- <div class="ppSCB-tab-box-div">
34
- <div id="ppStructure" class="ppSCB-tab-content">
35
- <textarea rows="30" name="fep_structure" id="pp_fe_profile_structure"><?php echo $content ?></textarea>
36
- <div class="ppSCB-clear-both"></div>
37
- </div>
38
- <div id="ppCSS" class="ppSCB-tab-content">
39
- <textarea rows="30" name="fep_css" id="pp_fe_profile_css"><?php echo isset($_POST['fep_css']) ? stripslashes($_POST['fep_css']) : $css; ?></textarea>
40
- <div class="ppSCB-clear-both"></div>
41
- </div>
42
- </div>
43
- </div>
44
- <div class="ppSCB-sidebar">
45
- <h3><?= esc_html__('Preview', 'wp-user-avatar') ?></h3>
46
- <iframe id="indexIframe"></iframe>
47
- </div>
48
- </div>
49
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php DELETED
@@ -1,602 +0,0 @@
1
- <?php
2
-
3
- namespace ProfilePress\Core\Admin\SettingsPages\ShortcodeBuilder;
4
-
5
- use ProfilePress\Core\Classes\ExtensionManager as EM;
6
- use ProfilePress\Core\Classes\PROFILEPRESS_sql;
7
-
8
- trait ShortcodeInserterTrait
9
- {
10
- public $form_shortcodes;
11
-
12
- public function traitInit($form_shortcodes)
13
- {
14
- $this->form_shortcodes = $form_shortcodes;
15
-
16
- add_action('admin_footer', [$this, 'shortcode_inserter_modal']);
17
- add_action('admin_footer', [$this, 'shortcode_inserter_script']);
18
- }
19
-
20
- public static function global_shortcodes()
21
- {
22
- return apply_filters('ppress_global_available_shortcodes', [
23
- 'pp-user-avatar' => [
24
- 'description' => esc_html__("Displays user's avatar", 'wp-user-avatar'),
25
- 'shortcode' => 'pp-user-avatar',
26
- 'attributes' => [
27
- 'size' => [
28
- 'label' => esc_html__('Size of avatar', 'wp-user-avatar'),
29
- 'field' => 'number'
30
- ],
31
- 'class' => [
32
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
33
- 'field' => 'text'
34
- ],
35
- ]
36
- ],
37
- 'pp-user-cover-image' => [
38
- 'description' => esc_html__("Displays user's cover image", 'wp-user-avatar'),
39
- 'shortcode' => 'pp-user-cover-image',
40
- 'attributes' => [
41
- 'id' => [
42
- 'label' => esc_html__('ID', 'wp-user-avatar'),
43
- 'field' => 'text'
44
- ],
45
- 'class' => [
46
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
47
- 'field' => 'text'
48
- ],
49
- 'alt' => [
50
- 'label' => esc_html__('Alternate text', 'wp-user-avatar'),
51
- 'field' => 'text'
52
- ],
53
- ]
54
- ],
55
- 'pp-password-hint' => [
56
- 'description' => esc_html__('Displays password hint', 'wp-user-avatar'),
57
- 'shortcode' => 'pp-password-hint'
58
- ],
59
- 'pp-social-login' => [
60
- 'description' => esc_html__('Social login button', 'wp-user-avatar'),
61
- 'shortcode' => 'pp-social-login',
62
- 'attributes' => [
63
- 'type' => [
64
- 'label' => esc_html__('Social network', 'wp-user-avatar'),
65
- 'field' => 'select',
66
- 'options' => [
67
- 'facebook' => esc_html__('Facebook', 'wp-user-avatar'),
68
- 'twitter' => esc_html__('Twitter', 'wp-user-avatar'),
69
- 'google' => esc_html__('Google', 'wp-user-avatar'),
70
- 'linkedin' => esc_html__('LinkedIn', 'wp-user-avatar'),
71
- 'vk' => esc_html__('VK', 'wp-user-avatar'),
72
- 'github' => esc_html__('GitHub', 'wp-user-avatar'),
73
- ]
74
- ]
75
- ]
76
- ],
77
- 'link-registration' => [
78
- 'description' => esc_html__('Link to registration page', 'wp-user-avatar'),
79
- 'shortcode' => 'link-registration',
80
- 'attributes' => [
81
- 'label' => [
82
- 'label' => esc_html__('Link label', 'wp-user-avatar'),
83
- 'field' => 'text',
84
- ],
85
- 'id' => [
86
- 'label' => esc_html__('ID', 'wp-user-avatar'),
87
- 'field' => 'text'
88
- ],
89
- 'class' => [
90
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
91
- 'field' => 'text'
92
- ],
93
- 'raw' => [
94
- 'label' => esc_html__('Check to return URL', 'wp-user-avatar'),
95
- 'field' => 'checkbox'
96
- ],
97
- ]
98
- ],
99
- 'link-login' => [
100
- 'description' => esc_html__('Link to login page', 'wp-user-avatar'),
101
- 'shortcode' => 'link-login',
102
- 'attributes' => [
103
- 'label' => [
104
- 'label' => esc_html__('Link label', 'wp-user-avatar'),
105
- 'field' => 'text',
106
- ],
107
- 'id' => [
108
- 'label' => esc_html__('ID', 'wp-user-avatar'),
109
- 'field' => 'text'
110
- ],
111
- 'class' => [
112
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
113
- 'field' => 'text'
114
- ],
115
- 'raw' => [
116
- 'label' => esc_html__('Check to return URL', 'wp-user-avatar'),
117
- 'field' => 'checkbox'
118
- ],
119
- ]
120
- ],
121
- 'link-lost-password' => [
122
- 'description' => esc_html__('Link to password reset page', 'wp-user-avatar'),
123
- 'shortcode' => 'link-lost-password',
124
- 'attributes' => [
125
- 'label' => [
126
- 'label' => esc_html__('Link label', 'wp-user-avatar'),
127
- 'field' => 'text',
128
- ],
129
- 'id' => [
130
- 'label' => esc_html__('ID', 'wp-user-avatar'),
131
- 'field' => 'text'
132
- ],
133
- 'class' => [
134
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
135
- 'field' => 'text'
136
- ],
137
- 'raw' => [
138
- 'label' => esc_html__('Check to return URL', 'wp-user-avatar'),
139
- 'field' => 'checkbox'
140
- ],
141
- ]
142
- ],
143
- 'link-my-account' => [
144
- 'description' => esc_html__('Link to My Account page', 'wp-user-avatar'),
145
- 'shortcode' => 'link-my-account',
146
- 'attributes' => [
147
- 'label' => [
148
- 'label' => esc_html__('Link label', 'wp-user-avatar'),
149
- 'field' => 'text',
150
- ],
151
- 'id' => [
152
- 'label' => esc_html__('ID', 'wp-user-avatar'),
153
- 'field' => 'text'
154
- ],
155
- 'class' => [
156
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
157
- 'field' => 'text'
158
- ],
159
- 'raw' => [
160
- 'label' => esc_html__('Check to return URL', 'wp-user-avatar'),
161
- 'field' => 'checkbox'
162
- ],
163
- ]
164
- ],
165
- 'link-logout' => [
166
- 'description' => esc_html__('Link to log out', 'wp-user-avatar'),
167
- 'shortcode' => 'link-logout',
168
- 'attributes' => [
169
- 'label' => [
170
- 'label' => esc_html__('Link label', 'wp-user-avatar'),
171
- 'field' => 'text',
172
- ],
173
- 'id' => [
174
- 'label' => esc_html__('ID', 'wp-user-avatar'),
175
- 'field' => 'text'
176
- ],
177
- 'class' => [
178
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
179
- 'field' => 'text'
180
- ],
181
- 'raw' => [
182
- 'label' => esc_html__('Check to return URL', 'wp-user-avatar'),
183
- 'field' => 'checkbox'
184
- ],
185
- ]
186
- ],
187
- 'facebook-login-url' => [
188
- 'description' => esc_html__('Link to login with Facebook', 'wp-user-avatar'),
189
- 'shortcode' => 'facebook-login-url'
190
- ],
191
- 'twitter-login-url' => [
192
- 'description' => esc_html__('Link to login with Twitter', 'wp-user-avatar'),
193
- 'shortcode' => 'twitter-login-url'
194
- ],
195
- 'linkedin-login-url' => [
196
- 'description' => esc_html__('Link to login with LinkedIn', 'wp-user-avatar'),
197
- 'shortcode' => 'linkedin-login-url'
198
- ],
199
- 'google-login-url' => [
200
- 'description' => esc_html__('Link to login with Google', 'wp-user-avatar'),
201
- 'shortcode' => 'google-login-url'
202
- ],
203
- 'github-login-url' => [
204
- 'description' => esc_html__('Link to login with GitHub', 'wp-user-avatar'),
205
- 'shortcode' => 'github-login-url'
206
- ],
207
- 'vk-login-url' => [
208
- 'description' => esc_html__('Link to login with VK', 'wp-user-avatar'),
209
- 'shortcode' => 'vk-login-url'
210
- ],
211
- ]);
212
- }
213
-
214
- public static function popular_attributes($show_required = false, $remove_value = false, $show_cpf_fields = false)
215
- {
216
- $args = [];
217
-
218
- if ($show_cpf_fields) {
219
-
220
- $custom_fields = PROFILEPRESS_sql::get_profile_custom_fields();
221
-
222
- $contact_infos = PROFILEPRESS_sql::get_contact_info_fields();
223
-
224
- $options = ['' => esc_html__('Select...', 'wp-user-avatar')];
225
-
226
- foreach ($contact_infos as $field_key => $label) {
227
- $options[$field_key] = $label;
228
- }
229
-
230
- foreach ($custom_fields as $custom_field) {
231
- $options[$custom_field['field_key']] = $custom_field['label_name'];
232
- }
233
-
234
- $args['key'] = [
235
- 'label' => esc_html__('Field key', 'wp-user-avatar'),
236
- 'field' => 'select',
237
- 'options' => $options
238
- ];
239
- }
240
-
241
- $args = $args + [
242
- 'id' => [
243
- 'label' => esc_html__('ID', 'wp-user-avatar'),
244
- 'field' => 'text'
245
- ],
246
- 'placeholder' => [
247
- 'label' => esc_html__('Placeholder', 'wp-user-avatar'),
248
- 'field' => 'text'
249
- ],
250
- 'class' => [
251
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
252
- 'field' => 'text'
253
- ],
254
- 'value' => [
255
- 'label' => esc_html__('Default field value', 'wp-user-avatar'),
256
- 'field' => 'text'
257
- ],
258
- ];
259
-
260
- if ($remove_value) {
261
- unset($args['value']);
262
- }
263
-
264
- if ($show_required) {
265
- $args['required'] = [
266
- 'label' => esc_html__('Mark as required', 'wp-user-avatar'),
267
- 'field' => 'checkbox'
268
- ];
269
- }
270
-
271
- return $args;
272
- }
273
-
274
- public static function reg_edit_profile_available_shortcodes($type = 'reg')
275
- {
276
- $shortcodes = apply_filters('ppress_reg_edit_profile_available_shortcodes', [
277
- $type . '-username' => [
278
- 'description' => esc_html__('Username field', 'wp-user-avatar'),
279
- 'shortcode' => $type . '-username',
280
- 'attributes' => self::popular_attributes()
281
- ],
282
- $type . '-password' => [
283
- 'description' => esc_html__('Password field', 'wp-user-avatar'),
284
- 'shortcode' => $type . '-password',
285
- 'attributes' => self::popular_attributes()
286
- ],
287
- $type . '-confirm-password' => [
288
- 'description' => esc_html__('Confirm password field', 'wp-user-avatar'),
289
- 'shortcode' => $type . '-confirm-password',
290
- 'attributes' => self::popular_attributes()
291
- ],
292
- $type . '-password-meter' => [
293
- 'description' => esc_html__('Password strength meter', 'wp-user-avatar'),
294
- 'shortcode' => $type . '-password-meter',
295
- 'attributes' => [
296
- 'enforce' => [
297
- 'label' => esc_html__('Enforce strong password', 'wp-user-avatar'),
298
- 'field' => 'select',
299
- 'options' => ['true' => esc_html__('Yes', 'wp-user-avatar'), 'false' => esc_html__('No', 'wp-user-avatar')]
300
- ],
301
- 'id' => [
302
- 'label' => esc_html__('ID', 'wp-user-avatar'),
303
- 'field' => 'text'
304
- ],
305
- 'class' => [
306
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
307
- 'field' => 'text'
308
- ],
309
- ]
310
- ],
311
- $type . '-email' => [
312
- 'description' => esc_html__('Email address field', 'wp-user-avatar'),
313
- 'shortcode' => $type . '-email',
314
- 'attributes' => self::popular_attributes()
315
- ],
316
- $type . '-confirm-email' => [
317
- 'description' => esc_html__('Confirm email address field', 'wp-user-avatar'),
318
- 'shortcode' => $type . '-confirm-email',
319
- 'attributes' => self::popular_attributes()
320
- ],
321
- $type . '-website' => [
322
- 'description' => esc_html__('Website field', 'wp-user-avatar'),
323
- 'shortcode' => $type . '-website',
324
- 'attributes' => self::popular_attributes(true)
325
- ],
326
- $type . '-nickname' => [
327
- 'description' => esc_html__('Nickname field', 'wp-user-avatar'),
328
- 'shortcode' => $type . '-nickname',
329
- 'attributes' => self::popular_attributes(true)
330
- ],
331
- $type . '-display-name' => [
332
- 'description' => esc_html__('Display name field', 'wp-user-avatar'),
333
- 'shortcode' => $type . '-display-name',
334
- 'attributes' => self::popular_attributes(true)
335
- ],
336
- $type . '-first-name' => [
337
- 'description' => esc_html__('First name field', 'wp-user-avatar'),
338
- 'shortcode' => $type . '-first-name',
339
- 'attributes' => self::popular_attributes(true)
340
- ],
341
- $type . '-last-name' => [
342
- 'description' => esc_html__('Last name field', 'wp-user-avatar'),
343
- 'shortcode' => $type . '-last-name',
344
- 'attributes' => self::popular_attributes(true)
345
- ],
346
- $type . '-bio' => [
347
- 'description' => esc_html__('Biographical info field', 'wp-user-avatar'),
348
- 'shortcode' => $type . '-bio',
349
- 'attributes' => self::popular_attributes(true)
350
- ],
351
- $type . '-avatar' => [
352
- 'description' => esc_html__('Profile picture upload field', 'wp-user-avatar'),
353
- 'shortcode' => $type . '-avatar',
354
- 'attributes' => self::popular_attributes(true, true)
355
- ],
356
- $type . '-cover-image' => [
357
- 'description' => esc_html__('Profile cover image upload field', 'wp-user-avatar'),
358
- 'shortcode' => $type . '-cover-image',
359
- 'attributes' => self::popular_attributes(true, true)
360
- ],
361
- $type . '-cpf' => [
362
- 'description' => esc_html__('Custom field', 'wp-user-avatar'),
363
- 'shortcode' => $type . '-cpf',
364
- 'attributes' => self::popular_attributes(true, true, true)
365
- ],
366
- $type . '-submit' => [
367
- 'description' => esc_html__('Form submit button', 'wp-user-avatar'),
368
- 'shortcode' => $type . '-submit',
369
- 'attributes' => [
370
- 'value' => [
371
- 'label' => esc_html__('Button label', 'wp-user-avatar'),
372
- 'field' => 'text'
373
- ],
374
- 'id' => [
375
- 'label' => esc_html__('ID', 'wp-user-avatar'),
376
- 'field' => 'text'
377
- ],
378
- 'class' => [
379
- 'label' => esc_html__('CSS class', 'wp-user-avatar'),
380
- 'field' => 'text'
381
- ],
382
- ]
383
- ]
384
- ], $type) + self::global_shortcodes();
385
-
386
- if ( ! EM::is_enabled(EM::CUSTOM_FIELDS)) {
387
- unset($shortcodes[$type . '-cpf']);
388
- }
389
-
390
- return $shortcodes;
391
- }
392
-
393
- public function shortcode_inserter_script()
394
- {
395
- printf(
396
- '<script type="text/javascript">
397
- var pp_shortcode_available_shortcodes = %s;
398
- </script>',
399
- json_encode($this->form_shortcodes)
400
- );
401
- }
402
-
403
- public function shortcode_inserter_modal()
404
- {
405
- ?>
406
- <script type="text/html" id="tmpl-ppress-builder-shortcodes-inserter">
407
- <div id="ppress-builder-shortcodes-inserter">
408
- <div class="ppress-builder-shortcodes-inserter-search">
409
- <input type="text" name="ppress_shortcode_inserter_search" id="ppress_shortcode_inserter_search" placeholder="<?= esc_html__('Search shortcodes', 'wp-user-avatar') ?>">
410
- </div>
411
- <div class="ppress-builder-shortcode-list-wrapper">
412
- <?php foreach ($this->form_shortcodes as $key => $shortcode) : ?>
413
- <div class="ppress-builder-shortcode-item-wrap ppclearfix">
414
- <div class="ppress-builder-shortcode-item">
415
- <div class="ppress-builder-shortcode-name"><?= $key ?></div>
416
- <div class="ppress-builder-shortcode-desc"><?= $shortcode['description'] ?></div>
417
- </div>
418
- <div class="ppress-builder-shortcode-item-btn">
419
- <a data-pp-form-shortcode="<?= $key ?>" href="#" class="button"><?= esc_html__('Select', 'wp-user-avatar') ?></a>
420
- </div>
421
- </div>
422
- <?php endforeach; ?>
423
- </div>
424
- </div>
425
- </script>
426
-
427
- <script type="text/javascript">
428
-
429
- (function ($) {
430
-
431
- var tmpl = wp.template('ppress-builder-shortcodes-inserter'),
432
-
433
- initModal = function () {
434
- return new jBox('Modal', {
435
- id: 'ppress-available-shortcodes-jbox',
436
- closeButton: 'title',
437
- maxHeight: 400,
438
- repositionOnContent: true,
439
- onOpen: onOpen
440
- });
441
- },
442
-
443
- init_clipboard = function () {
444
-
445
- var clipboardJS = new ClipboardJS('.ppress-builder-shortcode-btn', {
446
- text: function () {
447
- return $('#ppress-builder-shortcode-preview-field').text();
448
- }
449
- });
450
-
451
- clipboardJS.on('success', function () {
452
-
453
- alert('<?= esc_html__('Shortcode copied to clipboard.', 'wp-user-avatar') ?>');
454
-
455
- setTimeout(function () {
456
- window.ppressShortcodeBuilderMModal.close();
457
- }, 200);
458
- });
459
- },
460
-
461
- onOpen = function () {
462
-
463
- var cache, tmpl = wp.template('ppress-shortcode-inserter-form');
464
-
465
- $(document).on('click', '#ppress-builder-shortcodes-inserter .ppress-builder-shortcode-item-btn a', function (e) {
466
- e.preventDefault();
467
- cache = $('#ppress-builder-shortcodes-inserter'),
468
- shortcode = $(this).data('pp-form-shortcode');
469
-
470
- $('#ppress-shortcode-inserter-form').remove();
471
-
472
- cache.hide();
473
- cache.after(tmpl(pp_shortcode_available_shortcodes[shortcode]));
474
-
475
- window.ppressShortcodeBuilderMModal
476
- .setTitle('<span class="dashicons dashicons-arrow-left-alt ppress-shortcode-inserter-back" title="Back"></span>' + shortcode);
477
-
478
- // trigger change to add defaults attribute and their values. looking at you select dropdown.
479
- $('#ppress-available-shortcodes-jbox .ppress-shortcode-inserter-builder-field').change();
480
-
481
- window.ppressShortcodeBuilderMModal.position(); // recalculate placement in DOM
482
- });
483
-
484
- $(document).on('click', '#ppress-available-shortcodes-jbox .ppress-shortcode-inserter-back', function (e) {
485
- e.preventDefault();
486
-
487
- $('#ppress-shortcode-inserter-form').remove();
488
-
489
- $('#ppress-builder-shortcodes-inserter').show();
490
-
491
- window.ppressShortcodeBuilderMModal
492
- .setTitle('<?= esc_html__('Available Shortcodes', 'wp-user-avatar');?>');
493
- });
494
- };
495
-
496
- $(document).on('click', '#ppress-available-shortcodes-btn', function () {
497
-
498
- if (typeof window.ppressShortcodeBuilderMModal != 'undefined') {
499
- window.ppressShortcodeBuilderMModal.destroy();
500
- }
501
-
502
- window.ppressShortcodeBuilderMModal = initModal()
503
- .setTitle('<?= esc_html__('Available Shortcodes', 'wp-user-avatar');?>')
504
- .setContent(tmpl())
505
- .open();
506
- });
507
-
508
- $(document).on('change', '.ppress-shortcode-inserter-builder-field', function () {
509
- var field_value,
510
- selected_shortcode = $('#ppress-shortcode-inserter-form').data('pp-selected-shortcode'),
511
- constructed_shortcode = '[' + selected_shortcode;
512
-
513
- $(this).parents('.ppress-builder-shortcode-attributes-wrap').find('.ppress-shortcode-inserter-builder-field').each(function () {
514
-
515
- if ($(this).attr('type') === 'checkbox') {
516
- if ($(this).prop('checked') === true) {
517
- constructed_shortcode += ' ' + $(this).attr('name');
518
- }
519
- } else {
520
-
521
- field_value = $(this).val();
522
-
523
- if (typeof field_value !== "undefined" && field_value !== '' && field_value != '0') {
524
- constructed_shortcode += ' ' + $(this).attr('name') + '="' + field_value + '"';
525
- }
526
- }
527
- });
528
-
529
- constructed_shortcode += ']';
530
-
531
- $('#ppress-builder-shortcode-preview-field').text(constructed_shortcode);
532
- });
533
-
534
- $(document).on('keyup change', '#ppress_shortcode_inserter_search', function () {
535
-
536
- var term = this.value,
537
- cache = $('.ppress-builder-shortcode-item-wrap');
538
-
539
- if (term === '') {
540
- cache.show();
541
- } else {
542
- cache.hide().each(function () {
543
- var content = $(this).text().replace(/\s/g, '');
544
-
545
- if (new RegExp('(?=.*' + term + ').+', 'i').test(content) === true) {
546
- $(this).show();
547
- }
548
- });
549
- }
550
- });
551
-
552
- init_clipboard();
553
-
554
- })(jQuery);
555
-
556
- </script>
557
-
558
- <script type="text/html" id="tmpl-ppress-shortcode-inserter-form">
559
- <div id="ppress-shortcode-inserter-form" data-pp-selected-shortcode="{{data.shortcode}}">
560
- <div class="ppress-builder-shortcode-desc">
561
- {{{data.description}}}
562
- </div>
563
- <# if(_.isEmpty(data.attributes) === false) { #>
564
- <div class="ppress-builder-shortcode-attributes-wrap">
565
- <# _.each(data.attributes, function(value, key) { #>
566
- <div class="ppress-builder-shortcode-attribute-row">
567
- <div class="ppress-builder-shortcode-attribute-label">{{value.label}}</div>
568
- <div class="ppress-builder-shortcode-attribute-field">
569
- <# if(value.field == 'text') { placeholder = typeof value.placeholder !== 'undefined' ? value.placeholder : ''; #>
570
- <input class="ppress-shortcode-inserter-builder-field" type="text" name="{{key}}" placeholder="{{placeholder}}">
571
- <# } #>
572
-
573
- <# if(value.field == 'number') { #>
574
- <input class="ppress-shortcode-inserter-builder-field" type="number" name="{{key}}">
575
- <# } #>
576
-
577
- <# if(value.field == 'checkbox') { #>
578
- <input class="ppress-shortcode-inserter-builder-field" type="checkbox" name="{{key}}" value="true">
579
- <# } #>
580
-
581
- <# if(value.field == 'select') { #>
582
- <select class="ppress-shortcode-inserter-builder-field" name="{{key}}">
583
-
584
- <# _.each(value.options, function(value2, key2) { #>
585
- <option value="{{key2}}">{{value2}}</option>
586
- <# }); #>
587
- </select>
588
- <# } #>
589
- </div>
590
- </div>
591
- <# }); #>
592
- </div>
593
- <# } #>
594
- <div class="ppress-builder-shortcode-clipboard-form">
595
- <div id="ppress-builder-shortcode-preview-field">[{{data.shortcode}}]</div>
596
- <button class="ppress-builder-shortcode-btn button button-primary button-large"><?= esc_html__('Copy to clipboard', 'wp-user-avatar') ?></button>
597
- </div>
598
- </div>
599
- </script>
600
- <?php
601
- }
602
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Classes/AjaxHandler.php CHANGED
@@ -15,8 +15,6 @@ class AjaxHandler
15
  {
16
  add_action('wp_ajax_pp_ajax_editprofile', [$this, 'ajax_editprofile_func']);
17
 
18
- add_action('wp_ajax_pp-builder-preview', [$this, 'builder_preview_handler']);
19
-
20
  add_action('wp_ajax_pp_del_avatar', [$this, 'ajax_delete_avatar']);
21
  add_action('wp_ajax_pp_del_cover_image', [$this, 'ajax_delete_profile_cover_image']);
22
 
@@ -266,19 +264,6 @@ class AjaxHandler
266
  wp_send_json_error();
267
  }
268
 
269
- function builder_preview_handler()
270
- {
271
- if (current_user_can('manage_options')) {
272
- // iframe preview url content
273
- if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'pp-builder-preview') {
274
- include PROFILEPRESS_SRC . 'ShortcodeParser/Builder/builder-preview.php';
275
- }
276
- }
277
-
278
- // IMPORTANT: don't forget to "exit"
279
- wp_die();
280
- }
281
-
282
  function ajax_delete_avatar()
283
  {
284
  if (current_user_can('read')) {
15
  {
16
  add_action('wp_ajax_pp_ajax_editprofile', [$this, 'ajax_editprofile_func']);
17
 
 
 
18
  add_action('wp_ajax_pp_del_avatar', [$this, 'ajax_delete_avatar']);
19
  add_action('wp_ajax_pp_del_cover_image', [$this, 'ajax_delete_profile_cover_image']);
20
 
264
  wp_send_json_error();
265
  }
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  function ajax_delete_avatar()
268
  {
269
  if (current_user_can('read')) {
src/Classes/BuddyPressBbPress.php CHANGED
@@ -7,7 +7,7 @@ class BuddyPressBbPress
7
  public function __construct()
8
  {
9
  if (ppress_settings_by_key('override_bp_avatar') == 'yes') {
10
- // add_filter('bp_core_fetch_avatar', array(__CLASS__, 'override_html_avatar'), 999999999, 3);
11
  add_filter('bp_core_fetch_avatar_url', array(__CLASS__, 'override_avatar_url'), 999999999, 2);
12
  }
13
 
7
  public function __construct()
8
  {
9
  if (ppress_settings_by_key('override_bp_avatar') == 'yes') {
10
+ add_filter('bp_core_fetch_avatar', array(__CLASS__, 'override_html_avatar'), 999999999, 3);
11
  add_filter('bp_core_fetch_avatar_url', array(__CLASS__, 'override_avatar_url'), 999999999, 2);
12
  }
13
 
src/Classes/EditUserProfile.php CHANGED
@@ -31,9 +31,9 @@ class EditUserProfile
31
  }
32
 
33
  /**
34
- * @param array $post_data $_POST data
35
- *
36
- * @param int $is_melange
37
  *
38
  * @return mixed|void the edit profile response be it error or success message
39
  */
31
  }
32
 
33
  /**
34
+ * @param $form_id
35
+ * @param $redirect
36
+ * @param bool $is_melange
37
  *
38
  * @return mixed|void the edit profile response be it error or success message
39
  */
src/Classes/ShortcodeThemeFactory.php CHANGED
@@ -19,7 +19,7 @@ class ShortcodeThemeFactory
19
  */
20
  public static function make($form_type, $form_class)
21
  {
22
- $form_type = str_replace('-', '', ucwords($form_type, '-'));
23
 
24
  $class = apply_filters(
25
  'ppress_register_shortcode_form_class',
19
  */
20
  public static function make($form_type, $form_class)
21
  {
22
+ $form_type = ucwords(str_replace('-', '', $form_type));
23
 
24
  $class = apply_filters(
25
  'ppress_register_shortcode_form_class',
src/RegisterScripts.php CHANGED
@@ -96,6 +96,11 @@ class RegisterScripts
96
  wp_enqueue_script('ppress-clipboardjs', PPRESS_ASSETS_URL . '/js/clipboard.min.js');
97
 
98
  wp_enqueue_script('ppress-admin-scripts', PPRESS_ASSETS_URL . '/js/admin.js', array('jquery', 'jquery-ui-sortable'));
 
 
 
 
 
99
  wp_enqueue_script('ppress-create-form', PPRESS_ASSETS_URL . '/js/create-form.js', array('jquery'));
100
  wp_enqueue_script('ppress-content-control', PPRESS_ASSETS_URL . '/js/content-control.js', array('jquery'));
101
  wp_enqueue_script(
96
  wp_enqueue_script('ppress-clipboardjs', PPRESS_ASSETS_URL . '/js/clipboard.min.js');
97
 
98
  wp_enqueue_script('ppress-admin-scripts', PPRESS_ASSETS_URL . '/js/admin.js', array('jquery', 'jquery-ui-sortable'));
99
+
100
+ wp_localize_script('ppress-admin-scripts', 'ppress_admin_globals', [
101
+ 'nonce' => wp_create_nonce('ppress-admin-nonce')
102
+ ]);
103
+
104
  wp_enqueue_script('ppress-create-form', PPRESS_ASSETS_URL . '/js/create-form.js', array('jquery'));
105
  wp_enqueue_script('ppress-content-control', PPRESS_ASSETS_URL . '/js/content-control.js', array('jquery'));
106
  wp_enqueue_script(
src/ShortcodeParser/Builder/builder-preview.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
- // if ajax post request is received return the parsed shortcode
3
- use ProfilePress\Core\ShortcodeParser\Builder\FrontendProfileBuilder;
4
-
5
- if ( ! isset($_POST['builder_structure']) || empty($_POST['builder_structure'])) {
6
- return;
7
- }
8
- $builder_structure = stripslashes($_POST['builder_structure']);
9
- $builder_css = stripslashes($_POST['builder_css']);
10
- ?>
11
-
12
- <head>
13
- <script type='text/javascript'>var pp_ajax_form = {"disable_ajax_form": "false"};</script>
14
-
15
- <link rel="stylesheet" type="text/css" href="<?= PPRESS_ASSETS_URL . '/css/frontend.min.css' ?>">
16
- <link rel="stylesheet" type="text/css" href="<?= PPRESS_ASSETS_URL . '/select2/select2.min.css' ?>">
17
- <script type="text/javascript" src="<?= includes_url('js/jquery/jquery.js'); ?>"></script>
18
- <script type="text/javascript" src="<?= PPRESS_ASSETS_URL . '/js/frontend.js'; ?>"></script>
19
- <script type="text/javascript" src="<?= PPRESS_ASSETS_URL . '/select2/select2.min.js'; ?>"></script>
20
- <?php if (class_exists('ProfilePress\Libsodium\Recaptcha\Recaptcha')) : ?>
21
- <script type="text/javascript" src="<?= \ProfilePress\Libsodium\Recaptcha\Recaptcha::enqueue_script(true); ?>"></script>
22
- <?php endif; ?>
23
-
24
- <style id="preview-css" type="text/css"><?= $builder_css ?></style>
25
- </head>
26
- <body>
27
- <?php
28
- FrontendProfileBuilder::get_instance();
29
- echo do_shortcode($builder_structure);
30
- ?>
31
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/ShortcodeParser/MyAccount/MyAccountTag.php CHANGED
@@ -239,8 +239,6 @@ class MyAccountTag extends FormProcessor
239
  }
240
  }
241
  }
242
-
243
- $this->remove_post_query();
244
  }
245
 
246
  public function parse_request()
239
  }
240
  }
241
  }
 
 
242
  }
243
 
244
  public function parse_request()
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitf1f8ec9023d123f9876c568dd7243be3::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -29,7 +29,7 @@ private static $installed = array (
29
  'aliases' =>
30
  array (
31
  ),
32
- 'reference' => '5aec8232e0a7af90878aa0d9ee65903780d7f258',
33
  'name' => '__root__',
34
  ),
35
  'versions' =>
@@ -41,7 +41,7 @@ private static $installed = array (
41
  'aliases' =>
42
  array (
43
  ),
44
- 'reference' => '5aec8232e0a7af90878aa0d9ee65903780d7f258',
45
  ),
46
  'collizo4sky/persist-admin-notices-dismissal' =>
47
  array (
29
  'aliases' =>
30
  array (
31
  ),
32
+ 'reference' => '588f732082c5e996c3f81a115a24a6d4eedf0760',
33
  'name' => '__root__',
34
  ),
35
  'versions' =>
41
  'aliases' =>
42
  array (
43
  ),
44
+ 'reference' => '588f732082c5e996c3f81a115a24a6d4eedf0760',
45
  ),
46
  'collizo4sky/persist-admin-notices-dismissal' =>
47
  array (
vendor/composer/autoload_classmap.php CHANGED
@@ -89,14 +89,6 @@ return array(
89
  'ProfilePress\\Core\\Admin\\SettingsPages\\IDUserColumn' => $baseDir . '/src/Admin/SettingsPages/IDUserColumn.php',
90
  'ProfilePress\\Core\\Admin\\SettingsPages\\MemberDirectories' => $baseDir . '/src/Admin/SettingsPages/MemberDirectories.php',
91
  'ProfilePress\\Core\\Admin\\SettingsPages\\MembersDirectoryList' => $baseDir . '/src/Admin/SettingsPages/MembersDirectoryList.php',
92
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeEditProfile\\EditShortcodeEditProfile' => $baseDir . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php',
93
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeLogin\\EditShortcodeLogin' => $baseDir . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php',
94
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeMelange\\EditShortcodeMelange' => $baseDir . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php',
95
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeMemberDirectories\\EditShortcodeMemberDirectories' => $baseDir . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/EditShortcodeMemberDirectories.php',
96
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodePasswordReset\\EditShortcodePasswordReset' => $baseDir . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php',
97
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeRegistration\\EditShortcodeRegistration' => $baseDir . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/EditShortcodeRegistration.php',
98
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeUserProfile\\EditShortcodeUserProfile' => $baseDir . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php',
99
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\ShortcodeInserterTrait' => $baseDir . '/src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php',
100
  'ProfilePress\\Core\\Admin\\SettingsPages\\ToolsSettingsPage' => $baseDir . '/src/Admin/SettingsPages/ToolsSettingsPage.php',
101
  'ProfilePress\\Core\\Base' => $baseDir . '/src/Base.php',
102
  'ProfilePress\\Core\\Classes\\AdminNotices' => $baseDir . '/src/Classes/AdminNotices.php',
89
  'ProfilePress\\Core\\Admin\\SettingsPages\\IDUserColumn' => $baseDir . '/src/Admin/SettingsPages/IDUserColumn.php',
90
  'ProfilePress\\Core\\Admin\\SettingsPages\\MemberDirectories' => $baseDir . '/src/Admin/SettingsPages/MemberDirectories.php',
91
  'ProfilePress\\Core\\Admin\\SettingsPages\\MembersDirectoryList' => $baseDir . '/src/Admin/SettingsPages/MembersDirectoryList.php',
 
 
 
 
 
 
 
 
92
  'ProfilePress\\Core\\Admin\\SettingsPages\\ToolsSettingsPage' => $baseDir . '/src/Admin/SettingsPages/ToolsSettingsPage.php',
93
  'ProfilePress\\Core\\Base' => $baseDir . '/src/Base.php',
94
  'ProfilePress\\Core\\Classes\\AdminNotices' => $baseDir . '/src/Classes/AdminNotices.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire35a2606b24b2ec8354fcabef156c5304($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire35a2606b24b2ec8354fcabef156c5304($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitf1f8ec9023d123f9876c568dd7243be3
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInitf1f8ec9023d123f9876c568dd7243be3', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
+ spl_autoload_unregister(array('ComposerAutoloaderInitf1f8ec9023d123f9876c568dd7243be3', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInitf1f8ec9023d123f9876c568dd7243be3::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInitf1f8ec9023d123f9876c568dd7243be3::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequiref1f8ec9023d123f9876c568dd7243be3($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequiref1f8ec9023d123f9876c568dd7243be3($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit35a2606b24b2ec8354fcabef156c5304
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
@@ -122,14 +122,6 @@ class ComposerStaticInit35a2606b24b2ec8354fcabef156c5304
122
  'ProfilePress\\Core\\Admin\\SettingsPages\\IDUserColumn' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/IDUserColumn.php',
123
  'ProfilePress\\Core\\Admin\\SettingsPages\\MemberDirectories' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/MemberDirectories.php',
124
  'ProfilePress\\Core\\Admin\\SettingsPages\\MembersDirectoryList' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/MembersDirectoryList.php',
125
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeEditProfile\\EditShortcodeEditProfile' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeEditProfile/EditShortcodeEditProfile.php',
126
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeLogin\\EditShortcodeLogin' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeLogin/EditShortcodeLogin.php',
127
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeMelange\\EditShortcodeMelange' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMelange/EditShortcodeMelange.php',
128
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeMemberDirectories\\EditShortcodeMemberDirectories' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeMemberDirectories/EditShortcodeMemberDirectories.php',
129
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodePasswordReset\\EditShortcodePasswordReset' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodePasswordReset/EditShortcodePasswordReset.php',
130
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeRegistration\\EditShortcodeRegistration' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeRegistration/EditShortcodeRegistration.php',
131
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\EditShortcodeUserProfile\\EditShortcodeUserProfile' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ShortcodeBuilder/EditShortcodeUserProfile/EditShortcodeUserProfile.php',
132
- 'ProfilePress\\Core\\Admin\\SettingsPages\\ShortcodeBuilder\\ShortcodeInserterTrait' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ShortcodeBuilder/ShortcodeInserterTrait.php',
133
  'ProfilePress\\Core\\Admin\\SettingsPages\\ToolsSettingsPage' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ToolsSettingsPage.php',
134
  'ProfilePress\\Core\\Base' => __DIR__ . '/../..' . '/src/Base.php',
135
  'ProfilePress\\Core\\Classes\\AdminNotices' => __DIR__ . '/../..' . '/src/Classes/AdminNotices.php',
@@ -290,9 +282,9 @@ class ComposerStaticInit35a2606b24b2ec8354fcabef156c5304
290
  public static function getInitializer(ClassLoader $loader)
291
  {
292
  return \Closure::bind(function () use ($loader) {
293
- $loader->prefixLengthsPsr4 = ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::$prefixLengthsPsr4;
294
- $loader->prefixDirsPsr4 = ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::$prefixDirsPsr4;
295
- $loader->classMap = ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::$classMap;
296
 
297
  }, null, ClassLoader::class);
298
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitf1f8ec9023d123f9876c568dd7243be3
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
122
  'ProfilePress\\Core\\Admin\\SettingsPages\\IDUserColumn' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/IDUserColumn.php',
123
  'ProfilePress\\Core\\Admin\\SettingsPages\\MemberDirectories' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/MemberDirectories.php',
124
  'ProfilePress\\Core\\Admin\\SettingsPages\\MembersDirectoryList' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/MembersDirectoryList.php',
 
 
 
 
 
 
 
 
125
  'ProfilePress\\Core\\Admin\\SettingsPages\\ToolsSettingsPage' => __DIR__ . '/../..' . '/src/Admin/SettingsPages/ToolsSettingsPage.php',
126
  'ProfilePress\\Core\\Base' => __DIR__ . '/../..' . '/src/Base.php',
127
  'ProfilePress\\Core\\Classes\\AdminNotices' => __DIR__ . '/../..' . '/src/Classes/AdminNotices.php',
282
  public static function getInitializer(ClassLoader $loader)
283
  {
284
  return \Closure::bind(function () use ($loader) {
285
+ $loader->prefixLengthsPsr4 = ComposerStaticInitf1f8ec9023d123f9876c568dd7243be3::$prefixLengthsPsr4;
286
+ $loader->prefixDirsPsr4 = ComposerStaticInitf1f8ec9023d123f9876c568dd7243be3::$prefixDirsPsr4;
287
+ $loader->classMap = ComposerStaticInitf1f8ec9023d123f9876c568dd7243be3::$classMap;
288
 
289
  }, null, ClassLoader::class);
290
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '5aec8232e0a7af90878aa0d9ee65903780d7f258',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
@@ -18,7 +18,7 @@
18
  'aliases' =>
19
  array (
20
  ),
21
- 'reference' => '5aec8232e0a7af90878aa0d9ee65903780d7f258',
22
  ),
23
  'collizo4sky/persist-admin-notices-dismissal' =>
24
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '588f732082c5e996c3f81a115a24a6d4eedf0760',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
18
  'aliases' =>
19
  array (
20
  ),
21
+ 'reference' => '588f732082c5e996c3f81a115a24a6d4eedf0760',
22
  ),
23
  'collizo4sky/persist-admin-notices-dismissal' =>
24
  array (
wp-user-avatar.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ProfilePress
4
  * Plugin URI: https://profilepress.net
5
  * Description: The modern WordPress membership and user profile plugin.
6
- * Version: 3.1.2
7
  * Author: ProfilePress Team
8
  * Author URI: https://profilepress.net
9
  * Text Domain: wp-user-avatar
@@ -14,7 +14,7 @@
14
  defined('ABSPATH') or die("No script kiddies please!");
15
 
16
  define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
17
- define('PPRESS_VERSION_NUMBER', '3.1.2');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20
 
3
  * Plugin Name: ProfilePress
4
  * Plugin URI: https://profilepress.net
5
  * Description: The modern WordPress membership and user profile plugin.
6
+ * Version: 3.1.3
7
  * Author: ProfilePress Team
8
  * Author URI: https://profilepress.net
9
  * Text Domain: wp-user-avatar
14
  defined('ABSPATH') or die("No script kiddies please!");
15
 
16
  define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
17
+ define('PPRESS_VERSION_NUMBER', '3.1.3');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20