WP User Avatar - Version 3.1.5

Version Description

  • Added form shortcode copying to form builder
  • Improvement: Only load tab js when needed.
  • Fixed issue where gravatar wasnt shown for users with avatar.
  • Fixed detected builder styling issues.
  • Added default attribute to profile cpf shortcode.
  • Added edit to form action links.
  • Added filter to disable tinymce shortcode modal in post editor.
  • Added notice when avatar display is disabled.
  • Redirect myaccount page to login page when user not logged in.
  • Switch shortcode redirection to html/js redirect method.

See the changelog file for full change log information.

Download this release

Release Info

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

Code changes from version 3.1.4 to 3.1.5

assets/css/admin-style.css CHANGED
@@ -1,5 +1,30 @@
1
  @import url('https://fonts.googleapis.com/css?family=Open+Sans|Rye|Work+Sans');
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  .pp-form-listing .pp_forms th#shortcode {
4
  width: 33%;
5
  }
@@ -756,7 +781,8 @@
756
  margin-right: auto;
757
  }
758
 
759
- .pp-dnd-form-builder-wrap span.pp-form-buider-settings-field-type {
 
760
  -webkit-font-smoothing: antialiased;
761
  background-color: #f2f2f2;
762
  border: 2px solid transparent;
@@ -1287,7 +1313,7 @@ textarea.wp-editor-area {
1287
  line-height: 24px;
1288
  }
1289
 
1290
- .ppress_settings_data.pp-email-notifications .column-configure {
1291
  width: 60px;
1292
  text-align: center;
1293
  }
1
  @import url('https://fonts.googleapis.com/css?family=Open+Sans|Rye|Work+Sans');
2
 
3
+ .pp-dnd-form-builder-wrap #titlediv span.shortcode input,
4
+ .ppSCB-margin-r #titlediv span.shortcode input {
5
+ font-size: 12px;
6
+ border: none;
7
+ box-shadow: none;
8
+ padding: 4px 8px;
9
+ margin: 0;
10
+ }
11
+
12
+ .pp-dnd-form-builder-wrap #titlediv span.shortcode input,
13
+ .ppSCB-margin-r #titlediv span.shortcode input {
14
+ background: transparent;
15
+ }
16
+
17
+ .pp-dnd-form-builder-wrap #titlediv span.shortcode input,
18
+ .ppSCB-margin-r #titlediv span.shortcode input {
19
+ color: #fff;
20
+ }
21
+
22
+ .pp-dnd-form-builder-wrap #titlediv span.shortcode,
23
+ .ppSCB-margin-r #titlediv span.shortcode {
24
+ display: block;
25
+ margin: 2px 0;
26
+ }
27
+
28
  .pp-form-listing .pp_forms th#shortcode {
29
  width: 33%;
30
  }
781
  margin-right: auto;
782
  }
783
 
784
+ .pp-dnd-form-builder-wrap span.pp-form-buider-settings-field-type,
785
+ .pp-form-buider-settings-popup-container span.pp-form-buider-settings-field-type {
786
  -webkit-font-smoothing: antialiased;
787
  background-color: #f2f2f2;
788
  border: 2px solid transparent;
1313
  line-height: 24px;
1314
  }
1315
 
1316
+ .ppress_settings_data .pp-email-notifications .column-configure {
1317
  width: 60px;
1318
  text-align: center;
1319
  }
assets/css/form-builder.css CHANGED
@@ -480,6 +480,8 @@ ol.pp-form-builder-field-type li .button {
480
  width: 100%;
481
  padding-right: 5px;
482
  text-align: center;
 
 
483
  }
484
 
485
  .pp-form-builder-body {
480
  width: 100%;
481
  padding-right: 5px;
482
  text-align: center;
483
+ overflow: auto;
484
+ text-overflow: ellipsis;
485
  }
486
 
487
  .pp-form-builder-body {
changelog.txt CHANGED
@@ -1,4 +1,16 @@
1
- = 3.1.4 =
 
 
 
 
 
 
 
 
 
 
 
 
2
  * Security fix: Ensures only valid custom user meta are updated.
3
  * Security fix: validate files and images correctly before they are uploaded.
4
  * Fix: Avatar upload now respects resize settings when using frontend forms.
1
+ = 3.1.5 =
2
+ * Added form shortcode copying to form builder
3
+ * Improvement: Only load tab js when needed.
4
+ * Fixed issue where gravatar wasn’t shown for users with avatar.
5
+ * Fixed detected builder styling issues.
6
+ * Added default attribute to profile cpf shortcode.
7
+ * Added edit to form action links.
8
+ * Added filter to disable tinymce shortcode modal in post editor.
9
+ * Added notice when avatar display is disabled.
10
+ * Redirect myaccount page to login page when user not logged in.
11
+ * Switch shortcode redirection to html/js redirect method.
12
+
13
+ = 3.1.4 =
14
  * Security fix: Ensures only valid custom user meta are updated.
15
  * Security fix: validate files and images correctly before they are uploaded.
16
  * Fix: Avatar upload now respects resize settings when using frontend forms.
deprecated/wp-user-avatar/includes/class-wp-user-avatar-functions.php CHANGED
@@ -44,9 +44,6 @@ class WP_User_Avatar_Functions
44
  * Returns true if user has Gravatar-hosted image
45
  *
46
  * @param int|string $id_or_email
47
- * @param bool $has_gravatar
48
- * @param int|string $user
49
- * @param string $email
50
  *
51
  * @return bool $has_gravatar
52
  */
@@ -58,7 +55,23 @@ class WP_User_Avatar_Functions
58
  // Decide if check gravatar required or not.
59
  if (trim($avatar_default) != 'wp_user_avatar') return true;
60
 
61
- $email = get_userdata(ppress_var_obj(UserAvatar::get_avatar_user_id($id_or_email), 'user_email'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
  if ( ! empty($email)) {
64
 
@@ -86,7 +99,7 @@ class WP_User_Avatar_Functions
86
  *
87
  * @param int $attachment_id
88
  * @param int|string $size
89
- * @param bool $icon
90
  * @param string $attr
91
  *
92
  * @return string
@@ -112,7 +125,7 @@ class WP_User_Avatar_Functions
112
  *
113
  * @param int $attachment_id
114
  * @param int|string $size
115
- * @param bool $icon
116
  *
117
  * @return array
118
  */
@@ -135,9 +148,6 @@ class WP_User_Avatar_Functions
135
  * Returns true if user has wp_user_avatar
136
  *
137
  * @param int|string $id_or_email
138
- * @param bool $has_wpua
139
- * @param object $user
140
- * @param int $user_id
141
  *
142
  * @return bool
143
  */
@@ -147,7 +157,7 @@ class WP_User_Avatar_Functions
147
  }
148
 
149
  /**
150
- * Retrive default image url set by admin.
151
  */
152
  public function wpua_default_image($size)
153
  {
@@ -242,8 +252,6 @@ class WP_User_Avatar_Functions
242
  *
243
  * @param int|string $id_or_email
244
  * @param int|string $size
245
- * @param string $align
246
- * @param string $alt
247
  *
248
  * @return string $avatar
249
  */
44
  * Returns true if user has Gravatar-hosted image
45
  *
46
  * @param int|string $id_or_email
 
 
 
47
  *
48
  * @return bool $has_gravatar
49
  */
55
  // Decide if check gravatar required or not.
56
  if (trim($avatar_default) != 'wp_user_avatar') return true;
57
 
58
+ $email = '';
59
+
60
+ if ( ! is_object($id_or_email) && ! empty($id_or_email)) {
61
+ // Find user by ID or e-mail address
62
+ $user = is_numeric($id_or_email) ? get_user_by('id', $id_or_email) : get_user_by('email', $id_or_email);
63
+
64
+ // Get registered user e-mail address
65
+ $email = ! empty($user) ? $user->user_email : '';
66
+ }
67
+
68
+ if ('' == $email) {
69
+ if ( ! is_numeric($id_or_email) && ! is_object($id_or_email)) {
70
+ $email = $id_or_email;
71
+ } elseif ( ! is_numeric($id_or_email) && is_object($id_or_email)) {
72
+ $email = $id_or_email->comment_author_email;
73
+ }
74
+ }
75
 
76
  if ( ! empty($email)) {
77
 
99
  *
100
  * @param int $attachment_id
101
  * @param int|string $size
102
+ * @param int $icon
103
  * @param string $attr
104
  *
105
  * @return string
125
  *
126
  * @param int $attachment_id
127
  * @param int|string $size
128
+ * @param int $icon
129
  *
130
  * @return array
131
  */
148
  * Returns true if user has wp_user_avatar
149
  *
150
  * @param int|string $id_or_email
 
 
 
151
  *
152
  * @return bool
153
  */
157
  }
158
 
159
  /**
160
+ * Retrieve default image url set by admin.
161
  */
162
  public function wpua_default_image($size)
163
  {
252
  *
253
  * @param int|string $id_or_email
254
  * @param int|string $size
 
 
255
  *
256
  * @return string $avatar
257
  */
deprecated/wp-user-avatar/includes/wpua-options-page.php CHANGED
@@ -7,6 +7,14 @@ $hide_resize = (bool)$wpua_resize_upload != 1 ? ' style="display:none;"' : "";
7
  ?>
8
 
9
  <div class="wrap">
 
 
 
 
 
 
 
 
10
  <table>
11
  <tr valign="top">
12
  <td align="top">
7
  ?>
8
 
9
  <div class="wrap">
10
+ <?php if (get_option('show_avatars') != '1') : ?>
11
+ <div class="ppress-settings-page-notice">
12
+ <?php
13
+ printf(esc_html__('Avatar is currently disabled. Kindly %senable it on "Avatar Display" section%s.'),
14
+ '<a target="_blank" href="' . admin_url('options-discussion.php') . '">', '</a>');
15
+ ?>
16
+ </div>
17
+ <?php endif; ?>
18
  <table>
19
  <tr valign="top">
20
  <td align="top">
deprecated/wp-user-avatar/wp-user-avatar.php CHANGED
@@ -62,9 +62,10 @@ class PPRESS_WP_User_Avatar_Setup
62
  require_once(WPUA_INC . 'class-wp-user-avatar-update.php');
63
  require_once(WPUA_INC . 'class-wp-user-avatar-widget.php');
64
 
65
- // Load TinyMCE only if enabled
66
- require_once(WPUA_INC . 'wpua-tinymce.php');
67
-
 
68
  }
69
  }
70
 
62
  require_once(WPUA_INC . 'class-wp-user-avatar-update.php');
63
  require_once(WPUA_INC . 'class-wp-user-avatar-widget.php');
64
 
65
+ if (apply_filters('wpua_enable_tinymce_modal', true)) {
66
+ // Load TinyMCE only if enabled
67
+ require_once(WPUA_INC . 'wpua-tinymce.php');
68
+ }
69
  }
70
  }
71
 
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.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
- "POT-Creation-Date: 2021-05-30 08:27:43+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -46,7 +46,7 @@ msgstr ""
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
 
@@ -80,8 +80,8 @@ msgstr ""
80
 
81
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:252
82
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:253
83
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:111
84
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:115
85
  msgid "Default Profile Picture"
86
  msgstr ""
87
 
@@ -125,7 +125,7 @@ msgid "ProfilePress Avatar Upload"
125
  msgstr ""
126
 
127
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-widget.php:56
128
- #: src/Widgets/Form.php:65 src/Widgets/TabbedWidget.php:461
129
  #: src/Widgets/UserPanel.php:74
130
  msgid "Title:"
131
  msgstr ""
@@ -144,8 +144,8 @@ msgid "Upload"
144
  msgstr ""
145
 
146
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar.php:151
147
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:30
148
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:62
149
  msgid "Maximum upload file size: %d%s."
150
  msgstr ""
151
 
@@ -335,57 +335,63 @@ msgstr ""
335
  msgid "Image"
336
  msgstr ""
337
 
338
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:21
 
 
 
 
 
 
339
  msgid "Cover Image Maximum File Size"
340
  msgstr ""
341
 
342
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:28
343
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:60
344
  msgid "%s exceeds the maximum upload size for this site."
345
  msgstr ""
346
 
347
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:39
348
  msgid "Default Cover Image"
349
  msgstr ""
350
 
351
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:45
352
  msgid ""
353
  "Please make sure that the default cover is large enough (min. 1000px in "
354
  "width) and respects the ratio you are using for cover images."
355
  msgstr ""
356
 
357
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:53
358
  msgid "Profile Picture Maximum File Size"
359
  msgstr ""
360
 
361
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:67
362
  msgid "Resize avatars on upload"
363
  msgstr ""
364
 
365
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:71
366
  #: src/Themes/DragDrop/AbstractBuildScratch.php:83
367
  #: src/Themes/DragDrop/AbstractBuildScratch.php:224
368
  #: src/Themes/DragDrop/AbstractBuildScratch.php:499
369
  msgid "Width"
370
  msgstr ""
371
 
372
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:73
373
  msgid "Height"
374
  msgstr ""
375
 
376
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:77
377
  msgid "Crop avatars to exact dimensions"
378
  msgstr ""
379
 
380
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:86
381
  msgid "Disable Gravatar"
382
  msgstr ""
383
 
384
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:94
385
  msgid "Disable Gravatar and use only local avatars"
386
  msgstr ""
387
 
388
- #: deprecated/wp-user-avatar/includes/wpua-options-page.php:116
389
  msgid ""
390
  "For users without a custom avatar of their own, you can either display a "
391
  "generic logo or a generated one based on their e-mail address."
@@ -446,9 +452,9 @@ msgstr ""
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:1226
450
- #: src/Functions/GlobalFunctions.php:1252
451
- #: src/Functions/GlobalFunctions.php:1274
452
  msgid "Select..."
453
  msgstr ""
454
 
@@ -480,7 +486,6 @@ 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."
@@ -490,12 +495,18 @@ msgstr ""
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
 
@@ -510,48 +521,52 @@ msgstr ""
510
  msgid "Form title cannot empty"
511
  msgstr ""
512
 
513
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:187
 
 
 
 
514
  msgid "Changes saved"
515
  msgstr ""
516
 
517
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1174
518
  msgid "Select Icon"
519
  msgstr ""
520
 
521
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1202
522
- #: src/Functions/GlobalFunctions.php:1277
523
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:202
524
  msgid "Standard Fields"
525
  msgstr ""
526
 
527
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1203
528
  msgid "Extra Fields"
529
  msgstr ""
530
 
531
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1205
532
- #: src/Classes/ExtensionManager.php:53 src/Functions/GlobalFunctions.php:1280
533
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:216
534
  msgid "Custom Fields"
535
  msgstr ""
536
 
537
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1206
538
  msgid "WooCommerce Billing Address"
539
  msgstr ""
540
 
541
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1207
542
  msgid "WooCommerce Shipping Address"
543
  msgstr ""
544
 
545
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1230
546
  msgid "No custom field available. %sClick here to create one%s."
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
@@ -559,66 +574,72 @@ msgstr ""
559
  msgid "Save Changes"
560
  msgstr ""
561
 
562
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1277
 
 
 
 
 
 
563
  msgid "Delete Form"
564
  msgstr ""
565
 
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
 
576
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1342
577
  msgid "Role users registered through this form will be assigned."
578
  msgstr ""
579
 
580
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1349
581
  msgid "Username Requirement"
582
  msgstr ""
583
 
584
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1350
585
  msgid "Check to disable username requirement"
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."
592
  msgstr ""
593
 
594
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1358
595
  #: src/Admin/SettingsPages/GeneralSettings.php:120
596
  msgid "Registration Settings"
597
  msgstr ""
598
 
599
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1381
600
  msgid "Edit Profile Settings"
601
  msgstr ""
602
 
603
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1397
604
  #: src/Classes/ExtensionManager.php:77
605
  msgid "Passwordless Login"
606
  msgstr ""
607
 
608
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1398
609
  msgid "Check to make this a passwordless login form."
610
  msgstr ""
611
 
612
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1405
613
  #: src/Admin/SettingsPages/GeneralSettings.php:134
614
  msgid "Login Settings"
615
  msgstr ""
616
 
617
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1428
618
  msgid "Password Reset Settings"
619
  msgstr ""
620
 
621
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1449
622
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CheckboxList.php:35
623
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:35
624
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:50
@@ -632,34 +653,34 @@ msgstr ""
632
  msgid "Label"
633
  msgstr ""
634
 
635
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1455
636
  msgid "Processing Label"
637
  msgstr ""
638
 
639
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1462
640
  msgid "Submit Button"
641
  msgstr ""
642
 
643
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1469
644
  msgid "Appearance"
645
  msgstr ""
646
 
647
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1476
648
  msgid "Colors"
649
  msgstr ""
650
 
651
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1504
652
  #: src/Themes/DragDrop/AbstractBuildScratch.php:533
653
  #: src/Themes/DragDrop/Login/PerfectoLite.php:51
654
  #: src/Themes/DragDrop/Registration/PerfectoLite.php:53
655
  msgid "Text"
656
  msgstr ""
657
 
658
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1505
659
  msgid "Visual"
660
  msgstr ""
661
 
662
- #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1506
663
  msgid "Add Media"
664
  msgstr ""
665
 
@@ -688,8 +709,8 @@ msgid "Apply Changes"
688
  msgstr ""
689
 
690
  #: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:235
691
- #: src/Admin/SettingsPages/FormList.php:234
692
- #: src/Admin/SettingsPages/FormList.php:310
693
  #: src/Admin/SettingsPages/GeneralSettings.php:111
694
  #: src/ContentProtection/WPListTable.php:96
695
  #: src/ContentProtection/WPListTable.php:291
@@ -703,7 +724,7 @@ msgstr ""
703
 
704
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Bio.php:22
705
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Bio.php:22
706
- #: src/Functions/GlobalFunctions.php:1264
707
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:211
708
  #: src/Themes/DragDrop/AbstractTheme.php:189
709
  msgid "Biography"
@@ -953,7 +974,7 @@ msgstr ""
953
 
954
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DisplayName.php:22
955
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/DisplayName.php:22
956
- #: src/Functions/GlobalFunctions.php:1262
957
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:318
958
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:208
959
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:460
@@ -978,17 +999,17 @@ msgstr ""
978
 
979
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Email.php:22
980
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Email.php:22
981
- #: src/Functions/GlobalFunctions.php:1263
982
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:210
983
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:206
984
  #: src/Themes/DragDrop/AbstractTheme.php:162
985
- #: src/Themes/DragDrop/AbstractTheme.php:221 src/Widgets/TabbedWidget.php:130
986
  msgid "Email Address"
987
  msgstr ""
988
 
989
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/FirstName.php:22
990
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/FirstName.php:22
991
- #: src/Functions/GlobalFunctions.php:1259
992
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:350
993
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:209
994
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:461
@@ -1008,7 +1029,7 @@ msgstr ""
1008
 
1009
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/LastName.php:22
1010
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/LastName.php:22
1011
- #: src/Functions/GlobalFunctions.php:1260
1012
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:383
1013
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:210
1014
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:462
@@ -1030,7 +1051,7 @@ msgstr ""
1030
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/PasswordReset/Userlogin.php:22
1031
  #: src/ShortcodeParser/Builder/PasswordResetBuilder.php:33
1032
  #: src/Themes/DragDrop/AbstractTheme.php:202
1033
- #: src/Themes/DragDrop/AbstractTheme.php:213 src/Widgets/TabbedWidget.php:126
1034
  msgid "Username or Email"
1035
  msgstr ""
1036
 
@@ -1041,7 +1062,7 @@ msgstr ""
1041
 
1042
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Nickname.php:22
1043
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Nickname.php:22
1044
- #: src/Functions/GlobalFunctions.php:1261
1045
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:286
1046
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:300
1047
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:138
@@ -1197,13 +1218,13 @@ msgstr ""
1197
 
1198
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Username.php:22
1199
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Username.php:22
1200
- #: src/Functions/GlobalFunctions.php:1258
1201
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:135
1202
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:463
1203
  #: src/Themes/DragDrop/AbstractTheme.php:159
1204
  #: src/Themes/DragDrop/AbstractTheme.php:218
1205
  #: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:105
1206
- #: src/Widgets/TabbedWidget.php:123
1207
  msgid "Username"
1208
  msgstr ""
1209
 
@@ -1650,7 +1671,7 @@ msgid "No form is currently available. %sConsider creating one%s"
1650
  msgstr ""
1651
 
1652
  #: src/Admin/SettingsPages/FormList.php:194
1653
- #: src/Admin/SettingsPages/FormList.php:266
1654
  msgid "Shortcode"
1655
  msgstr ""
1656
 
@@ -1662,18 +1683,23 @@ msgstr ""
1662
  msgid "Date"
1663
  msgstr ""
1664
 
1665
- #: src/Admin/SettingsPages/FormList.php:235
 
 
 
 
 
1666
  #: src/ContentProtection/WPListTable.php:85
1667
  msgid "Duplicate"
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"
1674
  msgstr ""
1675
 
1676
- #: src/Admin/SettingsPages/FormList.php:268
1677
  msgid "Drag & Drop"
1678
  msgstr ""
1679
 
@@ -1708,7 +1734,7 @@ msgstr ""
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:106
1712
  msgid "Login"
1713
  msgstr ""
1714
 
@@ -1996,7 +2022,7 @@ msgid "Redirection Settings"
1996
  msgstr ""
1997
 
1998
  #: src/Admin/SettingsPages/GeneralSettings.php:231
1999
- #: src/Widgets/TabbedWidget.php:212
2000
  msgid "Log out"
2001
  msgstr ""
2002
 
@@ -2760,7 +2786,7 @@ msgid "You must be logged in to preview a form."
2760
  msgstr ""
2761
 
2762
  #: src/Classes/FormRepository.php:166 src/Themes/DragDrop/AbstractTheme.php:124
2763
- #: src/Widgets/TabbedWidget.php:86
2764
  msgid "Processing"
2765
  msgstr ""
2766
 
@@ -3063,10 +3089,6 @@ msgstr ""
3063
  msgid "Protected Contents"
3064
  msgstr ""
3065
 
3066
- #: src/ContentProtection/WPListTable.php:84
3067
- msgid "Edit"
3068
- msgstr ""
3069
-
3070
  #: src/ContentProtection/WPListTable.php:89
3071
  msgid "Deactivate"
3072
  msgstr ""
@@ -3184,46 +3206,46 @@ msgstr ""
3184
  msgid "[%s] Login Details"
3185
  msgstr ""
3186
 
3187
- #: src/Functions/GlobalFunctions.php:1089
3188
  msgid ""
3189
  "It must be unique for each field, not a reserve text, in lowercase letters "
3190
  "only with an underscore ( _ ) separating words e.g job_title"
3191
  msgstr ""
3192
 
3193
- #: src/Functions/GlobalFunctions.php:1210
3194
  msgid "%s (WooCommerce Billing Address)"
3195
  msgstr ""
3196
 
3197
- #: src/Functions/GlobalFunctions.php:1214
3198
  msgid "%s (WooCommerce Shipping Address)"
3199
  msgstr ""
3200
 
3201
- #: src/Functions/GlobalFunctions.php:1256
3202
  msgid "First and Last Names"
3203
  msgstr ""
3204
 
3205
- #: src/Functions/GlobalFunctions.php:1257
3206
  msgid "Last and First Names"
3207
  msgstr ""
3208
 
3209
- #: src/Functions/GlobalFunctions.php:1265
3210
  msgid "Registration Date"
3211
  msgstr ""
3212
 
3213
- #: src/Functions/GlobalFunctions.php:1382
3214
  msgid "There was an problem while verifying your file."
3215
  msgstr ""
3216
 
3217
- #: src/Functions/GlobalFunctions.php:1387
3218
  msgid "Sorry, this file extension is not permitted for security reasons."
3219
  msgstr ""
3220
 
3221
- #: src/Functions/GlobalFunctions.php:1391
3222
  msgid "Sorry, this file type is not permitted for security reasons."
3223
  msgstr ""
3224
 
3225
- #: src/Functions/GlobalFunctions.php:1395
3226
- #: src/Functions/GlobalFunctions.php:1399
3227
  msgid "Error: The file you uploaded is not accepted on our website."
3228
  msgstr ""
3229
 
@@ -4229,7 +4251,7 @@ msgstr ""
4229
 
4230
  #: src/NavigationMenuLinks/Backend.php:29 src/RegisterActivation/Base.php:155
4231
  #: src/ShortcodeParser/Builder/LoginFormBuilder.php:166
4232
- #: src/Themes/DragDrop/AbstractTheme.php:104 src/Widgets/TabbedWidget.php:87
4233
  msgid "Log In"
4234
  msgstr ""
4235
 
@@ -4243,7 +4265,7 @@ msgstr ""
4243
  #: src/NavigationMenuLinks/Backend.php:31 src/RegisterActivation/Base.php:159
4244
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1015
4245
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:172
4246
- #: src/Widgets/TabbedWidget.php:88
4247
  msgid "Sign Up"
4248
  msgstr ""
4249
 
@@ -4400,7 +4422,7 @@ msgstr ""
4400
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:814
4401
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:873
4402
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:922
4403
- #: src/ShortcodeParser/Builder/FrontendProfileBuilder.php:349
4404
  msgid "Field key is missing"
4405
  msgstr ""
4406
 
@@ -4448,13 +4470,13 @@ msgstr ""
4448
  msgid "You have not made any comment."
4449
  msgstr ""
4450
 
4451
- #: src/ShortcodeParser/Builder/FrontendProfileBuilder.php:648
4452
  msgid "No post written yet."
4453
  msgstr ""
4454
 
4455
  #: src/ShortcodeParser/Builder/PasswordResetBuilder.php:103
4456
  #: src/ShortcodeParser/Builder/PasswordResetBuilder.php:335
4457
- #: src/Widgets/TabbedWidget.php:89
4458
  msgid "Get New Password"
4459
  msgstr ""
4460
 
@@ -4527,7 +4549,7 @@ msgstr ""
4527
  msgid "Email Notifications"
4528
  msgstr ""
4529
 
4530
- #: src/ShortcodeParser/MyAccount/MyAccountTag.php:484
4531
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:87
4532
  msgid "Cover Image (min. width: 1000px)"
4533
  msgstr ""
@@ -4685,7 +4707,7 @@ msgid "Lost your password?"
4685
  msgstr ""
4686
 
4687
  #: src/Themes/DragDrop/AbstractBuildScratch.php:179
4688
- #: src/Themes/DragDrop/AbstractTheme.php:109 src/Widgets/TabbedWidget.php:109
4689
  msgid "Register"
4690
  msgstr ""
4691
 
@@ -5211,7 +5233,7 @@ msgid "See all Posts"
5211
  msgstr ""
5212
 
5213
  #: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:378
5214
- #: src/Widgets/TabbedWidget.php:209
5215
  msgid "Edit your profile"
5216
  msgstr ""
5217
 
@@ -5299,47 +5321,47 @@ msgstr ""
5299
  msgid "A tabbed login, registration and lost password widget"
5300
  msgstr ""
5301
 
5302
- #: src/Widgets/TabbedWidget.php:112
5303
  msgid "Forgot?"
5304
  msgstr ""
5305
 
5306
- #: src/Widgets/TabbedWidget.php:206 src/Widgets/UserPanel.php:50
5307
  msgid "Welcome %s"
5308
  msgstr ""
5309
 
5310
- #: src/Widgets/TabbedWidget.php:226
5311
  msgid "Login / Sign up"
5312
  msgstr ""
5313
 
5314
- #: src/Widgets/TabbedWidget.php:232
5315
  msgid "Have an account?"
5316
  msgstr ""
5317
 
5318
- #: src/Widgets/TabbedWidget.php:238
5319
  msgid "Don't have an account?"
5320
  msgstr ""
5321
 
5322
- #: src/Widgets/TabbedWidget.php:244
5323
  msgid "Forgot Password?"
5324
  msgstr ""
5325
 
5326
- #: src/Widgets/TabbedWidget.php:467
5327
  msgid "Login text:"
5328
  msgstr ""
5329
 
5330
- #: src/Widgets/TabbedWidget.php:472
5331
  msgid "Registration text:"
5332
  msgstr ""
5333
 
5334
- #: src/Widgets/TabbedWidget.php:477
5335
  msgid "Lost-password text:"
5336
  msgstr ""
5337
 
5338
- #: src/Widgets/TabbedWidget.php:483
5339
  msgid "Automatically login user after successful registration"
5340
  msgstr ""
5341
 
5342
- #: src/Widgets/TabbedWidget.php:489
5343
  msgid "Widget CSS:"
5344
  msgstr ""
5345
 
@@ -5393,9 +5415,9 @@ msgstr ""
5393
  msgid "ProfilePress"
5394
  msgstr ""
5395
 
5396
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.4) #-#-#-#-#
5397
  #. Plugin URI of the plugin/theme
5398
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.4) #-#-#-#-#
5399
  #. Author URI of the plugin/theme
5400
  msgid "https://profilepress.net"
5401
  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.5\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
+ "POT-Creation-Date: 2021-06-14 10:54:23+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
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:493
50
  msgid "Profile Picture"
51
  msgstr ""
52
 
80
 
81
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:252
82
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:253
83
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:119
84
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:123
85
  msgid "Default Profile Picture"
86
  msgstr ""
87
 
125
  msgstr ""
126
 
127
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-widget.php:56
128
+ #: src/Widgets/Form.php:65 src/Widgets/TabbedWidget.php:463
129
  #: src/Widgets/UserPanel.php:74
130
  msgid "Title:"
131
  msgstr ""
144
  msgstr ""
145
 
146
  #: deprecated/wp-user-avatar/includes/class-wp-user-avatar.php:151
147
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:38
148
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:70
149
  msgid "Maximum upload file size: %d%s."
150
  msgstr ""
151
 
335
  msgid "Image"
336
  msgstr ""
337
 
338
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:13
339
+ msgid ""
340
+ "Avatar is currently disabled. Kindly %senable it on \"Avatar Display\" "
341
+ "section%s."
342
+ msgstr ""
343
+
344
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:29
345
  msgid "Cover Image Maximum File Size"
346
  msgstr ""
347
 
348
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:36
349
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:68
350
  msgid "%s exceeds the maximum upload size for this site."
351
  msgstr ""
352
 
353
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:47
354
  msgid "Default Cover Image"
355
  msgstr ""
356
 
357
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:53
358
  msgid ""
359
  "Please make sure that the default cover is large enough (min. 1000px in "
360
  "width) and respects the ratio you are using for cover images."
361
  msgstr ""
362
 
363
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:61
364
  msgid "Profile Picture Maximum File Size"
365
  msgstr ""
366
 
367
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:75
368
  msgid "Resize avatars on upload"
369
  msgstr ""
370
 
371
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:79
372
  #: src/Themes/DragDrop/AbstractBuildScratch.php:83
373
  #: src/Themes/DragDrop/AbstractBuildScratch.php:224
374
  #: src/Themes/DragDrop/AbstractBuildScratch.php:499
375
  msgid "Width"
376
  msgstr ""
377
 
378
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:81
379
  msgid "Height"
380
  msgstr ""
381
 
382
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:85
383
  msgid "Crop avatars to exact dimensions"
384
  msgstr ""
385
 
386
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:94
387
  msgid "Disable Gravatar"
388
  msgstr ""
389
 
390
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:102
391
  msgid "Disable Gravatar and use only local avatars"
392
  msgstr ""
393
 
394
+ #: deprecated/wp-user-avatar/includes/wpua-options-page.php:124
395
  msgid ""
396
  "For users without a custom avatar of their own, you can either display a "
397
  "generic logo or a generated one based on their e-mail address."
452
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
453
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
454
  #: src/Admin/SettingsPages/GeneralSettings.php:234
455
+ #: src/Functions/GlobalFunctions.php:1238
456
+ #: src/Functions/GlobalFunctions.php:1264
457
+ #: src/Functions/GlobalFunctions.php:1286
458
  msgid "Select..."
459
  msgstr ""
460
 
486
  msgstr ""
487
 
488
  #: src/Admin/SettingsPages/AddNewForm.php:63
 
489
  msgid ""
490
  "Code your own from scratch with complete control and flexibility using "
491
  "shortcodes."
495
  msgid "Build Now"
496
  msgstr ""
497
 
498
+ #: src/Admin/SettingsPages/AddNewForm.php:80
499
+ msgid ""
500
+ "Code your own from scratch with complete control and flexibility. %sLearn "
501
+ "more%s."
502
+ msgstr ""
503
+
504
+ #: src/Admin/SettingsPages/AddNewForm.php:86
505
  #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:110
506
  msgid "Upgrade to Premium"
507
  msgstr ""
508
 
509
+ #: src/Admin/SettingsPages/AddNewForm.php:123
510
  msgid "Back to Overview"
511
  msgstr ""
512
 
521
  msgid "Form title cannot empty"
522
  msgstr ""
523
 
524
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:180
525
+ msgid "Form title already exist. Try something else."
526
+ msgstr ""
527
+
528
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:199
529
  msgid "Changes saved"
530
  msgstr ""
531
 
532
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1186
533
  msgid "Select Icon"
534
  msgstr ""
535
 
536
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1214
537
+ #: src/Functions/GlobalFunctions.php:1289
538
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:202
539
  msgid "Standard Fields"
540
  msgstr ""
541
 
542
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1215
543
  msgid "Extra Fields"
544
  msgstr ""
545
 
546
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1217
547
+ #: src/Classes/ExtensionManager.php:53 src/Functions/GlobalFunctions.php:1292
548
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:216
549
  msgid "Custom Fields"
550
  msgstr ""
551
 
552
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1218
553
  msgid "WooCommerce Billing Address"
554
  msgstr ""
555
 
556
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1219
557
  msgid "WooCommerce Shipping Address"
558
  msgstr ""
559
 
560
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1242
561
  msgid "No custom field available. %sClick here to create one%s."
562
  msgstr ""
563
 
564
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1268
565
  msgid "Enter title here"
566
  msgstr ""
567
 
568
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1270
569
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1297
570
  #: src/Admin/SettingsPages/EmailSettings/CustomizerTrait.php:11
571
  #: src/AdminBarDashboardAccess/include.settings-page.php:54
572
  #: src/AdminBarDashboardAccess/include.settings-page.php:109
574
  msgid "Save Changes"
575
  msgstr ""
576
 
577
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1275
578
+ msgid ""
579
+ "Copy this shortcode and paste it into your post, page, or text widget "
580
+ "content:"
581
+ msgstr ""
582
+
583
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1300
584
  msgid "Delete Form"
585
  msgstr ""
586
 
587
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1358
588
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1397
589
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1444
590
  msgid "Success Message"
591
  msgstr ""
592
 
593
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1364
594
  msgid "New User Role"
595
  msgstr ""
596
 
597
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1365
598
  msgid "Role users registered through this form will be assigned."
599
  msgstr ""
600
 
601
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1372
602
  msgid "Username Requirement"
603
  msgstr ""
604
 
605
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1373
606
  msgid "Check to disable username requirement"
607
  msgstr ""
608
 
609
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1374
610
  msgid ""
611
  "Disable requirement for users to enter a username during registration. "
612
  "Usernames will automatically be generated from their email addresses."
613
  msgstr ""
614
 
615
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1381
616
  #: src/Admin/SettingsPages/GeneralSettings.php:120
617
  msgid "Registration Settings"
618
  msgstr ""
619
 
620
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1404
621
  msgid "Edit Profile Settings"
622
  msgstr ""
623
 
624
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1420
625
  #: src/Classes/ExtensionManager.php:77
626
  msgid "Passwordless Login"
627
  msgstr ""
628
 
629
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1421
630
  msgid "Check to make this a passwordless login form."
631
  msgstr ""
632
 
633
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1428
634
  #: src/Admin/SettingsPages/GeneralSettings.php:134
635
  msgid "Login Settings"
636
  msgstr ""
637
 
638
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1451
639
  msgid "Password Reset Settings"
640
  msgstr ""
641
 
642
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1472
643
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CheckboxList.php:35
644
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:35
645
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:50
653
  msgid "Label"
654
  msgstr ""
655
 
656
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1478
657
  msgid "Processing Label"
658
  msgstr ""
659
 
660
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1485
661
  msgid "Submit Button"
662
  msgstr ""
663
 
664
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1492
665
  msgid "Appearance"
666
  msgstr ""
667
 
668
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1499
669
  msgid "Colors"
670
  msgstr ""
671
 
672
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1527
673
  #: src/Themes/DragDrop/AbstractBuildScratch.php:533
674
  #: src/Themes/DragDrop/Login/PerfectoLite.php:51
675
  #: src/Themes/DragDrop/Registration/PerfectoLite.php:53
676
  msgid "Text"
677
  msgstr ""
678
 
679
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1528
680
  msgid "Visual"
681
  msgstr ""
682
 
683
+ #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1529
684
  msgid "Add Media"
685
  msgstr ""
686
 
709
  msgstr ""
710
 
711
  #: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:235
712
+ #: src/Admin/SettingsPages/FormList.php:239
713
+ #: src/Admin/SettingsPages/FormList.php:315
714
  #: src/Admin/SettingsPages/GeneralSettings.php:111
715
  #: src/ContentProtection/WPListTable.php:96
716
  #: src/ContentProtection/WPListTable.php:291
724
 
725
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Bio.php:22
726
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Bio.php:22
727
+ #: src/Functions/GlobalFunctions.php:1276
728
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:211
729
  #: src/Themes/DragDrop/AbstractTheme.php:189
730
  msgid "Biography"
974
 
975
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DisplayName.php:22
976
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/DisplayName.php:22
977
+ #: src/Functions/GlobalFunctions.php:1274
978
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:318
979
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:208
980
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:460
999
 
1000
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Email.php:22
1001
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Email.php:22
1002
+ #: src/Functions/GlobalFunctions.php:1275
1003
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:210
1004
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:206
1005
  #: src/Themes/DragDrop/AbstractTheme.php:162
1006
+ #: src/Themes/DragDrop/AbstractTheme.php:221 src/Widgets/TabbedWidget.php:132
1007
  msgid "Email Address"
1008
  msgstr ""
1009
 
1010
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/FirstName.php:22
1011
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/FirstName.php:22
1012
+ #: src/Functions/GlobalFunctions.php:1271
1013
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:350
1014
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:209
1015
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:461
1029
 
1030
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/LastName.php:22
1031
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/LastName.php:22
1032
+ #: src/Functions/GlobalFunctions.php:1272
1033
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:383
1034
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:210
1035
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:462
1051
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/PasswordReset/Userlogin.php:22
1052
  #: src/ShortcodeParser/Builder/PasswordResetBuilder.php:33
1053
  #: src/Themes/DragDrop/AbstractTheme.php:202
1054
+ #: src/Themes/DragDrop/AbstractTheme.php:213 src/Widgets/TabbedWidget.php:128
1055
  msgid "Username or Email"
1056
  msgstr ""
1057
 
1062
 
1063
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Nickname.php:22
1064
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Nickname.php:22
1065
+ #: src/Functions/GlobalFunctions.php:1273
1066
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:286
1067
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:300
1068
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:138
1218
 
1219
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Username.php:22
1220
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Username.php:22
1221
+ #: src/Functions/GlobalFunctions.php:1270
1222
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:135
1223
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:463
1224
  #: src/Themes/DragDrop/AbstractTheme.php:159
1225
  #: src/Themes/DragDrop/AbstractTheme.php:218
1226
  #: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:105
1227
+ #: src/Widgets/TabbedWidget.php:125
1228
  msgid "Username"
1229
  msgstr ""
1230
 
1671
  msgstr ""
1672
 
1673
  #: src/Admin/SettingsPages/FormList.php:194
1674
+ #: src/Admin/SettingsPages/FormList.php:271
1675
  msgid "Shortcode"
1676
  msgstr ""
1677
 
1683
  msgid "Date"
1684
  msgstr ""
1685
 
1686
+ #: src/Admin/SettingsPages/FormList.php:238
1687
+ #: src/ContentProtection/WPListTable.php:84
1688
+ msgid "Edit"
1689
+ msgstr ""
1690
+
1691
+ #: src/Admin/SettingsPages/FormList.php:240
1692
  #: src/ContentProtection/WPListTable.php:85
1693
  msgid "Duplicate"
1694
  msgstr ""
1695
 
1696
+ #: src/Admin/SettingsPages/FormList.php:242
1697
  #: src/Classes/FormPreviewHandler.php:45
1698
  #: src/Functions/custom-settings-api.php:856
1699
  msgid "Preview"
1700
  msgstr ""
1701
 
1702
+ #: src/Admin/SettingsPages/FormList.php:273
1703
  msgid "Drag & Drop"
1704
  msgstr ""
1705
 
1734
  #: src/Classes/AjaxHandler.php:53 src/NavigationMenuLinks/Backend.php:34
1735
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:235
1736
  #: src/Themes/DragDrop/AbstractBuildScratch.php:180
1737
+ #: src/Widgets/TabbedWidget.php:108
1738
  msgid "Login"
1739
  msgstr ""
1740
 
2022
  msgstr ""
2023
 
2024
  #: src/Admin/SettingsPages/GeneralSettings.php:231
2025
+ #: src/Widgets/TabbedWidget.php:214
2026
  msgid "Log out"
2027
  msgstr ""
2028
 
2786
  msgstr ""
2787
 
2788
  #: src/Classes/FormRepository.php:166 src/Themes/DragDrop/AbstractTheme.php:124
2789
+ #: src/Widgets/TabbedWidget.php:88
2790
  msgid "Processing"
2791
  msgstr ""
2792
 
3089
  msgid "Protected Contents"
3090
  msgstr ""
3091
 
 
 
 
 
3092
  #: src/ContentProtection/WPListTable.php:89
3093
  msgid "Deactivate"
3094
  msgstr ""
3206
  msgid "[%s] Login Details"
3207
  msgstr ""
3208
 
3209
+ #: src/Functions/GlobalFunctions.php:1101
3210
  msgid ""
3211
  "It must be unique for each field, not a reserve text, in lowercase letters "
3212
  "only with an underscore ( _ ) separating words e.g job_title"
3213
  msgstr ""
3214
 
3215
+ #: src/Functions/GlobalFunctions.php:1222
3216
  msgid "%s (WooCommerce Billing Address)"
3217
  msgstr ""
3218
 
3219
+ #: src/Functions/GlobalFunctions.php:1226
3220
  msgid "%s (WooCommerce Shipping Address)"
3221
  msgstr ""
3222
 
3223
+ #: src/Functions/GlobalFunctions.php:1268
3224
  msgid "First and Last Names"
3225
  msgstr ""
3226
 
3227
+ #: src/Functions/GlobalFunctions.php:1269
3228
  msgid "Last and First Names"
3229
  msgstr ""
3230
 
3231
+ #: src/Functions/GlobalFunctions.php:1277
3232
  msgid "Registration Date"
3233
  msgstr ""
3234
 
3235
+ #: src/Functions/GlobalFunctions.php:1394
3236
  msgid "There was an problem while verifying your file."
3237
  msgstr ""
3238
 
3239
+ #: src/Functions/GlobalFunctions.php:1399
3240
  msgid "Sorry, this file extension is not permitted for security reasons."
3241
  msgstr ""
3242
 
3243
+ #: src/Functions/GlobalFunctions.php:1403
3244
  msgid "Sorry, this file type is not permitted for security reasons."
3245
  msgstr ""
3246
 
3247
+ #: src/Functions/GlobalFunctions.php:1407
3248
+ #: src/Functions/GlobalFunctions.php:1411
3249
  msgid "Error: The file you uploaded is not accepted on our website."
3250
  msgstr ""
3251
 
4251
 
4252
  #: src/NavigationMenuLinks/Backend.php:29 src/RegisterActivation/Base.php:155
4253
  #: src/ShortcodeParser/Builder/LoginFormBuilder.php:166
4254
+ #: src/Themes/DragDrop/AbstractTheme.php:104 src/Widgets/TabbedWidget.php:89
4255
  msgid "Log In"
4256
  msgstr ""
4257
 
4265
  #: src/NavigationMenuLinks/Backend.php:31 src/RegisterActivation/Base.php:159
4266
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1015
4267
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:172
4268
+ #: src/Widgets/TabbedWidget.php:90
4269
  msgid "Sign Up"
4270
  msgstr ""
4271
 
4422
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:814
4423
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:873
4424
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:922
4425
+ #: src/ShortcodeParser/Builder/FrontendProfileBuilder.php:350
4426
  msgid "Field key is missing"
4427
  msgstr ""
4428
 
4470
  msgid "You have not made any comment."
4471
  msgstr ""
4472
 
4473
+ #: src/ShortcodeParser/Builder/FrontendProfileBuilder.php:656
4474
  msgid "No post written yet."
4475
  msgstr ""
4476
 
4477
  #: src/ShortcodeParser/Builder/PasswordResetBuilder.php:103
4478
  #: src/ShortcodeParser/Builder/PasswordResetBuilder.php:335
4479
+ #: src/Widgets/TabbedWidget.php:91
4480
  msgid "Get New Password"
4481
  msgstr ""
4482
 
4549
  msgid "Email Notifications"
4550
  msgstr ""
4551
 
4552
+ #: src/ShortcodeParser/MyAccount/MyAccountTag.php:492
4553
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:87
4554
  msgid "Cover Image (min. width: 1000px)"
4555
  msgstr ""
4707
  msgstr ""
4708
 
4709
  #: src/Themes/DragDrop/AbstractBuildScratch.php:179
4710
+ #: src/Themes/DragDrop/AbstractTheme.php:109 src/Widgets/TabbedWidget.php:111
4711
  msgid "Register"
4712
  msgstr ""
4713
 
5233
  msgstr ""
5234
 
5235
  #: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:378
5236
+ #: src/Widgets/TabbedWidget.php:211
5237
  msgid "Edit your profile"
5238
  msgstr ""
5239
 
5321
  msgid "A tabbed login, registration and lost password widget"
5322
  msgstr ""
5323
 
5324
+ #: src/Widgets/TabbedWidget.php:114
5325
  msgid "Forgot?"
5326
  msgstr ""
5327
 
5328
+ #: src/Widgets/TabbedWidget.php:208 src/Widgets/UserPanel.php:50
5329
  msgid "Welcome %s"
5330
  msgstr ""
5331
 
5332
+ #: src/Widgets/TabbedWidget.php:228
5333
  msgid "Login / Sign up"
5334
  msgstr ""
5335
 
5336
+ #: src/Widgets/TabbedWidget.php:234
5337
  msgid "Have an account?"
5338
  msgstr ""
5339
 
5340
+ #: src/Widgets/TabbedWidget.php:240
5341
  msgid "Don't have an account?"
5342
  msgstr ""
5343
 
5344
+ #: src/Widgets/TabbedWidget.php:246
5345
  msgid "Forgot Password?"
5346
  msgstr ""
5347
 
5348
+ #: src/Widgets/TabbedWidget.php:469
5349
  msgid "Login text:"
5350
  msgstr ""
5351
 
5352
+ #: src/Widgets/TabbedWidget.php:474
5353
  msgid "Registration text:"
5354
  msgstr ""
5355
 
5356
+ #: src/Widgets/TabbedWidget.php:479
5357
  msgid "Lost-password text:"
5358
  msgstr ""
5359
 
5360
+ #: src/Widgets/TabbedWidget.php:485
5361
  msgid "Automatically login user after successful registration"
5362
  msgstr ""
5363
 
5364
+ #: src/Widgets/TabbedWidget.php:491
5365
  msgid "Widget CSS:"
5366
  msgstr ""
5367
 
5415
  msgid "ProfilePress"
5416
  msgstr ""
5417
 
5418
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.5) #-#-#-#-#
5419
  #. Plugin URI of the plugin/theme
5420
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.5) #-#-#-#-#
5421
  #. Author URI of the plugin/theme
5422
  msgid "https://profilepress.net"
5423
  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.4
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
@@ -115,34 +115,18 @@ No. You can create and manage your forms, user profiles and member directories w
115
  10. WP User Avatar and Cover Image Settings
116
  11. Admin Bar and Dashboard Access
117
 
118
-
119
  == Changelog ==
120
 
121
- = 3.1.4 =
122
- * Security fix: Ensures only valid custom user meta are updated.
123
- * Security fix: validate files and images correctly before they are uploaded.
124
- * Fix: Avatar upload now respects resize settings when using frontend forms.
125
- * Fix: Added link to uploaded file when file custom field is displayed.
126
- * Enhancement: when a user profile doesn't exist, redirect to homepage.
127
- * Enhancement: Remember login by default.
128
-
129
- = 3.1.3 =
130
- * Fixed edge cases where post content was overridden.
131
- * Fixed bug where buddypress avatar override wasn't working.
132
- * Removed the shortcode builder due to wp.org no longer accepting code inserters.
133
-
134
- = 3.1.2 =
135
- * Fixed issue where registration with username requirement disabled wasn't working.
136
- * Fixed fatal error caused during user registration.
137
-
138
- = 3.1.1 =
139
- * Scoped all admin CSS to reduce conflict with other plugin admin pages.
140
- * Fixed incompatibility with Max Mega Menu plugin.
141
- * Fixed PHP 8 Fatal error: Uncaught ValueError: Unknown format specifier.
142
-
143
- = 3.1 =
144
- * Fixed bug where disabling admin new user notifications wasn’t working.
145
- * Fixed fatar error: Cannot use ProfilePress\Core\Base as Base because the name is already in use.
146
- * Fixed issue where myaccount js was shown on all pages.
147
 
148
  See the [changelog file](https://plugins.svn.wordpress.org/wp-user-avatar/trunk/changelog.txt) for full change log information.
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 5.7
8
+ Stable tag: 3.1.5
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
115
  10. WP User Avatar and Cover Image Settings
116
  11. Admin Bar and Dashboard Access
117
 
 
118
  == Changelog ==
119
 
120
+ = 3.1.5 =
121
+ * Added form shortcode copying to form builder
122
+ * Improvement: Only load tab js when needed.
123
+ * Fixed issue where gravatar wasn’t shown for users with avatar.
124
+ * Fixed detected builder styling issues.
125
+ * Added default attribute to profile cpf shortcode.
126
+ * Added edit to form action links.
127
+ * Added filter to disable tinymce shortcode modal in post editor.
128
+ * Added notice when avatar display is disabled.
129
+ * Redirect myaccount page to login page when user not logged in.
130
+ * Switch shortcode redirection to html/js redirect method.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
 
132
  See the [changelog file](https://plugins.svn.wordpress.org/wp-user-avatar/trunk/changelog.txt) for full change log information.
src/Admin/SettingsPages/AddNewForm.php CHANGED
@@ -76,7 +76,11 @@ class AddNewForm extends AbstractSettingsPage
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>
76
  </div>
77
  <div class="pp-half-meta">
78
  <h2><?php _e('Shortcode Builder', 'wp-user-avatar'); ?></h2>
79
+ <p><?php printf(
80
+ __('Code your own from scratch with complete control and flexibility. %sLearn more%s.', 'wp-user-avatar'),
81
+ '<a style="color:#2271b1;text-decoration:underline" target="_blank" href="https://profilepress.net/article/drag-drop-advanced-shortcode-builders/?utm_source=wp_dashboard&utm_medium=upgrade&utm_campaign=shortcode_builder_upsell_learnmore">', '</a>'
82
+ ); ?>
83
+ </p>
84
  </div>
85
  </div>
86
  <button class="pp-builder-create-btn"><?php _e('Upgrade to Premium', 'wp-user-avatar'); ?></button>
src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php CHANGED
@@ -81,7 +81,7 @@ class DragDropBuilder
81
  $fields[$key] = [
82
  'definedFieldKey' => $field_key,
83
  'definedFieldType' => $definedFieldType,
84
- 'fieldTitle' => $label,
85
  'label' => $label,
86
  'placeholder' => $label,
87
  'fieldIcon' => '<span class="dashicons dashicons-portfolio"></span>',
@@ -124,8 +124,8 @@ class DragDropBuilder
124
  $fields[$key] = [
125
  'definedFieldKey' => $field_key,
126
  'definedFieldType' => $definedFieldType,
127
- 'fieldTitle' => $title . ($woocommerce_field !== false ? (sprintf(' (WC%s)', 'billing' == $woocommerce_field ? 'BA' : 'SA')) : ''),
128
- 'fieldBarTitle' => $title,
129
  'label' => $title,
130
  'placeholder' => $title,
131
  'fieldIcon' => '<span class="dashicons dashicons-portfolio"></span>',
@@ -165,7 +165,19 @@ class DragDropBuilder
165
  add_settings_error(
166
  'pp_drag_drop_builder_notice',
167
  'form_title_empty',
168
- esc_html__('Form title cannot empty')
 
 
 
 
 
 
 
 
 
 
 
 
169
  );
170
 
171
  return;
@@ -1248,7 +1260,8 @@ class DragDropBuilder
1248
  public function builder_header()
1249
  {
1250
  settings_errors('pp_drag_drop_builder_notice');
1251
- $title = FR::get_name($this->form_id, $this->form_type);
 
1252
  ?>
1253
  <div id="titlediv">
1254
  <div id="titlewrap">
@@ -1256,6 +1269,16 @@ class DragDropBuilder
1256
  <input type="text" name="pp_form_title" size="30" value="<?= $title ?>" id="title">
1257
  <a class="pp-form-save-changes button button-primary button-large" style="margin: 2px 0 0 10px;text-align: center;" href="#"><?php _e('Save Changes', 'wp-user-avatar'); ?></a>
1258
  </div>
 
 
 
 
 
 
 
 
 
 
1259
  </div>
1260
  <?php
1261
  }
81
  $fields[$key] = [
82
  'definedFieldKey' => $field_key,
83
  'definedFieldType' => $definedFieldType,
84
+ 'fieldTitle' => ppress_decode_html_strip_tags($label),
85
  'label' => $label,
86
  'placeholder' => $label,
87
  'fieldIcon' => '<span class="dashicons dashicons-portfolio"></span>',
124
  $fields[$key] = [
125
  'definedFieldKey' => $field_key,
126
  'definedFieldType' => $definedFieldType,
127
+ 'fieldTitle' => ppress_decode_html_strip_tags($title) . ($woocommerce_field !== false ? (sprintf(' (WC%s)', 'billing' == $woocommerce_field ? 'BA' : 'SA')) : ''),
128
+ 'fieldBarTitle' => ppress_decode_html_strip_tags($title),
129
  'label' => $title,
130
  'placeholder' => $title,
131
  'fieldIcon' => '<span class="dashicons dashicons-portfolio"></span>',
165
  add_settings_error(
166
  'pp_drag_drop_builder_notice',
167
  'form_title_empty',
168
+ esc_html__('Form title cannot empty', 'wp-user-avatar')
169
+ );
170
+
171
+ return;
172
+ }
173
+
174
+ $name = sanitize_text_field($_POST['pp_form_title']);
175
+
176
+ if (FR::name_exist($name)) {
177
+ add_settings_error(
178
+ 'pp_drag_drop_builder_notice',
179
+ 'form_title_exist',
180
+ esc_html__('Form title already exist. Try something else.', 'wp-user-avatar')
181
  );
182
 
183
  return;
1260
  public function builder_header()
1261
  {
1262
  settings_errors('pp_drag_drop_builder_notice');
1263
+ $title = FR::get_name($this->form_id, $this->form_type);
1264
+ $shortcode = sprintf('&lsqb;profilepress-%s id=&quot;%s&quot;&rsqb;', $this->form_type, $this->form_id);
1265
  ?>
1266
  <div id="titlediv">
1267
  <div id="titlewrap">
1269
  <input type="text" name="pp_form_title" size="30" value="<?= $title ?>" id="title">
1270
  <a class="pp-form-save-changes button button-primary button-large" style="margin: 2px 0 0 10px;text-align: center;" href="#"><?php _e('Save Changes', 'wp-user-avatar'); ?></a>
1271
  </div>
1272
+ <div class="inside">
1273
+ <p class="description">
1274
+ <label for="ppress-shortcode">
1275
+ <?php esc_html_e('Copy this shortcode and paste it into your post, page, or text widget content:', 'wp-user-avatar') ?>
1276
+ </label>
1277
+ <span class="shortcode wp-ui-highlight">
1278
+ <input type="text" id="ppress-shortcode" onfocus="this.select();" readonly="readonly" class="large-text code" value="<?= $shortcode ?>">
1279
+ </span>
1280
+ </p>
1281
+ </div>
1282
  </div>
1283
  <?php
1284
  }
src/Admin/SettingsPages/DragDropBuilder/FieldBase.php CHANGED
@@ -228,7 +228,7 @@ abstract class FieldBase implements FieldInterface
228
  <span class="pp-builder-element-icon">{{{ data.fieldIcon }}}</span>
229
  <# } #>
230
  <span class="pp-builder-element-header-title">{{{fieldBarTitle}}}</span>
231
- <span class="pp-form-buider-settings-field-type field-bar-title">{{ data.fieldTitle }}</span>
232
  <a href="#" class="pp-builder-element-expand-button pp-settings" title="<?php _e('Settings', 'wp-user-avatar'); ?>">
233
  <span class="dashicons dashicons-admin-generic"></span>
234
  </a>
228
  <span class="pp-builder-element-icon">{{{ data.fieldIcon }}}</span>
229
  <# } #>
230
  <span class="pp-builder-element-header-title">{{{fieldBarTitle}}}</span>
231
+ <span class="pp-form-buider-settings-field-type field-bar-title">{{{ data.fieldTitle }}}</span>
232
  <a href="#" class="pp-builder-element-expand-button pp-settings" title="<?php _e('Settings', 'wp-user-avatar'); ?>">
233
  <span class="dashicons dashicons-admin-generic"></span>
234
  </a>
src/Admin/SettingsPages/FormList.php CHANGED
@@ -196,6 +196,10 @@ class FormList extends \WP_List_Table
196
  'date' => esc_html__('Date', 'wp-user-avatar')
197
  );
198
 
 
 
 
 
199
  return $columns;
200
  }
201
 
@@ -231,6 +235,7 @@ class FormList extends \WP_List_Table
231
  $preview_url = self::preview_url($form_id, $form_type);
232
 
233
  $actions = array(
 
234
  'delete' => sprintf("<a class='pp-form-delete' href='%s'>%s</a>", $delete_url, esc_attr__('Delete', 'wp-user-avatar')),
235
  'clone' => sprintf("<a href='%s'>%s</a>", $clone_url, esc_attr__('Duplicate', 'wp-user-avatar')),
236
  // using form prefix cos there is a preview admin class that floats element to the right
196
  'date' => esc_html__('Date', 'wp-user-avatar')
197
  );
198
 
199
+ if ( ! class_exists('ProfilePress\Libsodium\Libsodium')) {
200
+ unset($columns['builder']);
201
+ }
202
+
203
  return $columns;
204
  }
205
 
235
  $preview_url = self::preview_url($form_id, $form_type);
236
 
237
  $actions = array(
238
+ 'edit' => sprintf("<a href='%s'>%s</a>", $customize_url, esc_attr__('Edit', 'wp-user-avatar')),
239
  'delete' => sprintf("<a class='pp-form-delete' href='%s'>%s</a>", $delete_url, esc_attr__('Delete', 'wp-user-avatar')),
240
  'clone' => sprintf("<a href='%s'>%s</a>", $clone_url, esc_attr__('Duplicate', 'wp-user-avatar')),
241
  // using form prefix cos there is a preview admin class that floats element to the right
src/Admin/SettingsPages/Forms.php CHANGED
@@ -116,7 +116,7 @@ class Forms extends AbstractSettingsPage
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'); ?>
@@ -156,7 +156,7 @@ class Forms extends AbstractSettingsPage
156
  */
157
  public function screen_option()
158
  {
159
- if (isset($_GET['page'], $_GET['view']) && strpos($_GET['view'], 'edit-shortcode') !== false) return;
160
 
161
  $args = [
162
  'label' => esc_html__('Forms', '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'); ?>
156
  */
157
  public function screen_option()
158
  {
159
+ if (isset($_GET['page'], $_GET['view']) && (strpos($_GET['view'], 'edit-shortcode') !== false || strpos($_GET['view'], 'drag-drop') !== false)) return;
160
 
161
  $args = [
162
  'label' => esc_html__('Forms', 'wp-user-avatar'),
src/Classes/UserAvatar.php CHANGED
@@ -19,8 +19,15 @@ class UserAvatar
19
  global $wpua_disable_gravatar, $wpua_functions;
20
 
21
  // First checking custom avatar.
22
- if ($wpua_disable_gravatar == '1' || ! $wpua_functions->wpua_has_gravatar($id_or_email)) {
23
  $args['url'] = $wpua_functions->wpua_get_default_avatar_url(ppress_var($args, 'size'));
 
 
 
 
 
 
 
24
  }
25
  /** WP User Avatar Adapter ENDS */
26
  }
19
  global $wpua_disable_gravatar, $wpua_functions;
20
 
21
  // First checking custom avatar.
22
+ if ($wpua_disable_gravatar == '1') {
23
  $args['url'] = $wpua_functions->wpua_get_default_avatar_url(ppress_var($args, 'size'));
24
+ } else {
25
+
26
+ $has_valid_url = $wpua_functions->wpua_has_gravatar($id_or_email);
27
+
28
+ if ( ! $has_valid_url) {
29
+ $args['url'] = $wpua_functions->wpua_get_default_avatar_url(ppress_var($args, 'size', 96, true));
30
+ }
31
  }
32
  /** WP User Avatar Adapter ENDS */
33
  }
src/Functions/GlobalFunctions.php CHANGED
@@ -958,6 +958,18 @@ function ppress_minify_css($buffer)
958
  return $buffer;
959
  }
960
 
 
 
 
 
 
 
 
 
 
 
 
 
961
  function ppress_get_ip_address()
962
  {
963
  $ip = '127.0.0.1';
@@ -1400,4 +1412,21 @@ function ppress_check_type_and_ext($file, $accepted_mime_types = [], $accepted_f
1400
  }
1401
 
1402
  return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1403
  }
958
  return $buffer;
959
  }
960
 
961
+ function ppress_minify_js($code)
962
+ {
963
+ // make it into one long line
964
+ $code = str_replace(array("\n", "\r"), '', $code);
965
+ // replace all multiple spaces by one space
966
+ $code = preg_replace('!\s+!', ' ', $code);
967
+ // replace some unneeded spaces, modify as needed
968
+ $code = str_replace(array(' {', ' }', '{ ', '; '), array('{', '}', '{', ';'), $code);
969
+
970
+ return $code;
971
+ }
972
+
973
  function ppress_get_ip_address()
974
  {
975
  $ip = '127.0.0.1';
1412
  }
1413
 
1414
  return true;
1415
+ }
1416
+
1417
+ function ppress_decode_html_strip_tags($val)
1418
+ {
1419
+ return strip_tags(html_entity_decode($val));
1420
+ }
1421
+
1422
+ function ppress_content_http_redirect($myURL)
1423
+ {
1424
+ ?>
1425
+ <script type="text/javascript">
1426
+ window.location.href = "<?php echo $myURL;?>"
1427
+ </script>
1428
+ <meta http-equiv="refresh" content="0; url=<?php echo $myURL; ?>">
1429
+ Please wait while you are redirected...or
1430
+ <a href="<?php echo $myURL; ?>">Click Here</a> if you do not want to wait.
1431
+ <?php
1432
  }
src/Functions/custom-settings-api.php CHANGED
@@ -146,7 +146,7 @@ class Custom_Settings_Page_Api
146
  $label = esc_html(@$arg['label']);
147
  $class = esc_attr(@$arg['class']);
148
  $style = esc_attr(@$arg['style']);
149
- $active = remove_query_arg(array_merge(['type', 'settings-updated', 'ppsc', 'license', 'mc-audience', 'cm-email-list', 'id']), $this->current_page_url()) == $url ? ' nav-tab-active' : null;
150
  $html .= "<a href=\"$url\" class=\"$class nav-tab{$active}\" style='$style'>$label</a>";
151
  }
152
 
146
  $label = esc_html(@$arg['label']);
147
  $class = esc_attr(@$arg['class']);
148
  $style = esc_attr(@$arg['style']);
149
+ $active = remove_query_arg(array_merge(['type', 'settings-updated', 'ppsc', 'license', 'mc-audience', 'cm-email-list', 'id', 'contact-info', 'edit']), $this->current_page_url()) == $url ? ' nav-tab-active' : null;
150
  $html .= "<a href=\"$url\" class=\"$class nav-tab{$active}\" style='$style'>$label</a>";
151
  }
152
 
src/ShortcodeParser/Builder/FrontendProfileBuilder.php CHANGED
@@ -339,7 +339,8 @@ class FrontendProfileBuilder
339
 
340
  $atts = shortcode_atts(
341
  array(
342
- 'key' => '',
 
343
  ),
344
  $atts
345
  );
@@ -358,6 +359,10 @@ class FrontendProfileBuilder
358
  );
359
  }
360
 
 
 
 
 
361
  return apply_filters('ppress_profile_cpf', $data, self::$user_data);
362
  }
363
 
@@ -409,7 +414,8 @@ class FrontendProfileBuilder
409
  {
410
  $atts = shortcode_atts(
411
  array(
412
- 'field' => '',
 
413
  ),
414
  $atts
415
  );
@@ -443,6 +449,8 @@ class FrontendProfileBuilder
443
  if ( ! empty($key) && ! empty(self::$user_data->$key)) {
444
  return do_shortcode($content);
445
  }
 
 
446
  }
447
 
448
  /**
339
 
340
  $atts = shortcode_atts(
341
  array(
342
+ 'key' => '',
343
+ 'default' => '',
344
  ),
345
  $atts
346
  );
359
  );
360
  }
361
 
362
+ if (empty($data) && ! ppress_is_boolean($data) && ! empty($atts['default'])) {
363
+ $data = $atts['default'];
364
+ }
365
+
366
  return apply_filters('ppress_profile_cpf', $data, self::$user_data);
367
  }
368
 
414
  {
415
  $atts = shortcode_atts(
416
  array(
417
+ 'field' => '',
418
+ 'default' => ''
419
  ),
420
  $atts
421
  );
449
  if ( ! empty($key) && ! empty(self::$user_data->$key)) {
450
  return do_shortcode($content);
451
  }
452
+
453
+ return ppress_var($atts, 'default', '', true);
454
  }
455
 
456
  /**
src/ShortcodeParser/Builder/GlobalShortcodes.php CHANGED
@@ -405,6 +405,8 @@ class GlobalShortcodes
405
  * Redirect non logged users to login page.
406
  *
407
  * @param array $atts
 
 
408
  */
409
  public static function redirect_non_logged_in_users($atts)
410
  {
@@ -419,10 +421,11 @@ class GlobalShortcodes
419
  $atts
420
  );
421
 
422
- $url = empty($atts['url']) ? ppress_login_url() : $atts['url'];
423
 
424
- wp_safe_redirect($url);
425
- exit;
 
426
  }
427
 
428
 
@@ -430,6 +433,8 @@ class GlobalShortcodes
430
  * Redirect logged users to login page.
431
  *
432
  * @param array $atts
 
 
433
  */
434
  public static function redirect_logged_in_users($atts)
435
  {
@@ -444,10 +449,11 @@ class GlobalShortcodes
444
  $atts
445
  );
446
 
447
- $url = empty($atts['url']) ? ppress_login_url() : $atts['url'];
448
 
449
- wp_safe_redirect($url);
450
- exit;
 
451
  }
452
 
453
 
405
  * Redirect non logged users to login page.
406
  *
407
  * @param array $atts
408
+ *
409
+ * @return false|string|void
410
  */
411
  public static function redirect_non_logged_in_users($atts)
412
  {
421
  $atts
422
  );
423
 
424
+ $url = empty($atts['url']) ? ppress_login_url() : esc_url_raw($atts['url']);
425
 
426
+ ob_start();
427
+ ppress_content_http_redirect($url);
428
+ return ob_get_clean();
429
  }
430
 
431
 
433
  * Redirect logged users to login page.
434
  *
435
  * @param array $atts
436
+ *
437
+ * @return false|string|void
438
  */
439
  public static function redirect_logged_in_users($atts)
440
  {
449
  $atts
450
  );
451
 
452
+ $url = empty($atts['url']) ? ppress_login_url() : esc_url_raw($atts['url']);
453
 
454
+ ob_start();
455
+ ppress_content_http_redirect($url);
456
+ return ob_get_clean();
457
  }
458
 
459
 
src/ShortcodeParser/MyAccount/MyAccountTag.php CHANGED
@@ -406,69 +406,77 @@ class MyAccountTag extends FormProcessor
406
 
407
  global $wp;
408
 
409
- $user_id = get_current_user_id();
410
 
411
- $tabs = $this->myaccount_tabs();
 
 
412
 
413
- ob_start();
414
- ?>
415
- <div id="profilepress-myaccount-wrapper">
416
- <div class="profilepress-myaccount-row">
417
- <div class="profilepress-myaccount-col-sm-3">
418
 
419
- <div class="profilepress-myaccount-avatar-wrap">
 
 
 
 
 
 
 
 
 
 
 
 
 
420
 
421
- <div class="profilepress-myaccount-avatar">
422
- <a href="<?= ppress_get_frontend_profile_url($user_id) ?>">
423
- <?= UserAvatar::get_avatar_img($user_id, 120); ?>
424
- </a>
425
  </div>
426
 
 
 
 
 
 
 
 
 
 
 
 
427
  </div>
 
 
428
 
429
- <div class="profilepress-myaccount-nav">
430
- <?php foreach ($tabs as $key => $tab) :
431
- ?>
432
- <a class="ppmyac-dashboard-item<?= self::is_endpoint($key) ? ' isactive' : ''; ?>" href="<?= $this->get_endpoint_url($key); ?>">
433
- <i class="ppmyac-icons"><?= isset($tab['icon']) ? $tab['icon'] : 'settings'; ?></i>
434
- <?= $tab['title'] ?>
435
- </a>
436
- <?php endforeach; ?>
437
- </div>
438
- </div>
439
- <div class="profilepress-myaccount-content">
440
- <?php
441
-
442
- if ( ! empty($wp->query_vars)) {
443
- foreach ($wp->query_vars as $key => $value) {
444
- // Ignore pagename param.
445
- if ('pagename' === $key) {
446
- continue;
447
- }
448
 
449
- $callback = self::get_tab_callback($key);
450
 
451
- if (is_callable($callback)) {
452
 
453
- return call_user_func($callback, $key);
 
454
  }
455
  }
456
- }
457
 
458
- require apply_filters('ppress_my_account_dashboard_template', dirname(__FILE__) . '/dashboard.tmpl.php');
459
-
460
- ?>
461
  </div>
462
  </div>
463
- </div>
464
 
465
- <?php
 
466
 
467
  return ob_get_clean();
468
  }
469
 
470
  public function js_script()
471
  {
 
472
  ?>
473
  <script type="text/javascript">
474
  jQuery('.ppmyac-custom-file input').change(function (e) {
@@ -486,6 +494,7 @@ class MyAccountTag extends FormProcessor
486
  });
487
  </script>
488
  <?php
 
489
  }
490
 
491
  public static function get_instance()
406
 
407
  global $wp;
408
 
409
+ ob_start();
410
 
