WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress - Version 2.9.2

Version Description

Download this release

Release Info

Developer rabbii
Plugin Icon 128x128 WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress
Version 2.9.2
Comparing to
See all releases

Code changes from version 2.9.1 to 2.9.2

assets/css/frontend-forms.css CHANGED
@@ -1285,11 +1285,6 @@ table#wpuf-address-country-state td {
1285
  box-shadow: none;
1286
  -webkit-box-shadow: none;
1287
  }
1288
- .wpuf-image-wrap :not(.attachment-name img) {
1289
- position: absolute;
1290
- width: 100%;
1291
- transition: .3s;
1292
- }
1293
  li.wpuf-image-wrap.thumbnail {
1294
  position: relative;
1295
  }
1285
  box-shadow: none;
1286
  -webkit-box-shadow: none;
1287
  }
 
 
 
 
 
1288
  li.wpuf-image-wrap.thumbnail {
1289
  position: relative;
1290
  }
assets/js/wpuf-form-builder.js CHANGED
@@ -404,6 +404,10 @@
404
  $('.wpuf_enable_multistep_section :input[type="checkbox"]').click(function() {
405
  self.changeMultistepVisibility($(this));
406
  });
 
 
 
 
407
  },
408
 
409
  settingsGuest: function (e) {
@@ -554,6 +558,99 @@
554
  } else {
555
  $('.wpuf_multistep_content').hide();
556
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
557
  }
558
  };
559
 
404
  $('.wpuf_enable_multistep_section :input[type="checkbox"]').click(function() {
405
  self.changeMultistepVisibility($(this));
406
  });
407
+
408
+ this.showRegFormNotificationFields();
409
+ this.integrationsCondFieldsVisibility();
410
+
411
  },
412
 
413
  settingsGuest: function (e) {
558
  } else {
559
  $('.wpuf_multistep_content').hide();
560
  }
561
+ },
562
+
563
+ showRegFormNotificationFields: function() {
564
+ var newUserStatus = $( "input#wpuf_new_user_status" ),
565
+ emailVerification = $( "input#notification_type_verification" ),
566
+ welcomeEmail = $( "#notification_type_welcome_email" );
567
+
568
+ if ( newUserStatus.is(':checked') ) {
569
+ $('#wpuf_pending_user_admin_notification').show();
570
+ $('#wpuf_approved_user_admin_notification').hide();
571
+ } else{
572
+ $('#wpuf_pending_user_admin_notification').hide();
573
+ $('#wpuf_approved_user_admin_notification').show();
574
+ }
575
+
576
+ $( newUserStatus ).on( "click", function() {
577
+ $('#wpuf_pending_user_admin_notification').hide();
578
+ $('#wpuf_approved_user_admin_notification').show();
579
+
580
+ if ( newUserStatus.is(':checked') ) {
581
+ $('#wpuf_pending_user_admin_notification').show();
582
+ $('#wpuf_approved_user_admin_notification').hide();
583
+ }
584
+ });
585
+
586
+ if ( emailVerification.is(':checked') ) {
587
+ $('.wpuf-email-verification-settings-fields').show();
588
+ $('.wpuf-welcome-email-settings-fields').hide();
589
+ }
590
+
591
+ if ( welcomeEmail.is(':checked') ) {
592
+ $('.wpuf-welcome-email-settings-fields').show();
593
+ $('.wpuf-email-verification-settings-fields').hide();
594
+ }
595
+
596
+ $( emailVerification ).on( "click", function() {
597
+ $('.wpuf-email-verification-settings-fields').show();
598
+ $('.wpuf-welcome-email-settings-fields').hide();
599
+ });
600
+
601
+ $( welcomeEmail ).on( "click", function() {
602
+ $('.wpuf-welcome-email-settings-fields').show();
603
+ $('.wpuf-email-verification-settings-fields').hide();
604
+ });
605
+ },
606
+
607
+ integrationsCondFieldsVisibility: function() {
608
+ var conditional_logic = $( '.wpuf-integrations-conditional-logic' ),
609
+ cond_fields_container = $( '.wpuf-integrations-conditional-logic-container' ),
610
+ cond_fields = $( '.wpuf_available_conditional_fields' ),
611
+ cond_field_options = $( '.wpuf_selected_conditional_field_options' );
612
+
613
+ $( conditional_logic ).on( "click", function(e) {
614
+ $( cond_fields_container ).hide();
615
+
616
+ if ( e.target.value === 'yes' ) {
617
+ $( cond_fields_container ).show();
618
+ }
619
+ });
620
+
621
+ $( cond_fields ).on('click', function(e) {
622
+ var form_fields = wpuf_form_builder.form_fields,
623
+ options = '';
624
+ options += '<option value="-1">- select -</option>';
625
+
626
+ form_fields.forEach(function(field) {
627
+ if ( field.template === 'radio_field' || field.template === 'checkbox_field' || field.template === 'dropdown_field' ) {
628
+ options += '<option value="'+field.name+'">'+field.label+'</option>';
629
+ }
630
+ });
631
+ e.target.innerHTML = options;
632
+ });
633
+
634
+ $( cond_fields ).on('change', function(e){
635
+ var form_fields = wpuf_form_builder.form_fields,
636
+ field_name = e.target.value,
637
+ field_options = '';
638
+ field_options += '<option value="-1">- select -</option>';
639
+
640
+ form_fields.forEach(function(field) {
641
+ if ( field.name === field_name ) {
642
+ var options = field.options;
643
+
644
+ for (var key in options) {
645
+ if (options.hasOwnProperty(key)) {
646
+ field_options += '<option value="'+key+'">'+options[key]+'</option>';
647
+ }
648
+ }
649
+ }
650
+ });
651
+
652
+ cond_field_options[0].innerHTML = field_options;
653
+ });
654
  }
655
  };
656
 
assets/less/frontend-forms.less CHANGED
@@ -1517,11 +1517,6 @@ table#wpuf-address-country-state {
1517
  box-shadow: none;
1518
  -webkit-box-shadow: none;
1519
  }
1520
- :not(.attachment-name img) {
1521
- position:absolute;
1522
- width:100%;
1523
- transition:.3s;
1524
- }
1525
  }