411
+ if ( ! is_user_logged_in()) {
412
+ ppress_content_http_redirect(wp_login_url());
413
+ } else {
414
 
415
+ $user_id = get_current_user_id();
 
 
 
 
416
 
417
+ $tabs = $this->myaccount_tabs();
418
+
419
+ ?>
420
+ <div id="profilepress-myaccount-wrapper">
421
+ <div class="profilepress-myaccount-row">
422
+ <div class="profilepress-myaccount-col-sm-3">
423
+
424
+ <div class="profilepress-myaccount-avatar-wrap">
425
+
426
+ <div class="profilepress-myaccount-avatar">
427
+ <a href="<?= ppress_get_frontend_profile_url($user_id) ?>">
428
+ <?= UserAvatar::get_avatar_img($user_id, 120); ?>
429
+ </a>
430
+ </div>
431
 
 
 
 
 
432
  </div>
433
 
434
+ <div class="profilepress-myaccount-nav">
435
+ <?php foreach ($tabs as $key => $tab) :
436
+ ?>
437
+ <a class="ppmyac-dashboard-item<?= self::is_endpoint($key) ? ' isactive' : ''; ?>" href="<?= $this->get_endpoint_url($key); ?>">
438
+ <i class="ppmyac-icons">
439
+ <?= isset($tab['icon']) ? $tab['icon'] : 'settings'; ?>
440
+ </i>
441
+ <?= $tab['title'] ?>
442
+ </a>
443
+ <?php endforeach; ?>
444
+ </div>
445
  </div>
446
+ <div class="profilepress-myaccount-content">
447
+ <?php
448
 
449
+ if ( ! empty($wp->query_vars)) {
450
+ foreach ($wp->query_vars as $key => $value) {
451
+ // Ignore pagename param.
452
+ if ('pagename' === $key) {
453
+ continue;
454
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
455
 
456
+ $callback = self::get_tab_callback($key);
457
 
458
+ if (is_callable($callback)) {
459
 
460
+ return call_user_func($callback, $key);
461
+ }
462
  }
463
  }
 
464
 
465
+ require apply_filters('ppress_my_account_dashboard_template', dirname(__FILE__) . '/dashboard.tmpl.php');
466
+ ?>
467
+ </div>
468
  </div>
469
  </div>
 
470
 
471
+ <?php
472
+ }
473
 
474
  return ob_get_clean();
475
  }
476
 
477
  public function js_script()
478
  {
479
+ ob_start();
480
  ?>
481
  <script type="text/javascript">
482
  jQuery('.ppmyac-custom-file input').change(function (e) {
494
  });
495
  </script>
496
  <?php
497
+ echo ppress_minify_js(ob_get_clean());
498
  }
499
 
500
  public static function get_instance()
src/Themes/DragDrop/AbstractBuildScratch.php CHANGED
@@ -594,23 +594,34 @@ HTML;
594
  $signup_label = $this->get_meta('buildscratch_signup_label');
595
  $login_label = $this->get_meta('buildscratch_login_label');
596
 
597
- $login_form_link = <<<HTML
 
 
 
 
 
 
598
  <div class="ppress-form-bottom-links">
599
- <a href="$forgot_password_link">$forgot_password_label</a> | <a href="$signup_link">$signup_label</a>
600
  </div>
601
  HTML;
 
602
 
603
- $signup_form_link = <<<HTML
 
604
  <div class="ppress-form-bottom-links">
605
  <a href="$login_link">$login_label</a>
606
  </div>
607
  HTML;
 
608
 
609
- $password_reset_form_link = <<<HTML
 
610
  <div class="ppress-form-bottom-links">
611
  <a href="$login_link">$login_label</a>
612
  </div>
613
  HTML;
 
614
 
615
  if ($this->form_type == FR::LOGIN_TYPE) return $login_form_link;
616
  if ($this->form_type == FR::REGISTRATION_TYPE) return $signup_form_link;
594
  $signup_label = $this->get_meta('buildscratch_signup_label');
595
  $login_label = $this->get_meta('buildscratch_login_label');
596
 
597
+ $login_form_link = $password_reset_form_link = $signup_form_link = '';
598
+
599
+ if ( ! empty($forgot_password_label) || ! empty($signup_label)) {
600
+
601
+ $login_form_pipe = ! empty($forgot_password_label) && ! empty($signup_label) ? ' | ' : '';
602
+
603
+ $login_form_link = <<<HTML
604
  <div class="ppress-form-bottom-links">
605
+ <a href="$signup_link">$signup_label</a>$login_form_pipe<a href="$forgot_password_link">$forgot_password_label</a>
606
  </div>
607
  HTML;
608
+ }
609
 
610
+ if ( ! empty($login_label)) {
611
+ $signup_form_link = <<<HTML
612
  <div class="ppress-form-bottom-links">
613
  <a href="$login_link">$login_label</a>
614
  </div>
615
  HTML;
616
+ }
617
 
618
+ if ( ! empty($login_label)) {
619
+ $password_reset_form_link = <<<HTML
620
  <div class="ppress-form-bottom-links">
621
  <a href="$login_link">$login_label</a>
622
  </div>
623
  HTML;
624
+ }
625
 
626
  if ($this->form_type == FR::LOGIN_TYPE) return $login_form_link;
627
  if ($this->form_type == FR::REGISTRATION_TYPE) return $signup_form_link;
src/Widgets/TabbedWidget.php CHANGED
@@ -21,8 +21,6 @@ class TabbedWidget extends \WP_Widget
21
  array('width' => 400, 'height' => 350)// Args
22
  );
23
 
24
- add_action('wp_footer', [$this, 'script']);
25
-
26
  add_action('wp', [$this, 'process_form']);
27
  }
28
 
@@ -50,6 +48,7 @@ class TabbedWidget extends \WP_Widget
50
 
51
  public function script()
52
  {
 
53
  ?>
54
  <script>
55
  if (typeof jQuery !== 'undefined') {
@@ -77,10 +76,13 @@ class TabbedWidget extends \WP_Widget
77
  }
78
  </script>
79
  <?php
 
80
  }
81
 
82
  public function widget($args, $instance)
83
  {
 
 
84
  $title = apply_filters('widget_title', $instance['title']);
85
 
86
  $processing_label = apply_filters('ppress_tab_widget_processing_label', esc_html__('Processing', 'wp-user-avatar'));
21
  array('width' => 400, 'height' => 350)// Args
22
  );
23
 
 
 
24
  add_action('wp', [$this, 'process_form']);
25
  }
26
 
48
 
49
  public function script()
50
  {
51
+ ob_start();
52
  ?>
53
  <script>
54
  if (typeof jQuery !== 'undefined') {
76
  }
77
  </script>
78
  <?php
79
+ echo ppress_minify_js(ob_get_clean());
80
  }
81
 
82
  public function widget($args, $instance)
83
  {
84
+ add_action('wp_footer', [$this, 'script']);
85
+
86
  $title = apply_filters('widget_title', $instance['title']);
87
 
88
  $processing_label = apply_filters('ppress_tab_widget_processing_label', esc_html__('Processing', 'wp-user-avatar'));
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit320a30269f6c41be35363d85a90cb2da::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit078216392e93d51ff1ba5635dd7655f3::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -29,7 +29,7 @@ private static $installed = array (
29
  'aliases' =>
30
  array (
31
  ),
32
- 'reference' => '224a4ea996906d92969576295f0ad2be38f29f01',
33
  'name' => '__root__',
34
  ),
35
  'versions' =>
@@ -41,7 +41,7 @@ private static $installed = array (
41
  'aliases' =>
42
  array (
43
  ),
44
- 'reference' => '224a4ea996906d92969576295f0ad2be38f29f01',
45
  ),
46
  'collizo4sky/persist-admin-notices-dismissal' =>
47
  array (
29
  'aliases' =>
30
  array (
31
  ),
32
+ 'reference' => '9e9a15acef95cd24f6db4463372b9930d8a9e341',
33
  'name' => '__root__',
34
  ),
35
  'versions' =>
41
  'aliases' =>
42
  array (
43
  ),
44
+ 'reference' => '9e9a15acef95cd24f6db4463372b9930d8a9e341',
45
  ),
46
  'collizo4sky/persist-admin-notices-dismissal' =>
47
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit320a30269f6c41be35363d85a90cb2da
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit320a30269f6c41be35363d85a90cb2da
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit320a30269f6c41be35363d85a90cb2da', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInit320a30269f6c41be35363d85a90cb2da', '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\ComposerStaticInit320a30269f6c41be35363d85a90cb2da::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit320a30269f6c41be35363d85a90cb2da
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit320a30269f6c41be35363d85a90cb2da::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire320a30269f6c41be35363d85a90cb2da($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire320a30269f6c41be35363d85a90cb2da($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 ComposerAutoloaderInit078216392e93d51ff1ba5635dd7655f3
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit078216392e93d51ff1ba5635dd7655f3', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit078216392e93d51ff1ba5635dd7655f3', '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\ComposerStaticInit078216392e93d51ff1ba5635dd7655f3::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\ComposerStaticInit078216392e93d51ff1ba5635dd7655f3::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire078216392e93d51ff1ba5635dd7655f3($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire078216392e93d51ff1ba5635dd7655f3($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 ComposerStaticInit320a30269f6c41be35363d85a90cb2da
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
@@ -286,9 +286,9 @@ class ComposerStaticInit320a30269f6c41be35363d85a90cb2da
286
  public static function getInitializer(ClassLoader $loader)
287
  {
288
  return \Closure::bind(function () use ($loader) {
289
- $loader->prefixLengthsPsr4 = ComposerStaticInit320a30269f6c41be35363d85a90cb2da::$prefixLengthsPsr4;
290
- $loader->prefixDirsPsr4 = ComposerStaticInit320a30269f6c41be35363d85a90cb2da::$prefixDirsPsr4;
291
- $loader->classMap = ComposerStaticInit320a30269f6c41be35363d85a90cb2da::$classMap;
292
 
293
  }, null, ClassLoader::class);
294
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit078216392e93d51ff1ba5635dd7655f3
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
286
  public static function getInitializer(ClassLoader $loader)
287
  {
288
  return \Closure::bind(function () use ($loader) {
289
+ $loader->prefixLengthsPsr4 = ComposerStaticInit078216392e93d51ff1ba5635dd7655f3::$prefixLengthsPsr4;
290
+ $loader->prefixDirsPsr4 = ComposerStaticInit078216392e93d51ff1ba5635dd7655f3::$prefixDirsPsr4;
291
+ $loader->classMap = ComposerStaticInit078216392e93d51ff1ba5635dd7655f3::$classMap;
292
 
293
  }, null, ClassLoader::class);
294
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '224a4ea996906d92969576295f0ad2be38f29f01',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
@@ -18,7 +18,7 @@
18
  'aliases' =>
19
  array (
20
  ),
21
- 'reference' => '224a4ea996906d92969576295f0ad2be38f29f01',
22
  ),
23
  'collizo4sky/persist-admin-notices-dismissal' =>
24
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '9e9a15acef95cd24f6db4463372b9930d8a9e341',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
18
  'aliases' =>
19
  array (
20
  ),
21
+ 'reference' => '9e9a15acef95cd24f6db4463372b9930d8a9e341',
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.4
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.4');
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.5
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.5');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20