1526
  li.wpuf-image-wrap.thumbnail {
1527
  position:relative;
1517
  box-shadow: none;
1518
  -webkit-box-shadow: none;
1519
  }
 
 
 
 
 
1520
  }
1521
  li.wpuf-image-wrap.thumbnail {
1522
  position:relative;
class/frontend-account.php CHANGED
@@ -42,7 +42,7 @@ class WPUF_Frontend_Account {
42
 
43
  $options[] = array(
44
  'name' => 'post_submission_label',
45
- 'label' => __( 'Sumission Menu Label', 'wp-user-frontend' ),
46
  'desc' => __( 'Label for post submission menu', 'wp-user-frontend' ),
47
  'type' => 'text',
48
  'default' => __( 'Submit Post', 'wp-user-frontend' ),
@@ -50,7 +50,7 @@ class WPUF_Frontend_Account {
50
 
51
  $options[] = array(
52
  'name' => 'post_submission_form',
53
- 'label' => __( 'Sumission Form', 'wp-user-frontend' ),
54
  'desc' => __( 'Select a post form that will use to submit post by the users from their account page.', 'wp-user-frontend' ),
55
  'type' => 'select',
56
  'options' => $this->get_post_forms()
42
 
43
  $options[] = array(
44
  'name' => 'post_submission_label',
45
+ 'label' => __( 'Submission Menu Label', 'wp-user-frontend' ),
46
  'desc' => __( 'Label for post submission menu', 'wp-user-frontend' ),
47
  'type' => 'text',
48
  'default' => __( 'Submit Post', 'wp-user-frontend' ),
50
 
51
  $options[] = array(
52
  'name' => 'post_submission_form',
53
+ 'label' => __( 'Submission Form', 'wp-user-frontend' ),
54
  'desc' => __( 'Select a post form that will use to submit post by the users from their account page.', 'wp-user-frontend' ),
55
  'type' => 'select',
56
  'options' => $this->get_post_forms()
class/render-form.php CHANGED
File without changes
includes/class-upgrades.php CHANGED
@@ -19,6 +19,7 @@ class WPUF_Upgrades {
19
  '2.8.0' => 'upgrades/upgrade-2.8.0.php',
20
  '2.8.2' => 'upgrades/upgrade-2.8.2.php',
21
  '2.8.5' => 'upgrades/upgrade-2.8.5.php',
 
22
  );
23
 
24
  /**
19
  '2.8.0' => 'upgrades/upgrade-2.8.0.php',
20
  '2.8.2' => 'upgrades/upgrade-2.8.2.php',
21
  '2.8.5' => 'upgrades/upgrade-2.8.5.php',
22
+ '2.9.2' => 'upgrades/upgrade-2.9.2.php',
23
  );
24
 
25
  /**
includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php CHANGED
@@ -28,6 +28,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
28
  'action_hook' => self::action_hook(),
29
  'toc' => self::toc(),
30
  'ratings' => self::ratings(),
 
31
  );
32
  }
33
 
@@ -257,4 +258,20 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
257
  );
258
  }
259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  }
28
  'action_hook' => self::action_hook(),
29
  'toc' => self::toc(),
30
  'ratings' => self::ratings(),
31
+ 'embed' => self::embed(),
32
  );
33
  }
34
 
258
  );
259
  }
260
 
261
+ /**
262
+ * Ratings
263
+ *
264
+ * @since 2.5
265
+ *
266
+ * @return array
267
+ */
268
+ public static function embed() {
269
+ return array(
270
+ 'template' => 'embed',
271
+ 'title' => __( 'Embed', 'wp-user-frontend' ),
272
+ 'icon' => 'play-circle',
273
+ 'pro_feature' => true,
274
+ );
275
+ }
276
+
277
  }
includes/free/admin/form-builder/class-wpuf-form-builder-free.php CHANGED
@@ -59,7 +59,7 @@ class WPUF_Admin_Form_Builder_Free {
59
  public function add_custom_fields( $fields ) {
60
  return array_merge( $fields, array(
61
  'repeat_field', 'date_field', 'file_upload', 'country_list_field',
62
- 'numeric_text_field', 'address_field', 'step_start', 'google_map'
63
  ) );
64
  }
65
 
59
  public function add_custom_fields( $fields ) {
60
  return array_merge( $fields, array(
61
  'repeat_field', 'date_field', 'file_upload', 'country_list_field',
62
+ 'numeric_text_field', 'address_field', 'step_start', 'google_map', 'embed'
63
  ) );
64
  }
65
 
includes/free/class-login.php CHANGED
@@ -771,7 +771,55 @@ class WPUF_Simple_Login {
771
 
772
  // show activation message
773
  add_filter( 'wp_login_errors', array( $this, 'user_activation_message' ) );
774
- wp_send_new_user_notifications( $user_id );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
775
 
776
  do_action( 'wpuf_user_activated', $user_id );
777
  }
771
 
772
  // show activation message
773
  add_filter( 'wp_login_errors', array( $this, 'user_activation_message' ) );
774
+
775
+ $password_info_email = isset( $_GET['wpuf_password_info_email'] ) ? $_GET['wpuf_password_info_email'] : false;
776
+ $the_user = get_user_by( 'id', $user_id );
777
+ $user_email = $the_user->user_email;
778
+ $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
779
+
780
+ if ( $password_info_email ) {
781
+ global $wpdb, $wp_hasher;
782
+
783
+ // Generate something random for a password reset key.
784
+ $key = wp_generate_password( 20, false );
785
+
786
+ /** This action is documented in wp-login.php */
787
+ add_action( 'retrieve_password_key', $the_user->user_login, $key );
788
+
789
+ // Now insert the key, hashed, into the DB.
790
+ if ( empty( $wp_hasher ) ) {
791
+ require_once ABSPATH . WPINC . '/class-phpass.php';
792
+ $wp_hasher = new PasswordHash( 8, true );
793
+ }
794
+ $hashed = time() . ':' . $wp_hasher->HashPassword( $key );
795
+ $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $the_user->user_login ) );
796
+
797
+ $subject = sprintf( __('[%s] Your username and password info', 'wp-user-frontend' ), $blogname );
798
+
799
+ $message = sprintf(__('Username: %s', 'wp-user-frontend'), $the_user->user_login) . "\r\n\r\n";
800
+ $message .= __('To set your password, visit the following address:', 'wp-user-frontend') . "\r\n\r\n";
801
+ $message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($the_user->user_login), 'login') . "\r\n\r\n";
802
+ $message .= wp_login_url() . "\r\n";
803
+
804
+ $subject = apply_filters( 'wpuf_password_info_mail_subject', $subject );
805
+ $message = apply_filters( 'wpuf_password_info_mail_body', $message );
806
+ $message = get_formatted_mail_body( $message, $subject );
807
+
808
+ wp_mail( $user_email, $subject, $message );
809
+ } else {
810
+ $subject = sprintf( __('[%s] Account has been activated', 'wp-user-frontend' ), $blogname );
811
+
812
+ $message = sprintf( __('Hi %s,', 'wp-user-frontend' ), $the_user->user_login ) ."\r\n\r\n";
813
+ $message .= __( "Congrats! Your account has been activated. To login visit the following url:", "wp-user-frontend") ."\r\n\r\n";
814
+ $message .= wp_login_url() ."\r\n\r\n";
815
+ $message .= __( "Thanks", "wp-user-frontend" );
816
+
817
+ $subject = apply_filters( 'wpuf_mail_after_confirmation_subject', $subject );
818
+ $message = apply_filters( 'wpuf_mail_after_confirmation_body', $message );
819
+ $message = get_formatted_mail_body( $message, $subject );
820
+
821
+ wp_mail( $user_email, $subject, $message );
822
+ }
823
 
824
  do_action( 'wpuf_user_activated', $user_id );
825
  }
includes/upgrades/upgrade-2.9.2.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function wpuf_upgrade_2_9_2_migration() {
4
+ $args = array(
5
+ 'post_type' => 'wpuf_profile',
6
+ 'post_status' => 'publish',
7
+ );
8
+
9
+ $profile_forms = get_posts( $args );
10
+
11
+ if ( empty( $profile_forms ) ) {
12
+ return;
13
+ }
14
+
15
+ foreach ( $profile_forms as $form ) {
16
+ $form_id = $form->ID;
17
+
18
+ if ( !empty( $form_id ) ) {
19
+ $form_settings = wpuf_get_form_settings( $form_id );
20
+ $email_verification = isset( $form_settings['enable_email_verification'] ) ? $form_settings['enable_email_verification'] : 'no';
21
+ $user_status = isset( $form_settings['wpuf_user_status'] ) ? $form_settings['wpuf_user_status'] : 'approved';
22
+
23
+ $form_settings['user_notification'] = 'on';
24
+ $form_settings['admin_notification'] = 'on';
25
+
26
+ if ( $email_verification == 'yes' ) {
27
+ $form_settings['notification_type'] = 'email_verification';
28
+ } else {
29
+ $form_settings['notification_type'] = 'welcome_email';
30
+ }
31
+
32
+ $confirmation_mail_subject = wpuf_get_option( 'confirmation_mail_subject', 'wpuf_mails' );
33
+ $confirmation_mail_body = wpuf_get_option( 'confirmation_mail_body', 'wpuf_mails' );
34
+ $admin_email_subject = wpuf_get_option( 'new_user_email_subject_admin', 'wpuf_mails' );
35
+ $admin_email_body = wpuf_get_option( 'new_user_email_body_admin', 'wpuf_mails' );
36
+ $welcome_email_subject = wpuf_get_option( 'approved_user_email_subject', 'wpuf_mails' );
37
+ $welcome_email_body = wpuf_get_option( 'approved_user_email_body', 'wpuf_mails' );
38
+
39
+ if ( $user_status == 'pending' ) {
40
+ $welcome_email_subject = wpuf_get_option( 'pending_user_email_subject', 'wpuf_mails' );
41
+ $welcome_email_body = wpuf_get_option( 'pending_user_email_body', 'wpuf_mails' );
42
+ } elseif ( $user_status == 'denied' ) {
43
+ $welcome_email_subject = wpuf_get_option( 'denied_user_email_subject', 'wpuf_mails' );
44
+ $welcome_email_body = wpuf_get_option( 'denied_user_email_body', 'wpuf_mails' );
45
+ }
46
+
47
+ $form_settings['notification']['verification_subject'] = $confirmation_mail_subject;
48
+ $form_settings['notification']['verification_body'] = $confirmation_mail_body;
49
+ $form_settings['notification']['welcome_email_subject'] = $welcome_email_subject;
50
+ $form_settings['notification']['welcome_email_body'] = $welcome_email_body;
51
+ $form_settings['notification']['admin_email_subject'] = $admin_email_subject;
52
+ $form_settings['notification']['admin_email_body'] = $admin_email_body;
53
+
54
+ // Update form settings
55
+ update_post_meta( $form_id, 'wpuf_form_settings', $form_settings );
56
+ }
57
+ }
58
+ }
59
+
60
+ wpuf_upgrade_2_9_2_migration();
languages/wp-user-frontend.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP User Frontend 2.9.1\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2018-08-18 09:14:01+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -332,7 +332,7 @@ msgstr ""
332
 
333
  #: admin/class-tools.php:39 admin/class-tools.php:95
334
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:86
335
- #: includes/class-list-table-subscribers.php:126 wpuf-functions.php:2488
336
  msgid "All"
337
  msgstr ""
338
 
@@ -970,7 +970,7 @@ msgstr ""
970
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:926
971
  #: admin/template.php:544 admin/template.php:604 admin/template.php:683
972
  #: class/upload.php:164 templates/dashboard/posts.php:76
973
- #: templates/dashboard.php:86 wpuf-functions.php:754
974
  msgid "Title"
975
  msgstr ""
976
 
@@ -980,7 +980,7 @@ msgid "Title of the section"
980
  msgstr ""
981
 
982
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:849
983
- #: admin/template.php:609 class/upload.php:166 wpuf-functions.php:760
984
  msgid "Description"
985
  msgstr ""
986
 
@@ -2436,7 +2436,7 @@ msgid ""
2436
  msgstr ""
2437
 
2438
  #: admin/installer.php:77 admin/settings-options.php:23
2439
- #: includes/free/admin/shortcode-button.php:82 wpuf-functions.php:1501
2440
  msgid "Dashboard"
2441
  msgstr ""
2442
 
@@ -2451,7 +2451,7 @@ msgstr ""
2451
 
2452
  #: admin/installer.php:88 class/subscription.php:356 class/subscription.php:376
2453
  #: class/subscription.php:377 class/subscription.php:378
2454
- #: includes/free/admin/shortcode-button.php:102 wpuf-functions.php:1504
2455
  msgid "Subscription"
2456
  msgstr ""
2457
 
@@ -3464,7 +3464,7 @@ msgid "Enable if you want to allow users to submit post from the account page."
3464
  msgstr ""
3465
 
3466
  #: class/frontend-account.php:45
3467
- msgid "Sumission Menu Label"
3468
  msgstr ""
3469
 
3470
  #: class/frontend-account.php:46
@@ -3476,7 +3476,7 @@ msgid "Submit Post"
3476
  msgstr ""
3477
 
3478
  #: class/frontend-account.php:53
3479
- msgid "Sumission Form"
3480
  msgstr ""
3481
 
3482
  #: class/frontend-account.php:54
@@ -3634,7 +3634,7 @@ msgid "You already have activated a free package previously."
3634
  msgstr ""
3635
 
3636
  #: class/payment.php:139 includes/class-customizer.php:59
3637
- #: wpuf-functions.php:1505
3638
  msgid "Billing Address"
3639
  msgstr ""
3640
 
@@ -3994,7 +3994,7 @@ msgstr ""
3994
  msgid "No transactions found."
3995
  msgstr ""
3996
 
3997
- #: class/upload.php:165 wpuf-functions.php:757
3998
  msgid "Caption"
3999
  msgstr ""
4000
 
@@ -4110,7 +4110,7 @@ msgstr ""
4110
  msgid "Optional"
4111
  msgstr ""
4112
 
4113
- #: includes/class-dokan-integration.php:37 wpuf-functions.php:1502
4114
  msgid "Posts"
4115
  msgstr ""
4116
 
@@ -4215,19 +4215,20 @@ msgstr ""
4215
  msgid "Someone has requested a password reset for the following account:"
4216
  msgstr ""
4217
 
4218
- #: includes/class-login-widget.php:137 includes/free/class-login.php:832
 
4219
  msgid "Username: %s"
4220
  msgstr ""
4221
 
4222
- #: includes/class-login-widget.php:138 includes/free/class-login.php:833
4223
  msgid "If this was a mistake, just ignore this email and nothing will happen."
4224
  msgstr ""
4225
 
4226
- #: includes/class-login-widget.php:139 includes/free/class-login.php:834
4227
  msgid "To reset your password, visit the following address:"
4228
  msgstr ""
4229
 
4230
- #: includes/class-login-widget.php:144 includes/free/class-login.php:843
4231
  msgid "[%s] Password Reset"
4232
  msgstr ""
4233
 
@@ -4832,19 +4833,43 @@ msgid ""
4832
  "link"
4833
  msgstr ""
4834
 
4835
- #: includes/free/class-login.php:770 includes/free/class-login.php:786
4836
  msgid "Your account has been activated"
4837
  msgstr ""
4838
 
4839
- #: includes/free/class-login.php:830
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4840
  msgid "Someone requested that the password be reset for the following account:"
4841
  msgstr ""
4842
 
4843
- #: includes/free/class-login.php:849
4844
  msgid "The e-mail could not be sent."
4845
  msgstr ""
4846
 
4847
- #: includes/free/class-login.php:849
4848
  msgid "Possible reason: your host may have disabled the mail() function."
4849
  msgstr ""
4850
 
@@ -5637,215 +5662,215 @@ msgstr ""
5637
  msgid "CSV"
5638
  msgstr ""
5639
 
5640
- #: wpuf-functions.php:1503
5641
  msgid "Edit Profile"
5642
  msgstr ""
5643
 
5644
- #: wpuf-functions.php:1610
5645
  msgid "United Arab Emirates Dirham"
5646
  msgstr ""
5647
 
5648
- #: wpuf-functions.php:1611
5649
  msgid "Australian Dollars"
5650
  msgstr ""
5651
 
5652
- #: wpuf-functions.php:1612
5653
  msgid "Argentine Peso"
5654
  msgstr ""
5655
 
5656
- #: wpuf-functions.php:1613
5657
  msgid "Bangladeshi Taka"
5658
  msgstr ""
5659
 
5660
- #: wpuf-functions.php:1614
5661
  msgid "Brazilian Real"
5662
  msgstr ""
5663
 
5664
- #: wpuf-functions.php:1615
5665
  msgid "Bulgarian Lev"
5666
  msgstr ""
5667
 
5668
- #: wpuf-functions.php:1616
5669
  msgid "Canadian Dollars"
5670
  msgstr ""
5671
 
5672
- #: wpuf-functions.php:1617
5673
  msgid "Chilean Peso"
5674
  msgstr ""
5675
 
5676
- #: wpuf-functions.php:1618
5677
  msgid "Chinese Yuan"
5678
  msgstr ""
5679
 
5680
- #: wpuf-functions.php:1619
5681
  msgid "Colombian Peso"
5682
  msgstr ""
5683
 
5684
- #: wpuf-functions.php:1620
5685
  msgid "Czech Koruna"
5686
  msgstr ""
5687
 
5688
- #: wpuf-functions.php:1621
5689
  msgid "Danish Krone"
5690
  msgstr ""
5691
 
5692
- #: wpuf-functions.php:1622
5693
  msgid "Dominican Peso"
5694
  msgstr ""
5695
 
5696
- #: wpuf-functions.php:1623
5697
  msgid "Algerian Dinar"
5698
  msgstr ""
5699
 
5700
- #: wpuf-functions.php:1624
5701
  msgid "Euros"
5702
  msgstr ""
5703
 
5704
- #: wpuf-functions.php:1625
5705
  msgid "Hong Kong Dollar"
5706
  msgstr ""
5707
 
5708
- #: wpuf-functions.php:1626
5709
  msgid "Croatia kuna"
5710
  msgstr ""
5711
 
5712
- #: wpuf-functions.php:1627
5713
  msgid "Hungarian Forint"
5714
  msgstr ""
5715
 
5716
- #: wpuf-functions.php:1628
5717
  msgid "Icelandic krona"
5718
  msgstr ""
5719
 
5720
- #: wpuf-functions.php:1629
5721
  msgid "Indonesia Rupiah"
5722
  msgstr ""
5723
 
5724
- #: wpuf-functions.php:1630
5725
  msgid "Indian Rupee"
5726
  msgstr ""
5727
 
5728
- #: wpuf-functions.php:1631
5729
  msgid "Nepali Rupee"
5730
  msgstr ""
5731
 
5732
- #: wpuf-functions.php:1632
5733
  msgid "Israeli Shekel"
5734
  msgstr ""
5735
 
5736
- #: wpuf-functions.php:1633
5737
  msgid "Japanese Yen"
5738
  msgstr ""
5739
 
5740
- #: wpuf-functions.php:1634
5741
  msgid "Lao Kip"
5742
  msgstr ""
5743
 
5744
- #: wpuf-functions.php:1635
5745
  msgid "South Korean Won"
5746
  msgstr ""
5747
 
5748
- #: wpuf-functions.php:1636
5749
  msgid "Malaysian Ringgits"
5750
  msgstr ""
5751
 
5752
- #: wpuf-functions.php:1637
5753
  msgid "Mexican Peso"
5754
  msgstr ""
5755
 
5756
- #: wpuf-functions.php:1638
5757
  msgid "Nigerian Naira"
5758
  msgstr ""
5759
 
5760
- #: wpuf-functions.php:1639
5761
  msgid "Norwegian Krone"
5762
  msgstr ""
5763
 
5764
- #: wpuf-functions.php:1640
5765
  msgid "New Zealand Dollar"
5766
  msgstr ""
5767
 
5768
- #: wpuf-functions.php:1641
5769
  msgid "Omani Rial"
5770
  msgstr ""
5771
 
5772
- #: wpuf-functions.php:1642
5773
  msgid "Iranian Rial"
5774
  msgstr ""
5775
 
5776
- #: wpuf-functions.php:1643
5777
  msgid "Pakistani Rupee"
5778
  msgstr ""
5779
 
5780
- #: wpuf-functions.php:1644
5781
  msgid "Paraguayan Guaraní"
5782
  msgstr ""
5783
 
5784
- #: wpuf-functions.php:1645
5785
  msgid "Philippine Pesos"
5786
  msgstr ""
5787
 
5788
- #: wpuf-functions.php:1646
5789
  msgid "Polish Zloty"
5790
  msgstr ""
5791
 
5792
- #: wpuf-functions.php:1647
5793
  msgid "Pounds Sterling"
5794
  msgstr ""
5795
 
5796
- #: wpuf-functions.php:1648
5797
  msgid "Romanian Leu"
5798
  msgstr ""
5799
 
5800
- #: wpuf-functions.php:1649
5801
  msgid "Russian Ruble"
5802
  msgstr ""
5803
 
5804
- #: wpuf-functions.php:1650
5805
  msgid "Saudi Riyal"
5806
  msgstr ""
5807
 
5808
- #: wpuf-functions.php:1651
5809
  msgid "Singapore Dollar"
5810
  msgstr ""
5811
 
5812
- #: wpuf-functions.php:1652
5813
  msgid "South African rand"
5814
  msgstr ""
5815
 
5816
- #: wpuf-functions.php:1653
5817
  msgid "Swedish Krona"
5818
  msgstr ""
5819
 
5820
- #: wpuf-functions.php:1654
5821
  msgid "Swiss Franc"
5822
  msgstr ""
5823
 
5824
- #: wpuf-functions.php:1655
5825
  msgid "Taiwan New Dollars"
5826
  msgstr ""
5827
 
5828
- #: wpuf-functions.php:1656
5829
  msgid "Thai Baht"
5830
  msgstr ""
5831
 
5832
- #: wpuf-functions.php:1657
5833
  msgid "Turkish Lira"
5834
  msgstr ""
5835
 
5836
- #: wpuf-functions.php:1658
5837
  msgid "US Dollar"
5838
  msgstr ""
5839
 
5840
- #: wpuf-functions.php:1659
5841
  msgid "Vietnamese Dong"
5842
  msgstr ""
5843
 
5844
- #: wpuf-functions.php:1660
5845
  msgid "Egyptian Pound"
5846
  msgstr ""
5847
 
5848
- #: wpuf-functions.php:2489
5849
  msgid "None"
5850
  msgstr ""
5851
 
@@ -5951,7 +5976,7 @@ msgctxt "enhanced select"
5951
  msgid "Searching&hellip;"
5952
  msgstr ""
5953
 
5954
- #: wpuf-functions.php:1114
5955
  msgctxt "tag delimiter"
5956
  msgid ","
5957
  msgstr ""
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP User Frontend 2.9.2\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2018-09-19 09:12:03+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
332
 
333
  #: admin/class-tools.php:39 admin/class-tools.php:95
334
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:86
335
+ #: includes/class-list-table-subscribers.php:126 wpuf-functions.php:2534
336
  msgid "All"
337
  msgstr ""
338
 
970
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:926
971
  #: admin/template.php:544 admin/template.php:604 admin/template.php:683
972
  #: class/upload.php:164 templates/dashboard/posts.php:76
973
+ #: templates/dashboard.php:86 wpuf-functions.php:784
974
  msgid "Title"
975
  msgstr ""
976
 
980
  msgstr ""
981
 
982
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:849
983
+ #: admin/template.php:609 class/upload.php:166 wpuf-functions.php:790
984
  msgid "Description"
985
  msgstr ""
986
 
2436
  msgstr ""
2437
 
2438
  #: admin/installer.php:77 admin/settings-options.php:23
2439
+ #: includes/free/admin/shortcode-button.php:82 wpuf-functions.php:1547
2440
  msgid "Dashboard"
2441
  msgstr ""
2442
 
2451
 
2452
  #: admin/installer.php:88 class/subscription.php:356 class/subscription.php:376
2453
  #: class/subscription.php:377 class/subscription.php:378
2454
+ #: includes/free/admin/shortcode-button.php:102 wpuf-functions.php:1550
2455
  msgid "Subscription"
2456
  msgstr ""
2457
 
3464
  msgstr ""
3465
 
3466
  #: class/frontend-account.php:45
3467
+ msgid "Submission Menu Label"
3468
  msgstr ""
3469
 
3470
  #: class/frontend-account.php:46
3476
  msgstr ""
3477
 
3478
  #: class/frontend-account.php:53
3479
+ msgid "Submission Form"
3480
  msgstr ""
3481
 
3482
  #: class/frontend-account.php:54
3634
  msgstr ""
3635
 
3636
  #: class/payment.php:139 includes/class-customizer.php:59
3637
+ #: wpuf-functions.php:1551
3638
  msgid "Billing Address"
3639
  msgstr ""
3640
 
3994
  msgid "No transactions found."
3995
  msgstr ""
3996
 
3997
+ #: class/upload.php:165 wpuf-functions.php:787
3998
  msgid "Caption"
3999
  msgstr ""
4000
 
4110
  msgid "Optional"
4111
  msgstr ""
4112
 
4113
+ #: includes/class-dokan-integration.php:37 wpuf-functions.php:1548
4114
  msgid "Posts"
4115
  msgstr ""
4116
 
4215
  msgid "Someone has requested a password reset for the following account:"
4216
  msgstr ""
4217
 
4218
+ #: includes/class-login-widget.php:137 includes/free/class-login.php:799
4219
+ #: includes/free/class-login.php:880
4220
  msgid "Username: %s"
4221
  msgstr ""
4222
 
4223
+ #: includes/class-login-widget.php:138 includes/free/class-login.php:881
4224
  msgid "If this was a mistake, just ignore this email and nothing will happen."
4225
  msgstr ""
4226
 
4227
+ #: includes/class-login-widget.php:139 includes/free/class-login.php:882
4228
  msgid "To reset your password, visit the following address:"
4229
  msgstr ""
4230
 
4231
+ #: includes/class-login-widget.php:144 includes/free/class-login.php:891
4232
  msgid "[%s] Password Reset"
4233
  msgstr ""
4234
 
4833
  "link"
4834
  msgstr ""
4835
 
4836
+ #: includes/free/class-login.php:770 includes/free/class-login.php:834
4837
  msgid "Your account has been activated"
4838
  msgstr ""
4839
 
4840
+ #: includes/free/class-login.php:797
4841
+ msgid "[%s] Your username and password info"
4842
+ msgstr ""
4843
+
4844
+ #: includes/free/class-login.php:800
4845
+ msgid "To set your password, visit the following address:"
4846
+ msgstr ""
4847
+
4848
+ #: includes/free/class-login.php:810
4849
+ msgid "[%s] Account has been activated"
4850
+ msgstr ""
4851
+
4852
+ #: includes/free/class-login.php:812
4853
+ msgid "Hi %s,"
4854
+ msgstr ""
4855
+
4856
+ #: includes/free/class-login.php:813
4857
+ msgid "Congrats! Your account has been activated. To login visit the following url:"
4858
+ msgstr ""
4859
+
4860
+ #: includes/free/class-login.php:815
4861
+ msgid "Thanks"
4862
+ msgstr ""
4863
+
4864
+ #: includes/free/class-login.php:878
4865
  msgid "Someone requested that the password be reset for the following account:"
4866
  msgstr ""
4867
 
4868
+ #: includes/free/class-login.php:897
4869
  msgid "The e-mail could not be sent."
4870
  msgstr ""
4871
 
4872
+ #: includes/free/class-login.php:897
4873
  msgid "Possible reason: your host may have disabled the mail() function."
4874
  msgstr ""
4875
 
5662
  msgid "CSV"
5663
  msgstr ""
5664
 
5665
+ #: wpuf-functions.php:1549
5666
  msgid "Edit Profile"
5667
  msgstr ""
5668
 
5669
+ #: wpuf-functions.php:1656
5670
  msgid "United Arab Emirates Dirham"
5671
  msgstr ""
5672
 
5673
+ #: wpuf-functions.php:1657
5674
  msgid "Australian Dollars"
5675
  msgstr ""
5676
 
5677
+ #: wpuf-functions.php:1658
5678
  msgid "Argentine Peso"
5679
  msgstr ""
5680
 
5681
+ #: wpuf-functions.php:1659
5682
  msgid "Bangladeshi Taka"
5683
  msgstr ""
5684
 
5685
+ #: wpuf-functions.php:1660
5686
  msgid "Brazilian Real"
5687
  msgstr ""
5688
 
5689
+ #: wpuf-functions.php:1661
5690
  msgid "Bulgarian Lev"
5691
  msgstr ""
5692
 
5693
+ #: wpuf-functions.php:1662
5694
  msgid "Canadian Dollars"
5695
  msgstr ""
5696
 
5697
+ #: wpuf-functions.php:1663
5698
  msgid "Chilean Peso"
5699
  msgstr ""
5700
 
5701
+ #: wpuf-functions.php:1664
5702
  msgid "Chinese Yuan"
5703
  msgstr ""
5704
 
5705
+ #: wpuf-functions.php:1665
5706
  msgid "Colombian Peso"
5707
  msgstr ""
5708
 
5709
+ #: wpuf-functions.php:1666
5710
  msgid "Czech Koruna"
5711
  msgstr ""
5712
 
5713
+ #: wpuf-functions.php:1667
5714
  msgid "Danish Krone"
5715
  msgstr ""
5716
 
5717
+ #: wpuf-functions.php:1668
5718
  msgid "Dominican Peso"
5719
  msgstr ""
5720
 
5721
+ #: wpuf-functions.php:1669
5722
  msgid "Algerian Dinar"
5723
  msgstr ""
5724
 
5725
+ #: wpuf-functions.php:1670
5726
  msgid "Euros"
5727
  msgstr ""
5728
 
5729
+ #: wpuf-functions.php:1671
5730
  msgid "Hong Kong Dollar"
5731
  msgstr ""
5732
 
5733
+ #: wpuf-functions.php:1672
5734
  msgid "Croatia kuna"
5735
  msgstr ""
5736
 
5737
+ #: wpuf-functions.php:1673
5738
  msgid "Hungarian Forint"
5739
  msgstr ""
5740
 
5741
+ #: wpuf-functions.php:1674
5742
  msgid "Icelandic krona"
5743
  msgstr ""
5744
 
5745
+ #: wpuf-functions.php:1675
5746
  msgid "Indonesia Rupiah"
5747
  msgstr ""
5748
 
5749
+ #: wpuf-functions.php:1676
5750
  msgid "Indian Rupee"
5751
  msgstr ""
5752
 
5753
+ #: wpuf-functions.php:1677
5754
  msgid "Nepali Rupee"
5755
  msgstr ""
5756
 
5757
+ #: wpuf-functions.php:1678
5758
  msgid "Israeli Shekel"
5759
  msgstr ""
5760
 
5761
+ #: wpuf-functions.php:1679
5762
  msgid "Japanese Yen"
5763
  msgstr ""
5764
 
5765
+ #: wpuf-functions.php:1680
5766
  msgid "Lao Kip"
5767
  msgstr ""
5768
 
5769
+ #: wpuf-functions.php:1681
5770
  msgid "South Korean Won"
5771
  msgstr ""
5772
 
5773
+ #: wpuf-functions.php:1682
5774
  msgid "Malaysian Ringgits"
5775
  msgstr ""
5776
 
5777
+ #: wpuf-functions.php:1683
5778
  msgid "Mexican Peso"
5779
  msgstr ""
5780
 
5781
+ #: wpuf-functions.php:1684
5782
  msgid "Nigerian Naira"
5783
  msgstr ""
5784
 
5785
+ #: wpuf-functions.php:1685
5786
  msgid "Norwegian Krone"
5787
  msgstr ""
5788
 
5789
+ #: wpuf-functions.php:1686
5790
  msgid "New Zealand Dollar"
5791
  msgstr ""
5792
 
5793
+ #: wpuf-functions.php:1687
5794
  msgid "Omani Rial"
5795
  msgstr ""
5796
 
5797
+ #: wpuf-functions.php:1688
5798
  msgid "Iranian Rial"
5799
  msgstr ""
5800
 
5801
+ #: wpuf-functions.php:1689
5802
  msgid "Pakistani Rupee"
5803
  msgstr ""
5804
 
5805
+ #: wpuf-functions.php:1690
5806
  msgid "Paraguayan Guaraní"
5807
  msgstr ""
5808
 
5809
+ #: wpuf-functions.php:1691
5810
  msgid "Philippine Pesos"
5811
  msgstr ""
5812
 
5813
+ #: wpuf-functions.php:1692
5814
  msgid "Polish Zloty"
5815
  msgstr ""
5816
 
5817
+ #: wpuf-functions.php:1693
5818
  msgid "Pounds Sterling"
5819
  msgstr ""
5820
 
5821
+ #: wpuf-functions.php:1694
5822
  msgid "Romanian Leu"
5823
  msgstr ""
5824
 
5825
+ #: wpuf-functions.php:1695
5826
  msgid "Russian Ruble"
5827
  msgstr ""
5828
 
5829
+ #: wpuf-functions.php:1696
5830
  msgid "Saudi Riyal"
5831
  msgstr ""
5832
 
5833
+ #: wpuf-functions.php:1697
5834
  msgid "Singapore Dollar"
5835
  msgstr ""
5836
 
5837
+ #: wpuf-functions.php:1698
5838
  msgid "South African rand"
5839
  msgstr ""
5840
 
5841
+ #: wpuf-functions.php:1699
5842
  msgid "Swedish Krona"
5843
  msgstr ""
5844
 
5845
+ #: wpuf-functions.php:1700
5846
  msgid "Swiss Franc"
5847
  msgstr ""
5848
 
5849
+ #: wpuf-functions.php:1701
5850
  msgid "Taiwan New Dollars"
5851
  msgstr ""
5852
 
5853
+ #: wpuf-functions.php:1702
5854
  msgid "Thai Baht"
5855
  msgstr ""
5856
 
5857
+ #: wpuf-functions.php:1703
5858
  msgid "Turkish Lira"
5859
  msgstr ""
5860
 
5861
+ #: wpuf-functions.php:1704
5862
  msgid "US Dollar"
5863
  msgstr ""
5864
 
5865
+ #: wpuf-functions.php:1705
5866
  msgid "Vietnamese Dong"
5867
  msgstr ""
5868
 
5869
+ #: wpuf-functions.php:1706
5870
  msgid "Egyptian Pound"
5871
  msgstr ""
5872
 
5873
+ #: wpuf-functions.php:2535
5874
  msgid "None"
5875
  msgstr ""
5876
 
5976
  msgid "Searching&hellip;"
5977
  msgstr ""
5978
 
5979
+ #: wpuf-functions.php:1160
5980
  msgctxt "tag delimiter"
5981
  msgid ","
5982
  msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Forms, registration, profile-builder, login, membership
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
- Stable tag: 2.9.1
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -230,6 +230,11 @@ redirected to the edit page with that post id. Then you'll see the edit post for
230
 
231
  == Changelog ==
232
 
 
 
 
 
 
233
  = v2.9.1 (18 August, 2018) =
234
 
235
  * **New:** Added custom classes to make two or three columns form
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
+ Stable tag: 2.9.2
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
230
 
231
  == Changelog ==
232
 
233
+ = v2.9.2 (20 September, 2018) =
234
+
235
+ * **Fix:** Delete & drag icon showing inappropriately
236
+ * **Fix:** Custom fields data not showing on the frontend when different conditional logic apply based on same field with different options
237
+
238
  = v2.9.1 (18 August, 2018) =
239
 
240
  * **New:** Added custom classes to make two or three columns form
wpuf-functions.php CHANGED
@@ -708,6 +708,9 @@ function wpuf_show_custom_fields( $content ) {
708
 
709
  if ( $attr['wpuf_cond']['cond_option'][$field_key] != $cond_field_value ) {
710
  $return_for_no_cond = 1;
 
 
 
711
  }
712
  }
713
 
@@ -744,9 +747,36 @@ function wpuf_show_custom_fields( $content ) {
744
  }
745
 
746
  $full_size = wp_get_attachment_url( $attachment_id );
 
 
747
 
748
  if( $thumb ) {
749
- $image_html .= sprintf( '<a href="%s">%s</a> ', $full_size, $thumb );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
750
 
751
  if ( $show_caption == 'on' ) {
752
  $post_detail = get_post( $attachment_id );
@@ -815,8 +845,24 @@ function wpuf_show_custom_fields( $content ) {
815
 
816
  case 'url':
817
  $value = get_post_meta( $post->ID, $attr['name'] , true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
818
  $open_in = $attr['open_window'] == 'same' ? '' : '_blank';
819
- $link = sprintf( "<li><label>%s :</label><a href='%s' target = '%s'>%s</a>", $attr['label'], $value, $open_in, $value);
820
  $html.= $link;
821
  break;
822
 
@@ -868,7 +914,7 @@ function wpuf_show_custom_fields( $content ) {
868
  return $content . $html;
869
  }
870
 
871
- add_filter( 'the_content', 'wpuf_show_custom_fields' );
872
 
873
  /**
874
  * Map display shortcode
@@ -2444,7 +2490,7 @@ function get_formatted_mail_body( $message, $subject ) {
2444
  include WPUF_PRO_INCLUDES . '/templates/email/style.php';
2445
  $css = apply_filters( 'wpuf_email_style', ob_get_clean() );
2446
 
2447
- $content = $header . $message . $footer;
2448
 
2449
  if ( ! class_exists( 'Emogrifier' ) ) {
2450
  require_once WPUF_PRO_INCLUDES . '/libs/Emogrifier.php';
708
 
709
  if ( $attr['wpuf_cond']['cond_option'][$field_key] != $cond_field_value ) {
710
  $return_for_no_cond = 1;
711
+ }else{
712
+ $return_for_no_cond = 0;
713
+ break;
714
  }
715
  }
716
 
747
  }
748
 
749
  $full_size = wp_get_attachment_url( $attachment_id );
750
+ $path = parse_url($full_size, PHP_URL_PATH);
751
+ $extension = pathinfo($path, PATHINFO_EXTENSION);
752
 
753
  if( $thumb ) {
754
+ $playable = isset( $attr['playable_audio_video'] ) ? $attr['playable_audio_video'] : 'no';$wpuf_allowed_extensions = wpuf_allowed_extensions();
755
+ $allowed_audio_extensions = explode( ',', $wpuf_allowed_extensions['audio']['ext'] );
756
+ $allowed_video_extensions = explode( ',', $wpuf_allowed_extensions['video']['ext'] );
757
+ $allowed_extenstions = array_merge( $allowed_audio_extensions, $allowed_video_extensions );
758
+
759
+ if ( $playable == 'yes' && in_array( $extension, $allowed_extenstions ) ) {
760
+ $is_video = in_array( $extension, $allowed_video_extensions );
761
+ $is_audio = in_array( $extension, $allowed_audio_extensions );
762
+ $preview_width = isset( $attr['preview_width'] ) ? $attr['preview_width'] : '123';
763
+ $preview_height = isset( $attr['preview_height'] ) ? $attr['preview_height'] : '456';
764
+
765
+ $image_html .= '<div class="wpuf-embed-preview">';
766
+
767
+ if ( $is_video ) {
768
+ $image_html .= '[video src="'.$full_size.'" width="'.$preview_width.'" height="'.$preview_height.'"]';
769
+ }
770
+
771
+ if ( $is_audio ) {
772
+ $image_html .= '[audio src="'.$full_size.'" width="'.$preview_width.'" height="'.$preview_height.'"]';
773
+ }
774
+
775
+ $image_html .= '</div>';
776
+
777
+ } else {
778
+ $image_html .= sprintf( '<a href="%s">%s</a> ', $full_size, $thumb );
779
+ }
780
 
781
  if ( $show_caption == 'on' ) {
782
  $post_detail = get_post( $attachment_id );
845
 
846
  case 'url':
847
  $value = get_post_meta( $post->ID, $attr['name'] , true );
848
+
849
+ if ( $attr['template'] == 'embed' ) {
850
+ $preview_width = isset($attr['preview_width']) ? $attr['preview_width'] : '123';
851
+ $preview_height = isset($attr['preview_height']) ? $attr['preview_height'] : '456';
852
+
853
+ $preview = "<li>";
854
+ $preview .= sprintf( "<label>%s: </label>", $attr['label'] );
855
+ $preview .= "<div class='wpuf-embed-preview'>";
856
+ $preview .= '[embed width="'.$preview_width.'" height="'.$preview_height.'"]'.$value.'[/embed]';
857
+ $preview .= "</div>";
858
+ $preview .= "</li>";
859
+
860
+ $html .= $preview;
861
+ break;
862
+ }
863
+
864
  $open_in = $attr['open_window'] == 'same' ? '' : '_blank';
865
+ $link = sprintf( "<li><label>%s</label>: <a href='%s' target = '%s'>%s</a></li>", $attr['label'], $value, $open_in, $value);
866
  $html.= $link;
867
  break;
868
 
914
  return $content . $html;
915
  }
916
 
917
+ add_filter( 'the_content', 'wpuf_show_custom_fields', 7 );
918
 
919
  /**
920
  * Map display shortcode
2490
  include WPUF_PRO_INCLUDES . '/templates/email/style.php';
2491
  $css = apply_filters( 'wpuf_email_style', ob_get_clean() );
2492
 
2493
+ $content = $header . '<pre>' . $message . '</pre>' . $footer;
2494
 
2495
  if ( ! class_exists( 'Emogrifier' ) ) {
2496
  require_once WPUF_PRO_INCLUDES . '/libs/Emogrifier.php';
wpuf.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP User Frontend
4
  Plugin URI: https://wordpress.org/plugins/wp-user-frontend/
5
  Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
6
  Author: Tareq Hasan
7
- Version: 2.9.1
8
  Author URI: https://tareq.co
9
  License: GPL2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -12,7 +12,7 @@ Text Domain: wpuf
12
  Domain Path: /languages
13
  */
14
 
15
- define( 'WPUF_VERSION', '2.9.1' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
4
  Plugin URI: https://wordpress.org/plugins/wp-user-frontend/
5
  Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
6
  Author: Tareq Hasan
7
+ Version: 2.9.2
8
  Author URI: https://tareq.co
9
  License: GPL2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
  Domain Path: /languages
13
  */
14
 
15
+ define( 'WPUF_VERSION', '2.9.2' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );