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

Version Description

Download this release

Release Info

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

Code changes from version 2.8.7 to 2.8.8

Files changed (43) hide show
  1. admin/class-admin-subscription.php +14 -18
  2. admin/form.php +10 -0
  3. admin/html/form-settings-display.php +27 -1
  4. admin/html/whats-new.php +31 -0
  5. admin/posting.php +12 -41
  6. admin/template-post.php +296 -296
  7. assets/css/admin.css +25 -1
  8. assets/css/frontend-form/layout2.css +1 -1
  9. assets/css/frontend-form/layout4.css +310 -0
  10. assets/css/frontend-form/layout5.css +334 -0
  11. assets/css/frontend-forms.css +57 -46
  12. assets/images/del-img.png +0 -0
  13. assets/js-templates/form-components.php +58 -48
  14. assets/js/frontend-form.js +0 -0
  15. assets/js/frontend-form.min.js +0 -0
  16. assets/js/subscriptions.js +15 -30
  17. assets/js/upload.js +9 -0
  18. assets/js/wpuf-form-builder-components.js +52 -49
  19. assets/js/wpuf-form-builder-mixins.js +5 -5
  20. assets/less/admin.less +28 -1
  21. assets/less/frontend-forms.less +63 -35
  22. class/frontend-account.php +12 -25
  23. class/frontend-form-post.php +5 -4
  24. class/payment.php +3 -2
  25. class/render-form.php +15 -14
  26. class/subscription.php +88 -84
  27. class/upload.php +1 -1
  28. includes/class-user-subscription.php +20 -1
  29. includes/class-user.php +67 -0
  30. includes/free/class-login.php +49 -14
  31. includes/free/class-registration.php +8 -3
  32. includes/free/edit-profile.php +22 -21
  33. languages/wpuf.pot +409 -348
  34. lib/class.settings-api.php +0 -0
  35. lib/recaptchalib_noCaptcha.php +37 -11
  36. readme.txt +18 -1
  37. templates/dashboard.php +3 -1
  38. templates/dashboard/subscription.php +3 -4
  39. templates/logged-in.php +11 -12
  40. templates/subscriptions/listing.php +45 -0
  41. templates/subscriptions/pack-details.php +54 -0
  42. wpuf-functions.php +11 -3
  43. wpuf.php +10 -8
admin/class-admin-subscription.php CHANGED
@@ -105,10 +105,10 @@ class WPUF_Admin_Subscription {
105
  update_user_meta( $user_id, '_pack_assign_notification', $_POST['wpuf_profile_mail_noti'] );
106
  }
107
 
108
- $pack_id = $_POST['pack_id'];
109
- $pack = WPUF_Subscription::get_subscription( $_POST['pack_id'] );
110
-
111
  $user_pack = WPUF_Subscription::get_user_pack( $_POST['user_id'] );
 
112
  if ( isset ( $user_pack['pack_id'] ) && $pack_id == $user_pack['pack_id'] ) {
113
  //updating number of posts
114
 
@@ -129,7 +129,6 @@ class WPUF_Admin_Subscription {
129
  }
130
 
131
  //updating post time
132
-
133
  if( isset( $_POST['post_expiration_settings'] ) ) {
134
  echo $user_pack['_post_expiration_time'] = $_POST['post_expiration_settings']['expiration_time_value'].' '.$_POST['post_expiration_settings']['expiration_time_type'];
135
  }
@@ -149,11 +148,10 @@ class WPUF_Admin_Subscription {
149
  return;
150
  }
151
 
152
- $user_info = get_userdata( $user_id );
153
-
154
- $cost = $pack->$meta_value['_billing_amount'][0];
155
  $billing_amount = apply_filters( 'wpuf_payment_amount', $cost );
156
- $tax_amount = $billing_amount - $cost;
157
 
158
  $data = array(
159
  'user_id' => $user_id,
@@ -173,13 +171,13 @@ class WPUF_Admin_Subscription {
173
  'profile_id' => null,
174
  );
175
 
 
 
176
  if ( isset( $user_pack['recurring'] ) && $user_pack['recurring'] == 'yes' ) {
177
  $is_recurring = true;
178
- } else {
179
- $is_recurring = false;
180
  }
181
 
182
- WPUF_Payment::insert_payment( $data, $transaction_id, $is_recurring );
183
  }
184
  }
185
 
@@ -573,8 +571,8 @@ class WPUF_Admin_Subscription {
573
  $recurring_pay = ( isset( $pack->meta_value['recurring_pay'] ) && $pack->meta_value['recurring_pay'] == 'yes' ) ? true : false;
574
 
575
  if ( $billing_amount && $recurring_pay ) {
576
- $recurring_des = sprintf( 'For each %s %s', $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
577
- $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? sprintf( ', for %s installments', $pack->meta_value['billing_limit'] ) : '';
578
  $recurring_des = $recurring_des;
579
  } else {
580
  $recurring_des = '';
@@ -643,13 +641,11 @@ class WPUF_Admin_Subscription {
643
  <?php
644
  if ( $user_sub['recurring'] != 'yes' ) {
645
  if ( !empty( $user_sub['expire'] ) ) {
646
-
647
- $expire = ( $user_sub['expire'] == 'unlimited' ) ? ucfirst( 'unlimited' ) : wpuf_date2mysql( $user_sub['expire'] );
648
-
649
  ?>
650
  <tr>
651
  <th><label><?php echo _e('Expire date:' , 'wpuf'); ?></label></th>
652
- <td><input type="text" class="wpuf-date-picker" name="expire" value="<?php echo wpuf_get_date( $expire ); ?>"></td>
653
  </tr>
654
  <?php
655
  }
@@ -771,7 +767,7 @@ class WPUF_Admin_Subscription {
771
  </tr>
772
  </table>
773
  <?php endif;?>
774
- <?php
775
  do_action( 'wpuf_admin_subscription_content', $userdata->ID ) ?>
776
  <?php if ( !empty( $user_sub ) ): ?>
777
  <div class="wpuf-sub-actions">
105
  update_user_meta( $user_id, '_pack_assign_notification', $_POST['wpuf_profile_mail_noti'] );
106
  }
107
 
108
+ $pack_id = $_POST['pack_id'];
109
+ $pack = WPUF_Subscription::get_subscription( $_POST['pack_id'] );
 
110
  $user_pack = WPUF_Subscription::get_user_pack( $_POST['user_id'] );
111
+
112
  if ( isset ( $user_pack['pack_id'] ) && $pack_id == $user_pack['pack_id'] ) {
113
  //updating number of posts
114
 
129
  }
130
 
131
  //updating post time
 
132
  if( isset( $_POST['post_expiration_settings'] ) ) {
133
  echo $user_pack['_post_expiration_time'] = $_POST['post_expiration_settings']['expiration_time_value'].' '.$_POST['post_expiration_settings']['expiration_time_type'];
134
  }
148
  return;
149
  }
150
 
151
+ $user_info = get_userdata( $user_id );
152
+ $cost = $pack->meta_value['_billing_amount'][0];
 
153
  $billing_amount = apply_filters( 'wpuf_payment_amount', $cost );
154
+ $tax_amount = $billing_amount - $cost;
155
 
156
  $data = array(
157
  'user_id' => $user_id,
171
  'profile_id' => null,
172
  );
173
 
174
+ $is_recurring = false;
175
+
176
  if ( isset( $user_pack['recurring'] ) && $user_pack['recurring'] == 'yes' ) {
177
  $is_recurring = true;
 
 
178
  }
179
 
180
+ WPUF_Payment::insert_payment( $data, 0, $is_recurring );
181
  }
182
  }
183
 
571
  $recurring_pay = ( isset( $pack->meta_value['recurring_pay'] ) && $pack->meta_value['recurring_pay'] == 'yes' ) ? true : false;
572
 
573
  if ( $billing_amount && $recurring_pay ) {
574
+ $recurring_des = sprintf( __( 'For each %s %s', 'wpuf' ), $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
575
+ $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? sprintf( __( ', for %s installments', 'wpuf' ), $pack->meta_value['billing_limit'] ) : '';
576
  $recurring_des = $recurring_des;
577
  } else {
578
  $recurring_des = '';
641
  <?php
642
  if ( $user_sub['recurring'] != 'yes' ) {
643
  if ( !empty( $user_sub['expire'] ) ) {
644
+ $expire = ( $user_sub['expire'] == 'unlimited' ) ? ucfirst( 'unlimited' ) : wpuf_get_date( wpuf_date2mysql( $user_sub['expire'] ));
 
 
645
  ?>
646
  <tr>
647
  <th><label><?php echo _e('Expire date:' , 'wpuf'); ?></label></th>
648
+ <td><input type="text" class="wpuf-date-picker" name="expire" value="<?php echo $expire; ?>"></td>
649
  </tr>
650
  <?php
651
  }
767
  </tr>
768
  </table>
769
  <?php endif;?>
770
+ <?php
771
  do_action( 'wpuf_admin_subscription_content', $userdata->ID ) ?>
772
  <?php if ( !empty( $user_sub ) ): ?>
773
  <div class="wpuf-sub-actions">
admin/form.php CHANGED
@@ -681,6 +681,15 @@ class WPUF_Admin_Form {
681
  $settings = WPUF_Form_Builder_Field_Settings::get_common_properties( false );
682
 
683
  $settings = array_merge( $settings, array(
 
 
 
 
 
 
 
 
 
684
  array(
685
  'name' => 'max_size',
686
  'title' => __( 'Max. file size', 'wpuf' ),
@@ -702,6 +711,7 @@ class WPUF_Admin_Form {
702
  'required' => 'no',
703
  'label' => __( 'Featured Image', 'wpuf' ),
704
  'name' => 'featured_image',
 
705
  'is_meta' => 'no',
706
  'help' => '',
707
  'css' => '',
681
  $settings = WPUF_Form_Builder_Field_Settings::get_common_properties( false );
682
 
683
  $settings = array_merge( $settings, array(
684
+ array(
685
+ 'name' => 'button_label',
686
+ 'title' => __( 'Button Label', 'wpuf' ),
687
+ 'type' => 'text',
688
+ 'default' => __( 'Select Image', 'wpuf' ),
689
+ 'section' => 'basic',
690
+ 'priority' => 30,
691
+ 'help_text' => __( 'Enter a label for the Select button', 'wpuf' ),
692
+ ),
693
  array(
694
  'name' => 'max_size',
695
  'title' => __( 'Max. file size', 'wpuf' ),
711
  'required' => 'no',
712
  'label' => __( 'Featured Image', 'wpuf' ),
713
  'name' => 'featured_image',
714
+ 'button_label' => __( 'Select Image', 'wpuf' ),
715
  'is_meta' => 'no',
716
  'help' => '',
717
  'css' => '',
admin/html/form-settings-display.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
 
2
  $label_position = isset( $form_settings['label_position'] ) ? $form_settings['label_position'] : 'left';
3
  $form_layout = isset( $form_settings['form_layout'] ) ? $form_settings['form_layout'] : 'layout1';
 
4
  ?>
5
 
6
  <table class="form-table">
@@ -29,6 +31,28 @@ $form_layout = isset( $form_settings['form_layout'] ) ? $form_settings['form_
29
  </td>
30
  </tr>
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  <?php if( class_exists( 'WP_User_Frontend_Pro' ) ) : ?>
33
  <tr class="wpuf-form-layouts">
34
  <th><?php _e( 'Form Style', 'wpuf' ); ?></th>
@@ -38,7 +62,9 @@ $form_layout = isset( $form_settings['form_layout'] ) ? $form_settings['form_
38
  $layouts = array(
39
  'layout1' => WPUF_PRO_ASSET_URI . '/images/forms/layout1.png',
40
  'layout2' => WPUF_PRO_ASSET_URI . '/images/forms/layout2.png',
41
- 'layout3' => WPUF_PRO_ASSET_URI . '/images/forms/layout3.png'
 
 
42
  );
43
 
44
  foreach ( $layouts as $key => $image ) {
1
  <?php
2
+
3
  $label_position = isset( $form_settings['label_position'] ) ? $form_settings['label_position'] : 'left';
4
  $form_layout = isset( $form_settings['form_layout'] ) ? $form_settings['form_layout'] : 'layout1';
5
+ $theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use_theme_css'] : 'wpuf-style';
6
  ?>
7
 
8
  <table class="form-table">
31
  </td>
32
  </tr>
33
 
34
+ <tr class="wpuf-override-theme-css">
35
+ <th><?php _e( 'Use Theme CSS', 'wpuf' ); ?></th>
36
+ <td>
37
+ <select name="wpuf_settings[use_theme_css]">
38
+ <?php
39
+ $options = array(
40
+ 'wpuf-style' => __( 'No', 'wpuf' ),
41
+ 'wpuf-theme-style' => __( 'Yes', 'wpuf' ),
42
+ );
43
+
44
+ foreach ($options as $to => $label) {
45
+ printf('<option value="%s"%s>%s</option>', $to, selected( $theme_css, $to, false ), $label );
46
+ }
47
+ ?>
48
+ </select>
49
+
50
+ <p class="description">
51
+ <?php _e( 'Selecting "Yes" will use your theme\'s style for form fields.', 'wpuf' ) ?>
52
+ </p>
53
+ </td>
54
+ </tr>
55
+
56
  <?php if( class_exists( 'WP_User_Frontend_Pro' ) ) : ?>
57
  <tr class="wpuf-form-layouts">
58
  <th><?php _e( 'Form Style', 'wpuf' ); ?></th>
62
  $layouts = array(
63
  'layout1' => WPUF_PRO_ASSET_URI . '/images/forms/layout1.png',
64
  'layout2' => WPUF_PRO_ASSET_URI . '/images/forms/layout2.png',
65
+ 'layout3' => WPUF_PRO_ASSET_URI . '/images/forms/layout3.png',
66
+ 'layout4' => WPUF_PRO_ASSET_URI . '/images/forms/layout4.png',
67
+ 'layout5' => WPUF_PRO_ASSET_URI . '/images/forms/layout5.png'
68
  );
69
 
70
  foreach ( $layouts as $key => $image ) {
admin/html/whats-new.php CHANGED
@@ -1,5 +1,36 @@
1
  <?php
2
  $changelog = array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  array(
4
  'version' => 'Version 2.8.7',
5
  'released' => '2018-04-09',
1
  <?php
2
  $changelog = array(
3
+ array(
4
+ 'version' => 'Version 2.8.8',
5
+ 'released' => '2018-05-16',
6
+ 'changes' => array(
7
+ array(
8
+ 'title' => __( 'Allow overriding form input styles using theme styling.', 'wpuf' ),
9
+ 'type' => 'New',
10
+ 'description' => __( 'Overriding form input styles using theme style is now possible.', 'wpuf' )
11
+ ),
12
+ array(
13
+ 'title' => __( 'Fixed Auto Login after registration.', 'wpuf' ),
14
+ 'type' => 'Fix',
15
+ 'description' => __( 'Auto Login after registration was not working is fixed now.', 'wpuf' ),
16
+ ),
17
+ array(
18
+ 'title' => __( 'Fixed fallback cost calculation', 'wpuf' ),
19
+ 'type' => 'Fix',
20
+ 'description' => __( 'Fallback cost calculation was inaccurate for some cases, it is fixed now.', 'wpuf' ),
21
+ ),
22
+ array(
23
+ 'title' => __( 'Removal of subscription from User Profile gets reverted if updated', 'wpuf' ),
24
+ 'type' => 'Fix',
25
+ 'description' => __( 'User subscription deletion gets reverted if updated is fixed.', 'wpuf' ),
26
+ ),
27
+ array(
28
+ 'title' => __( 'Show Free pack users in subscribers list.', 'wpuf' ),
29
+ 'type' => 'Improvement',
30
+ 'description' => __( 'Free pack users were not showing in subscribers list, now they will.', 'wpuf' ),
31
+ )
32
+ )
33
+ ),
34
  array(
35
  'version' => 'Version 2.8.7',
36
  'released' => '2018-04-09',
admin/posting.php CHANGED
@@ -86,7 +86,7 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
86
  * form select box to assign a form id.
87
  *
88
  * @since 2.5.2
89
- *
90
  * @return void
91
  */
92
  function add_meta_box_form_select() {
@@ -150,14 +150,14 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
150
 
151
  update_post_meta( $post->ID, '_wpuf_form_id', $_POST['wpuf_form_select'] );
152
  }
153
-
154
  /**
155
  * Meta box to show WPUF Custom Fields
156
  *
157
  * Registers a meta box in public post types to show WPUF Custom Fields
158
  *
159
  * @since 2.5
160
- *
161
  * @return void
162
  */
163
  function add_meta_boxes() {
@@ -172,7 +172,7 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
172
  * function to hide form custom field
173
  *
174
  * @since 2.5
175
- *
176
  * @return void
177
  */
178
  function hide_form() {
@@ -187,10 +187,10 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
187
  * generate frontend form field
188
  *
189
  * @since 2.5
190
- *
191
  * @param int $form_id
192
  * @param int $post_id
193
- *
194
  * @return void
195
  */
196
  function render_form( $form_id, $post_id = null ) {
@@ -242,10 +242,10 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
242
  * generate table header of frontend form field
243
  *
244
  * @since 2.5
245
- *
246
  * @param array $form_field
247
  * @param int $post_id
248
- *
249
  * @return void
250
  */
251
  function render_item_before( $form_field, $post_id = 0 ) {
@@ -260,9 +260,9 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
260
  * generate table bottom of frontend form field
261
  *
262
  * @since 2.5
263
- *
264
  * @param array $form_field
265
- *
266
  * @return void
267
  */
268
  function render_item_after( $form_field ) {
@@ -334,35 +334,6 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
334
  border-radius: 5px;
335
  margin-right: 5px;
336
  }
337
- ul.wpuf-attachment-list li a.attachment-delete {
338
- text-decoration: none;
339
- padding: 3px 12px;
340
- border: 1px solid #C47272;
341
- color: #ffffff;
342
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
343
- -webkit-border-radius: 3px;
344
- -moz-border-radius: 3px;
345
- border-radius: 3px;
346
- background-color: #da4f49;
347
- background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
348
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
349
- background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
350
- background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
351
- background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
352
- background-repeat: repeat-x;
353
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
354
- border-color: #bd362f #bd362f #802420;
355
- border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
356
- *background-color: #bd362f;
357
- filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
358
- }
359
- ul.wpuf-attachment-list li a.attachment-delete:hover,
360
- ul.wpuf-attachment-list li a.attachment-delete:active {
361
- color: #ffffff;
362
- background-color: #bd362f;
363
- *background-color: #a9302a;
364
- }
365
-
366
  .wpuf-cf-table table th,
367
  .wpuf-cf-table table td{
368
  padding-left: 0 !important;
@@ -415,9 +386,9 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
415
  * save post meta
416
  *
417
  * @since 2.5
418
- *
419
  * @param object $post
420
- *
421
  * @return void
422
  */
423
  // Save the Metabox Data
86
  * form select box to assign a form id.
87
  *
88
  * @since 2.5.2
89
+ *
90
  * @return void
91
  */
92
  function add_meta_box_form_select() {
150
 
151
  update_post_meta( $post->ID, '_wpuf_form_id', $_POST['wpuf_form_select'] );
152
  }
153
+
154
  /**
155
  * Meta box to show WPUF Custom Fields
156
  *
157
  * Registers a meta box in public post types to show WPUF Custom Fields
158
  *
159
  * @since 2.5
160
+ *
161
  * @return void
162
  */
163
  function add_meta_boxes() {
172
  * function to hide form custom field
173
  *
174
  * @since 2.5
175
+ *
176
  * @return void
177
  */
178
  function hide_form() {
187
  * generate frontend form field
188
  *
189
  * @since 2.5
190
+ *
191
  * @param int $form_id
192
  * @param int $post_id
193
+ *
194
  * @return void
195
  */
196
  function render_form( $form_id, $post_id = null ) {
242
  * generate table header of frontend form field
243
  *
244
  * @since 2.5
245
+ *
246
  * @param array $form_field
247
  * @param int $post_id
248
+ *
249
  * @return void
250
  */
251
  function render_item_before( $form_field, $post_id = 0 ) {
260
  * generate table bottom of frontend form field
261
  *
262
  * @since 2.5
263
+ *
264
  * @param array $form_field
265
+ *
266
  * @return void
267
  */
268
  function render_item_after( $form_field ) {
334
  border-radius: 5px;
335
  margin-right: 5px;
336
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  .wpuf-cf-table table th,
338
  .wpuf-cf-table table td{
339
  padding-left: 0 !important;
386
  * save post meta
387
  *
388
  * @since 2.5
389
+ *
390
  * @param object $post
391
+ *
392
  * @return void
393
  */
394
  // Save the Metabox Data
admin/template-post.php CHANGED
@@ -1,296 +1,296 @@
1
- <?php
2
- /**
3
- * Post related form templates
4
- *
5
- * @package WP User Frontend
6
- */
7
- class WPUF_Admin_Template_Post extends WPUF_Admin_Template {
8
-
9
- public static function post_title( $field_id, $label, $values = array() ) {
10
-
11
- ?>
12
- <li class="post_title">
13
- <?php self::legend( $label, $values, $field_id ); ?>
14
- <?php self::hidden_field( "[$field_id][input_type]", 'text' ); ?>
15
- <?php self::hidden_field( "[$field_id][template]", 'post_title' ); ?>
16
-
17
- <div class="wpuf-form-holder">
18
- <?php self::common( $field_id, 'post_title', false, $values ); ?>
19
- <?php self::common_text( $field_id, $values ); ?>
20
- <?php self::conditional_field( $field_id, $values ); ?>
21
- </div> <!-- .wpuf-form-holder -->
22
- </li>
23
- <?php
24
- }
25
-
26
- public static function post_content( $field_id, $label, $values = array() ) {
27
-
28
- $image_insert_name = sprintf( '%s[%d][insert_image]', self::$input_name, $field_id );
29
- $image_insert_value = isset( $values['insert_image'] ) ? $values['insert_image'] : 'yes';
30
- ?>
31
- <li class="post_content">
32
- <?php self::legend( $label, $values, $field_id ); ?>
33
- <?php self::hidden_field( "[$field_id][input_type]", 'textarea' ); ?>
34
- <?php self::hidden_field( "[$field_id][template]", 'post_content' ); ?>
35
-
36
- <div class="wpuf-form-holder">
37
- <?php self::common( $field_id, 'post_content', false, $values ); ?>
38
- <?php self::common_textarea( $field_id, $values ); ?>
39
-
40
- <div class="wpuf-form-rows">
41
- <label><?php _e( 'Enable Image Insertion', 'wpuf' ); ?></label>
42
-
43
- <div class="wpuf-form-sub-fields">
44
- <label>
45
- <?php self::hidden_field( "[$field_id][insert_image]", 'no' ); ?>
46
- <input type="checkbox" name="<?php echo $image_insert_name ?>" value="yes"<?php checked( $image_insert_value, 'yes' ); ?> />
47
- <?php _e( 'Enable image upload in post area', 'wpuf' ); ?>
48
- </label>
49
- </div>
50
- </div> <!-- .wpuf-form-rows -->
51
-
52
- <?php self::conditional_field( $field_id, $values ); ?>
53
- </div> <!-- .wpuf-form-holder -->
54
- </li>
55
- <?php
56
- }
57
-
58
- public static function post_excerpt( $field_id, $label, $values = array() ) {
59
- ?>
60
- <li class="post_excerpt">
61
- <?php self::legend( $label, $values, $field_id ); ?>
62
- <?php self::hidden_field( "[$field_id][input_type]", 'textarea' ); ?>
63
- <?php self::hidden_field( "[$field_id][template]", 'post_excerpt' ); ?>
64
-
65
- <div class="wpuf-form-holder">
66
- <?php self::common( $field_id, 'post_excerpt', false, $values ); ?>
67
- <?php self::common_textarea( $field_id, $values ); ?>
68
- <?php self::conditional_field( $field_id, $values ); ?>
69
- </div> <!-- .wpuf-form-holder -->
70
- </li>
71
- <?php
72
- }
73
-
74
- public static function post_tags( $field_id, $label, $values = array() ) {
75
- ?>
76
- <li class="post_tags">
77
- <?php self::legend( $label, $values, $field_id ); ?>
78
- <?php self::hidden_field( "[$field_id][input_type]", 'text' ); ?>
79
- <?php self::hidden_field( "[$field_id][template]", 'post_tags' ); ?>
80
-
81
- <div class="wpuf-form-holder">
82
- <?php self::common( $field_id, 'tags', false, $values ); ?>
83
- <?php self::common_text( $field_id, $values ); ?>
84
- <?php self::conditional_field( $field_id, $values ); ?>
85
- </div> <!-- .wpuf-form-holder -->
86
- </li>
87
- <?php
88
- }
89
-
90
- public static function featured_image( $field_id, $label, $values = array() ) {
91
- $max_file_name = sprintf( '%s[%d][max_size]', self::$input_name, $field_id );
92
- $max_file_value = $values ? $values['max_size'] : '1024';
93
- $help = esc_attr( __( 'Enter maximum upload size limit in KB', 'wpuf' ) );
94
- ?>
95
- <li class="featured_image">
96
- <?php self::legend( $label, $values, $field_id ); ?>
97
- <?php self::hidden_field( "[$field_id][input_type]", 'image_upload' ); ?>
98
- <?php self::hidden_field( "[$field_id][template]", 'featured_image' ); ?>
99
- <?php self::hidden_field( "[$field_id][count]", '1' ); ?>
100
-
101
- <div class="wpuf-form-holder">
102
- <?php self::common( $field_id, 'featured_image', false, $values ); ?>
103
-
104
- <div class="wpuf-form-rows">
105
- <label><?php _e( 'Max. file size', 'wpuf' ); ?></label>
106
- <input type="text" class="smallipopInput" name="<?php echo $max_file_name; ?>" value="<?php echo $max_file_value; ?>" title="<?php echo $help; ?>">
107
- </div> <!-- .wpuf-form-rows -->
108
- <?php self::conditional_field( $field_id, $values ); ?>
109
- </div> <!-- .wpuf-form-holder -->
110
- </li>
111
- <?php
112
- }
113
-
114
- public static function post_category( $field_id, $label, $values = array() ) {
115
- ?>
116
- <li class="post_category">
117
- <?php self::legend( $label, $values, $field_id ); ?>
118
- <?php self::hidden_field( "[$field_id][template]", 'post_category' ); ?>
119
-
120
- <div class="wpuf-form-holder">
121
- <?php self::common( $field_id, 'category', false, $values ); ?>
122
- <?php self::conditional_field( $field_id, $values ); ?>
123
- </div> <!-- .wpuf-form-holder -->
124
- </li>
125
- <?php
126
- }
127
-
128
- public static function taxonomy( $field_id, $label, $taxonomy = '', $values = array() ) {
129
- $type_name = sprintf( '%s[%d][type]', self::$input_name, $field_id );
130
- $order_name = sprintf( '%s[%d][order]', self::$input_name, $field_id );
131
- $orderby_name = sprintf( '%s[%d][orderby]', self::$input_name, $field_id );
132
- $exclude_type_name = sprintf( '%s[%d][exclude_type]', self::$input_name, $field_id );
133
- $exclude_name = sprintf( '%s[%d][exclude]', self::$input_name, $field_id );
134
- $woo_attr_name = sprintf( '%s[%d][woo_attr]', self::$input_name, $field_id );
135
- $woo_attr_vis_name = sprintf( '%s[%d][woo_attr_vis]', self::$input_name, $field_id );
136
-
137
- $type_value = $values ? esc_attr( $values['type'] ) : 'select';
138
- $order_value = $values ? esc_attr( $values['order'] ) : 'ASC';
139
- $orderby_value = $values ? esc_attr( $values['orderby'] ) : 'name';
140
- $exclude_type_value = $values ? esc_attr( $values['exclude_type'] ) : 'exclude';
141
- $exclude_value = $values ? esc_attr( $values['exclude'] ) : '';
142
- $woo_attr_value = $values ? esc_attr( $values['woo_attr'] ) : 'no';
143
- $woo_attr_vis_value = $values ? esc_attr( $values['woo_attr_vis'] ) : 'no';
144
- ?>
145
- <li class="taxonomy <?php echo $taxonomy; ?> wpuf-conditional">
146
- <?php self::legend( $label, $values, $field_id ); ?>
147
- <?php self::hidden_field( "[$field_id][input_type]", 'taxonomy' ); ?>
148
- <?php self::hidden_field( "[$field_id][template]", 'taxonomy' ); ?>
149
-
150
- <div class="wpuf-form-holder">
151
- <?php self::common( $field_id, $taxonomy, false, $values ); ?>
152
-
153
- <div class="wpuf-form-rows">
154
- <label><?php _e( 'Type', 'wpuf' ); ?></label>
155
- <select name="<?php echo $type_name ?>">
156
- <option value="select"<?php selected( $type_value, 'select' ); ?>><?php _e( 'Dropdown', 'wpuf' ); ?></option>
157
- <option value="multiselect"<?php selected( $type_value, 'multiselect' ); ?>><?php _e( 'Multi Select', 'wpuf' ); ?></option>
158
- <option value="checkbox"<?php selected( $type_value, 'checkbox' ); ?>><?php _e( 'Checkbox', 'wpuf' ); ?></option>
159
- <option value="text"<?php selected( $type_value, 'text' ); ?>><?php _e( 'Text Input', 'wpuf' ); ?></option>
160
- <option value="ajax"<?php selected( $type_value, 'ajax' ); ?>><?php _e( 'Ajax', 'wpuf' ); ?></option>
161
- </select>
162
- </div> <!-- .wpuf-form-rows -->
163
-
164
- <div class="wpuf-form-rows">
165
- <label><?php _e( 'Order By', 'wpuf' ); ?></label>
166
- <select name="<?php echo $orderby_name ?>">
167
- <option value="name"<?php selected( $orderby_value, 'name' ); ?>><?php _e( 'Name', 'wpuf' ); ?></option>
168
- <option value="id"<?php selected( $orderby_value, 'id' ); ?>><?php _e( 'Term ID', 'wpuf' ); ?></option>
169
- <option value="slug"<?php selected( $orderby_value, 'slug' ); ?>><?php _e( 'Slug', 'wpuf' ); ?></option>
170
- <option value="count"<?php selected( $orderby_value, 'count' ); ?>><?php _e( 'Count', 'wpuf' ); ?></option>
171
- <option value="term_group"<?php selected( $orderby_value, 'term_group' ); ?>><?php _e( 'Term Group', 'wpuf' ); ?></option>
172
- </select>
173
- </div> <!-- .wpuf-form-rows -->
174
-
175
- <div class="wpuf-form-rows">
176
- <label><?php _e( 'Order', 'wpuf' ); ?></label>
177
- <select name="<?php echo $order_name ?>">
178
- <option value="ASC"<?php selected( $order_value, 'ASC' ); ?>><?php _e( 'ASC', 'wpuf' ); ?></option>
179
- <option value="DESC"<?php selected( $order_value, 'DESC' ); ?>><?php _e( 'DESC', 'wpuf' ); ?></option>
180
- </select>
181
- </div> <!-- .wpuf-form-rows -->
182
-
183
- <div class="wpuf-form-rows">
184
- <label><?php _e( 'Selection Type', 'wpuf' ); ?></label>
185
- <select name="<?php echo $exclude_type_name ?>">
186
- <option value="exclude"<?php selected( $exclude_type_value, 'exclude' ); ?>><?php _e( 'Exclude', 'wpuf' ); ?></option>
187
- <option value="include"<?php selected( $exclude_type_value, 'include' ); ?>><?php _e( 'Include', 'wpuf' ); ?></option>
188
- <option value="child_of"<?php selected( $exclude_type_value, 'child_of' ); ?>><?php _e( 'Child of', 'wpuf' ); ?></option>
189
- </select>
190
- </div> <!-- .wpuf-form-rows -->
191
-
192
- <div class="wpuf-form-rows">
193
- <label><?php _e( 'Selection terms', 'wpuf' ); ?></label>
194
- <input type="text" class="smallipopInput" name="<?php echo $exclude_name; ?>" title="<?php _e( 'Enter the term IDs as comma separated (without space) to exclude/include in the form.', 'wpuf' ); ?>" value="<?php echo $exclude_value; ?>" />
195
- </div> <!-- .wpuf-form-rows -->
196
-
197
- <div class="wpuf-form-rows">
198
- <label><?php _e( 'WooCommerce Attribute', 'wpuf' ); ?></label>
199
-
200
- <div class="wpuf-form-sub-fields">
201
- <label>
202
- <?php self::hidden_field( "[$field_id][woo_attr]", 'no' ); ?>
203
- <input type="checkbox" class="woo_attr" name="<?php echo $woo_attr_name ?>" value="yes"<?php checked( $woo_attr_value, 'yes' ); ?> />
204
- <?php _e( 'This taxonomy is a WooCommerce attribute', 'wpuf' ); ?>
205
- </label>
206
- </div>
207
- </div> <!-- .wpuf-form-rows -->
208
-
209
- <div class="wpuf-form-rows<?php echo $woo_attr_value == 'no' ? ' wpuf-hide' : ''; ?>">
210
- <label><?php _e( 'Visibility', 'wpuf' ); ?></label>
211
-
212
- <div class="wpuf-form-sub-fields">
213
- <label>
214
- <?php self::hidden_field( "[$field_id][woo_attr_vis]", 'no' ); ?>
215
- <input type="checkbox" name="<?php echo $woo_attr_vis_name ?>" value="yes"<?php checked( $woo_attr_vis_value, 'yes' ); ?> />
216
- <?php _e( 'Visible on product page', 'wpuf' ); ?>
217
- </label>
218
- </div>
219
- </div> <!-- .wpuf-form-rows -->
220
-
221
- <?php self::conditional_field( $field_id, $values ); ?>
222
- <div class="wpuf-options">
223
- <?php
224
-
225
- $tax = get_terms( $taxonomy, array(
226
- 'orderby' => 'count',
227
- 'hide_empty' => 0
228
- ) );
229
-
230
- $tax = is_array( $tax ) ? $tax : array();
231
-
232
- foreach($tax as $tax_obj) {
233
- ?>
234
- <div>
235
- <input type="hidden" value="<?php echo $tax_obj->name;?>" data-taxonomy="yes" data-term-id="<?php echo $tax_obj->term_id;?>" data-type="option">
236
- <input type="hidden" value="<?php echo $tax_obj->term_id;?>" data-taxonomy="yes" data-term-id="<?php echo $tax_obj->term_id;?>" data-type="option_value">
237
- </div>
238
- <?php
239
- }
240
- ?>
241
- </div>
242
- </div> <!-- .wpuf-form-holder -->
243
- </li>
244
- <?php
245
- }
246
-
247
-
248
- /**
249
- * Drop Down portion
250
- * @param array $param
251
- */
252
- public static function render_drop_down_portion( $param = array( 'names_to_hide' => array( 'name' => '', 'value' => '' ),'names_to_show' => array( 'name' => '', 'value' => '' ),'option_to_chose' => array('name' => '', 'value' => '' ) ) ) {
253
- empty( $param['option_to_chose']['value'] ) ? ( $param['option_to_chose']['value'] = 'all' ) : '';
254
-
255
- ?>
256
- <div class="wpuf-form-rows">
257
- <label><input type="radio" name="<?php echo $param['option_to_chose']['name'] ?>" value="<?php echo _e('all','wpuf'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'all' )?'checked':'' ); ?> /><?php _e( 'Show All', 'wpuf' ); ?></label>
258
- </div>
259
- <div class="wpuf-form-rows">
260
- <label><input type="radio" name="<?php echo $param['option_to_chose']['name'] ?>" value="<?php echo _e('hide','wpuf'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'hide' )?'checked':'' ); ?> /><?php _e( 'Hide These Countries', 'wpuf' ); ?></label>
261
- <select name="<?php echo $param['names_to_hide']['name'];?>" class="wpuf-country_to_hide" multiple data-placeholder="<?php esc_attr_e( 'Chose Country to hide from List', 'wpuf' ); ?>"></select>
262
- </div>
263
-
264
- <div class="wpuf-form-rows">
265
- <label><input type="radio" name="<?php echo $param['option_to_chose']['name'] ?>" value="<?php echo _e('show','wpuf'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'show' )?'checked':'' ); ?> /><?php _e( 'Show These Countries', 'wpuf' ); ?></label>
266
- <select name="<?php echo $param['names_to_show']['name'];?>" class="wpuf-country_to_hide" multiple data-placeholder="<?php esc_attr_e( 'Add Country to List', 'wpuf' ); ?>"></select>
267
- </div>
268
-
269
- <script>
270
- (function($){
271
- $(document).ready(function(){
272
- var hide_field_name = '<?php echo $param['names_to_hide']['name'];?>';
273
- var hide_field_value = JSON.parse('<?php echo json_encode($param['names_to_hide']['value']);?>');
274
- var show_field_name = '<?php echo $param['names_to_show']['name'];?>';
275
- var show_field_value = JSON.parse('<?php echo json_encode($param['names_to_show']['value']);?>');
276
- var countries = <?php echo wpuf_get_countries( 'json' ); ?>;
277
- var hide_field_option_string = '';
278
- var show_field_option_string = '';
279
-
280
- for(country in countries){
281
- hide_field_option_string = hide_field_option_string + '<option value="'+ countries[country].code +'" '+ (( $.inArray(countries[country].code,hide_field_value) != -1 )?'selected':'') +'>'+ countries[country].name +'</option>';
282
- show_field_option_string = show_field_option_string + '<option value="'+ countries[country].code +'" '+ (( $.inArray(countries[country].code,show_field_value) != -1 )?'selected':'') +'>'+ countries[country].name +'</option>';
283
- }
284
-
285
- jQuery('select[name="'+ hide_field_name +'"]').html(hide_field_option_string);
286
- jQuery('select[name="'+ show_field_name +'"]').html(show_field_option_string);
287
- jQuery('select[name="'+ hide_field_name +'"],select[name="'+ show_field_name +'"]').chosen({allow_single_deselect:true});
288
- })
289
-
290
- }(jQuery))
291
-
292
- </script>
293
- <?php
294
- }
295
-
296
- }
1
+ <?php
2
+ /**
3
+ * Post related form templates
4
+ *
5
+ * @package WP User Frontend
6
+ */
7
+ class WPUF_Admin_Template_Post extends WPUF_Admin_Template {
8
+
9
+ public static function post_title( $field_id, $label, $values = array() ) {
10
+
11
+ ?>
12
+ <li class="post_title">
13
+ <?php self::legend( $label, $values, $field_id ); ?>
14
+ <?php self::hidden_field( "[$field_id][input_type]", 'text' ); ?>
15
+ <?php self::hidden_field( "[$field_id][template]", 'post_title' ); ?>
16
+
17
+ <div class="wpuf-form-holder">
18
+ <?php self::common( $field_id, 'post_title', false, $values ); ?>
19
+ <?php self::common_text( $field_id, $values ); ?>
20
+ <?php self::conditional_field( $field_id, $values ); ?>
21
+ </div> <!-- .wpuf-form-holder -->
22
+ </li>
23
+ <?php
24
+ }
25
+
26
+ public static function post_content( $field_id, $label, $values = array() ) {
27
+
28
+ $image_insert_name = sprintf( '%s[%d][insert_image]', self::$input_name, $field_id );
29
+ $image_insert_value = isset( $values['insert_image'] ) ? $values['insert_image'] : 'yes';
30
+ ?>
31
+ <li class="post_content">
32
+ <?php self::legend( $label, $values, $field_id ); ?>
33
+ <?php self::hidden_field( "[$field_id][input_type]", 'textarea' ); ?>
34
+ <?php self::hidden_field( "[$field_id][template]", 'post_content' ); ?>
35
+
36
+ <div class="wpuf-form-holder">
37
+ <?php self::common( $field_id, 'post_content', false, $values ); ?>
38
+ <?php self::common_textarea( $field_id, $values ); ?>
39
+
40
+ <div class="wpuf-form-rows">
41
+ <label><?php _e( 'Enable Image Insertion', 'wpuf' ); ?></label>
42
+
43
+ <div class="wpuf-form-sub-fields">
44
+ <label>
45
+ <?php self::hidden_field( "[$field_id][insert_image]", 'no' ); ?>
46
+ <input type="checkbox" name="<?php echo $image_insert_name ?>" value="yes"<?php checked( $image_insert_value, 'yes' ); ?> />
47
+ <?php _e( 'Enable image upload in post area', 'wpuf' ); ?>
48
+ </label>
49
+ </div>
50
+ </div> <!-- .wpuf-form-rows -->
51
+
52
+ <?php self::conditional_field( $field_id, $values ); ?>
53
+ </div> <!-- .wpuf-form-holder -->
54
+ </li>
55
+ <?php
56
+ }
57
+
58
+ public static function post_excerpt( $field_id, $label, $values = array() ) {
59
+ ?>
60
+ <li class="post_excerpt">
61
+ <?php self::legend( $label, $values, $field_id ); ?>
62
+ <?php self::hidden_field( "[$field_id][input_type]", 'textarea' ); ?>
63
+ <?php self::hidden_field( "[$field_id][template]", 'post_excerpt' ); ?>
64
+
65
+ <div class="wpuf-form-holder">
66
+ <?php self::common( $field_id, 'post_excerpt', false, $values ); ?>
67
+ <?php self::common_textarea( $field_id, $values ); ?>
68
+ <?php self::conditional_field( $field_id, $values ); ?>
69
+ </div> <!-- .wpuf-form-holder -->
70
+ </li>
71
+ <?php
72
+ }
73
+
74
+ public static function post_tags( $field_id, $label, $values = array() ) {
75
+ ?>
76
+ <li class="post_tags">
77
+ <?php self::legend( $label, $values, $field_id ); ?>
78
+ <?php self::hidden_field( "[$field_id][input_type]", 'text' ); ?>
79
+ <?php self::hidden_field( "[$field_id][template]", 'post_tags' ); ?>
80
+
81
+ <div class="wpuf-form-holder">
82
+ <?php self::common( $field_id, 'tags', false, $values ); ?>
83
+ <?php self::common_text( $field_id, $values ); ?>
84
+ <?php self::conditional_field( $field_id, $values ); ?>
85
+ </div> <!-- .wpuf-form-holder -->
86
+ </li>
87
+ <?php
88
+ }
89
+
90
+ public static function featured_image( $field_id, $label, $values = array() ) {
91
+ $max_file_name = sprintf( '%s[%d][max_size]', self::$input_name, $field_id );
92
+ $max_file_value = $values ? $values['max_size'] : '1024';
93
+ $help = esc_attr( __( 'Enter maximum upload size limit in KB', 'wpuf' ) );
94
+ ?>
95
+ <li class="featured_image">
96
+ <?php self::legend( $label, $values, $field_id ); ?>
97
+ <?php self::hidden_field( "[$field_id][input_type]", 'image_upload' ); ?>
98
+ <?php self::hidden_field( "[$field_id][template]", 'image_upload' ); ?>
99
+ <?php self::hidden_field( "[$field_id][count]", '1' ); ?>
100
+
101
+ <div class="wpuf-form-holder">
102
+ <?php self::common( $field_id, 'featured_image', false, $values ); ?>
103
+
104
+ <div class="wpuf-form-rows">
105
+ <label><?php _e( 'Max. file size', 'wpuf' ); ?></label>
106
+ <input type="text" class="smallipopInput" name="<?php echo $max_file_name; ?>" value="<?php echo $max_file_value; ?>" title="<?php echo $help; ?>">
107
+ </div> <!-- .wpuf-form-rows -->
108
+ <?php self::conditional_field( $field_id, $values ); ?>
109
+ </div> <!-- .wpuf-form-holder -->
110
+ </li>
111
+ <?php
112
+ }
113
+
114
+ public static function post_category( $field_id, $label, $values = array() ) {
115
+ ?>
116
+ <li class="post_category">
117
+ <?php self::legend( $label, $values, $field_id ); ?>
118
+ <?php self::hidden_field( "[$field_id][template]", 'post_category' ); ?>
119
+
120
+ <div class="wpuf-form-holder">
121
+ <?php self::common( $field_id, 'category', false, $values ); ?>
122
+ <?php self::conditional_field( $field_id, $values ); ?>
123
+ </div> <!-- .wpuf-form-holder -->
124
+ </li>
125
+ <?php
126
+ }
127
+
128
+ public static function taxonomy( $field_id, $label, $taxonomy = '', $values = array() ) {
129
+ $type_name = sprintf( '%s[%d][type]', self::$input_name, $field_id );
130
+ $order_name = sprintf( '%s[%d][order]', self::$input_name, $field_id );
131
+ $orderby_name = sprintf( '%s[%d][orderby]', self::$input_name, $field_id );
132
+ $exclude_type_name = sprintf( '%s[%d][exclude_type]', self::$input_name, $field_id );
133
+ $exclude_name = sprintf( '%s[%d][exclude]', self::$input_name, $field_id );
134
+ $woo_attr_name = sprintf( '%s[%d][woo_attr]', self::$input_name, $field_id );
135
+ $woo_attr_vis_name = sprintf( '%s[%d][woo_attr_vis]', self::$input_name, $field_id );
136
+
137
+ $type_value = $values ? esc_attr( $values['type'] ) : 'select';
138
+ $order_value = $values ? esc_attr( $values['order'] ) : 'ASC';
139
+ $orderby_value = $values ? esc_attr( $values['orderby'] ) : 'name';
140
+ $exclude_type_value = $values ? esc_attr( $values['exclude_type'] ) : 'exclude';
141
+ $exclude_value = $values ? esc_attr( $values['exclude'] ) : '';
142
+ $woo_attr_value = $values ? esc_attr( $values['woo_attr'] ) : 'no';
143
+ $woo_attr_vis_value = $values ? esc_attr( $values['woo_attr_vis'] ) : 'no';
144
+ ?>
145
+ <li class="taxonomy <?php echo $taxonomy; ?> wpuf-conditional">
146
+ <?php self::legend( $label, $values, $field_id ); ?>
147
+ <?php self::hidden_field( "[$field_id][input_type]", 'taxonomy' ); ?>
148
+ <?php self::hidden_field( "[$field_id][template]", 'taxonomy' ); ?>
149
+
150
+ <div class="wpuf-form-holder">
151
+ <?php self::common( $field_id, $taxonomy, false, $values ); ?>
152
+
153
+ <div class="wpuf-form-rows">
154
+ <label><?php _e( 'Type', 'wpuf' ); ?></label>
155
+ <select name="<?php echo $type_name ?>">
156
+ <option value="select"<?php selected( $type_value, 'select' ); ?>><?php _e( 'Dropdown', 'wpuf' ); ?></option>
157
+ <option value="multiselect"<?php selected( $type_value, 'multiselect' ); ?>><?php _e( 'Multi Select', 'wpuf' ); ?></option>
158
+ <option value="checkbox"<?php selected( $type_value, 'checkbox' ); ?>><?php _e( 'Checkbox', 'wpuf' ); ?></option>
159
+ <option value="text"<?php selected( $type_value, 'text' ); ?>><?php _e( 'Text Input', 'wpuf' ); ?></option>
160
+ <option value="ajax"<?php selected( $type_value, 'ajax' ); ?>><?php _e( 'Ajax', 'wpuf' ); ?></option>
161
+ </select>
162
+ </div> <!-- .wpuf-form-rows -->
163
+
164
+ <div class="wpuf-form-rows">
165
+ <label><?php _e( 'Order By', 'wpuf' ); ?></label>
166
+ <select name="<?php echo $orderby_name ?>">
167
+ <option value="name"<?php selected( $orderby_value, 'name' ); ?>><?php _e( 'Name', 'wpuf' ); ?></option>
168
+ <option value="id"<?php selected( $orderby_value, 'id' ); ?>><?php _e( 'Term ID', 'wpuf' ); ?></option>
169
+ <option value="slug"<?php selected( $orderby_value, 'slug' ); ?>><?php _e( 'Slug', 'wpuf' ); ?></option>
170
+ <option value="count"<?php selected( $orderby_value, 'count' ); ?>><?php _e( 'Count', 'wpuf' ); ?></option>
171
+ <option value="term_group"<?php selected( $orderby_value, 'term_group' ); ?>><?php _e( 'Term Group', 'wpuf' ); ?></option>
172
+ </select>
173
+ </div> <!-- .wpuf-form-rows -->
174
+
175
+ <div class="wpuf-form-rows">
176
+ <label><?php _e( 'Order', 'wpuf' ); ?></label>
177
+ <select name="<?php echo $order_name ?>">
178
+ <option value="ASC"<?php selected( $order_value, 'ASC' ); ?>><?php _e( 'ASC', 'wpuf' ); ?></option>
179
+ <option value="DESC"<?php selected( $order_value, 'DESC' ); ?>><?php _e( 'DESC', 'wpuf' ); ?></option>
180
+ </select>
181
+ </div> <!-- .wpuf-form-rows -->
182
+
183
+ <div class="wpuf-form-rows">
184
+ <label><?php _e( 'Selection Type', 'wpuf' ); ?></label>
185
+ <select name="<?php echo $exclude_type_name ?>">
186
+ <option value="exclude"<?php selected( $exclude_type_value, 'exclude' ); ?>><?php _e( 'Exclude', 'wpuf' ); ?></option>
187
+ <option value="include"<?php selected( $exclude_type_value, 'include' ); ?>><?php _e( 'Include', 'wpuf' ); ?></option>
188
+ <option value="child_of"<?php selected( $exclude_type_value, 'child_of' ); ?>><?php _e( 'Child of', 'wpuf' ); ?></option>
189
+ </select>
190
+ </div> <!-- .wpuf-form-rows -->
191
+
192
+ <div class="wpuf-form-rows">
193
+ <label><?php _e( 'Selection terms', 'wpuf' ); ?></label>
194
+ <input type="text" class="smallipopInput" name="<?php echo $exclude_name; ?>" title="<?php _e( 'Enter the term IDs as comma separated (without space) to exclude/include in the form.', 'wpuf' ); ?>" value="<?php echo $exclude_value; ?>" />
195
+ </div> <!-- .wpuf-form-rows -->
196
+
197
+ <div class="wpuf-form-rows">
198
+ <label><?php _e( 'WooCommerce Attribute', 'wpuf' ); ?></label>
199
+
200
+ <div class="wpuf-form-sub-fields">
201
+ <label>
202
+ <?php self::hidden_field( "[$field_id][woo_attr]", 'no' ); ?>
203
+ <input type="checkbox" class="woo_attr" name="<?php echo $woo_attr_name ?>" value="yes"<?php checked( $woo_attr_value, 'yes' ); ?> />
204
+ <?php _e( 'This taxonomy is a WooCommerce attribute', 'wpuf' ); ?>
205
+ </label>
206
+ </div>
207
+ </div> <!-- .wpuf-form-rows -->
208
+
209
+ <div class="wpuf-form-rows<?php echo $woo_attr_value == 'no' ? ' wpuf-hide' : ''; ?>">
210
+ <label><?php _e( 'Visibility', 'wpuf' ); ?></label>
211
+
212
+ <div class="wpuf-form-sub-fields">
213
+ <label>
214
+ <?php self::hidden_field( "[$field_id][woo_attr_vis]", 'no' ); ?>
215
+ <input type="checkbox" name="<?php echo $woo_attr_vis_name ?>" value="yes"<?php checked( $woo_attr_vis_value, 'yes' ); ?> />
216
+ <?php _e( 'Visible on product page', 'wpuf' ); ?>
217
+ </label>
218
+ </div>
219
+ </div> <!-- .wpuf-form-rows -->
220
+
221
+ <?php self::conditional_field( $field_id, $values ); ?>
222
+ <div class="wpuf-options">
223
+ <?php
224
+
225
+ $tax = get_terms( $taxonomy, array(
226
+ 'orderby' => 'count',
227
+ 'hide_empty' => 0
228
+ ) );
229
+
230
+ $tax = is_array( $tax ) ? $tax : array();
231
+
232
+ foreach($tax as $tax_obj) {
233
+ ?>
234
+ <div>
235
+ <input type="hidden" value="<?php echo $tax_obj->name;?>" data-taxonomy="yes" data-term-id="<?php echo $tax_obj->term_id;?>" data-type="option">
236
+ <input type="hidden" value="<?php echo $tax_obj->term_id;?>" data-taxonomy="yes" data-term-id="<?php echo $tax_obj->term_id;?>" data-type="option_value">
237
+ </div>
238
+ <?php
239
+ }
240
+ ?>
241
+ </div>
242
+ </div> <!-- .wpuf-form-holder -->
243
+ </li>
244
+ <?php
245
+ }
246
+
247
+
248
+ /**
249
+ * Drop Down portion
250
+ * @param array $param
251
+ */
252
+ public static function render_drop_down_portion( $param = array( 'names_to_hide' => array( 'name' => '', 'value' => '' ),'names_to_show' => array( 'name' => '', 'value' => '' ),'option_to_chose' => array('name' => '', 'value' => '' ) ) ) {
253
+ empty( $param['option_to_chose']['value'] ) ? ( $param['option_to_chose']['value'] = 'all' ) : '';
254
+
255
+ ?>
256
+ <div class="wpuf-form-rows">
257
+ <label><input type="radio" name="<?php echo $param['option_to_chose']['name'] ?>" value="<?php echo _e('all','wpuf'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'all' )?'checked':'' ); ?> /><?php _e( 'Show All', 'wpuf' ); ?></label>
258
+ </div>
259
+ <div class="wpuf-form-rows">
260
+ <label><input type="radio" name="<?php echo $param['option_to_chose']['name'] ?>" value="<?php echo _e('hide','wpuf'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'hide' )?'checked':'' ); ?> /><?php _e( 'Hide These Countries', 'wpuf' ); ?></label>
261
+ <select name="<?php echo $param['names_to_hide']['name'];?>" class="wpuf-country_to_hide" multiple data-placeholder="<?php esc_attr_e( 'Chose Country to hide from List', 'wpuf' ); ?>"></select>
262
+ </div>
263
+
264
+ <div class="wpuf-form-rows">
265
+ <label><input type="radio" name="<?php echo $param['option_to_chose']['name'] ?>" value="<?php echo _e('show','wpuf'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'show' )?'checked':'' ); ?> /><?php _e( 'Show These Countries', 'wpuf' ); ?></label>
266
+ <select name="<?php echo $param['names_to_show']['name'];?>" class="wpuf-country_to_hide" multiple data-placeholder="<?php esc_attr_e( 'Add Country to List', 'wpuf' ); ?>"></select>
267
+ </div>
268
+
269
+ <script>
270
+ (function($){
271
+ $(document).ready(function(){
272
+ var hide_field_name = '<?php echo $param['names_to_hide']['name'];?>';
273
+ var hide_field_value = JSON.parse('<?php echo json_encode($param['names_to_hide']['value']);?>');
274
+ var show_field_name = '<?php echo $param['names_to_show']['name'];?>';
275
+ var show_field_value = JSON.parse('<?php echo json_encode($param['names_to_show']['value']);?>');
276
+ var countries = <?php echo wpuf_get_countries( 'json' ); ?>;
277
+ var hide_field_option_string = '';
278
+ var show_field_option_string = '';
279
+
280
+ for(country in countries){
281
+ hide_field_option_string = hide_field_option_string + '<option value="'+ countries[country].code +'" '+ (( $.inArray(countries[country].code,hide_field_value) != -1 )?'selected':'') +'>'+ countries[country].name +'</option>';
282
+ show_field_option_string = show_field_option_string + '<option value="'+ countries[country].code +'" '+ (( $.inArray(countries[country].code,show_field_value) != -1 )?'selected':'') +'>'+ countries[country].name +'</option>';
283
+ }
284
+
285
+ jQuery('select[name="'+ hide_field_name +'"]').html(hide_field_option_string);
286
+ jQuery('select[name="'+ show_field_name +'"]').html(show_field_option_string);
287
+ jQuery('select[name="'+ hide_field_name +'"],select[name="'+ show_field_name +'"]').chosen({allow_single_deselect:true});
288
+ })
289
+
290
+ }(jQuery))
291
+
292
+ </script>
293
+ <?php
294
+ }
295
+
296
+ }
assets/css/admin.css CHANGED
@@ -469,6 +469,15 @@ tr.wpuf-form-layouts ul li img {
469
  max-width: 100%;
470
  cursor: pointer;
471
  }
 
 
 
 
 
 
 
 
 
472
  tr.wpuf-form-layouts ul li.active:before {
473
  position: absolute;
474
  top: 0;
@@ -480,9 +489,24 @@ tr.wpuf-form-layouts ul li.active:before {
480
  color: #18d118;
481
  content: "\f147";
482
  text-align: center;
483
- background: #f5f5f5;
484
  line-height: 40px;
485
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
486
  .wpuf-help-tabbed {
487
  display: flex;
488
  width: 100%;
469
  max-width: 100%;
470
  cursor: pointer;
471
  }
472
+ tr.wpuf-form-layouts ul li label {
473
+ font-size: 20px;
474
+ font-weight: 500;
475
+ margin-bottom: 20px;
476
+ }
477
+ tr.wpuf-form-layouts ul li:hover {
478
+ opacity: 0.3;
479
+ transition: .3s;
480
+ }
481
  tr.wpuf-form-layouts ul li.active:before {
482
  position: absolute;
483
  top: 0;
489
  color: #18d118;
490
  content: "\f147";
491
  text-align: center;
492
+ background: inherit;
493
  line-height: 40px;
494
  }
495
+ ul.wpuf-form .wpuf-submit input[type=submit] {
496
+ font-size: 16px;
497
+ padding: 5px 15px;
498
+ border: 1px solid #ccc;
499
+ -webkit-border-radius: 3px;
500
+ -moz-border-radius: 3px;
501
+ border-radius: 3px;
502
+ background: #0085ba;
503
+ border-color: #0073aa #006799 #006799;
504
+ -webkit-box-shadow: 0 1px 0 #006799;
505
+ box-shadow: 0 1px 0 #006799;
506
+ color: #fff;
507
+ text-decoration: none;
508
+ text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
509
+ }
510
  .wpuf-help-tabbed {
511
  display: flex;
512
  width: 100%;
assets/css/frontend-form/layout2.css CHANGED
@@ -262,7 +262,7 @@ body.mceContentBody{
262
  .wpuf-form-add.wpuf-form-layout2 ul.wpuf-form li .br-theme-css-stars .br-widget {
263
  display: inline-block;
264
  background: #F8F1FA;
265
- border: 1px solid ##33374D;
266
  line-height: 36px;
267
  border-radius: 5px;
268
  height: 36px;
262
  .wpuf-form-add.wpuf-form-layout2 ul.wpuf-form li .br-theme-css-stars .br-widget {
263
  display: inline-block;
264
  background: #F8F1FA;
265
+ border: 1px solid #33374D;
266
  line-height: 36px;
267
  border-radius: 5px;
268
  height: 36px;
assets/css/frontend-form/layout4.css ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body.mceContentBody {
2
+ background: transparent;
3
+ color: #fff;
4
+ }
5
+
6
+ .wpuf-form-add.wpuf-form-layout4 {
7
+ position: relative;
8
+ }
9
+
10
+ .wpuf-form-add.wpuf-form-layout4 ul {
11
+ overflow: hidden;
12
+ }
13
+
14
+ .wpuf-form-add.wpuf-form-layout4 ul .wpuf-info {
15
+ border-bottom: #c8c8c8;
16
+ background-color: #F8F1FA;
17
+ }
18
+
19
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form .wpuf-errors {
20
+ color: #F20000;
21
+ }
22
+
23
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li {
24
+ padding: 0;
25
+ margin-bottom: 35px;
26
+ }
27
+
28
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.has-error {
29
+ background: transparent;
30
+ }
31
+
32
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.has-error .wpuf-fields input,
33
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.has-error .wpuf-fields textarea,
34
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.has-error .wpuf-fields select {
35
+ border-bottom: #c8c8c8;
36
+ }
37
+
38
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.has-error .wpuf-fields .wpuf-error-msg {
39
+ color: #F20000;
40
+ }
41
+
42
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input,
43
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields textarea,
44
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields select {
45
+ width: auto;
46
+ background: transparent;
47
+ -moz-box-shadow: none;
48
+ -webkit-box-shadow: none;
49
+ box-shadow: none;
50
+ border: 0;
51
+ border-radius: 0;
52
+ font-size: 14px;
53
+ border-bottom: 1px solid #c8c8c8;
54
+ padding: 10px 0 10px 10px;
55
+ box-sizing: border-box;
56
+ position: relative;
57
+ display: block;
58
+ }
59
+
60
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields select {
61
+ padding: 0;
62
+ height: inherit;
63
+ }
64
+
65
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields .country_select select {
66
+ padding: 8px 0 10px 10px;
67
+ }
68
+
69
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields textarea {
70
+ border-bottom: 1px solid #c8c8c8;
71
+ }
72
+
73
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input[type="radio"] {
74
+ width: inherit;
75
+ position: relative;
76
+ margin-right: 10px;
77
+ }
78
+
79
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input[type="radio"]::after {
80
+ content: '';
81
+ width: 10px;
82
+ height: 10px;
83
+ position: absolute;
84
+ top: 3px;
85
+ left: 1px;
86
+ -moz-border-radius: 100%;
87
+ -webkit-border-radius: 100%;
88
+ border-radius: 100%;
89
+ -moz-transition: all 0.2s ease;
90
+ -webkit-transition: all 0.2s ease;
91
+ transition: all 0.2s ease;
92
+ }
93
+
94
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input[type="radio"]:not(:checked)::after {
95
+ opacity: 0;
96
+ -moz-transform: scale(0);
97
+ -webkit-transform: scale(0);
98
+ transform: scale(0);
99
+ }
100
+
101
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input[type="radio"]:checked::after {
102
+ opacity: 1;
103
+ -moz-transform: scale(1);
104
+ -webkit-transform: scale(1);
105
+ transform: scale(1);
106
+ }
107
+
108
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input[type="checkbox"] {
109
+ width: inherit;
110
+ position: relative;
111
+ margin-right: 10px;
112
+ }
113
+
114
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input[type="checkbox"]:after {
115
+ content: '';
116
+ width: 10px;
117
+ height: 10px;
118
+ position: absolute;
119
+ top: 3px;
120
+ left: 1px;
121
+ -webkit-transition: all 0.2s ease;
122
+ transition: all 0.2s ease;
123
+ }
124
+
125
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input[type="checkbox"]:not(:checked):after {
126
+ opacity: 0;
127
+ -webkit-transform: scale(0);
128
+ transform: scale(0);
129
+ }
130
+
131
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields input[type="checkbox"]:checked:after {
132
+ opacity: 1;
133
+ -webkit-transform: scale(1);
134
+ transform: scale(1);
135
+ }
136
+
137
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields a.file-selector {
138
+ display: block;
139
+ padding: 14px 0 14px 40px;
140
+ margin: 0;
141
+ height: inherit;
142
+ line-height: inherit;
143
+ border: 0;
144
+ border-bottom: 1px solid #c8c8c8;
145
+ -webkit-border-radius: 0;
146
+ -moz-border-radius: 0;
147
+ border-radius: 0;
148
+ background: transparent;
149
+ color: #BFC4D1;
150
+ width: 100%;
151
+ position: relative;
152
+ text-transform: uppercase;
153
+ box-shadow: none;
154
+ }
155
+
156
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields a.file-selector:before {
157
+ position: absolute;
158
+ top: 0;
159
+ left: 0;
160
+ width: 40px;
161
+ height: 40px;
162
+ font-size: 36px;
163
+ content: "\f317";
164
+ font-family: dashicons;
165
+ line-height: 40px;
166
+ text-align: center;
167
+ }
168
+
169
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields .wpuf-address-field.city_name,
170
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields .wpuf-address-field.zip {
171
+ margin-right: 6%;
172
+ }
173
+
174
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-fields .wpuf-help {
175
+ color: #00A5BA;
176
+ }
177
+
178
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li input:active,
179
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li input:hover,
180
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li input:focus,
181
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li input:visited,
182
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li textarea:active,
183
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li textarea:hover,
184
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li textarea:focus,
185
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li textarea:visited,
186
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li select:active,
187
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li select:hover,
188
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li select:focus,
189
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li select:visited,
190
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li a:active,
191
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li a:hover,
192
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li a:focus,
193
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li a:visited {
194
+ outline: none;
195
+ border-color: #2196F3;
196
+ }
197
+
198
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wp-editor-wrap:hover .mce-statusbar,
199
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wp-editor-wrap:hover .mce-toolbar-grp,
200
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wp-editor-wrap:hover .wp-editor-container {
201
+ border-color: #2196F3;
202
+ }
203
+
204
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.has-error .wp-editor-wrap .mce-statusbar,
205
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.has-error .wp-editor-wrap .mce-toolbar-grp,
206
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.has-error .wp-editor-wrap .wp-editor-container {
207
+ border-color: #F20000;
208
+ }
209
+
210
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wpuf-label {
211
+ color: #00A5BA;
212
+ text-transform: uppercase;
213
+ }
214
+
215
+ .wpuf-form-add.wpuf-form-layout4 .mce-toolbar .mce-ico {
216
+ color: #c8c8c8;
217
+ }
218
+
219
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wp-editor-wrap {
220
+ border: 0;
221
+ }
222
+
223
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wp-editor-wrap .wp-editor-container {
224
+ border-bottom: 1px solid #c8c8c8;
225
+ border-radius: 5px;
226
+ }
227
+
228
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wp-editor-wrap .mce-toolbar-grp {
229
+ border: 0;
230
+ border-bottom: 1px solid #c8c8c8;
231
+ border-radius: 0 0 5px 5px;
232
+ background: #f7f3fa;
233
+ padding: 3px 0;
234
+ }
235
+
236
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wp-editor-wrap .mce-btn.mce-listbox {
237
+ border-radius: 5px;
238
+ border-bottom: #c8c8c8;
239
+ }
240
+
241
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .wp-editor-wrap .mce-statusbar {
242
+ border-bottom: 1px solid #c8c8c8;
243
+ }
244
+
245
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.field-size-small .wpuf-fields {
246
+ width: auto;
247
+ }
248
+
249
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .br-theme-css-stars .br-widget {
250
+ display: inline-block;
251
+ background: #F8F1FA;
252
+ border-bottom: 1px solid #c8c8c8;
253
+ line-height: 36px;
254
+ border-radius: 5px;
255
+ height: 36px;
256
+ padding: 0 15px;
257
+ }
258
+
259
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .br-theme-css-stars .br-widget a:after {
260
+ color: #c8c8c8;
261
+ }
262
+
263
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .br-theme-css-stars .br-widget a.br-active:after,
264
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li .br-theme-css-stars .br-widget a.br-selected:after {
265
+ color: #EDB867;
266
+ }
267
+
268
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-form li.wpuf-submit input[type=submit] {
269
+ background: #2196F3;
270
+ border-color: #2196F3 #2196F3 #2196F3;
271
+ -moz-box-shadow: 0 1px 0 #2196F3;
272
+ -webkit-box-shadow: 0 1px 0 #2196F3;
273
+ box-shadow: 0 1px 0 #2196F3;
274
+ text-shadow: none;
275
+ }
276
+
277
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-step-wizard {
278
+ overflow: visible;
279
+ }
280
+
281
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-step-wizard li {
282
+ padding: 10px 30px 10px 40px;
283
+ }
284
+
285
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-step-wizard li:before {
286
+ margin-top: -14px;
287
+ }
288
+
289
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-step-wizard li:after {
290
+ border-width: 22px;
291
+ margin-top: -34px;
292
+ right: -40px;
293
+ border-radius: 0;
294
+ }
295
+
296
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-step-wizard li.active-step {
297
+ background-color: #D5AED9;
298
+ }
299
+
300
+ .wpuf-form-add.wpuf-form-layout4 ul.wpuf-step-wizard li.active-step:after {
301
+ border-left-color: #D5AED9;
302
+ }
303
+
304
+ ul.wpuf-form li .wpuf-fields #wpuf-insert-image-container a.wpuf-insert-image {
305
+ border-bottom: #c8c8c8;
306
+ background: #f7f3fa;
307
+ box-shadow: none;
308
+ -moz-box-shadow: none;
309
+ -webkit-box-shadow: none;
310
+ }
assets/css/frontend-form/layout5.css ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body.mceContentBody {
2
+ background: transparent;
3
+ background: #394141;
4
+ color: #fff;
5
+ }
6
+
7
+ .wpuf-form-add.wpuf-form-layout5 {
8
+ position: relative;
9
+ background: #454F4F;
10
+ padding: 50px;
11
+ }
12
+
13
+ .wpuf-form-add.wpuf-form-layout5 ul {
14
+ overflow: hidden;
15
+ }
16
+
17
+ .wpuf-form-add.wpuf-form-layout5 ul .wpuf-info {
18
+ border-color: #D5AED9;
19
+ background-color: #F8F1FA;
20
+ }
21
+
22
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form .wpuf-errors {
23
+ color: #F20000;
24
+ }
25
+
26
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li {
27
+ padding: 0;
28
+ margin-bottom: 35px;
29
+ }
30
+
31
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.has-error {
32
+ background: transparent;
33
+ }
34
+
35
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.has-error .wpuf-fields input,
36
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.has-error .wpuf-fields textarea,
37
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.has-error .wpuf-fields select {
38
+ width: auto;
39
+ }
40
+
41
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.has-error .wpuf-fields .wpuf-error-msg {
42
+ color: #F20000;
43
+ }
44
+
45
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input,
46
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields textarea,
47
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields select {
48
+ width: auto;
49
+ background: #394141;
50
+ -moz-box-shadow: none;
51
+ -webkit-box-shadow: none;
52
+ box-shadow: none;
53
+ border: 0;
54
+ font-size: 14px;
55
+ border-radius: 5px;
56
+ padding: 10px 0 10px 10px;
57
+ box-sizing: border-box;
58
+ position: relative;
59
+ color: #fff;
60
+ }
61
+
62
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields select {
63
+ padding: 10px;
64
+ height: inherit;
65
+ }
66
+
67
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields .country_select select {
68
+ padding: 8px 0 10px 10px;
69
+ }
70
+
71
+
72
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="radio"] {
73
+ width: inherit;
74
+ position: relative;
75
+ margin-right: 10px;
76
+ }
77
+
78
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="radio"]::before {
79
+ content: '';
80
+ position: absolute;
81
+ left: -3px;
82
+ top: -1px;
83
+ width: 16px;
84
+ height: 16px;
85
+ border: 1px solid #6F4A70;
86
+ -moz-border-radius: 100%;
87
+ -webkit-border-radius: 100%;
88
+ border-radius: 100%;
89
+ background: #f2f2f2;
90
+ }
91
+
92
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="radio"]::after {
93
+ content: '';
94
+ width: 10px;
95
+ height: 10px;
96
+ background: #A5D6A7;
97
+ position: absolute;
98
+ top: 3px;
99
+ left: 1px;
100
+ -moz-border-radius: 100%;
101
+ -webkit-border-radius: 100%;
102
+ border-radius: 100%;
103
+ -moz-transition: all 0.2s ease;
104
+ -webkit-transition: all 0.2s ease;
105
+ transition: all 0.2s ease;
106
+ }
107
+
108
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="radio"]:not(:checked)::after {
109
+ opacity: 0;
110
+ -moz-transform: scale(0);
111
+ -webkit-transform: scale(0);
112
+ transform: scale(0);
113
+ }
114
+
115
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="radio"]:checked::after {
116
+ opacity: 1;
117
+ -moz-transform: scale(1);
118
+ -webkit-transform: scale(1);
119
+ transform: scale(1);
120
+ }
121
+
122
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="checkbox"] {
123
+ cursor: pointer;
124
+ width: inherit;
125
+ position: relative;
126
+ margin-right: 10px;
127
+ }
128
+
129
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="checkbox"]:before {
130
+ content: '';
131
+ position: absolute;
132
+ left: -3px;
133
+ top: -1px;
134
+ width: 16px;
135
+ height: 16px;
136
+ border: 1px solid #394141;
137
+ background: #f2f2f2;
138
+ }
139
+
140
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="checkbox"]:after {
141
+ content: '';
142
+ width: 10px;
143
+ height: 10px;
144
+ background: #A5D6A7;
145
+ position: absolute;
146
+ top: 3px;
147
+ left: 1px;
148
+ -moz-transition: all 0.2s ease;
149
+ -webkit-transition: all 0.2s ease;
150
+ transition: all 0.2s ease;
151
+ }
152
+
153
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="checkbox"]:not(:checked):after {
154
+ opacity: 0;
155
+ -moz-transform: scale(0);
156
+ -webkit-transform: scale(0);
157
+ transform: scale(0);
158
+ }
159
+
160
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields input[type="checkbox"]:checked:after {
161
+ opacity: 1;
162
+ -moz-transform: scale(1);
163
+ -webkit-transform: scale(1);
164
+ transform: scale(1);
165
+ }
166
+
167
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields a.file-selector {
168
+ padding: 14px 40px 14px 60px;
169
+ margin: 0;
170
+ height: inherit;
171
+ line-height: inherit;
172
+ border: 1px solid #A5D6A7;
173
+ -webkit-border-radius: 5px;
174
+ -moz-border-radius: 5px;
175
+ border-radius: 5px;
176
+ background: transparent;
177
+ color: #BFC4D1;
178
+ width: inherit;
179
+ position: relative;
180
+ text-transform: uppercase;
181
+ box-shadow: none;
182
+ display: inline-block;
183
+ }
184
+
185
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields a.file-selector:before {
186
+ position: absolute;
187
+ top: 0;
188
+ left: 0;
189
+ width: 54px;
190
+ height: 54px;
191
+ font-size: 36px;
192
+ content: "\f317";
193
+ font-family: dashicons;
194
+ line-height: 54px;
195
+ text-align: center;
196
+ }
197
+
198
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields .wpuf-radio-block,
199
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields .wpuf-checkbox-block {
200
+ color: #f2f2f2;
201
+ }
202
+
203
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields #wpuf-insert-image-container a.wpuf-insert-image {
204
+ border: 1px solid #A5D6A7;
205
+ background: #394141;
206
+ color: #f2f2f2;
207
+ box-shadow: none;
208
+ }
209
+
210
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields .wpuf-address-field.city_name,
211
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields .wpuf-address-field.zip {
212
+ margin-right: 6%;
213
+ }
214
+
215
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-fields .wpuf-help {
216
+ color: #6F4A70;
217
+ }
218
+
219
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li input:active,
220
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li input:hover,
221
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li input:focus,
222
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li input:visited,
223
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li textarea:active,
224
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li textarea:hover,
225
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li textarea:focus,
226
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li textarea:visited,
227
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li select:active,
228
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li select:hover,
229
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li select:focus,
230
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li select:visited,
231
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li a:active,
232
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li a:hover,
233
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li a:focus,
234
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li a:visited {
235
+ outline: none;
236
+ border-color: #A5D6A7;
237
+ }
238
+
239
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wpuf-label > label {
240
+ color: #f2f2f2;
241
+ }
242
+
243
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wp-editor-wrap {
244
+ border: 0;
245
+ }
246
+
247
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wp-editor-wrap .wp-editor-container {
248
+ border-radius: 5px;
249
+ }
250
+
251
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wp-editor-wrap .mce-toolbar-grp {
252
+ border: 0;
253
+ border-radius: 0 0 5px 5px;
254
+ background: #394141;
255
+ padding: 3px 0;
256
+ }
257
+
258
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wp-editor-wrap .mce-panel {
259
+ background: #394141;
260
+ }
261
+
262
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .wp-editor-wrap .mce-btn.mce-listbox {
263
+ border-radius: 5px;
264
+ border-color: #394141;
265
+ background: #394141;
266
+ }
267
+
268
+
269
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.has-error .wp-editor-wrap .mce-statusbar,
270
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.has-error .wp-editor-wrap .mce-toolbar-grp,
271
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.has-error .wp-editor-wrap .wp-editor-container {
272
+ border-color: #F20000;
273
+ }
274
+
275
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.field-size-small .wpuf-fields {
276
+ width: auto;
277
+ }
278
+
279
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .br-theme-css-stars .br-widget {
280
+ display: inline-block;
281
+ background: #F8F1FA;
282
+ line-height: 36px;
283
+ border-radius: 5px;
284
+ height: 36px;
285
+ padding: 0 15px;
286
+ }
287
+
288
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .br-theme-css-stars .br-widget a.br-active:after,
289
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li .br-theme-css-stars .br-widget a.br-selected:after {
290
+ color: #EDB867;
291
+ }
292
+
293
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-form li.wpuf-submit input[type=submit] {
294
+ background: #7BC087;
295
+ border-color: #7BC087;
296
+ -moz-box-shadow: none;
297
+ -webkit-box-shadow: none;
298
+ box-shadow: none;
299
+ text-shadow: none;
300
+ padding: 10px 35px;
301
+ }
302
+
303
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-step-wizard {
304
+ overflow: visible;
305
+ }
306
+
307
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-step-wizard li {
308
+ padding: 10px 30px 10px 40px;
309
+ border-radius: 0;
310
+ }
311
+
312
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-step-wizard li:before {
313
+ margin-top: -14px;
314
+ border-left-color: #d5d3d3;
315
+ }
316
+
317
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-step-wizard li:after {
318
+ border-width: 22px;
319
+ margin-top: -34px;
320
+ right: -40px;
321
+ border-radius: 0;
322
+ }
323
+
324
+ .wpuf-form-add.wpuf-form-layout5 ul.wpuf-step-wizard li.active-step:before {
325
+ border-left-color: #00a0d2;
326
+ right: -47px;
327
+ }
328
+
329
+ ul.wpuf-form li label.wpuf-form-sub-label {
330
+ font-size: 12px;
331
+ display: inline-block;
332
+ padding-top: 5px;
333
+ color: #fff;
334
+ }
assets/css/frontend-forms.css CHANGED
@@ -90,6 +90,29 @@
90
  margin: 0 0 10px 0;
91
  font-size: 13px;
92
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  ul.wpuf-form {
94
  list-style: none !important;
95
  margin: 0 !important;
@@ -320,37 +343,6 @@ ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .wpuf-file-input-wrap te
320
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .attachment-name {
321
  text-align: center;
322
  }
323
- ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li a.attachment-delete,
324
- ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li a.wpuf-delete-avatar {
325
- text-decoration: none;
326
- padding: 3px 12px;
327
- border: 1px solid #C47272;
328
- color: #ffffff;
329
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
330
- -webkit-border-radius: 3px;
331
- -moz-border-radius: 3px;
332
- border-radius: 3px;
333
- background-color: #da4f49;
334
- background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
335
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
336
- background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
337
- background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
338
- background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
339
- background-repeat: repeat-x;
340
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
341
- border-color: #bd362f #bd362f #802420;
342
- border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
343
- *background-color: #bd362f;
344
- filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
345
- }
346
- ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li a.attachment-delete:hover,
347
- ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li a.wpuf-delete-avatar:hover,
348
- ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li a.attachment-delete:active,
349
- ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li a.wpuf-delete-avatar:active {
350
- color: #ffffff;
351
- background-color: #bd362f;
352
- *background-color: #a9302a;
353
- }
354
  ul.wpuf-form li .wpuf-fields .progress {
355
  background: -moz-linear-gradient(center bottom, #FFFFFF 0%, #F7F7F7 100%) repeat scroll 0 0 #FFFFFF;
356
  border: 1px solid #D1D1D1;
@@ -546,21 +538,6 @@ ul.wpuf-form.form-label-hidden li .wpuf-fields {
546
  float: none;
547
  width: 100%;
548
  }
549
- ul.wpuf-form .wpuf-submit input[type=submit] {
550
- font-size: 16px;
551
- padding: 5px 15px;
552
- border: 1px solid #ccc;
553
- -webkit-border-radius: 3px;
554
- -moz-border-radius: 3px;
555
- border-radius: 3px;
556
- background: #0085ba;
557
- border-color: #0073aa #006799 #006799;
558
- -webkit-box-shadow: 0 1px 0 #006799;
559
- box-shadow: 0 1px 0 #006799;
560
- color: #fff;
561
- text-decoration: none;
562
- text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
563
- }
564
  ul.wpuf-form .wpuf-submit .button-primary-disabled {
565
  color: #94cde7 !important;
566
  background: #298cba !important;
@@ -1292,3 +1269,37 @@ table#wpuf-address-country-state input.wpuf-btn {
1292
  table#wpuf-address-country-state td {
1293
  border: none;
1294
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  margin: 0 0 10px 0;
91
  font-size: 13px;
92
  }
93
+ .wpuf-form-add.wpuf-style ul.wpuf-form .wpuf-submit input[type=submit] {
94
+ font-size: 16px;
95
+ padding: 5px 15px;
96
+ border: 1px solid #ccc;
97
+ -webkit-border-radius: 3px;
98
+ -moz-border-radius: 3px;
99
+ border-radius: 3px;
100
+ background: #0085ba;
101
+ border-color: #0073aa #006799 #006799;
102
+ -webkit-box-shadow: 0 1px 0 #006799;
103
+ box-shadow: 0 1px 0 #006799;
104
+ color: #fff;
105
+ text-decoration: none;
106
+ text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
107
+ }
108
+ .wpuf-form-add.wpuf-style ul.wpuf-form .wpuf-submit input[type=submit]:disabled {
109
+ background: #dddddd;
110
+ border-color: #dddddd;
111
+ -webkit-box-shadow: 0 1px 0 #dddddd;
112
+ box-shadow: 0 1px 0 #dddddd;
113
+ color: #000;
114
+ text-shadow: 0 -1px 1px #dddddd, 1px 0 1px #dddddd, 0 1px 1px #dddddd, -1px 0 1px #dddddd;
115
+ }
116
  ul.wpuf-form {
117
  list-style: none !important;
118
  margin: 0 !important;
343
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .attachment-name {
344
  text-align: center;
345
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
346
  ul.wpuf-form li .wpuf-fields .progress {
347
  background: -moz-linear-gradient(center bottom, #FFFFFF 0%, #F7F7F7 100%) repeat scroll 0 0 #FFFFFF;
348
  border: 1px solid #D1D1D1;
538
  float: none;
539
  width: 100%;
540
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
541
  ul.wpuf-form .wpuf-submit .button-primary-disabled {
542
  color: #94cde7 !important;
543
  background: #298cba !important;
1269
  table#wpuf-address-country-state td {
1270
  border: none;
1271
  }
1272
+ .wpuf-image-wrap {
1273
+ display: inline-block;
1274
+ position: relative;
1275
+ z-index: 1;
1276
+ transition: .3s;
1277
+ margin: 4px;
1278
+ }
1279
+ .wpuf-image-wrap .attachment-name img {
1280
+ width: 100%;
1281
+ height: 100%;
1282
+ transition: .3s;
1283
+ border-radius: 4px;
1284
+ }
1285
+ .wpuf-image-wrap :not(.attachment-name img) {
1286
+ position: absolute;
1287
+ width: 100%;
1288
+ opacity: 0;
1289
+ transition: .3s;
1290
+ }
1291
+ li.wpuf-image-wrap.thumbnail {
1292
+ position: relative;
1293
+ }
1294
+ li.wpuf-image-wrap.thumbnail .caption {
1295
+ position: absolute;
1296
+ left: 50%;
1297
+ margin-left: -10px;
1298
+ top: 50%;
1299
+ margin-top: -10px;
1300
+ display: none;
1301
+ width: 16px;
1302
+ }
1303
+ li.wpuf-image-wrap.thumbnail:hover .caption {
1304
+ display: block;
1305
+ }
assets/images/del-img.png ADDED
Binary file
assets/js-templates/form-components.php CHANGED
@@ -74,7 +74,7 @@
74
  <?php do_action( 'wpuf-form-builder-template-builder-stage-bottom-area' ); ?>
75
  </div><!-- #form-preview-stage -->
76
  </script>
77
-
78
  <script type="text/x-template" id="tmpl-wpuf-field-checkbox">
79
  <div v-if="met_dependencies" class="panel-field-opt panel-field-opt-checkbox">
80
  <label v-if="option_field.title" :class="option_field.title_class">
@@ -89,11 +89,11 @@
89
  </ul>
90
  </div>
91
  </script>
92
-
93
  <script type="text/x-template" id="tmpl-wpuf-field-html_help_text">
94
  <div class="panel-field-opt panel-field-html-help-text" v-html="option_field.text"></div>
95
  </script>
96
-
97
  <script type="text/x-template" id="tmpl-wpuf-field-multiselect">
98
  <div class="panel-field-opt panel-field-opt-select">
99
  <label v-if="option_field.title">
@@ -109,7 +109,7 @@
109
  </select>
110
  </div>
111
  </script>
112
-
113
  <script type="text/x-template" id="tmpl-wpuf-field-option-data">
114
  <div class="panel-field-opt panel-field-opt-text">
115
  <label class="clearfix">
@@ -181,7 +181,7 @@
181
  <a v-if="!option_field.is_multiple && selected" href="#clear" @click.prevent="clear_selection"><?php _e( 'Clear Selection', 'wpuf' ); ?></a>
182
  </div>
183
  </script>
184
-
185
  <script type="text/x-template" id="tmpl-wpuf-field-option-pro-feature-alert">
186
  <div class="panel-field-opt panel-field-opt-pro-feature">
187
  <label>{{ option_field.title }}</label><br>
@@ -190,7 +190,7 @@
190
  </label>
191
  </div>
192
  </script>
193
-
194
  <script type="text/x-template" id="tmpl-wpuf-field-options">
195
  <div class="wpuf-form-builder-field-options">
196
  <div v-if="!parseInt(editing_field_id)" class="options-fileds-section text-center">
@@ -240,7 +240,7 @@
240
 
241
  </div>
242
  </script>
243
-
244
  <script type="text/x-template" id="tmpl-wpuf-field-radio">
245
  <div class="panel-field-opt panel-field-opt-radio">
246
  <label v-if="option_field.title">
@@ -256,7 +256,7 @@
256
  </ul>
257
  </div>
258
  </script>
259
-
260
  <script type="text/x-template" id="tmpl-wpuf-field-select">
261
  <div class="panel-field-opt panel-field-opt-select">
262
  <label v-if="option_field.title">
@@ -269,7 +269,7 @@
269
  </select>
270
  </div>
271
  </script>
272
-
273
  <script type="text/x-template" id="tmpl-wpuf-field-text">
274
  <div v-if="met_dependencies" class="panel-field-opt panel-field-opt-text">
275
  <label>
@@ -293,7 +293,7 @@
293
  </label>
294
  </div>
295
  </script>
296
-
297
  <script type="text/x-template" id="tmpl-wpuf-field-text-meta">
298
  <div class="panel-field-opt panel-field-opt-text panel-field-opt-text-meta">
299
  <label>
@@ -305,7 +305,7 @@
305
  </label>
306
  </div>
307
  </script>
308
-
309
  <script type="text/x-template" id="tmpl-wpuf-field-textarea">
310
  <div class="panel-field-opt panel-field-opt-textarea">
311
  <label>
@@ -315,7 +315,7 @@
315
  </label>
316
  </div>
317
  </script>
318
-
319
  <script type="text/x-template" id="tmpl-wpuf-field-visibility">
320
  <div class="panel-field-opt panel-field-opt-radio">
321
  <label v-if="option_field.title">
@@ -376,7 +376,7 @@
376
 
377
  </div>
378
  </div></script>
379
-
380
  <script type="text/x-template" id="tmpl-wpuf-form-checkbox_field">
381
  <div class="wpuf-fields">
382
  <ul :class="['wpuf-fields-list', ('yes' === field.inline) ? 'wpuf-list-inline' : '']">
@@ -395,7 +395,7 @@
395
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
396
  </div>
397
  </script>
398
-
399
  <script type="text/x-template" id="tmpl-wpuf-form-custom_hidden_field">
400
  <div class="wpuf-fields">
401
  <input
@@ -408,11 +408,11 @@
408
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
409
  </div>
410
  </script>
411
-
412
  <script type="text/x-template" id="tmpl-wpuf-form-custom_html">
413
  <div class="wpuf-fields" v-html="field.html"></div>
414
  </script>
415
-
416
  <script type="text/x-template" id="tmpl-wpuf-form-dropdown_field">
417
  <div class="wpuf-fields">
418
  <select
@@ -431,7 +431,7 @@
431
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
432
  </div>
433
  </script>
434
-
435
  <script type="text/x-template" id="tmpl-wpuf-form-email_address">
436
  <div class="wpuf-fields">
437
  <input
@@ -444,13 +444,18 @@
444
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
445
  </div>
446
  </script>
447
-
448
  <script type="text/x-template" id="tmpl-wpuf-form-featured_image">
449
  <div class="wpuf-fields">
450
  <div :id="'wpuf-img_label-' + field.id + '-upload-container'">
451
  <div class="wpuf-attachment-upload-filelist" data-type="file" data-required="yes">
452
  <a class="button file-selector" href="#">
453
- <?php _e( 'Select Image', 'wpuf' ); ?>
 
 
 
 
 
454
  </a>
455
  </div>
456
  </div>
@@ -458,7 +463,7 @@
458
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
459
  </div>
460
  </script>
461
-
462
  <script type="text/x-template" id="tmpl-wpuf-form-fields">
463
  <div class="wpuf-form-builder-form-fields">
464
  <template v-for="(section, index) in panel_sections">
@@ -510,13 +515,18 @@
510
  </template>
511
  </div>
512
  </script>
513
-
514
  <script type="text/x-template" id="tmpl-wpuf-form-image_upload">
515
  <div class="wpuf-fields">
516
  <div :id="'wpuf-img_label-' + field.id + '-upload-container'">
517
  <div class="wpuf-attachment-upload-filelist" data-type="file" data-required="yes">
518
  <a class="button file-selector wpuf_img_label_148" href="#">
519
- {{ field.button_label }}
 
 
 
 
 
520
  </a>
521
  </div>
522
  </div>
@@ -524,7 +534,7 @@
524
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
525
  </div>
526
  </script>
527
-
528
  <script type="text/x-template" id="tmpl-wpuf-form-multiple_select">
529
  <div class="wpuf-fields">
530
  <select
@@ -544,7 +554,7 @@
544
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
545
  </div>
546
  </script>
547
-
548
  <script type="text/x-template" id="tmpl-wpuf-form-post_content">
549
  <div class="wpuf-fields">
550
  <div class="wp-media-buttons" v-if="field.insert_image == 'yes'">
@@ -567,7 +577,7 @@
567
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
568
  </div>
569
  </script>
570
-
571
  <script type="text/x-template" id="tmpl-wpuf-form-post_excerpt">
572
  <div class="wpuf-fields">
573
  <textarea
@@ -579,7 +589,7 @@
579
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
580
  </div>
581
  </script>
582
-
583
  <script type="text/x-template" id="tmpl-wpuf-form-post_tags">
584
  <div class="wpuf-fields">
585
  <input
@@ -593,7 +603,7 @@
593
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
594
  </div>
595
  </script>
596
-
597
  <script type="text/x-template" id="tmpl-wpuf-form-post_title">
598
  <div class="wpuf-fields">
599
  <input
@@ -606,7 +616,7 @@
606
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
607
  </div>
608
  </script>
609
-
610
  <script type="text/x-template" id="tmpl-wpuf-form-radio_field">
611
  <div class="wpuf-fields">
612
  <ul :class="['wpuf-fields-list', ('yes' === field.inline) ? 'wpuf-list-inline' : '']">
@@ -625,7 +635,7 @@
625
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
626
  </div>
627
  </script>
628
-
629
  <script type="text/x-template" id="tmpl-wpuf-form-recaptcha">
630
  <div class="wpuf-fields">
631
  <template v-if="!has_recaptcha_api_keys">
@@ -639,14 +649,14 @@
639
  </template>
640
  </div>
641
  </script>
642
-
643
  <script type="text/x-template" id="tmpl-wpuf-form-section_break">
644
  <div class="wpuf-section-wrap">
645
  <h2 class="wpuf-section-title">{{ field.label }}</h2>
646
  <div class="wpuf-section-details">{{ field.description }}</div>
647
  </div>
648
  </script>
649
-
650
  <script type="text/x-template" id="tmpl-wpuf-form-taxonomy">
651
  <div class="wpuf-fields">
652
  <select
@@ -695,20 +705,7 @@
695
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
696
  </div>
697
  </script>
698
-
699
- <script type="text/x-template" id="tmpl-wpuf-form-text_field">
700
- <div class="wpuf-fields">
701
- <input
702
- type="text"
703
- :class="class_names('textfield')"
704
- :placeholder="field.placeholder"
705
- :value="field.default"
706
- :size="field.size"
707
- >
708
- <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
709
- </div>
710
- </script>
711
-
712
  <script type="text/x-template" id="tmpl-wpuf-form-textarea_field">
713
  <div class="wpuf-fields">
714
  <textarea
@@ -724,7 +721,20 @@
724
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
725
  </div>
726
  </script>
727
-
 
 
 
 
 
 
 
 
 
 
 
 
 
728
  <script type="text/x-template" id="tmpl-wpuf-form-website_url">
729
  <div class="wpuf-fields">
730
  <input
@@ -737,11 +747,11 @@
737
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
738
  </div>
739
  </script>
740
-
741
  <script type="text/x-template" id="tmpl-wpuf-help-text">
742
  <i class="fa fa-question-circle field-helper-text wpuf-tooltip" data-placement="top" :title="text"></i>
743
  </script>
744
-
745
  <script type="text/x-template" id="tmpl-wpuf-text-editor">
746
  <div class="wpuf-text-editor">
747
 
74
  <?php do_action( 'wpuf-form-builder-template-builder-stage-bottom-area' ); ?>
75
  </div><!-- #form-preview-stage -->
76
  </script>
77
+
78
  <script type="text/x-template" id="tmpl-wpuf-field-checkbox">
79
  <div v-if="met_dependencies" class="panel-field-opt panel-field-opt-checkbox">
80
  <label v-if="option_field.title" :class="option_field.title_class">
89
  </ul>
90
  </div>
91
  </script>
92
+
93
  <script type="text/x-template" id="tmpl-wpuf-field-html_help_text">
94
  <div class="panel-field-opt panel-field-html-help-text" v-html="option_field.text"></div>
95
  </script>
96
+
97
  <script type="text/x-template" id="tmpl-wpuf-field-multiselect">
98
  <div class="panel-field-opt panel-field-opt-select">
99
  <label v-if="option_field.title">
109
  </select>
110
  </div>
111
  </script>
112
+
113
  <script type="text/x-template" id="tmpl-wpuf-field-option-data">
114
  <div class="panel-field-opt panel-field-opt-text">
115
  <label class="clearfix">
181
  <a v-if="!option_field.is_multiple && selected" href="#clear" @click.prevent="clear_selection"><?php _e( 'Clear Selection', 'wpuf' ); ?></a>
182
  </div>
183
  </script>
184
+
185
  <script type="text/x-template" id="tmpl-wpuf-field-option-pro-feature-alert">
186
  <div class="panel-field-opt panel-field-opt-pro-feature">
187
  <label>{{ option_field.title }}</label><br>
190
  </label>
191
  </div>
192
  </script>
193
+
194
  <script type="text/x-template" id="tmpl-wpuf-field-options">
195
  <div class="wpuf-form-builder-field-options">
196
  <div v-if="!parseInt(editing_field_id)" class="options-fileds-section text-center">
240
 
241
  </div>
242
  </script>
243
+
244
  <script type="text/x-template" id="tmpl-wpuf-field-radio">
245
  <div class="panel-field-opt panel-field-opt-radio">
246
  <label v-if="option_field.title">
256
  </ul>
257
  </div>
258
  </script>
259
+
260
  <script type="text/x-template" id="tmpl-wpuf-field-select">
261
  <div class="panel-field-opt panel-field-opt-select">
262
  <label v-if="option_field.title">
269
  </select>
270
  </div>
271
  </script>
272
+
273
  <script type="text/x-template" id="tmpl-wpuf-field-text">
274
  <div v-if="met_dependencies" class="panel-field-opt panel-field-opt-text">
275
  <label>
293
  </label>
294
  </div>
295
  </script>
296
+
297
  <script type="text/x-template" id="tmpl-wpuf-field-text-meta">
298
  <div class="panel-field-opt panel-field-opt-text panel-field-opt-text-meta">
299
  <label>
305
  </label>
306
  </div>
307
  </script>
308
+
309
  <script type="text/x-template" id="tmpl-wpuf-field-textarea">
310
  <div class="panel-field-opt panel-field-opt-textarea">
311
  <label>
315
  </label>
316
  </div>
317
  </script>
318
+
319
  <script type="text/x-template" id="tmpl-wpuf-field-visibility">
320
  <div class="panel-field-opt panel-field-opt-radio">
321
  <label v-if="option_field.title">
376
 
377
  </div>
378
  </div></script>
379
+
380
  <script type="text/x-template" id="tmpl-wpuf-form-checkbox_field">
381
  <div class="wpuf-fields">
382
  <ul :class="['wpuf-fields-list', ('yes' === field.inline) ? 'wpuf-list-inline' : '']">
395
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
396
  </div>
397
  </script>
398
+
399
  <script type="text/x-template" id="tmpl-wpuf-form-custom_hidden_field">
400
  <div class="wpuf-fields">
401
  <input
408
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
409
  </div>
410
  </script>
411
+
412
  <script type="text/x-template" id="tmpl-wpuf-form-custom_html">
413
  <div class="wpuf-fields" v-html="field.html"></div>
414
  </script>
415
+
416
  <script type="text/x-template" id="tmpl-wpuf-form-dropdown_field">
417
  <div class="wpuf-fields">
418
  <select
431
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
432
  </div>
433
  </script>
434
+
435
  <script type="text/x-template" id="tmpl-wpuf-form-email_address">
436
  <div class="wpuf-fields">
437
  <input
444
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
445
  </div>
446
  </script>
447
+
448
  <script type="text/x-template" id="tmpl-wpuf-form-featured_image">
449
  <div class="wpuf-fields">
450
  <div :id="'wpuf-img_label-' + field.id + '-upload-container'">
451
  <div class="wpuf-attachment-upload-filelist" data-type="file" data-required="yes">
452
  <a class="button file-selector" href="#">
453
+ <template v-if="field.button_label === ''">
454
+ <?php _e( 'Select Image', 'wpuf' ); ?>
455
+ </template>
456
+ <template v-else>
457
+ {{ field.button_label }}
458
+ </template>
459
  </a>
460
  </div>
461
  </div>
463
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
464
  </div>
465
  </script>
466
+
467
  <script type="text/x-template" id="tmpl-wpuf-form-fields">
468
  <div class="wpuf-form-builder-form-fields">
469
  <template v-for="(section, index) in panel_sections">
515
  </template>
516
  </div>
517
  </script>
518
+
519
  <script type="text/x-template" id="tmpl-wpuf-form-image_upload">
520
  <div class="wpuf-fields">
521
  <div :id="'wpuf-img_label-' + field.id + '-upload-container'">
522
  <div class="wpuf-attachment-upload-filelist" data-type="file" data-required="yes">
523
  <a class="button file-selector wpuf_img_label_148" href="#">
524
+ <template v-if="field.button_label === ''">
525
+ <?php _e( 'Select Image', 'wpuf' ); ?>
526
+ </template>
527
+ <template v-else>
528
+ {{ field.button_label }}
529
+ </template>
530
  </a>
531
  </div>
532
  </div>
534
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
535
  </div>
536
  </script>
537
+
538
  <script type="text/x-template" id="tmpl-wpuf-form-multiple_select">
539
  <div class="wpuf-fields">
540
  <select
554
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
555
  </div>
556
  </script>
557
+
558
  <script type="text/x-template" id="tmpl-wpuf-form-post_content">
559
  <div class="wpuf-fields">
560
  <div class="wp-media-buttons" v-if="field.insert_image == 'yes'">
577
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
578
  </div>
579
  </script>
580
+
581
  <script type="text/x-template" id="tmpl-wpuf-form-post_excerpt">
582
  <div class="wpuf-fields">
583
  <textarea
589
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
590
  </div>
591
  </script>
592
+
593
  <script type="text/x-template" id="tmpl-wpuf-form-post_tags">
594
  <div class="wpuf-fields">
595
  <input
603
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
604
  </div>
605
  </script>
606
+
607
  <script type="text/x-template" id="tmpl-wpuf-form-post_title">
608
  <div class="wpuf-fields">
609
  <input
616
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
617
  </div>
618
  </script>
619
+
620
  <script type="text/x-template" id="tmpl-wpuf-form-radio_field">
621
  <div class="wpuf-fields">
622
  <ul :class="['wpuf-fields-list', ('yes' === field.inline) ? 'wpuf-list-inline' : '']">
635
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
636
  </div>
637
  </script>
638
+
639
  <script type="text/x-template" id="tmpl-wpuf-form-recaptcha">
640
  <div class="wpuf-fields">
641
  <template v-if="!has_recaptcha_api_keys">
649
  </template>
650
  </div>
651
  </script>
652
+
653
  <script type="text/x-template" id="tmpl-wpuf-form-section_break">
654
  <div class="wpuf-section-wrap">
655
  <h2 class="wpuf-section-title">{{ field.label }}</h2>
656
  <div class="wpuf-section-details">{{ field.description }}</div>
657
  </div>
658
  </script>
659
+
660
  <script type="text/x-template" id="tmpl-wpuf-form-taxonomy">
661
  <div class="wpuf-fields">
662
  <select
705
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
706
  </div>
707
  </script>
708
+
 
 
 
 
 
 
 
 
 
 
 
 
 
709
  <script type="text/x-template" id="tmpl-wpuf-form-textarea_field">
710
  <div class="wpuf-fields">
711
  <textarea
721
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
722
  </div>
723
  </script>
724
+
725
+ <script type="text/x-template" id="tmpl-wpuf-form-text_field">
726
+ <div class="wpuf-fields">
727
+ <input
728
+ type="text"
729
+ :class="class_names('textfield')"
730
+ :placeholder="field.placeholder"
731
+ :value="field.default"
732
+ :size="field.size"
733
+ >
734
+ <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
735
+ </div>
736
+ </script>
737
+
738
  <script type="text/x-template" id="tmpl-wpuf-form-website_url">
739
  <div class="wpuf-fields">
740
  <input
747
  <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
748
  </div>
749
  </script>
750
+
751
  <script type="text/x-template" id="tmpl-wpuf-help-text">
752
  <i class="fa fa-question-circle field-helper-text wpuf-tooltip" data-placement="top" :title="text"></i>
753
  </script>
754
+
755
  <script type="text/x-template" id="tmpl-wpuf-text-editor">
756
  <div class="wpuf-text-editor">
757
 
assets/js/frontend-form.js CHANGED
File without changes
assets/js/frontend-form.min.js CHANGED
File without changes
assets/js/subscriptions.js CHANGED
@@ -58,8 +58,15 @@
58
  },
59
 
60
  deletePack: function(e){
61
- var userid = $(e.target).attr('data-userid');
62
- var packid = $(e.target).attr('data-packid');
 
 
 
 
 
 
 
63
  $.post(
64
  ajaxurl,
65
  {
@@ -69,8 +76,11 @@
69
  },
70
  function(data){
71
  if(data){
 
72
  $('.wpuf-user-sub-info').remove();
73
  $(e.target).remove();
 
 
74
  }
75
  }
76
  );
@@ -118,13 +128,8 @@
118
  }
119
 
120
  });
121
-
122
-
123
-
124
  },
125
 
126
-
127
-
128
  couponShow: function(e) {
129
 
130
  e.preventDefault();
@@ -137,8 +142,6 @@
137
 
138
  },
139
 
140
-
141
-
142
  couponApply: function(e) {
143
 
144
  e.preventDefault();
@@ -151,7 +154,7 @@
151
 
152
  if ( coupon === '' ) {
153
 
154
- $('.wpuf-subscription-error').html('Please enter a coupon code!');
155
  return;
156
 
157
  }
@@ -168,8 +171,6 @@
168
 
169
  };
170
 
171
-
172
-
173
  if ( self.attr('disabled') === 'disabled' ) {
174
 
175
  //return;
@@ -180,16 +181,12 @@
180
 
181
  coupon_field.addClass('wpuf-coupon-field-spinner');
182
 
183
-
184
-
185
  $.post( wpuf_frontend.ajaxurl, data, function( res ) {
186
 
187
  coupon_field.removeClass('wpuf-coupon-field-spinner');
188
 
189
  if ( res.success ) {
190
 
191
-
192
-
193
  $('.wpuf-pack-inner' ).html( res.data.append_data );
194
 
195
  $('.wpuf-coupon-id-field').val( res.data.coupon_id );
@@ -210,26 +207,16 @@
210
 
211
  },
212
 
213
-
214
-
215
  showSubscriptionRecurring: function() {
216
 
217
-
218
-
219
  var self = $(this),
220
 
221
- wrap = self.parents('table.form-table'),
222
-
223
  pack_child = wrap.find('.wpuf-recurring-child'),
224
-
225
- trial_checkbox = wrap.find( 'input#wpuf-trial-status'),
226
-
227
  trial_child = wrap.find('.wpuf-trial-child'),
228
-
229
  expire_field = wrap.find('.wpuf-subcription-expire');
230
 
231
-
232
-
233
  if ( self.is(':checked') ) {
234
 
235
  if ( trial_checkbox.is(':checked') ) {
@@ -254,8 +241,6 @@
254
 
255
  },
256
 
257
-
258
-
259
  showSubscriptionPack: function() {
260
 
261
  var self = $(this),
58
  },
59
 
60
  deletePack: function(e){
61
+ var self = $(this),
62
+ wrap = self.parents('.wpuf-user-subscription'),
63
+ sub_dropdown = wrap.find('.wpuf-pack-dropdown'),
64
+ selected_sub = wrap.find( '#wpuf_sub_pack' ),
65
+ userid = $(e.target).attr('data-userid'),
66
+ packid = $(e.target).attr('data-packid');
67
+
68
+ wrap.find('.wpuf-delete-pack-btn').attr('disabled', true);
69
+ wrap.css('opacity', 0.5);
70
  $.post(
71
  ajaxurl,
72
  {
76
  },
77
  function(data){
78
  if(data){
79
+ wrap.css( 'opacity', 1 );
80
  $('.wpuf-user-sub-info').remove();
81
  $(e.target).remove();
82
+ selected_sub.val(-1);
83
+ sub_dropdown.show();
84
  }
85
  }
86
  );
128
  }
129
 
130
  });
 
 
 
131
  },
132
 
 
 
133
  couponShow: function(e) {
134
 
135
  e.preventDefault();
142
 
143
  },
144
 
 
 
145
  couponApply: function(e) {
146
 
147
  e.preventDefault();
154
 
155
  if ( coupon === '' ) {
156
 
157
+ $('.wpuf-subscription-error').html( wpuf_frontend.coupon_error );
158
  return;
159
 
160
  }
171
 
172
  };
173
 
 
 
174
  if ( self.attr('disabled') === 'disabled' ) {
175
 
176
  //return;
181
 
182
  coupon_field.addClass('wpuf-coupon-field-spinner');
183
 
 
 
184
  $.post( wpuf_frontend.ajaxurl, data, function( res ) {
185
 
186
  coupon_field.removeClass('wpuf-coupon-field-spinner');
187
 
188
  if ( res.success ) {
189
 
 
 
190
  $('.wpuf-pack-inner' ).html( res.data.append_data );
191
 
192
  $('.wpuf-coupon-id-field').val( res.data.coupon_id );
207
 
208
  },
209
 
 
 
210
  showSubscriptionRecurring: function() {
211
 
 
 
212
  var self = $(this),
213
 
214
+ wrap = self.parents('table.form-table'),
 
215
  pack_child = wrap.find('.wpuf-recurring-child'),
216
+ trial_checkbox = wrap.find('input#wpuf-trial-status'),
 
 
217
  trial_child = wrap.find('.wpuf-trial-child'),
 
218
  expire_field = wrap.find('.wpuf-subcription-expire');
219
 
 
 
220
  if ( self.is(':checked') ) {
221
 
222
  if ( trial_checkbox.is(':checked') ) {
241
 
242
  },
243
 
 
 
244
  showSubscriptionPack: function() {
245
 
246
  var self = $(this),
assets/js/upload.js CHANGED
@@ -91,6 +91,8 @@
91
  this.showHide();
92
 
93
  $.each(files, function(i, file) {
 
 
94
  $container.append(
95
  '<div class="upload-item" id="' + file.id + '"><div class="progress progress-striped active"><div class="bar"></div></div><div class="filename original">' +
96
  file.name + ' (' + plupload.formatSize(file.size) + ') <b></b>' +
@@ -168,6 +170,13 @@
168
  this.count -= 1;
169
  this.showHide();
170
  }
 
 
 
 
 
 
 
171
  },
172
 
173
  removeAttachment: function(e) {
91
  this.showHide();
92
 
93
  $.each(files, function(i, file) {
94
+ $(".wpuf-submit-button").attr("disabled", "disabled");
95
+
96
  $container.append(
97
  '<div class="upload-item" id="' + file.id + '"><div class="progress progress-striped active"><div class="bar"></div></div><div class="filename original">' +
98
  file.name + ' (' + plupload.formatSize(file.size) + ') <b></b>' +
170
  this.count -= 1;
171
  this.showHide();
172
  }
173
+
174
+ var uploaded = this.perFileCount;
175
+ var FileProgress = up.files.length;
176
+
177
+ if ( FileProgress == uploaded ) {
178
+ $(".wpuf-submit-button").removeAttr("disabled");
179
+ }
180
  },
181
 
182
  removeAttachment: function(e) {
assets/js/wpuf-form-builder-components.js CHANGED
@@ -1,6 +1,6 @@
1
  ;(function($) {
2
  'use strict';
3
-
4
  Vue.component('builder-stage', {
5
  template: '#tmpl-wpuf-builder-stage',
6
 
@@ -183,7 +183,7 @@ Vue.component('builder-stage', {
183
  }
184
  }
185
  });
186
-
187
  Vue.component('field-checkbox', {
188
  template: '#tmpl-wpuf-field-checkbox',
189
 
@@ -225,7 +225,7 @@ Vue.component('field-checkbox', {
225
  }
226
  }
227
  });
228
-
229
  Vue.component('field-html_help_text', {
230
  template: '#tmpl-wpuf-field-html_help_text',
231
 
@@ -233,7 +233,7 @@ Vue.component('field-html_help_text', {
233
  wpuf_mixins.option_field_mixin
234
  ],
235
  });
236
-
237
  Vue.component('field-multiselect', {
238
  template: '#tmpl-wpuf-field-multiselect',
239
 
@@ -274,7 +274,7 @@ Vue.component('field-multiselect', {
274
  },
275
 
276
  });
277
-
278
  /**
279
  * Common settings component for option based fields
280
  * like select, multiselect, checkbox, radio
@@ -392,7 +392,7 @@ Vue.component('field-option-data', {
392
  }
393
  }
394
  });
395
-
396
  Vue.component('field-option-pro-feature-alert', {
397
  template: '#tmpl-wpuf-field-option-pro-feature-alert',
398
 
@@ -406,7 +406,7 @@ Vue.component('field-option-pro-feature-alert', {
406
  }
407
  }
408
  });
409
-
410
  /**
411
  * Sidebar field options panel
412
  */
@@ -475,7 +475,7 @@ Vue.component('field-options', {
475
  }
476
  }
477
  });
478
-
479
  Vue.component('field-radio', {
480
  template: '#tmpl-wpuf-field-radio',
481
 
@@ -499,7 +499,7 @@ Vue.component('field-radio', {
499
  }
500
  }
501
  });
502
-
503
  Vue.component('field-select', {
504
  template: '#tmpl-wpuf-field-select',
505
 
@@ -523,7 +523,7 @@ Vue.component('field-select', {
523
  }
524
  }
525
  });
526
-
527
  Vue.component('field-text', {
528
  template: '#tmpl-wpuf-field-text',
529
 
@@ -552,7 +552,7 @@ Vue.component('field-text', {
552
  }
553
  }
554
  });
555
-
556
  Vue.component('field-text-meta', {
557
  template: '#tmpl-wpuf-field-text-meta',
558
 
@@ -593,7 +593,7 @@ Vue.component('field-text-meta', {
593
  }
594
  }
595
  });
596
-
597
  Vue.component('field-textarea', {
598
  template: '#tmpl-wpuf-field-textarea',
599
 
@@ -613,7 +613,7 @@ Vue.component('field-textarea', {
613
  }
614
  },
615
  });
616
-
617
  Vue.component('field-visibility', {
618
  template: '#tmpl-wpuf-field-visibility',
619
 
@@ -668,7 +668,7 @@ Vue.component('field-visibility', {
668
  watch: {
669
 
670
  }
671
- });
672
  /**
673
  * Field template: Checkbox
674
  */
@@ -679,7 +679,7 @@ Vue.component('form-checkbox_field', {
679
  wpuf_mixins.form_field_mixin
680
  ]
681
  });
682
-
683
  /**
684
  * Field template: Hidden
685
  */
@@ -690,7 +690,7 @@ Vue.component('form-custom_hidden_field', {
690
  wpuf_mixins.form_field_mixin
691
  ]
692
  });
693
-
694
  /**
695
  * Field template: Custom HTML
696
  */
@@ -707,7 +707,7 @@ Vue.component('form-custom_html', {
707
  };
708
  }
709
  });
710
-
711
  /**
712
  * Field template: Dropdown/Select
713
  */
@@ -718,7 +718,7 @@ Vue.component('form-dropdown_field', {
718
  wpuf_mixins.form_field_mixin
719
  ]
720
  });
721
-
722
  /**
723
  * Field template: Email
724
  */
@@ -729,7 +729,7 @@ Vue.component('form-email_address', {
729
  wpuf_mixins.form_field_mixin
730
  ]
731
  });
732
-
733
  /**
734
  * Field template: Featured Image
735
  */
@@ -740,7 +740,7 @@ Vue.component('form-featured_image', {
740
  wpuf_mixins.form_field_mixin
741
  ]
742
  });
743
-
744
  /**
745
  * Sidebar form fields panel
746
  */
@@ -857,7 +857,7 @@ Vue.component('form-fields', {
857
  }
858
  }
859
  });
860
-
861
  /**
862
  * Field template: Image Upload
863
  */
@@ -868,7 +868,7 @@ Vue.component('form-image_upload', {
868
  wpuf_mixins.form_field_mixin
869
  ]
870
  });
871
-
872
  /**
873
  * Field template: Multi-Select
874
  */
@@ -879,7 +879,7 @@ Vue.component('form-multiple_select', {
879
  wpuf_mixins.form_field_mixin
880
  ]
881
  });
882
-
883
  /**
884
  * Field Template: Post Content
885
  */
@@ -890,7 +890,7 @@ Vue.component('form-post_content', {
890
  wpuf_mixins.form_field_mixin
891
  ]
892
  });
893
-
894
  /**
895
  * Field Template: Post Excerpt
896
  */
@@ -901,7 +901,7 @@ Vue.component('form-post_excerpt', {
901
  wpuf_mixins.form_field_mixin
902
  ]
903
  });
904
-
905
  /**
906
  * Field template: post_tags
907
  */
@@ -912,7 +912,7 @@ Vue.component('form-post_tags', {
912
  wpuf_mixins.form_field_mixin
913
  ]
914
  });
915
-
916
  /**
917
  * Field template: Post Title
918
  */
@@ -923,7 +923,7 @@ Vue.component('form-post_title', {
923
  wpuf_mixins.form_field_mixin
924
  ]
925
  });
926
-
927
  /**
928
  * Field template: Radio
929
  */
@@ -934,7 +934,7 @@ Vue.component('form-radio_field', {
934
  wpuf_mixins.form_field_mixin
935
  ]
936
  });
937
-
938
  /**
939
  * Field template: Recaptcha
940
  */
@@ -955,7 +955,7 @@ Vue.component('form-recaptcha', {
955
  }
956
  }
957
  });
958
-
959
  /**
960
  * Field template: Section Break
961
  */
@@ -966,7 +966,7 @@ Vue.component('form-section_break', {
966
  wpuf_mixins.form_field_mixin
967
  ]
968
  });
969
-
970
  /**
971
  * Field template: taxonomy
972
  */
@@ -1002,13 +1002,16 @@ Vue.component('form-taxonomy', {
1002
 
1003
  // selection type and terms
1004
  if (this.field.exclude_type && this.field.exclude) {
1005
- var filter_ids = this.field.exclude.split(',').map(function (id) {
1006
- id = id.trim();
1007
- id = parseInt(id);
1008
- return id;
1009
- }).filter(function (id) {
1010
- return isFinite(id);
1011
- });
 
 
 
1012
 
1013
  terms = terms.filter(function (term) {
1014
 
@@ -1160,7 +1163,15 @@ Vue.component('form-taxonomy', {
1160
  }
1161
  }
1162
  });
 
 
 
1163
 
 
 
 
 
 
1164
  /**
1165
  * Field template: Text
1166
  */
@@ -1171,15 +1182,7 @@ Vue.component('form-text_field', {
1171
  wpuf_mixins.form_field_mixin
1172
  ]
1173
  });
1174
-
1175
- Vue.component('form-textarea_field', {
1176
- template: '#tmpl-wpuf-form-textarea_field',
1177
-
1178
- mixins: [
1179
- wpuf_mixins.form_field_mixin
1180
- ]
1181
- });
1182
-
1183
  /**
1184
  * Field template: Website URL
1185
  */
@@ -1190,7 +1193,7 @@ Vue.component('form-website_url', {
1190
  wpuf_mixins.form_field_mixin
1191
  ]
1192
  });
1193
-
1194
  Vue.component('help-text', {
1195
  template: '#tmpl-wpuf-help-text',
1196
 
@@ -1205,7 +1208,7 @@ Vue.component('help-text', {
1205
  $(".wpuf-tooltip").tooltip();
1206
  }
1207
  });
1208
-
1209
  Vue.component('text-editor', {
1210
  template: '#tmpl-wpuf-text-editor',
1211
 
@@ -1221,5 +1224,5 @@ Vue.component('text-editor', {
1221
  }
1222
  }
1223
  });
1224
-
1225
  })(jQuery);
1
  ;(function($) {
2
  'use strict';
3
+
4
  Vue.component('builder-stage', {
5
  template: '#tmpl-wpuf-builder-stage',
6
 
183
  }
184
  }
185
  });
186
+
187
  Vue.component('field-checkbox', {
188
  template: '#tmpl-wpuf-field-checkbox',
189
 
225
  }
226
  }
227
  });
228
+
229
  Vue.component('field-html_help_text', {
230
  template: '#tmpl-wpuf-field-html_help_text',
231
 
233
  wpuf_mixins.option_field_mixin
234
  ],
235
  });
236
+
237
  Vue.component('field-multiselect', {
238
  template: '#tmpl-wpuf-field-multiselect',
239
 
274
  },
275
 
276
  });
277
+
278
  /**
279
  * Common settings component for option based fields
280
  * like select, multiselect, checkbox, radio
392
  }
393
  }
394
  });
395
+
396
  Vue.component('field-option-pro-feature-alert', {
397
  template: '#tmpl-wpuf-field-option-pro-feature-alert',
398
 
406
  }
407
  }
408
  });
409
+
410
  /**
411
  * Sidebar field options panel
412
  */
475
  }
476
  }
477
  });
478
+
479
  Vue.component('field-radio', {
480
  template: '#tmpl-wpuf-field-radio',
481
 
499
  }
500
  }
501
  });
502
+
503
  Vue.component('field-select', {
504
  template: '#tmpl-wpuf-field-select',
505
 
523
  }
524
  }
525
  });
526
+
527
  Vue.component('field-text', {
528
  template: '#tmpl-wpuf-field-text',
529
 
552
  }
553
  }
554
  });
555
+
556
  Vue.component('field-text-meta', {
557
  template: '#tmpl-wpuf-field-text-meta',
558
 
593
  }
594
  }
595
  });
596
+
597
  Vue.component('field-textarea', {
598
  template: '#tmpl-wpuf-field-textarea',
599
 
613
  }
614
  },
615
  });
616
+
617
  Vue.component('field-visibility', {
618
  template: '#tmpl-wpuf-field-visibility',
619
 
668
  watch: {
669
 
670
  }
671
+ });
672
  /**
673
  * Field template: Checkbox
674
  */
679
  wpuf_mixins.form_field_mixin
680
  ]
681
  });
682
+
683
  /**
684
  * Field template: Hidden
685
  */
690
  wpuf_mixins.form_field_mixin
691
  ]
692
  });
693
+
694
  /**
695
  * Field template: Custom HTML
696
  */
707
  };
708
  }
709
  });
710
+
711
  /**
712
  * Field template: Dropdown/Select
713
  */
718
  wpuf_mixins.form_field_mixin
719
  ]
720
  });
721
+
722
  /**
723
  * Field template: Email
724
  */
729
  wpuf_mixins.form_field_mixin
730
  ]
731
  });
732
+
733
  /**
734
  * Field template: Featured Image
735
  */
740
  wpuf_mixins.form_field_mixin
741
  ]
742
  });
743
+
744
  /**
745
  * Sidebar form fields panel
746
  */
857
  }
858
  }
859
  });
860
+
861
  /**
862
  * Field template: Image Upload
863
  */
868
  wpuf_mixins.form_field_mixin
869
  ]
870
  });
871
+
872
  /**
873
  * Field template: Multi-Select
874
  */
879
  wpuf_mixins.form_field_mixin
880
  ]
881
  });
882
+
883
  /**
884
  * Field Template: Post Content
885
  */
890
  wpuf_mixins.form_field_mixin
891
  ]
892
  });
893
+
894
  /**
895
  * Field Template: Post Excerpt
896
  */
901
  wpuf_mixins.form_field_mixin
902
  ]
903
  });
904
+
905
  /**
906
  * Field template: post_tags
907
  */
912
  wpuf_mixins.form_field_mixin
913
  ]
914
  });
915
+
916
  /**
917
  * Field template: Post Title
918
  */
923
  wpuf_mixins.form_field_mixin
924
  ]
925
  });
926
+
927
  /**
928
  * Field template: Radio
929
  */
934
  wpuf_mixins.form_field_mixin
935
  ]
936
  });
937
+
938
  /**
939
  * Field template: Recaptcha
940
  */
955
  }
956
  }
957
  });
958
+
959
  /**
960
  * Field template: Section Break
961
  */
966
  wpuf_mixins.form_field_mixin
967
  ]
968
  });
969
+
970
  /**
971
  * Field template: taxonomy
972
  */
1002
 
1003
  // selection type and terms
1004
  if (this.field.exclude_type && this.field.exclude) {
1005
+
1006
+ if ( this.field.exclude.length > 1 ) {
1007
+ var filter_ids = this.field.exclude.split(',').map(function (id) {
1008
+ id = id.trim();
1009
+ id = parseInt(id);
1010
+ return id;
1011
+ }).filter(function (id) {
1012
+ return isFinite(id);
1013
+ });
1014
+ }
1015
 
1016
  terms = terms.filter(function (term) {
1017
 
1163
  }
1164
  }
1165
  });
1166
+
1167
+ Vue.component('form-textarea_field', {
1168
+ template: '#tmpl-wpuf-form-textarea_field',
1169
 
1170
+ mixins: [
1171
+ wpuf_mixins.form_field_mixin
1172
+ ]
1173
+ });
1174
+
1175
  /**
1176
  * Field template: Text
1177
  */
1182
  wpuf_mixins.form_field_mixin
1183
  ]
1184
  });
1185
+
 
 
 
 
 
 
 
 
1186
  /**
1187
  * Field template: Website URL
1188
  */
1193
  wpuf_mixins.form_field_mixin
1194
  ]
1195
  });
1196
+
1197
  Vue.component('help-text', {
1198
  template: '#tmpl-wpuf-help-text',
1199
 
1208
  $(".wpuf-tooltip").tooltip();
1209
  }
1210
  });
1211
+
1212
  Vue.component('text-editor', {
1213
  template: '#tmpl-wpuf-text-editor',
1214
 
1224
  }
1225
  }
1226
  });
1227
+
1228
  })(jQuery);
assets/js/wpuf-form-builder-mixins.js CHANGED
@@ -1,6 +1,6 @@
1
  ;(function($) {
2
  'use strict';
3
-
4
  /**
5
  * Mixin for form fields like
6
  * form-text_field, form-field_textarea etc
@@ -54,7 +54,7 @@ wpuf_mixins.form_field_mixin = {
54
  }
55
  }
56
  };
57
-
58
  /**
59
  * Global mixin
60
  */
@@ -126,7 +126,7 @@ Vue.mixin({
126
  }
127
  }
128
  });
129
-
130
  /**
131
  * Integration mixin
132
  *
@@ -179,7 +179,7 @@ wpuf_mixins.integration_mixin = {
179
  }
180
  }
181
  };
182
-
183
  /**
184
  * Mixin for option fields like
185
  * field-text, field-text-meta, field-radio etc
@@ -237,5 +237,5 @@ wpuf_mixins.option_field_mixin = {
237
  },
238
  }
239
  };
240
-
241
  })(jQuery);
1
  ;(function($) {
2
  'use strict';
3
+
4
  /**
5
  * Mixin for form fields like
6
  * form-text_field, form-field_textarea etc
54
  }
55
  }
56
  };
57
+
58
  /**
59
  * Global mixin
60
  */
126
  }
127
  }
128
  });
129
+
130
  /**
131
  * Integration mixin
132
  *
179
  }
180
  }
181
  };
182
+
183
  /**
184
  * Mixin for option fields like
185
  * field-text, field-text-meta, field-radio etc
237
  },
238
  }
239
  };
240
+
241
  })(jQuery);
assets/less/admin.less CHANGED
@@ -611,6 +611,17 @@ tr.wpuf-form-layouts{
611
  cursor: pointer;
612
  }
613
 
 
 
 
 
 
 
 
 
 
 
 
614
  &.active:before{
615
  position: absolute;
616
  top: 0;
@@ -622,13 +633,29 @@ tr.wpuf-form-layouts{
622
  color: #18d118;
623
  content: "\f147";
624
  text-align: center;
625
- background: #f5f5f5;
626
  line-height: 40px;
627
  }
628
  }
629
  }
630
  }
631
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
632
  @import "help.less";
633
  @import "whats-new.less";
634
  @import "metabox-tabs.less";
611
  cursor: pointer;
612
  }
613
 
614
+ label{
615
+ font-size: 20px;
616
+ font-weight: 500;
617
+ margin-bottom: 20px;
618
+ }
619
+
620
+ &:hover {
621
+ opacity: 0.3;
622
+ transition: .3s;
623
+ }
624
+
625
  &.active:before{
626
  position: absolute;
627
  top: 0;
633
  color: #18d118;
634
  content: "\f147";
635
  text-align: center;
636
+ background: inherit;
637
  line-height: 40px;
638
  }
639
  }
640
  }
641
  }
642
 
643
+ ul.wpuf-form .wpuf-submit input[type=submit]{
644
+ font-size: 16px;
645
+ padding: 5px 15px;
646
+ border: 1px solid #ccc;
647
+ -webkit-border-radius: 3px;
648
+ -moz-border-radius: 3px;
649
+ border-radius: 3px;
650
+ background: #0085ba;
651
+ border-color: #0073aa #006799 #006799;
652
+ -webkit-box-shadow: 0 1px 0 #006799;
653
+ box-shadow: 0 1px 0 #006799;
654
+ color: #fff;
655
+ text-decoration: none;
656
+ text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
657
+ }
658
+
659
  @import "help.less";
660
  @import "whats-new.less";
661
  @import "metabox-tabs.less";
assets/less/frontend-forms.less CHANGED
@@ -129,6 +129,34 @@
129
  font-size: 13px;
130
  }
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  ul.wpuf-form {
133
  list-style: none !important;
134
  margin: 0 !important;
@@ -386,33 +414,6 @@ ul.wpuf-form {
386
  .attachment-name {
387
  text-align: center;
388
  }
389
-
390
- a.attachment-delete,a.wpuf-delete-avatar {
391
- text-decoration: none;
392
- padding: 3px 12px;
393
- border: 1px solid #C47272;
394
- color:#ffffff;
395
- text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);
396
- .border-radius(3px);
397
- background-color:#da4f49;
398
- background-image:-moz-linear-gradient(top, #ee5f5b, #bd362f);
399
- background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
400
- background-image:-webkit-linear-gradient(top, #ee5f5b, #bd362f);
401
- background-image:-o-linear-gradient(top, #ee5f5b, #bd362f);
402
- background-image:linear-gradient(to bottom, #ee5f5b, #bd362f);
403
- background-repeat:repeat-x;
404
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
405
- border-color:#bd362f #bd362f #802420;
406
- border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
407
- *background-color:#bd362f;
408
- filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);
409
-
410
- &:hover, &:active {
411
- color:#ffffff;
412
- background-color:#bd362f;
413
- *background-color:#a9302a;
414
- }
415
- }
416
  }
417
  }
418
 
@@ -660,14 +661,6 @@ ul.wpuf-form {
660
 
661
  .wpuf-submit {
662
 
663
- input[type=submit] {
664
- font-size: 16px;
665
- padding: 5px 15px;
666
- border: 1px solid #ccc;
667
- .border-radius(3px);
668
- .core-button();
669
- }
670
-
671
  .button-primary-disabled {
672
  color: #94cde7 !important;
673
  background: #298cba !important;
@@ -1508,3 +1501,38 @@ table#wpuf-address-country-state {
1508
  border: none;
1509
  }
1510
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  font-size: 13px;
130
  }
131
 
132
+ .wpuf-form-add{
133
+
134
+ &.wpuf-style{
135
+ ul.wpuf-form{
136
+ .wpuf-submit{
137
+
138
+ input[type=submit] {
139
+ font-size: 16px;
140
+ padding: 5px 15px;
141
+ border: 1px solid #ccc;
142
+ .border-radius(3px);
143
+ .core-button();
144
+ }
145
+
146
+ input[type=submit]:disabled{
147
+ background: #dddddd;
148
+ border-color: #dddddd;
149
+ -webkit-box-shadow: 0 1px 0 #dddddd;
150
+ box-shadow: 0 1px 0 #dddddd;
151
+ color: #000;
152
+ text-shadow: 0 -1px 1px #dddddd, 1px 0 1px #dddddd, 0 1px 1px #dddddd, -1px 0 1px #dddddd;
153
+ }
154
+ }
155
+ }
156
+ }
157
+
158
+ }
159
+
160
  ul.wpuf-form {
161
  list-style: none !important;
162
  margin: 0 !important;
414
  .attachment-name {
415
  text-align: center;
416
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
417
  }
418
  }
419
 
661
 
662
  .wpuf-submit {
663
 
 
 
 
 
 
 
 
 
664
  .button-primary-disabled {
665
  color: #94cde7 !important;
666
  background: #298cba !important;
1501
  border: none;
1502
  }
1503
  }
1504
+
1505
+ .wpuf-image-wrap {
1506
+ display:inline-block;
1507
+ position:relative;
1508
+ z-index:1;
1509
+ transition:.3s;
1510
+ margin:4px;
1511
+ .attachment-name img {
1512
+ width:100%;
1513
+ height:100%;
1514
+ transition:.3s;
1515
+ border-radius:4px;
1516
+ }
1517
+ :not(.attachment-name img) {
1518
+ position:absolute;
1519
+ width:100%;
1520
+ opacity:0;
1521
+ transition:.3s;
1522
+ }
1523
+ }
1524
+ li.wpuf-image-wrap.thumbnail {
1525
+ position:relative;
1526
+ .caption {
1527
+ position:absolute;
1528
+ left:50%;
1529
+ margin-left:-10px;
1530
+ top:50%;
1531
+ margin-top:-10px;
1532
+ display:none;
1533
+ width:16px;
1534
+ }
1535
+ }
1536
+ li.wpuf-image-wrap.thumbnail:hover .caption {
1537
+ display:block;
1538
+ }
class/frontend-account.php CHANGED
@@ -106,40 +106,27 @@ class WPUF_Frontend_Account {
106
  */
107
  public function subscription_section( $sections, $current_section ) {
108
 
109
- // if ( wpuf_get_option( 'charge_posting', 'wpuf_payment' ) != 'yes' || ! is_user_logged_in() ) {
110
- // return;
111
- // }
112
- $current_user = wpuf_get_user();
113
 
114
- if ( !$current_user->subscription()->current_pack_id() ) {
115
- _e( "<p>You've not subscribed any package yet.</p>", 'wpuf' );
116
  return;
117
  }
118
-
119
- global $userdata;
120
-
121
- $userdata = get_userdata( $userdata->ID ); //wp 3.3 fix
122
-
123
- $user_sub = WPUF_Subscription::get_user_pack( $userdata->ID );
124
- if ( ! isset( $user_sub['pack_id'] ) ) {
125
- die( __( "<p>You've not subscribed any package yet.</p>", 'wpuf' ) );
126
- } else {
127
- _e( "<p>You've subscribed to the following package.</p>", 'wpuf' );
128
- }
129
-
130
- $pack = WPUF_Subscription::get_subscription( $user_sub['pack_id'] );
131
 
132
  $details_meta['payment_page'] = get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) );
133
  $details_meta['onclick'] = '';
134
  $details_meta['symbol'] = wpuf_get_currency( 'symbol' );
135
 
 
 
136
  $billing_amount = ( intval( $pack->meta_value['billing_amount'] ) > 0 ) ? $details_meta['symbol'] . $pack->meta_value['billing_amount'] : __( 'Free', 'wpuf' );
137
  if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
138
- $recurring_des = sprintf( 'For each %s %s', $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
139
- $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? sprintf( ', for %s installments', $pack->meta_value['billing_limit'] ) : '';
140
- $recurring_des = $recurring_des;
141
- } else {
142
- $recurring_des = '';
143
  }
144
 
145
  wpuf_load_template(
@@ -147,7 +134,7 @@ class WPUF_Frontend_Account {
147
  array(
148
  'sections' => $sections,
149
  'current_section' => $current_section,
150
- 'userdata' => $userdata,
151
  'user_sub' => $user_sub,
152
  'pack' => $pack,
153
  'billing_amount' => $billing_amount,
106
  */
107
  public function subscription_section( $sections, $current_section ) {
108
 
109
+ $wpuf_user = wpuf_get_user();
110
+ $sub_id = $wpuf_user->subscription()->current_pack_id();
 
 
111
 
112
+ if ( !$sub_id ) {
113
+ _e( "<p>You are not subscribed to any package yet.</p>", 'wpuf' );
114
  return;
115
  }
116
+ $user_subscription = new WPUF_User_Subscription( $wpuf_user );
117
+ $user_sub = $user_subscription->current_pack();
118
+ $pack = WPUF_Subscription::get_subscription( $sub_id );
 
 
 
 
 
 
 
 
 
 
119
 
120
  $details_meta['payment_page'] = get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) );
121
  $details_meta['onclick'] = '';
122
  $details_meta['symbol'] = wpuf_get_currency( 'symbol' );
123
 
124
+ $recurring_des = '';
125
+
126
  $billing_amount = ( intval( $pack->meta_value['billing_amount'] ) > 0 ) ? $details_meta['symbol'] . $pack->meta_value['billing_amount'] : __( 'Free', 'wpuf' );
127
  if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
128
+ $recurring_des = sprintf( __( 'For each %s %s', 'wpuf' ), $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
129
+ $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? sprintf( __( ', for %s installments', 'wpuf' ), $pack->meta_value['billing_limit'] ) : '';
 
 
 
130
  }
131
 
132
  wpuf_load_template(
134
  array(
135
  'sections' => $sections,
136
  'current_section' => $current_section,
137
+ 'userdata' => $wpuf_user->user,
138
  'user_sub' => $user_sub,
139
  'pack' => $pack,
140
  'billing_amount' => $billing_amount,
class/frontend-form-post.php CHANGED
@@ -498,8 +498,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
498
  // if user has a subscription pack
499
  $user_wpuf_subscription_pack = get_user_meta( get_current_user_id(), '_wpuf_subscription_pack', true );
500
 
501
- if ( !empty( $user_wpuf_subscription_pack ) && isset( $user_wpuf_subscription_pack['_enable_post_expiration'] ) && isset( $user_wpuf_subscription_pack['expire'] ) && strtotime( $user_wpuf_subscription_pack['expire'] ) >= time()
502
- ) {
503
  $expire_date = date( 'Y-m-d', strtotime( "+" . $user_wpuf_subscription_pack['_post_expiration_time'] ) );
504
  update_post_meta( $post_id, $this->post_expiration_date, $expire_date );
505
 
@@ -509,7 +508,9 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
509
 
510
  // if mail active
511
  if ( isset( $user_wpuf_subscription_pack['_enable_mail_after_expired'] ) && $user_wpuf_subscription_pack['_enable_mail_after_expired'] == 'on' ) {
512
- $post_expiration_message = $user_wpuf_subscription_pack['_post_expiration_message'];
 
 
513
  update_post_meta( $post_id, $this->post_expiration_message, $post_expiration_message );
514
  }
515
  } elseif ( !empty( $user_wpuf_subscription_pack ) && isset( $user_wpuf_subscription_pack['expire'] ) && strtotime( $user_wpuf_subscription_pack['expire'] ) <= time() ) {
@@ -529,7 +530,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
529
  update_post_meta( $post_id, $this->post_expiration_message, $post_expiration_message );
530
  }
531
  }
532
- } elseif ( empty( $user_wpuf_subscription_pack ) ) {
533
 
534
  if ( isset( $form_settings['expiration_settings']['enable_post_expiration'] ) ) {
535
  $expire_date = date( 'Y-m-d', strtotime( "+" . $form_settings['expiration_settings']['expiration_time_value'] . ' ' . $form_settings['expiration_settings']['expiration_time_type'] . "" ) );
498
  // if user has a subscription pack
499
  $user_wpuf_subscription_pack = get_user_meta( get_current_user_id(), '_wpuf_subscription_pack', true );
500
 
501
+ if ( !empty( $user_wpuf_subscription_pack ) && isset( $user_wpuf_subscription_pack['_enable_post_expiration'] ) && isset( $user_wpuf_subscription_pack['expire'] ) && strtotime( $user_wpuf_subscription_pack['expire'] ) >= time() ) {
 
502
  $expire_date = date( 'Y-m-d', strtotime( "+" . $user_wpuf_subscription_pack['_post_expiration_time'] ) );
503
  update_post_meta( $post_id, $this->post_expiration_date, $expire_date );
504
 
508
 
509
  // if mail active
510
  if ( isset( $user_wpuf_subscription_pack['_enable_mail_after_expired'] ) && $user_wpuf_subscription_pack['_enable_mail_after_expired'] == 'on' ) {
511
+ $wpuf_user = wpuf_get_user();
512
+ $user_subscription = new WPUF_User_Subscription( $wpuf_user );
513
+ $post_expiration_message = $user_subscription->get_subscription_exp_msg( $user_subscription['pack_id'] );
514
  update_post_meta( $post_id, $this->post_expiration_message, $post_expiration_message );
515
  }
516
  } elseif ( !empty( $user_wpuf_subscription_pack ) && isset( $user_wpuf_subscription_pack['expire'] ) && strtotime( $user_wpuf_subscription_pack['expire'] ) <= time() ) {
530
  update_post_meta( $post_id, $this->post_expiration_message, $post_expiration_message );
531
  }
532
  }
533
+ } elseif ( empty( $user_wpuf_subscription_pack ) || $user_wpuf_subscription_pack == 'Cancel' || $user_wpuf_subscription_pack == 'cancel' ) {
534
 
535
  if ( isset( $form_settings['expiration_settings']['enable_post_expiration'] ) ) {
536
  $expire_date = date( 'Y-m-d', strtotime( "+" . $form_settings['expiration_settings']['expiration_time_value'] . ' ' . $form_settings['expiration_settings']['expiration_time_type'] . "" ) );
class/payment.php CHANGED
@@ -215,7 +215,6 @@ class WPUF_Payment {
215
  $post_cost = $pay_per_post_cost;
216
  $billing_amount = apply_filters( 'wpuf_payment_amount', $pay_per_post_cost );
217
  }
218
-
219
  ?>
220
  <div id="wpuf_type" style="display: none"><?php echo 'post'; ?></div>
221
  <div id="wpuf_id" style="display: none"><?php echo $post_id; ?></div>
@@ -332,9 +331,11 @@ class WPUF_Payment {
332
  $form_id = get_post_meta( $post_id, '_wpuf_form_id', true );
333
  $form = new WPUF_Form( $form_id );
334
  $form_settings = $form->get_settings();
 
 
335
  $post_count = $current_user->subscription()->has_post_count( $form_settings['post_type'] );
336
 
337
- if ( !is_wp_error ( $current_pack ) && !$post_count ) {
338
  $amount = $form->get_subs_fallback_cost();
339
  } else {
340
  $amount = $form->get_pay_per_post_cost();
215
  $post_cost = $pay_per_post_cost;
216
  $billing_amount = apply_filters( 'wpuf_payment_amount', $pay_per_post_cost );
217
  }
 
218
  ?>
219
  <div id="wpuf_type" style="display: none"><?php echo 'post'; ?></div>
220
  <div id="wpuf_id" style="display: none"><?php echo $post_id; ?></div>
331
  $form_id = get_post_meta( $post_id, '_wpuf_form_id', true );
332
  $form = new WPUF_Form( $form_id );
333
  $form_settings = $form->get_settings();
334
+ $force_pack = $form->is_enabled_force_pack();
335
+ $fallback_on = $form->is_enabled_fallback_cost();
336
  $post_count = $current_user->subscription()->has_post_count( $form_settings['post_type'] );
337
 
338
+ if ( $force_pack && $fallback_on && !is_wp_error ( $current_pack ) && !$post_count ) {
339
  $amount = $form->get_subs_fallback_cost();
340
  } else {
341
  $amount = $form->get_pay_per_post_cost();
class/render-form.php CHANGED
@@ -94,7 +94,7 @@ class WPUF_Render_Form {
94
  if ( $no_captcha == 1 && 0 == $invisible ) {
95
 
96
  $response = null;
97
- $reCaptcha = new ReCaptcha($private_key);
98
 
99
  $resp = $reCaptcha->verifyResponse(
100
  $_SERVER["REMOTE_ADDR"],
@@ -289,7 +289,7 @@ class WPUF_Render_Form {
289
  if ( $value['input_type'] == 'address' ) {
290
  $meta_key_value[$value['name']] = $_POST[$value['name']];
291
  } elseif ( !empty( $acf_compatibility ) && $acf_compatibility == 'yes' ) {
292
- $meta_key_value[$value['name']] = maybe_serialize( $_POST[$value['name']] );
293
  } else {
294
  $meta_key_value[$value['name']] = implode( self::$separator, $_POST[$value['name']] );
295
  }
@@ -349,11 +349,12 @@ class WPUF_Render_Form {
349
  return;
350
  }
351
 
352
- $form_vars = wpuf_get_form_fields( $form_id );
353
- $form_settings = wpuf_get_form_settings( $form_id );
354
- $label_position = isset( $form_settings['label_position'] ) ? $form_settings['label_position'] : 'left';
355
- $layout = isset( $form_settings['form_layout'] ) ? $form_settings['form_layout'] : 'layout1';
356
- $is_scheduled = ( isset( $form_settings['schedule_form'] ) && $form_settings['schedule_form'] == 'true' ) ? true : false;
 
357
 
358
  if ( $is_scheduled ) {
359
  $start_time = !empty( $form_settings['schedule_start'] ) ? strtotime( $form_settings['schedule_start'] ) : 0;
@@ -381,7 +382,7 @@ class WPUF_Render_Form {
381
 
382
  if ( $form_vars ) {
383
  ?>
384
- <form class="wpuf-form-add wpuf-form-<?php echo $layout; ?>" action="" method="post">
385
 
386
  <ul class="wpuf-form form-label-<?php echo $label_position; ?>">
387
 
@@ -1120,14 +1121,14 @@ class WPUF_Render_Form {
1120
  function select( $attr, $multiselect = false, $post_id, $type, $form_id = null ) {
1121
  if ( $post_id ) {
1122
  $selected = $this->get_meta( $post_id, $attr['name'], $type );
1123
-
1124
  if ( $multiselect ) {
1125
  if ( is_serialized( $selected ) ) {
1126
  $selected = maybe_unserialize( $selected );
1127
  } elseif ( is_array( $selected ) ) {
1128
- $selected = $selected;
1129
  } else {
1130
- $selected = explode( self::$separator, $selected );
1131
  }
1132
  }
1133
  } else {
@@ -1214,9 +1215,9 @@ class WPUF_Render_Form {
1214
  if ( is_serialized( $value ) ) {
1215
  $selected = maybe_unserialize( $value );
1216
  } elseif ( is_array( $value ) ) {
1217
- $selected = $value;
1218
  } else {
1219
- $selected = explode( self::$separator, $value );
1220
  }
1221
  }
1222
  }
@@ -1409,7 +1410,7 @@ class WPUF_Render_Form {
1409
  $class = ' wpuf_'.$attr['name'].'_'.$selected;
1410
  $exclude_type = isset( $attr['exclude_type'] ) ? $attr['exclude_type'] : 'exclude';
1411
  $exclude = $attr['exclude'];
1412
-
1413
  if ( $exclude_type == 'child_of' ) {
1414
  $exclude = $exclude[0];
1415
  }
94
  if ( $no_captcha == 1 && 0 == $invisible ) {
95
 
96
  $response = null;
97
+ $reCaptcha = new WPUF_ReCaptcha($private_key);
98
 
99
  $resp = $reCaptcha->verifyResponse(
100
  $_SERVER["REMOTE_ADDR"],
289
  if ( $value['input_type'] == 'address' ) {
290
  $meta_key_value[$value['name']] = $_POST[$value['name']];
291
  } elseif ( !empty( $acf_compatibility ) && $acf_compatibility == 'yes' ) {
292
+ $meta_key_value[$value['name']] = maybe_serialize( $_POST[$value['name']] );
293
  } else {
294
  $meta_key_value[$value['name']] = implode( self::$separator, $_POST[$value['name']] );
295
  }
349
  return;
350
  }
351
 
352
+ $form_vars = wpuf_get_form_fields( $form_id );
353
+ $form_settings = wpuf_get_form_settings( $form_id );
354
+ $label_position = isset( $form_settings['label_position'] ) ? $form_settings['label_position'] : 'left';
355
+ $layout = isset( $form_settings['form_layout'] ) ? $form_settings['form_layout'] : 'layout1';
356
+ $theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use_theme_css'] : 'wpuf-style';
357
+ $is_scheduled = ( isset( $form_settings['schedule_form'] ) && $form_settings['schedule_form'] == 'true' ) ? true : false;
358
 
359
  if ( $is_scheduled ) {
360
  $start_time = !empty( $form_settings['schedule_start'] ) ? strtotime( $form_settings['schedule_start'] ) : 0;
382
 
383
  if ( $form_vars ) {
384
  ?>
385
+ <form class="wpuf-form-add wpuf-form-<?php echo $layout; ?> <?php echo ($layout == 'layout1') ? $theme_css : 'wpuf-style'; ?>" action="" method="post">
386
 
387
  <ul class="wpuf-form form-label-<?php echo $label_position; ?>">
388
 
1121
  function select( $attr, $multiselect = false, $post_id, $type, $form_id = null ) {
1122
  if ( $post_id ) {
1123
  $selected = $this->get_meta( $post_id, $attr['name'], $type );
1124
+
1125
  if ( $multiselect ) {
1126
  if ( is_serialized( $selected ) ) {
1127
  $selected = maybe_unserialize( $selected );
1128
  } elseif ( is_array( $selected ) ) {
1129
+ $selected = $selected;
1130
  } else {
1131
+ $selected = explode( self::$separator, $selected );
1132
  }
1133
  }
1134
  } else {
1215
  if ( is_serialized( $value ) ) {
1216
  $selected = maybe_unserialize( $value );
1217
  } elseif ( is_array( $value ) ) {
1218
+ $selected = $value;
1219
  } else {
1220
+ $selected = explode( self::$separator, $value );
1221
  }
1222
  }
1223
  }
1410
  $class = ' wpuf_'.$attr['name'].'_'.$selected;
1411
  $exclude_type = isset( $attr['exclude_type'] ) ? $attr['exclude_type'] : 'exclude';
1412
  $exclude = $attr['exclude'];
1413
+
1414
  if ( $exclude_type == 'child_of' ) {
1415
  $exclude = $exclude[0];
1416
  }
class/subscription.php CHANGED
@@ -713,7 +713,6 @@ class WPUF_Subscription {
713
  do_action( "wpuf_account_content_subscription", $sections, 'subscription' );
714
  }
715
 
716
-
717
  /**
718
  * Show the subscription packs that are built
719
  * from admin Panel
@@ -780,39 +779,18 @@ class WPUF_Subscription {
780
  <?php
781
  }
782
 
783
- if ( $packs ) {
784
- echo '<ul class="wpuf_packs">';
785
- if ( isset($args['include']) && $args['include'] != "" ) {
786
- for ( $i = 0; $i < count( $pack_order ); $i++ ) {
787
- foreach ($packs as $pack) {
788
- if ( (int) $pack->ID == $pack_order[$i] ) {
789
- $class = 'wpuf-pack-' . $pack->ID;
790
- ?>
791
- <li class="<?php echo $class; ?>">
792
- <?php $this->pack_details( $pack, $details_meta, isset( $current_pack['pack_id'] ) ? $current_pack['pack_id'] : '' ); ?>
793
- </li>
794
- <?php
795
- }
796
- }
797
- }
798
- } else {
799
- foreach ($packs as $pack) {
800
- $class = 'wpuf-pack-' . $pack->ID;
801
- ?>
802
- <li class="<?php echo $class; ?>">
803
- <?php $this->pack_details( $pack, $details_meta, isset( $current_pack['pack_id'] ) ? $current_pack['pack_id'] : '' ); ?>
804
- </li>
805
- <?php
806
- }
807
- }
808
- echo '</ul>';
809
- }
810
 
811
  $contents = ob_get_clean();
812
 
813
  return apply_filters( 'wpuf_subscription_packs', $contents, $packs );
814
-
815
-
816
  }
817
 
818
  function get_details_meta_value() {
@@ -824,13 +802,23 @@ class WPUF_Subscription {
824
  return $meta;
825
  }
826
 
827
- function pack_details( $pack, $details_meta, $current_pack_id = '', $coupon_satus = false ) {
 
 
 
 
 
 
 
 
828
 
829
  if ( function_exists( 'wpuf_prices_include_tax' ) ) {
830
  $price_with_tax = wpuf_prices_include_tax();
831
  }
832
 
833
  $billing_amount = ( $pack->meta_value['billing_amount'] >= 0 && !empty( $pack->meta_value['billing_amount'] ) ) ? $pack->meta_value['billing_amount'] : '0.00';
 
 
834
 
835
  if ( isset( $price_with_tax ) && $price_with_tax ) {
836
  $billing_amount = apply_filters( 'wpuf_payment_amount', $billing_amount);
@@ -840,71 +828,52 @@ class WPUF_Subscription {
840
  $recurring_des = sprintf( __('Every', 'wpuf').' %s %s', $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
841
  $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? __( sprintf( ', '.__('for', 'wpuf').' %s '.__( 'installments', 'wpuf' ), $pack->meta_value['billing_limit'] ), 'wpuf' ) : '';
842
  $recurring_des = '<div class="wpuf-pack-cycle wpuf-nullamount-hide">'.$recurring_des.'</div>';
843
- } else {
844
- $recurring_des = '<div class="wpuf-pack-cycle wpuf-nullamount-hide">' . __( 'One time payment', 'wpuf' ) . '</div>';
845
  }
846
 
847
  if ( $billing_amount && $pack->meta_value['recurring_pay'] == 'yes' && $pack->meta_value['trial_status'] == 'yes' ) {
848
-
849
  $duration = _n( $pack->meta_value['trial_duration_type'], $pack->meta_value['trial_duration_type'].'s', $pack->meta_value['trial_duration'], 'wpuf' );
850
  $trial_des = __( sprintf( 'Trial available for first %s %s', $pack->meta_value['trial_duration'], $duration ), 'wpuf' );
851
-
852
- } else {
853
- $trial_des = '';
854
  }
855
 
856
- if ( ! is_user_logged_in() ) {
857
- $button_name = __( 'Sign Up', 'wpuf' );
858
- $url = wp_login_url();
 
 
 
859
  } else if ( $billing_amount == '0.00' ) {
860
- $button_name = __( 'Free', 'wpuf' );
861
- } else {
862
- $button_name = __( 'Buy Now', 'wpuf' );
863
  }
864
- ?>
865
- <div class="wpuf-pricing-wrap">
866
- <h3><?php echo wp_kses_post( $pack->post_title ); ?> </h3>
867
- <div class="wpuf-sub-amount">
868
-
869
- <?php if ( $billing_amount != '0.00' ) { ?>
870
- <sup class="wpuf-sub-symbol"><?php echo $details_meta['symbol']; ?></sup>
871
- <span class="wpuf-sub-cost"><?php echo $billing_amount; ?></span>
872
- <?php } else { ?>
873
- <span class="wpuf-sub-cost"><?php _e( 'Free', 'wpuf' ); ?></span>
874
- <?php } ?>
875
-
876
- <?php _e( $recurring_des , 'wpuf' ); ?>
877
-
878
- </div>
879
- <?php
880
- if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
881
- ?>
882
- <div class="wpuf-sub-body wpuf-nullamount-hide">
883
- <div class="wpuf-sub-terms"><?php echo $trial_des; ?></div>
884
- </div>
885
- <?php
886
- }
887
- ?>
888
- </div>
889
- <div class="wpuf-sub-desciption">
890
- <?php echo wpautop( wp_kses_post( $pack->post_content ) ); ?>
891
- </div>
892
- <?php
893
 
894
- if ( isset( $_GET['action'] ) && $_GET['action'] == 'wpuf_pay' || $coupon_satus ) {
895
- return;
896
- }
897
- if ( $coupon_satus === false && is_user_logged_in() ) {
898
- ?>
899
- <div class="wpuf-sub-button"><a <?php echo ( $current_pack_id != '' ) ? ' class = "wpuf-disabled-link" ' : '' ;?> href="<?php echo ( $current_pack_id != '' ) ? 'javascript:' : add_query_arg( array('action' => 'wpuf_pay', 'type' => 'pack', 'pack_id' => $pack->ID ), $details_meta['payment_page'] ); ?>" onclick="<?php echo esc_attr( $details_meta['onclick'] ); ?>"><?php echo $button_name; ?></a></div>
900
- <?php
901
- } else {
902
- ?>
903
- <div class="wpuf-sub-button"><a <?php echo ( $current_pack_id != '' ) ? ' class = "wpuf-disabled-link" ' : '' ;?> href="<?php echo ( $current_pack_id != '' ) ? 'javascript:' : add_query_arg( array( 'action' => 'register', 'type' => 'wpuf_sub', 'pack_id' => $pack->ID ), wp_registration_url() ); ?>" onclick="<?php echo esc_attr( $details_meta['onclick'] ); ?>"><?php echo $button_name; ?></a></div>
904
- <?php
905
- //wp_registration_url()
 
 
906
  }
907
 
 
 
 
 
 
 
 
 
 
 
 
 
908
  }
909
 
910
  /**
@@ -1159,4 +1128,39 @@ class WPUF_Subscription {
1159
  return get_post_meta( $post_id, '_wpuf_payment_status', true);
1160
  }
1161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1162
  }
713
  do_action( "wpuf_account_content_subscription", $sections, 'subscription' );
714
  }
715
 
 
716
  /**
717
  * Show the subscription packs that are built
718
  * from admin Panel
779
  <?php
780
  }
781
 
782
+ wpuf_load_template( 'subscriptions/listing.php', apply_filters( 'wpuf_subscription_listing_args', array(
783
+ 'subscription' => $this,
784
+ 'args' => $args,
785
+ 'packs' => $packs,
786
+ 'pack_order' => isset( $pack_order ) ? $pack_order : '',
787
+ 'details_meta' => $details_meta,
788
+ 'current_pack' => $current_pack
789
+ ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
790
 
791
  $contents = ob_get_clean();
792
 
793
  return apply_filters( 'wpuf_subscription_packs', $contents, $packs );
 
 
794
  }
795
 
796
  function get_details_meta_value() {
802
  return $meta;
803
  }
804
 
805
+ /**
806
+ * Render Subscription Pack details
807
+ *
808
+ * @param $pack
809
+ * @param $details_meta
810
+ * @param string $current_pack_id
811
+ * @param bool $coupon_status
812
+ */
813
+ function pack_details( $pack, $details_meta, $current_pack_id = '', $coupon_status = false ) {
814
 
815
  if ( function_exists( 'wpuf_prices_include_tax' ) ) {
816
  $price_with_tax = wpuf_prices_include_tax();
817
  }
818
 
819
  $billing_amount = ( $pack->meta_value['billing_amount'] >= 0 && !empty( $pack->meta_value['billing_amount'] ) ) ? $pack->meta_value['billing_amount'] : '0.00';
820
+ $trial_des = '';
821
+ $recurring_des = '<div class="wpuf-pack-cycle wpuf-nullamount-hide">' . __( 'One time payment', 'wpuf' ) . '</div>';
822
 
823
  if ( isset( $price_with_tax ) && $price_with_tax ) {
824
  $billing_amount = apply_filters( 'wpuf_payment_amount', $billing_amount);
828
  $recurring_des = sprintf( __('Every', 'wpuf').' %s %s', $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
829
  $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? __( sprintf( ', '.__('for', 'wpuf').' %s '.__( 'installments', 'wpuf' ), $pack->meta_value['billing_limit'] ), 'wpuf' ) : '';
830
  $recurring_des = '<div class="wpuf-pack-cycle wpuf-nullamount-hide">'.$recurring_des.'</div>';
 
 
831
  }
832
 
833
  if ( $billing_amount && $pack->meta_value['recurring_pay'] == 'yes' && $pack->meta_value['trial_status'] == 'yes' ) {
 
834
  $duration = _n( $pack->meta_value['trial_duration_type'], $pack->meta_value['trial_duration_type'].'s', $pack->meta_value['trial_duration'], 'wpuf' );
835
  $trial_des = __( sprintf( 'Trial available for first %s %s', $pack->meta_value['trial_duration'], $duration ), 'wpuf' );
 
 
 
836
  }
837
 
838
+ $label = wpuf_get_option( 'logged_in_label','subscription_settings', false );
839
+ $button_name = $label ? $label : __('Buy Now', 'wpuf');
840
+
841
+ if ( ! is_user_logged_in() ) {
842
+ $label = wpuf_get_option( 'logged_out_label','subscription_settings', false );
843
+ $button_name = $label ? $label : __( 'Sign Up', 'wpuf' );
844
  } else if ( $billing_amount == '0.00' ) {
845
+ $label = wpuf_get_option( 'free_label','subscription_settings', false );
846
+ $button_name = $label ? $label : __( 'Free', 'wpuf' );
 
847
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
848
 
849
+ $query_args = array(
850
+ 'action' => 'register',
851
+ 'type' => 'wpuf_sub',
852
+ 'pack_id' => $pack->ID,
853
+ );
854
+ $query_url = wp_registration_url();
855
+
856
+ if ( $coupon_status === false && is_user_logged_in() ) {
857
+ $query_args = array(
858
+ 'action' => 'wpuf_pay',
859
+ 'type' => 'pack',
860
+ 'pack_id' => $pack->ID
861
+ );
862
+ $query_url = $details_meta['payment_page'];
863
  }
864
 
865
+ wpuf_load_template( 'subscriptions/pack-details.php', apply_filters( 'wpuf_subscription_pack_details_args', array(
866
+ 'pack' => $pack,
867
+ 'billing_amount' => $billing_amount,
868
+ 'details_meta' => $details_meta,
869
+ 'recurring_des' => $recurring_des,
870
+ 'trial_des' => $trial_des,
871
+ 'coupon_status' => $coupon_status,
872
+ 'current_pack_id' => $current_pack_id,
873
+ 'button_name' => $button_name,
874
+ 'query_args' => $query_args,
875
+ 'query_url' => $query_url,
876
+ ) ) );
877
  }
878
 
879
  /**
1128
  return get_post_meta( $post_id, '_wpuf_payment_status', true);
1129
  }
1130
 
1131
+ /**
1132
+ * Insert Free pack users to subscribers list
1133
+ *
1134
+ * @since 2.8.8
1135
+ *
1136
+ * @param $post_id
1137
+ * @return void
1138
+ */
1139
+
1140
+ public function insert_free_pack_subscribers( $pack_id, $userdata ) {
1141
+ global $wpdb;
1142
+
1143
+ $subscription = wpuf()->subscription->get_subscription( $pack_id );
1144
+ if ( $userdata->id && $subscription ) {
1145
+
1146
+ $user_meta = array(
1147
+ 'pack_id' => $pack_id,
1148
+ 'posts' => $subscription->meta_value['post_type_name'],
1149
+ );
1150
+
1151
+ $table_data = array(
1152
+ 'user_id' => $userdata->id,
1153
+ 'name' => $userdata->user->data->display_name,
1154
+ 'subscribtion_id' => $pack_id,
1155
+ 'subscribtion_status' => 'free',
1156
+ 'gateway' => 'free',
1157
+ 'transaction_id' => 'free',
1158
+ 'starts_from' => date( 'd-m-Y' ),
1159
+ 'expire' => $user_meta['expire'] == '' ? 'recurring' : $user_meta['expire'],
1160
+ );
1161
+
1162
+ $wpdb->insert( $wpdb->prefix . 'wpuf_subscribers', $table_data );
1163
+ }
1164
+ }
1165
+
1166
  }
class/upload.php CHANGED
@@ -168,7 +168,7 @@ class WPUF_Upload {
168
  }
169
 
170
  $html .= sprintf( '<input type="hidden" name="wpuf_files[%s][]" value="%d">', $type, $attach_id );
171
- $html .= sprintf( '<div class="caption"><a href="#" class="btn btn-danger btn-small attachment-delete" data-attach_id="%d">%s</a></div>', $attach_id, __( 'Delete', 'wpuf' ) );
172
  $html .= '</li>';
173
 
174
  return $html;
168
  }
169
 
170
  $html .= sprintf( '<input type="hidden" name="wpuf_files[%s][]" value="%d">', $type, $attach_id );
171
+ $html .= sprintf( '<div class="caption"><a href="#" class="attachment-delete" data-attach_id="%d"> <img src="%s" /></a></div>', $attach_id, WPUF_ASSET_URI . '/images/del-img.png' );
172
  $html .= '</li>';
173
 
174
  return $html;
includes/class-user-subscription.php CHANGED
@@ -60,7 +60,7 @@ class WPUF_User_Subscription {
60
 
61
  // seems like the user has a pack, now check expiration
62
  if ( $this->expired() ) {
63
- return new WP_Error( 'expired', __( 'The subscription pack has been expired. Please buy a pack.', 'wpuf' ) );
64
  }
65
 
66
  return $pack;
@@ -229,6 +229,9 @@ class WPUF_User_Subscription {
229
  $wpdb->insert( $wpdb->prefix . 'wpuf_subscribers', $table_data );
230
  }
231
 
 
 
 
232
  }
233
  }
234
 
@@ -492,4 +495,20 @@ class WPUF_User_Subscription {
492
  return false;
493
  }
494
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
495
  }
60
 
61
  // seems like the user has a pack, now check expiration
62
  if ( $this->expired() ) {
63
+ return new WP_Error( 'expired', __( 'The subscription pack has expired. Please buy a pack.', 'wpuf' ) );
64
  }
65
 
66
  return $pack;
229
  $wpdb->insert( $wpdb->prefix . 'wpuf_subscribers', $table_data );
230
  }
231
 
232
+ if ( self::is_free_pack( $pack_id ) ) {
233
+ wpuf()->subscription->insert_free_pack_subscribers( $pack_id, $this->user );
234
+ }
235
  }
236
  }
237
 
495
  return false;
496
  }
497
 
498
+ /**
499
+ * Get Expiration Message
500
+ *
501
+ * @since 2.8.8
502
+ * @param $pack_id
503
+ * @return string
504
+ */
505
+ public function get_subscription_exp_msg( $pack_id ) {
506
+ $sub_pack = WPUF_Subscription::get_subscription( $pack_id );
507
+ $sub_info = $this->pack;
508
+
509
+ $exp_message = !empty( $sub_pack->meta_value['_post_expiration_message'] ) ? $sub_pack->meta_value['_post_expiration_message'] : $sub_info['_post_expiration_message'];
510
+
511
+ return $exp_message;
512
+ }
513
+
514
  }
includes/class-user.php CHANGED
@@ -69,4 +69,71 @@ class WPUF_User {
69
  public function subscription() {
70
  return new WPUF_User_Subscription( $this );
71
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  }
69
  public function subscription() {
70
  return new WPUF_User_Subscription( $this );
71
  }
72
+
73
+ /**
74
+ * Check if user is verified
75
+ *
76
+ * @since 2.8.8
77
+ *
78
+ * @return bool
79
+ */
80
+ public function is_verified() {
81
+ return 0 !== get_user_meta( $this->id, '_wpuf_user_active', true );
82
+ }
83
+
84
+ /**
85
+ * Mark user as verified
86
+ *
87
+ * @since 2.8.8
88
+ *
89
+ * @return void
90
+ */
91
+ public function mark_verified() {
92
+ update_user_meta( $this->id, '_wpuf_user_active', 1 );
93
+ }
94
+
95
+ /**
96
+ * Mark user as unverified
97
+ *
98
+ * @since 2.8.8
99
+ *
100
+ * @return void
101
+ */
102
+ public function mark_unverified() {
103
+ update_user_meta( $this->id, '_wpuf_user_active', 0 );
104
+ }
105
+
106
+ /**
107
+ * Set user activation key
108
+ *
109
+ * @since 2.8.8
110
+ *
111
+ * @return void
112
+ */
113
+ public function set_activation_key( $key ) {
114
+ update_user_meta( $this->id, '_wpuf_activation_key', $key );
115
+ }
116
+
117
+ /**
118
+ * Get user activation key
119
+ *
120
+ * @since 2.8.8
121
+ *
122
+ * @return string
123
+ */
124
+ public function get_activation_key() {
125
+ return get_user_meta( $this->id, '_wpuf_activation_key', true );
126
+ }
127
+
128
+ /**
129
+ * Remove user activation key
130
+ *
131
+ * @since 2.8.8
132
+ *
133
+ * @return void
134
+ */
135
+ public function remove_activation_key( ) {
136
+ delete_user_meta( $this->id, '_wpuf_activation_key' );
137
+ }
138
+
139
  }
includes/free/class-login.php CHANGED
@@ -123,14 +123,11 @@ class WPUF_Simple_Login {
123
  */
124
  function get_registration_url( $register_url = null ) {
125
  $register_link_override = wpuf_get_option('register_link_override','wpuf_profile',false);
126
- $page_id = wpuf_get_option( 'reg_override_page', 'wpuf_profile', false );
 
127
 
128
- if ( $register_link_override == 'off' ) {
129
- return $register_url;
130
- }
131
-
132
- if ( !$page_id ) {
133
- return false;
134
  }
135
 
136
  $url = get_permalink( $page_id );
@@ -625,10 +622,11 @@ class WPUF_Simple_Login {
625
  if ( !is_wp_error( $user ) ) {
626
 
627
  if ( $user->ID ) {
628
-
629
  $error = new WP_Error();
630
- if ( get_user_meta( $user->ID, '_wpuf_user_active', true ) == '0' ) {
631
- $error->add( 'acitve_user', sprintf( __( '<strong>Your account is not active.</strong><br>Please check your email for activation link.', 'wpuf' ) ) );
 
632
  return $error;
633
  }
634
  }
@@ -649,21 +647,37 @@ class WPUF_Simple_Login {
649
  }
650
 
651
  if ( !isset( $_GET['id'] ) && empty( $_GET['id'] ) ) {
 
652
  return;
653
  }
654
 
655
  $user_id = intval( $_GET['id'] );
 
 
 
 
 
 
 
 
 
 
 
 
656
  $activation_key = $_GET['wpuf_registration_activation'];
657
 
658
- if ( get_user_meta( $user_id, '_wpuf_activation_key', true ) != $activation_key ) {
 
659
  return;
660
  }
661
 
662
- delete_user_meta( $user_id, '_wpuf_user_active' );
663
- delete_user_meta( $user_id, '_wpuf_activation_key' );
 
 
664
 
665
  // show activation message
666
- add_filter( 'wp_login_errors', array($this, 'user_activation_message') );
667
  wp_send_new_user_notifications( $user_id );
668
 
669
  do_action( 'wpuf_user_activated', $user_id );
@@ -743,6 +757,27 @@ class WPUF_Simple_Login {
743
  }
744
  }
745
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
746
  /**
747
  * Show erros on the form
748
  *
123
  */
124
  function get_registration_url( $register_url = null ) {
125
  $register_link_override = wpuf_get_option('register_link_override','wpuf_profile',false);
126
+ $page_id = wpuf_get_option( 'reg_override_page', 'wpuf_profile', false );
127
+ $wp_reg_url = site_url( 'wp-login.php?action=register', 'login' );
128
 
129
+ if ( $register_link_override == 'off' || !$page_id ) {
130
+ return $wp_reg_url;
 
 
 
 
131
  }
132
 
133
  $url = get_permalink( $page_id );
622
  if ( !is_wp_error( $user ) ) {
623
 
624
  if ( $user->ID ) {
625
+ $resend_link = add_query_arg( 'resend_activation', $user->ID, $this->get_login_url() );
626
  $error = new WP_Error();
627
+ $wpuf_user = new WPUF_User( $user->ID );
628
+ if ( ! $wpuf_user->is_verified() ) {
629
+ $error->add( 'acitve_user', sprintf( __( '<strong>Your account is not active.</strong><br>Please check your email for activation link. <br><a href="%s">Click here</a> to resend the activation link', 'wpuf' ), $resend_link ) );
630
  return $error;
631
  }
632
  }
647
  }
648
 
649
  if ( !isset( $_GET['id'] ) && empty( $_GET['id'] ) ) {
650
+ wpuf()->login->add_error( 'Activation URL is not valid' );
651
  return;
652
  }
653
 
654
  $user_id = intval( $_GET['id'] );
655
+ $user = new WPUF_User( $user_id );
656
+
657
+ if ( !$user ) {
658
+ wpuf()->login->add_error( 'Invalid User activation url' );
659
+ return;
660
+ }
661
+
662
+ if ( $user->is_verified() ){
663
+ wpuf()->login->add_error( 'User already verified' );
664
+ return;
665
+ }
666
+
667
  $activation_key = $_GET['wpuf_registration_activation'];
668
 
669
+ if ( $user->get_activation_key() != $activation_key ) {
670
+ wpuf()->login->add_error( 'Activation URL is not valid' );
671
  return;
672
  }
673
 
674
+ $user->mark_verified();
675
+ $user->remove_activation_key();
676
+
677
+ wpuf()->login->add_message( 'Your account has been activated' );
678
 
679
  // show activation message
680
+ add_filter( 'wp_login_errors', array( $this, 'user_activation_message' ) );
681
  wp_send_new_user_notifications( $user_id );
682
 
683
  do_action( 'wpuf_user_activated', $user_id );
757
  }
758
  }
759
 
760
+ /**
761
+ * Add Error message
762
+ *
763
+ * @since 2.8.8
764
+ *
765
+ * @param $message
766
+ */
767
+ public function add_error( $message ) {
768
+ $this->login_errors[] = $message;
769
+ }
770
+
771
+ /**
772
+ * Add info message
773
+ *
774
+ * @since 2.8.8
775
+ *
776
+ * @param $message
777
+ */
778
+ public function add_message( $message ) {
779
+ $this->messages[] = $message;
780
+ }
781
  /**
782
  * Show erros on the form
783
  *
includes/free/class-registration.php CHANGED
@@ -258,6 +258,13 @@ class WPUF_Registration {
258
  }
259
 
260
  $user = wp_insert_user( $userdata );
 
 
 
 
 
 
 
261
 
262
  if ( is_wp_error( $user ) ) {
263
  $this->registration_errors[] = $user->get_error_message();
@@ -266,8 +273,6 @@ class WPUF_Registration {
266
 
267
  if ( !empty( $_POST['redirect_to'] ) ) {
268
  $redirect = esc_url( $_POST['redirect_to'] );
269
- } elseif ( wp_get_referer() ) {
270
- $redirect = esc_url( wp_get_referer() );
271
  } else {
272
  $redirect = $this->get_registration_url() . '?success=yes';
273
  }
@@ -292,7 +297,7 @@ class WPUF_Registration {
292
  return;
293
  }
294
 
295
- $reg_page = get_permalink( wpuf_get_option( 'reg_override_page', 'wpuf_profile' ) );
296
  wp_redirect( $reg_page );
297
  exit;
298
  }
258
  }
259
 
260
  $user = wp_insert_user( $userdata );
261
+ $autologin_after_registration = wpuf_get_option( 'autologin_after_registration', 'wpuf_profile', 'on' );
262
+
263
+ if ( $autologin_after_registration == 'on' ) {
264
+ wp_clear_auth_cookie();
265
+ wp_set_current_user( $user );
266
+ wp_set_auth_cookie( $user );
267
+ }
268
 
269
  if ( is_wp_error( $user ) ) {
270
  $this->registration_errors[] = $user->get_error_message();
273
 
274
  if ( !empty( $_POST['redirect_to'] ) ) {
275
  $redirect = esc_url( $_POST['redirect_to'] );
 
 
276
  } else {
277
  $redirect = $this->get_registration_url() . '?success=yes';
278
  }
297
  return;
298
  }
299
 
300
+ $reg_page = get_permalink( wpuf_get_option( 'reg_override_page', 'wpuf_profile', false ) );
301
  wp_redirect( $reg_page );
302
  exit;
303
  }
includes/free/edit-profile.php CHANGED
@@ -245,27 +245,28 @@ class WPUF_Edit_Profile {
245
  if ( is_admin() && current_user_can( 'edit_users' ) ) {
246
  $select = ( $post_locked == true ) ? 'yes' : 'no';
247
  ?>
248
-
249
- <h3><?php _e( 'WPUF Post Lock', 'wpuf' ); ?></h3>
250
- <table class="form-table">
251
- <tr>
252
- <th><label for="post-lock"><?php _e( 'Lock Post:', 'wpuf' ); ?> </label></th>
253
- <td>
254
- <select name="wpuf_postlock" id="post-lock">
255
- <option value="no"<?php selected( $select, 'no' ); ?>>No</option>
256
- <option value="yes"<?php selected( $select, 'yes' ); ?>>Yes</option>
257
- </select>
258
- <span class="description"><?php _e( 'Lock user from creating new post.', 'wpuf' ); ?></span></em>
259
- </td>
260
- </tr>
261
-
262
- <tr>
263
- <th><label for="post-lock"><?php _e( 'Lock Reason:', 'wpuf' ); ?> </label></th>
264
- <td>
265
- <input type="text" name="wpuf_lock_cause" id="wpuf_lock_cause" class="regular-text" value="<?php echo esc_attr( $lock_reason ); ?>" />
266
- </td>
267
- </tr>
268
- </table>
 
269
  <?php
270
  }
271
  }
245
  if ( is_admin() && current_user_can( 'edit_users' ) ) {
246
  $select = ( $post_locked == true ) ? 'yes' : 'no';
247
  ?>
248
+ <div class="wpuf-user-post-lock">
249
+ <h3><?php _e( 'WPUF Post Lock', 'wpuf' ); ?></h3>
250
+ <table class="form-table">
251
+ <tr>
252
+ <th><label for="post-lock"><?php _e( 'Lock Post:', 'wpuf' ); ?> </label></th>
253
+ <td>
254
+ <select name="wpuf_postlock" id="post-lock">
255
+ <option value="no"<?php selected( $select, 'no' ); ?>>No</option>
256
+ <option value="yes"<?php selected( $select, 'yes' ); ?>>Yes</option>
257
+ </select>
258
+ <span class="description"><?php _e( 'Lock user from creating new post.', 'wpuf' ); ?></span></em>
259
+ </td>
260
+ </tr>
261
+
262
+ <tr>
263
+ <th><label for="post-lock"><?php _e( 'Lock Reason:', 'wpuf' ); ?> </label></th>
264
+ <td>
265
+ <input type="text" name="wpuf_lock_cause" id="wpuf_lock_cause" class="regular-text" value="<?php echo esc_attr( $lock_reason ); ?>" />
266
+ </td>
267
+ </tr>
268
+ </table>
269
+ </div>
270
  <?php
271
  }
272
  }
languages/wpuf.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.8.7\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2018-04-09 09:20:13+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -74,7 +74,7 @@ msgstr ""
74
  msgid "Settings"
75
  msgstr ""
76
 
77
- #: admin/class-admin-settings.php:120 admin/class-admin-subscription.php:197
78
  #: admin/subscribers.php:18
79
  msgid "Subscribers"
80
  msgstr ""
@@ -119,191 +119,201 @@ msgstr ""
119
  msgid "Subscription pack draft updated."
120
  msgstr ""
121
 
122
- #: admin/class-admin-subscription.php:195 class/subscription.php:297
123
  msgid "Pack Name"
124
  msgstr ""
125
 
126
- #: admin/class-admin-subscription.php:196
127
  msgid "Amount"
128
  msgstr ""
129
 
130
- #: admin/class-admin-subscription.php:198 includes/free/subscription.php:8
131
  msgid "Recurring"
132
  msgstr ""
133
 
134
- #: admin/class-admin-subscription.php:199
135
  msgid "Duration"
136
  msgstr ""
137
 
138
- #: admin/class-admin-subscription.php:218
139
- #: admin/class-admin-subscription.php:572 class/frontend-account.php:136
140
- #: class/subscription.php:860 class/subscription.php:873
141
- #: includes/class-user-subscription.php:304
142
  msgid "Free"
143
  msgstr ""
144
 
145
- #: admin/class-admin-subscription.php:236
146
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:66
147
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:140
148
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:526
149
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:584
150
- #: admin/form.php:795 admin/post-forms-list-table.php:345
151
- #: admin/settings-options.php:106 admin/settings-options.php:117
152
- #: admin/settings-options.php:209 admin/settings-options.php:220
153
- #: admin/template.php:70 includes/free/form-element.php:477
 
154
  msgid "Yes"
155
  msgstr ""
156
 
157
- #: admin/class-admin-subscription.php:238
158
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:67
159
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:141
160
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:527
161
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:585
162
- #: admin/form.php:796 admin/post-forms-list-table.php:346
163
- #: admin/settings-options.php:107 admin/settings-options.php:118
164
- #: admin/settings-options.php:210 admin/settings-options.php:221
165
- #: admin/template.php:71 includes/free/form-element.php:478
 
166
  msgid "No"
167
  msgstr ""
168
 
169
- #: admin/class-admin-subscription.php:327 admin/form.php:230
170
  msgid "Payment Settings"
171
  msgstr ""
172
 
173
- #: admin/class-admin-subscription.php:334
174
  msgid "Posting Restriction"
175
  msgstr ""
176
 
177
- #: admin/class-admin-subscription.php:348
178
  msgid "Billing amount:"
179
  msgstr ""
180
 
181
- #: admin/class-admin-subscription.php:349
182
  msgid "Billing amount each cycle:"
183
  msgstr ""
184
 
185
- #: admin/class-admin-subscription.php:357
186
  msgid "Expires In:"
187
  msgstr ""
188
 
189
- #: admin/class-admin-subscription.php:381 admin/form.php:232
190
  #: includes/free/form-element.php:56
191
  msgid "Post Expiration"
192
  msgstr ""
193
 
194
- #: admin/class-admin-subscription.php:386 includes/free/form-element.php:60
195
  msgid "Enable Post Expiration"
196
  msgstr ""
197
 
198
- #: admin/class-admin-subscription.php:398
199
- #: admin/class-admin-subscription.php:676 includes/free/form-element.php:66
200
  msgid "Post Expiration Time"
201
  msgstr ""
202
 
203
- #: admin/class-admin-subscription.php:423 admin/html/form-settings-post.php:57
204
  #: admin/post-forms-list-table.php:298
205
  msgid "Post Status"
206
  msgstr ""
207
 
208
- #: admin/class-admin-subscription.php:437 includes/free/form-element.php:112
209
  msgid "Status of post after post expiration time is over "
210
  msgstr ""
211
 
212
- #: admin/class-admin-subscription.php:442
213
  msgid "Expiration Mail"
214
  msgstr ""
215
 
216
- #: admin/class-admin-subscription.php:447
217
  msgid "Send Expiration Email to Post Author"
218
  msgstr ""
219
 
220
- #: admin/class-admin-subscription.php:451
221
  msgid "Send Mail to Author After Exceeding Post Expiration Time"
222
  msgstr ""
223
 
224
- #: admin/class-admin-subscription.php:456
225
  msgid "Expiration Message"
226
  msgstr ""
227
 
228
- #: admin/class-admin-subscription.php:519
229
  msgid "Day(s)"
230
  msgstr ""
231
 
232
- #: admin/class-admin-subscription.php:520
233
  msgid "Week(s)"
234
  msgstr ""
235
 
236
- #: admin/class-admin-subscription.php:521
237
  msgid "Month(s)"
238
  msgstr ""
239
 
240
- #: admin/class-admin-subscription.php:522
241
  msgid "Year(s)"
242
  msgstr ""
243
 
244
- #: admin/class-admin-subscription.php:563
245
  msgid "WPUF Subscription Information"
246
  msgstr ""
247
 
248
- #: admin/class-admin-subscription.php:589
 
 
 
 
 
 
 
 
249
  msgid "Subcription Name"
250
  msgstr ""
251
 
252
- #: admin/class-admin-subscription.php:599
253
  msgid "Billing Info"
254
  msgstr ""
255
 
256
- #: admin/class-admin-subscription.php:613
257
  msgid "This user is using recurring subscription pack"
258
  msgstr ""
259
 
260
- #: admin/class-admin-subscription.php:619
261
  msgid "Remaining Posting Count"
262
  msgstr ""
263
 
264
- #: admin/class-admin-subscription.php:640
265
  msgid "Subscription Expiration Info"
266
  msgstr ""
267
 
268
- #: admin/class-admin-subscription.php:651
269
- #: includes/class-user-subscription.php:358
270
- #: templates/dashboard/subscription.php:41
271
  msgid "Expire date:"
272
  msgstr ""
273
 
274
- #: admin/class-admin-subscription.php:665
275
  msgid "Post Expiration Enabled"
276
  msgstr ""
277
 
278
- #: admin/class-admin-subscription.php:702
279
  msgid "Allowed Taxonomy Terms"
280
  msgstr ""
281
 
282
- #: admin/class-admin-subscription.php:757
283
  msgid "Assign Package"
284
  msgstr ""
285
 
286
- #: admin/class-admin-subscription.php:758
287
  #: admin/form-builder/class-wpuf-admin-form-builder.php:329
288
- #: class/payment.php:192 class/subscription.php:778
289
  #: includes/class-list-table-subscribers.php:128
290
- #: lib/class-wedevs-insights.php:667 templates/dashboard/subscription.php:62
291
  msgid "Cancel"
292
  msgstr ""
293
 
294
- #: admin/class-admin-subscription.php:764
295
  msgid "Select Package:"
296
  msgstr ""
297
 
298
- #: admin/class-admin-subscription.php:767
299
  msgid "&mdash; Select &mdash;"
300
  msgstr ""
301
 
302
- #: admin/class-admin-subscription.php:778
303
  msgid "Delete Package"
304
  msgstr ""
305
 
306
- #: admin/class-admin-subscription.php:827
307
  msgid "Learn more about <a href=\"%s\" target=\"_blank\">Subscription</a>"
308
  msgstr ""
309
 
@@ -317,7 +327,7 @@ msgstr ""
317
 
318
  #: admin/class-tools.php:39 admin/class-tools.php:95
319
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:86
320
- #: includes/class-list-table-subscribers.php:126 wpuf-functions.php:2480
321
  msgid "All"
322
  msgstr ""
323
 
@@ -495,15 +505,16 @@ msgstr ""
495
  msgid "No subscription plan found."
496
  msgstr ""
497
 
498
- #: admin/form-builder/assets/js/components/form-featured_image/template.php:5
 
499
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:779
500
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:813
501
- #: class/render-form.php:1667
502
  msgid "Select Image"
503
  msgstr ""
504
 
505
  #: admin/form-builder/assets/js/components/form-post_content/template.php:4
506
- #: class/render-form.php:1047
507
  msgid "Insert Photo"
508
  msgstr ""
509
 
@@ -584,7 +595,7 @@ msgstr ""
584
  msgid "Get the Pro version"
585
  msgstr ""
586
 
587
- #: admin/form-builder/class-wpuf-admin-form-builder.php:338 admin/form.php:770
588
  msgid "Select"
589
  msgstr ""
590
 
@@ -667,7 +678,7 @@ msgid "Everyone"
667
  msgstr ""
668
 
669
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:110
670
- #: admin/html/form-settings-display.php:17
671
  msgid "Hidden"
672
  msgstr ""
673
 
@@ -792,7 +803,7 @@ msgstr ""
792
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:307
793
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:455
794
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:498
795
- #: admin/form.php:900
796
  msgid "- select -"
797
  msgstr ""
798
 
@@ -813,12 +824,12 @@ msgid "Add options for the form field"
813
  msgstr ""
814
 
815
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:428
816
- #: admin/form.php:783 admin/template.php:449 admin/template.php:481
817
  msgid "Select Text"
818
  msgstr ""
819
 
820
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:432
821
- #: admin/form.php:787 admin/template.php:438 admin/template.php:470
822
  msgid ""
823
  "First element of the select dropdown. Leave this empty if you don't want to "
824
  "show this field"
@@ -832,19 +843,19 @@ msgstr ""
832
 
833
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:483
834
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:490
835
- #: admin/form.php:771 admin/template-post.php:157
836
  msgid "Multi Select"
837
  msgstr ""
838
 
839
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:523
840
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:581
841
- #: admin/form.php:792
842
  msgid "Show in inline list"
843
  msgstr ""
844
 
845
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:533
846
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:591
847
- #: admin/form.php:802
848
  msgid "Show this option in an inline list"
849
  msgstr ""
850
 
@@ -857,7 +868,7 @@ msgid "Radio Field"
857
  msgstr ""
858
 
859
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:599
860
- #: admin/form.php:772 admin/template-post.php:158
861
  msgid "Checkbox"
862
  msgstr ""
863
 
@@ -912,20 +923,22 @@ msgid "Hidden Field"
912
  msgstr ""
913
 
914
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:777
 
915
  msgid "Button Label"
916
  msgstr ""
917
 
918
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:782
 
919
  msgid "Enter a label for the Select button"
920
  msgstr ""
921
 
922
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:786
923
- #: admin/form.php:686 admin/template-post.php:105 admin/template.php:646
924
  msgid "Max. file size"
925
  msgstr ""
926
 
927
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:790
928
- #: admin/form.php:690 admin/template-post.php:93 admin/template.php:634
929
  msgid "Enter maximum upload size limit in KB"
930
  msgstr ""
931
 
@@ -949,7 +962,7 @@ msgstr ""
949
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:926
950
  #: admin/template.php:544 admin/template.php:604 admin/template.php:683
951
  #: class/upload.php:164 templates/dashboard/posts.php:75
952
- #: templates/dashboard.php:84 wpuf-functions.php:749
953
  msgid "Title"
954
  msgstr ""
955
 
@@ -959,7 +972,7 @@ msgid "Title of the section"
959
  msgstr ""
960
 
961
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:849
962
- #: admin/template.php:609 class/upload.php:166 wpuf-functions.php:755
963
  msgid "Description"
964
  msgstr ""
965
 
@@ -1187,7 +1200,7 @@ msgid "Taxonomies"
1187
  msgstr ""
1188
 
1189
  #: admin/form.php:440 admin/html/form-settings-post.php:22
1190
- #: class/render-form.php:751
1191
  msgid "Save Draft"
1192
  msgstr ""
1193
 
@@ -1211,124 +1224,132 @@ msgstr ""
1211
  msgid "Excerpt"
1212
  msgstr ""
1213
 
1214
- #: admin/form.php:696 admin/form.php:703 templates/dashboard/posts.php:72
1215
  #: templates/dashboard.php:81
1216
  msgid "Featured Image"
1217
  msgstr ""
1218
 
1219
- #: admin/form.php:731 admin/form.php:737
1220
  msgid "Tags"
1221
  msgstr ""
1222
 
1223
- #: admin/form.php:767 admin/template-post.php:154
1224
  msgid "Type"
1225
  msgstr ""
1226
 
1227
- #: admin/form.php:773 admin/template-post.php:159
1228
  msgid "Text Input"
1229
  msgstr ""
1230
 
1231
- #: admin/form.php:774 admin/template-post.php:160
1232
  msgid "Ajax"
1233
  msgstr ""
1234
 
1235
- #: admin/form.php:807 admin/template-post.php:165
1236
  msgid "Order By"
1237
  msgstr ""
1238
 
1239
- #: admin/form.php:810 admin/html/form-submission-restriction.php:11
1240
  #: admin/template-post.php:167 includes/free/edit-profile.php:97
1241
  #: templates/registration-form.php:27
1242
  msgid "Name"
1243
  msgstr ""
1244
 
1245
- #: admin/form.php:811 admin/template-post.php:168
1246
  msgid "Term ID"
1247
  msgstr ""
1248
 
1249
- #: admin/form.php:812 admin/template-post.php:169
1250
  msgid "Slug"
1251
  msgstr ""
1252
 
1253
- #: admin/form.php:813 admin/template-post.php:170
1254
  msgid "Count"
1255
  msgstr ""
1256
 
1257
- #: admin/form.php:814 admin/template-post.php:171
1258
  msgid "Term Group"
1259
  msgstr ""
1260
 
1261
- #: admin/form.php:823 admin/template-post.php:176
1262
  msgid "Order"
1263
  msgstr ""
1264
 
1265
- #: admin/form.php:827 admin/template-post.php:178
1266
  msgid "ASC"
1267
  msgstr ""
1268
 
1269
- #: admin/form.php:828 admin/template-post.php:179
1270
  msgid "DESC"
1271
  msgstr ""
1272
 
1273
- #: admin/form.php:837 admin/template-post.php:184
1274
  msgid "Selection Type"
1275
  msgstr ""
1276
 
1277
- #: admin/form.php:840 admin/template-post.php:186
1278
  msgid "Exclude"
1279
  msgstr ""
1280
 
1281
- #: admin/form.php:841 admin/template-post.php:187
1282
  msgid "Include"
1283
  msgstr ""
1284
 
1285
- #: admin/form.php:842 admin/template-post.php:188
1286
  msgid "Child of"
1287
  msgstr ""
1288
 
1289
- #: admin/form.php:851
1290
  msgid "Selection Terms"
1291
  msgstr ""
1292
 
1293
- #: admin/form.php:855 admin/template-post.php:194
1294
  msgid ""
1295
  "Enter the term IDs as comma separated (without space) to exclude/include in "
1296
  "the form."
1297
  msgstr ""
1298
 
1299
- #: admin/form.php:864 admin/template-post.php:204
1300
  msgid "This taxonomy is a WooCommerce attribute"
1301
  msgstr ""
1302
 
1303
- #: admin/form.php:875 admin/template-post.php:216
1304
  msgid "Visible on product page"
1305
  msgstr ""
1306
 
1307
- #: admin/form.php:927
1308
  msgid "Post Forms must have either Post Title, Post Body or Excerpt field"
1309
  msgstr ""
1310
 
1311
- #: admin/html/form-settings-display.php:9
1312
  msgid "Label Position"
1313
  msgstr ""
1314
 
1315
- #: admin/html/form-settings-display.php:14
1316
  msgid "Above Element"
1317
  msgstr ""
1318
 
1319
- #: admin/html/form-settings-display.php:15
1320
  msgid "Left of Element"
1321
  msgstr ""
1322
 
1323
- #: admin/html/form-settings-display.php:16
1324
  msgid "Right of Element"
1325
  msgstr ""
1326
 
1327
- #: admin/html/form-settings-display.php:27
1328
  msgid "Where the labels of the form should display"
1329
  msgstr ""
1330
 
1331
- #: admin/html/form-settings-display.php:34
 
 
 
 
 
 
 
 
1332
  msgid "Form Style"
1333
  msgstr ""
1334
 
@@ -1849,328 +1870,368 @@ msgid "Contact Support"
1849
  msgstr ""
1850
 
1851
  #: admin/html/whats-new.php:8
1852
- msgid "WP User Frontend Guten Block is added"
1853
  msgstr ""
1854
 
1855
  #: admin/html/whats-new.php:10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1856
  msgid ""
1857
  "WPUF Form Block is now available to be used within gutenberg editor with "
1858
  "preview of the form. "
1859
  msgstr ""
1860
 
1861
- #: admin/html/whats-new.php:13
1862
  msgid "Advanced Custom Fields plugin compatibility"
1863
  msgstr ""
1864
 
1865
- #: admin/html/whats-new.php:15
1866
  msgid "Now all your ACF fields can be used within WPUF Post forms. "
1867
  msgstr ""
1868
 
1869
- #: admin/html/whats-new.php:18
1870
  msgid "Taxonomy Terms not showing for custom post types"
1871
  msgstr ""
1872
 
1873
- #: admin/html/whats-new.php:20
1874
  msgid ""
1875
  "Fixed an issue with taxonomy terms not appearing for Custom Post types "
1876
  "within Form Settings and Dashboard Post Listing"
1877
  msgstr ""
1878
 
1879
- #: admin/html/whats-new.php:23
1880
  msgid "Various other code optimizations"
1881
  msgstr ""
1882
 
1883
- #: admin/html/whats-new.php:25 admin/html/whats-new.php:82
1884
  msgid "Code structure organization and optimization for better performance"
1885
  msgstr ""
1886
 
1887
- #: admin/html/whats-new.php:34
1888
  msgid "WoooCommerce billing address Sync"
1889
  msgstr ""
1890
 
1891
- #: admin/html/whats-new.php:36
1892
  msgid ""
1893
  "If an existing customer has previously set his billing address, that will "
1894
  "be imported into WPUF Billing address "
1895
  msgstr ""
1896
 
1897
- #: admin/html/whats-new.php:39
1898
  msgid "Trial subscription message not showing properly"
1899
  msgstr ""
1900
 
1901
- #: admin/html/whats-new.php:41
1902
  msgid "Subscriptions with Trial now shows trial notices"
1903
  msgstr ""
1904
 
1905
- #: admin/html/whats-new.php:44
1906
  msgid "Reset email Key not working"
1907
  msgstr ""
1908
 
1909
- #: admin/html/whats-new.php:46
1910
  msgid "Reset Email key was not working in some cases"
1911
  msgstr ""
1912
 
1913
- #: admin/html/whats-new.php:49
1914
  msgid "Post count not showing on the frontend dashboard"
1915
  msgstr ""
1916
 
1917
- #: admin/html/whats-new.php:51
1918
  msgid ""
1919
  "Dashboard with multiple post type was not showing post counts properly, is "
1920
  "now fixed and shows count for each post type"
1921
  msgstr ""
1922
 
1923
- #: admin/html/whats-new.php:54
1924
  msgid "Login Redirect showing blank page is fixed"
1925
  msgstr ""
1926
 
1927
- #: admin/html/whats-new.php:56
1928
  msgid ""
1929
  "If \"Previous Page\" was set for redirection, login redirect was "
1930
  "redirecting to blank page for users who hit login page directly"
1931
  msgstr ""
1932
 
1933
- #: admin/html/whats-new.php:65
1934
  msgid "Enhanced Login Redirect to redirect users to previous page"
1935
  msgstr ""
1936
 
1937
- #: admin/html/whats-new.php:67
1938
  msgid ""
1939
  "You can choose Previous Page as Login Redirect page settings now to "
1940
  "redirect users to the page from which they went for Login. "
1941
  msgstr ""
1942
 
1943
- #: admin/html/whats-new.php:70
1944
  msgid "Email HTML links not Rendreing properly issue is fixed"
1945
  msgstr ""
1946
 
1947
- #: admin/html/whats-new.php:72
1948
  msgid ""
1949
  "For some clients emails were not rendering the HTML links properly, this is "
1950
  "now fixed"
1951
  msgstr ""
1952
 
1953
- #: admin/html/whats-new.php:75
1954
  msgid "Form Builder : Form Field's Help text styles not showing properly"
1955
  msgstr ""
1956
 
1957
- #: admin/html/whats-new.php:77
1958
  msgid "Help texts styling is now fixed and much easier to read and understand"
1959
  msgstr ""
1960
 
1961
- #: admin/html/whats-new.php:80
1962
  msgid "Various other code improvements"
1963
  msgstr ""
1964
 
1965
- #: admin/html/whats-new.php:91
1966
  msgid "Dashboard Post Listing now supports multiple post types"
1967
  msgstr ""
1968
 
1969
- #: admin/html/whats-new.php:93
1970
  msgid ""
1971
  "Now you can show multiple post type in user dashboard using shortcode like "
1972
  "this : <br><b>[wpuf_dashboard post_type=\"post,page,custom_type\"]</b> "
1973
  msgstr ""
1974
 
1975
- #: admin/html/whats-new.php:96
1976
  msgid "Added Login Redirect Settings"
1977
  msgstr ""
1978
 
1979
- #: admin/html/whats-new.php:98
1980
  msgid ""
1981
  "You can now set a page from <i>WPUF Settings > Login/Registration > "
1982
  "Redirect after Login</i>. When login redirection is active the user will be "
1983
  "redirected to this page after login."
1984
  msgstr ""
1985
 
1986
- #: admin/html/whats-new.php:101
1987
  msgid "Image Upload field button text can be changed"
1988
  msgstr ""
1989
 
1990
- #: admin/html/whats-new.php:103
1991
  msgid ""
1992
  "The upload button text can now be changed for image upload fields which "
1993
  "defaults to \"Select Image\" if not set. "
1994
  msgstr ""
1995
 
1996
- #: admin/html/whats-new.php:106
1997
  msgid "Multi Step Form styles made compatible with more themes"
1998
  msgstr ""
1999
 
2000
- #: admin/html/whats-new.php:108
2001
  msgid "Multi Step form can now be styled more easily with other themes "
2002
  msgstr ""
2003
 
2004
- #: admin/html/whats-new.php:111
2005
  msgid "Required field condition for google map not working is fixed"
2006
  msgstr ""
2007
 
2008
- #: admin/html/whats-new.php:113
2009
  msgid ""
2010
  "If Google Map field was set as required users were able to submit form "
2011
  "without changing the default value."
2012
  msgstr ""
2013
 
2014
- #: admin/html/whats-new.php:122
2015
  msgid "Admin form builder is now fully responsive."
2016
  msgstr ""
2017
 
2018
- #: admin/html/whats-new.php:124
2019
  msgid ""
2020
  "Now you can edit forms from your mobile devices directly. Our improved "
2021
  "responsive layouts of form builder makes it easy for you to build forms on "
2022
  "the go."
2023
  msgstr ""
2024
 
2025
- #: admin/html/whats-new.php:127
2026
  msgid "Added color schemes for creating attractive form layouts."
2027
  msgstr ""
2028
 
2029
- #: admin/html/whats-new.php:129
2030
  msgid ""
2031
  "We have added 3 new color schemes for the form layouts which you can choose "
2032
  "from each form's new display settings."
2033
  msgstr ""
2034
 
2035
- #: admin/html/whats-new.php:132
2036
  msgid "Restrict Free subscription pack to be enabled multiple times "
2037
  msgstr ""
2038
 
2039
- #: admin/html/whats-new.php:134
2040
  msgid ""
2041
  "Free subscription packs now can only be purchased once and the limit "
2042
  "applies properly"
2043
  msgstr ""
2044
 
2045
- #: admin/html/whats-new.php:137
2046
  msgid "Various other bug fixes and improvements were made "
2047
  msgstr ""
2048
 
2049
- #: admin/html/whats-new.php:139
2050
  msgid "Please see the change log to see full details."
2051
  msgstr ""
2052
 
2053
- #: admin/html/whats-new.php:148
2054
  msgid "Added upgrade function for default category"
2055
  msgstr ""
2056
 
2057
- #: admin/html/whats-new.php:150
2058
  msgid "Upgrader added to upgrade previously set default post category."
2059
  msgstr ""
2060
 
2061
- #: admin/html/whats-new.php:153
2062
  msgid "Subscription pack cannot be canceled"
2063
  msgstr ""
2064
 
2065
- #: admin/html/whats-new.php:155
2066
  msgid ""
2067
  "Fixed recurring subscription pack cannot be canceled from my account page "
2068
  "in subscription details section."
2069
  msgstr ""
2070
 
2071
- #: admin/html/whats-new.php:158
2072
  msgid "page installer admin notice logic issue"
2073
  msgstr ""
2074
 
2075
- #: admin/html/whats-new.php:160
2076
  msgid ""
2077
  "Fixed page installer admin notice logic problem due to new payment settings "
2078
  "default value not set."
2079
  msgstr ""
2080
 
2081
- #: admin/html/whats-new.php:170
2082
  msgid "Setup Wizard"
2083
  msgstr ""
2084
 
2085
- #: admin/html/whats-new.php:172
2086
  msgid "Setup Wizard added to turn off payment options and install pages."
2087
  msgstr ""
2088
 
2089
- #: admin/html/whats-new.php:176
2090
  msgid "Multi-select Category"
2091
  msgstr ""
2092
 
2093
- #: admin/html/whats-new.php:178
2094
  msgid "Add multi-select to default category in post form settings."
2095
  msgstr ""
2096
 
2097
- #: admin/html/whats-new.php:182
2098
  msgid "Select Text option for Taxonomy"
2099
  msgstr ""
2100
 
2101
- #: admin/html/whats-new.php:184
2102
  msgid ""
2103
  "Add Select Text option for taxonomy fields. Now you can add default text "
2104
  "with empty value as first option for Taxonomy dropdown."
2105
  msgstr ""
2106
 
2107
- #: admin/html/whats-new.php:187
2108
  msgid "Taxonomy Checkbox Inline"
2109
  msgstr ""
2110
 
2111
- #: admin/html/whats-new.php:189
2112
  msgid ""
2113
  "Added checkbox inline option to taxonomy checkbox. You can now display "
2114
  "Taxonomy checkbox fields inline."
2115
  msgstr ""
2116
 
2117
- #: admin/html/whats-new.php:199
2118
  msgid "Manage schedule for form submission"
2119
  msgstr ""
2120
 
2121
- #: admin/html/whats-new.php:201
2122
  msgid ""
2123
  "Do not accept form submission if the current date is not between the date "
2124
  "range of the schedule."
2125
  msgstr ""
2126
 
2127
- #: admin/html/whats-new.php:205
2128
  msgid "Restrict form submission based on the user roles"
2129
  msgstr ""
2130
 
2131
- #: admin/html/whats-new.php:207
2132
  msgid ""
2133
  "Restrict form submission based on the user roles. Now you can manage user "
2134
  "role base permission on form submission."
2135
  msgstr ""
2136
 
2137
- #: admin/html/whats-new.php:211
2138
  msgid "Limit how many entries a form will accept"
2139
  msgstr ""
2140
 
2141
- #: admin/html/whats-new.php:213
2142
  msgid ""
2143
  "Limit how many entries a form will accept and display a custom message when "
2144
  "that limit is reached."
2145
  msgstr ""
2146
 
2147
- #: admin/html/whats-new.php:217
2148
  msgid "Show/hide Admin Bar"
2149
  msgstr ""
2150
 
2151
- #: admin/html/whats-new.php:219
2152
  msgid "Control the admin bar visibility based on user roles."
2153
  msgstr ""
2154
 
2155
- #: admin/html/whats-new.php:223
2156
  msgid "Ajax Login widget"
2157
  msgstr ""
2158
 
2159
- #: admin/html/whats-new.php:225
2160
  msgid ""
2161
  "Login user is more simple now with Ajax Login Widget. The simple ajax login "
2162
  "form do not required page loading for login."
2163
  msgstr ""
2164
 
2165
- #: admin/html/whats-new.php:229
2166
  msgid "Form submission with Captcha field"
2167
  msgstr ""
2168
 
2169
- #: admin/html/whats-new.php:231
2170
  msgid "Form field validation process updated if form submits with captcha field."
2171
  msgstr ""
2172
 
2173
- #: admin/html/whats-new.php:245
2174
  msgid "What's New in WPUF?"
2175
  msgstr ""
2176
 
@@ -2199,7 +2260,7 @@ msgid ""
2199
  msgstr ""
2200
 
2201
  #: admin/installer.php:73 admin/settings-options.php:23
2202
- #: includes/free/admin/shortcode-button.php:82 wpuf-functions.php:1492
2203
  msgid "Dashboard"
2204
  msgstr ""
2205
 
@@ -2214,7 +2275,7 @@ msgstr ""
2214
 
2215
  #: admin/installer.php:84 class/subscription.php:356 class/subscription.php:376
2216
  #: class/subscription.php:377 class/subscription.php:378
2217
- #: includes/free/admin/shortcode-button.php:102 wpuf-functions.php:1495
2218
  msgid "Subscription"
2219
  msgstr ""
2220
 
@@ -2309,24 +2370,24 @@ msgstr ""
2309
  msgid "Draft"
2310
  msgstr ""
2311
 
2312
- #: admin/posting.php:66 class/asset-loader.php:51 class/render-form.php:1685
2313
- #: wpuf.php:502
2314
  msgid "Are you sure?"
2315
  msgstr ""
2316
 
2317
- #: admin/posting.php:72 class/asset-loader.php:57 wpuf.php:510
2318
  msgid "Allowed Files"
2319
  msgstr ""
2320
 
2321
- #: admin/posting.php:75 class/asset-loader.php:60 wpuf.php:516
2322
  msgid "Maximum number of files reached!"
2323
  msgstr ""
2324
 
2325
- #: admin/posting.php:76 class/asset-loader.php:61 wpuf.php:517
2326
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
2327
  msgstr ""
2328
 
2329
- #: admin/posting.php:77 class/asset-loader.php:62 wpuf.php:518
2330
  msgid "You have uploaded an incorrect file type. Please try again."
2331
  msgstr ""
2332
 
@@ -3179,63 +3240,59 @@ msgstr ""
3179
  msgid "is not valid"
3180
  msgstr ""
3181
 
3182
- #: class/asset-loader.php:45 wpuf.php:496
3183
  msgid "Please fix the errors to proceed"
3184
  msgstr ""
3185
 
3186
- #: class/asset-loader.php:47 wpuf.php:498
3187
  msgid "Word limit reached"
3188
  msgstr ""
3189
 
3190
- #: class/frontend-account.php:115 class/frontend-account.php:125
3191
- msgid "<p>You've not subscribed any package yet.</p>"
3192
- msgstr ""
3193
-
3194
- #: class/frontend-account.php:127
3195
- msgid "<p>You've subscribed to the following package.</p>"
3196
  msgstr ""
3197
 
3198
- #: class/frontend-account.php:200 class/subscription.php:73
3199
  msgid "Nonce failure"
3200
  msgstr ""
3201
 
3202
- #: class/frontend-account.php:214
3203
  msgid "First Name is a required field."
3204
  msgstr ""
3205
 
3206
- #: class/frontend-account.php:218
3207
  msgid "Last Name is a required field."
3208
  msgstr ""
3209
 
3210
- #: class/frontend-account.php:222
3211
  msgid "Email is a required field."
3212
  msgstr ""
3213
 
3214
- #: class/frontend-account.php:233
3215
  msgid "Please provide a valid email address."
3216
  msgstr ""
3217
 
3218
- #: class/frontend-account.php:235
3219
  msgid "This email address is already registered."
3220
  msgstr ""
3221
 
3222
- #: class/frontend-account.php:241
3223
  msgid "Please fill out all password fields."
3224
  msgstr ""
3225
 
3226
- #: class/frontend-account.php:244
3227
  msgid "Please enter your current password."
3228
  msgstr ""
3229
 
3230
- #: class/frontend-account.php:247
3231
  msgid "Please re-enter your password."
3232
  msgstr ""
3233
 
3234
- #: class/frontend-account.php:250
3235
  msgid "New passwords do not match."
3236
  msgstr ""
3237
 
3238
- #: class/frontend-account.php:253 class/frontend-account.php:264
3239
  msgid "Your current password is incorrect."
3240
  msgstr ""
3241
 
@@ -3305,11 +3362,11 @@ msgstr ""
3305
  msgid "You do not have sufficient permissions to access this form."
3306
  msgstr ""
3307
 
3308
- #: class/frontend-form-post.php:750
3309
  msgid "Something went wrong"
3310
  msgstr ""
3311
 
3312
- #: class/frontend-form-post.php:1107
3313
  msgid "Email successfully verified. Please Login."
3314
  msgstr ""
3315
 
@@ -3333,7 +3390,7 @@ msgstr ""
3333
  msgid "You already have activated a free package previously."
3334
  msgstr ""
3335
 
3336
- #: class/payment.php:133 wpuf-functions.php:1496
3337
  msgid "Billing Address"
3338
  msgstr ""
3339
 
@@ -3353,7 +3410,7 @@ msgstr ""
3353
  msgid "Pack Price "
3354
  msgstr ""
3355
 
3356
- #: class/payment.php:179 class/payment.php:226
3357
  msgid "Total"
3358
  msgstr ""
3359
 
@@ -3365,27 +3422,27 @@ msgstr ""
3365
  msgid "Have a discount code?"
3366
  msgstr ""
3367
 
3368
- #: class/payment.php:222
3369
  msgid "Post cost"
3370
  msgstr ""
3371
 
3372
- #: class/payment.php:233
3373
  msgid "Choose Your Payment Method"
3374
  msgstr ""
3375
 
3376
- #: class/payment.php:269
3377
  msgid "Proceed"
3378
  msgstr ""
3379
 
3380
- #: class/payment.php:275
3381
  msgid "No Payment gateway found"
3382
  msgstr ""
3383
 
3384
- #: class/payment.php:438 lib/gateway/bank.php:109
3385
  msgid "[%s] Payment Received"
3386
  msgstr ""
3387
 
3388
- #: class/payment.php:439
3389
  msgid "New payment received at %s"
3390
  msgstr ""
3391
 
@@ -3422,23 +3479,22 @@ msgstr ""
3422
  msgid "Please make sure you've published your form."
3423
  msgstr ""
3424
 
3425
- #: class/render-form.php:1353 includes/free/edit-profile.php:203
3426
  #: templates/dashboard/edit-profile.php:54
3427
  msgid "Strength indicator"
3428
  msgstr ""
3429
 
3430
- #: class/render-form.php:1418
3431
  msgid "-- Select --"
3432
  msgstr ""
3433
 
3434
- #: class/render-form.php:1483
3435
  msgid "This field is no longer available."
3436
  msgstr ""
3437
 
3438
- #: class/render-form.php:1685 class/transactions-list-table.php:115
3439
- #: class/transactions-list-table.php:181 class/upload.php:171
3440
- #: includes/free/edit-user.php:101 templates/dashboard/posts.php:162
3441
- #: templates/dashboard.php:255
3442
  msgid "Delete"
3443
  msgstr ""
3444
 
@@ -3478,57 +3534,57 @@ msgstr ""
3478
  msgid "Parent Subscription"
3479
  msgstr ""
3480
 
3481
- #: class/subscription.php:747
3482
  msgid "Payment is complete"
3483
  msgstr ""
3484
 
3485
- #: class/subscription.php:747
3486
  msgid "Congratulations, your payment has been completed!"
3487
  msgstr ""
3488
 
3489
- #: class/subscription.php:751 class/subscription.php:755
3490
  msgid "Please buy a subscription pack to post"
3491
  msgstr ""
3492
 
3493
- #: class/subscription.php:769
3494
  msgid "<p><i>You have a subscription pack activated. </i></p>"
3495
  msgstr ""
3496
 
3497
- #: class/subscription.php:770
3498
  msgid "<p><i>Pack name: %s </i></p>"
3499
  msgstr ""
3500
 
3501
- #: class/subscription.php:772
3502
  msgid "<p><i>To cancel the pack, press the following cancel button</i></p>"
3503
  msgstr ""
3504
 
3505
- #: class/subscription.php:840
3506
- msgid "Every"
3507
- msgstr ""
3508
-
3509
- #: class/subscription.php:844
3510
  msgid "One time payment"
3511
  msgstr ""
3512
 
3513
- #: class/subscription.php:857
3514
- msgid "Sign Up"
3515
  msgstr ""
3516
 
3517
- #: class/subscription.php:862
3518
  msgid "Buy Now"
3519
  msgstr ""
3520
 
3521
- #: class/subscription.php:937
 
 
 
 
3522
  msgid "There is a <strong>%s</strong> charge to add a new post."
3523
  msgstr ""
3524
 
3525
- #: class/subscription.php:954
3526
  msgid ""
3527
  "Your Subscription pack exhausted. There is a <strong>%s</strong> charge to "
3528
  "add a new post."
3529
  msgstr ""
3530
 
3531
- #: class/subscription.php:999 includes/class-user-subscription.php:58
3532
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
3533
  msgstr ""
3534
 
@@ -3603,7 +3659,7 @@ msgstr ""
3603
  msgid "No transactions found."
3604
  msgstr ""
3605
 
3606
- #: class/upload.php:165 wpuf-functions.php:752
3607
  msgid "Caption"
3608
  msgstr ""
3609
 
@@ -3679,7 +3735,7 @@ msgstr ""
3679
  msgid "Billing address is updated."
3680
  msgstr ""
3681
 
3682
- #: includes/class-dokan-integration.php:37 wpuf-functions.php:1493
3683
  msgid "Posts"
3684
  msgstr ""
3685
 
@@ -3783,19 +3839,19 @@ msgstr ""
3783
  msgid "Someone has requested a password reset for the following account:"
3784
  msgstr ""
3785
 
3786
- #: includes/class-login-widget.php:137 includes/free/class-login.php:725
3787
  msgid "Username: %s"
3788
  msgstr ""
3789
 
3790
- #: includes/class-login-widget.php:138 includes/free/class-login.php:726
3791
  msgid "If this was a mistake, just ignore this email and nothing will happen."
3792
  msgstr ""
3793
 
3794
- #: includes/class-login-widget.php:139 includes/free/class-login.php:727
3795
  msgid "To reset your password, visit the following address:"
3796
  msgstr ""
3797
 
3798
- #: includes/class-login-widget.php:144 includes/free/class-login.php:736
3799
  msgid "[%s] Password Reset"
3800
  msgstr ""
3801
 
@@ -3806,7 +3862,7 @@ msgid ""
3806
  msgstr ""
3807
 
3808
  #: includes/class-login-widget.php:206 includes/class-login-widget.php:238
3809
- #: includes/free/class-login.php:214 includes/free/class-registration.php:124
3810
  #: includes/free/form-element.php:345 templates/registration-form.php:72
3811
  msgid "Register"
3812
  msgstr ""
@@ -3852,8 +3908,8 @@ msgstr ""
3852
  msgid "Remember Me"
3853
  msgstr ""
3854
 
3855
- #: includes/class-login-widget.php:268 includes/free/class-login.php:210
3856
- #: includes/free/class-login.php:266 templates/login-form.php:36
3857
  msgid "Log In"
3858
  msgstr ""
3859
 
@@ -3894,35 +3950,35 @@ msgid "Password Reset Label:"
3894
  msgstr ""
3895
 
3896
  #: includes/class-user-subscription.php:63
3897
- msgid "The subscription pack has been expired. Please buy a pack."
3898
  msgstr ""
3899
 
3900
- #: includes/class-user-subscription.php:315
3901
- #: templates/dashboard/subscription.php:2
3902
  msgid "Subscription Details"
3903
  msgstr ""
3904
 
3905
- #: includes/class-user-subscription.php:317
3906
- #: templates/dashboard/subscription.php:4
3907
  msgid "Subcription Name: "
3908
  msgstr ""
3909
 
3910
- #: includes/class-user-subscription.php:319
3911
- #: templates/dashboard/subscription.php:6
3912
  msgid "Package & billing details: "
3913
  msgstr ""
3914
 
3915
- #: includes/class-user-subscription.php:330
3916
- #: templates/dashboard/subscription.php:10
3917
  msgid "Remaining post: "
3918
  msgstr ""
3919
 
3920
- #: includes/class-user-subscription.php:343
3921
- #: templates/dashboard/subscription.php:24
3922
  msgid "Unlimited"
3923
  msgstr ""
3924
 
3925
- #: includes/class-user-subscription.php:377
3926
  msgid "Change"
3927
  msgstr ""
3928
 
@@ -4010,34 +4066,34 @@ msgstr ""
4010
  msgid " Add Form"
4011
  msgstr ""
4012
 
4013
- #: includes/free/class-login.php:218
4014
  msgid "Lost Password"
4015
  msgstr ""
4016
 
4017
- #: includes/free/class-login.php:256
4018
  msgid ""
4019
  "Please enter your username or email address. You will receive a link to "
4020
  "create a new password via email."
4021
  msgstr ""
4022
 
4023
- #: includes/free/class-login.php:266
4024
  msgid "Your password has been reset. %s"
4025
  msgstr ""
4026
 
4027
- #: includes/free/class-login.php:270
4028
  msgid "Enter your new password below.."
4029
  msgstr ""
4030
 
4031
- #: includes/free/class-login.php:280
4032
  msgid "Check your e-mail for the confirmation link."
4033
  msgstr ""
4034
 
4035
- #: includes/free/class-login.php:284
4036
  msgid "You are now logged out."
4037
  msgstr ""
4038
 
4039
- #: includes/free/class-login.php:313 includes/free/class-login.php:318
4040
- #: includes/free/class-login.php:323 includes/free/class-login.php:333
4041
  #: includes/free/class-registration.php:192
4042
  #: includes/free/class-registration.php:197
4043
  #: includes/free/class-registration.php:202
@@ -4051,69 +4107,70 @@ msgstr ""
4051
  msgid "Error"
4052
  msgstr ""
4053
 
4054
- #: includes/free/class-login.php:318 includes/free/class-registration.php:212
4055
  msgid "Username is required."
4056
  msgstr ""
4057
 
4058
- #: includes/free/class-login.php:323 includes/free/class-registration.php:217
4059
  msgid "Password is required."
4060
  msgstr ""
4061
 
4062
- #: includes/free/class-login.php:333 includes/free/class-registration.php:242
4063
  msgid "A user could not be found with this email address."
4064
  msgstr ""
4065
 
4066
- #: includes/free/class-login.php:454
4067
  msgid "Please enter your password."
4068
  msgstr ""
4069
 
4070
- #: includes/free/class-login.php:459
4071
  msgid "Passwords do not match."
4072
  msgstr ""
4073
 
4074
- #: includes/free/class-login.php:502
4075
  msgid "Enter a username or e-mail address."
4076
  msgstr ""
4077
 
4078
- #: includes/free/class-login.php:510
4079
  msgid "There is no user registered with that email address."
4080
  msgstr ""
4081
 
4082
- #: includes/free/class-login.php:528
4083
  msgid "Invalid username or e-mail."
4084
  msgstr ""
4085
 
4086
- #: includes/free/class-login.php:542
4087
  msgid "Password reset is not allowed for this user"
4088
  msgstr ""
4089
 
4090
- #: includes/free/class-login.php:596 includes/free/class-login.php:608
4091
  msgid "Invalid key"
4092
  msgstr ""
4093
 
4094
- #: includes/free/class-login.php:601
4095
  msgid "Invalid Login"
4096
  msgstr ""
4097
 
4098
- #: includes/free/class-login.php:631
4099
  msgid ""
4100
  "<strong>Your account is not active.</strong><br>Please check your email for "
4101
- "activation link."
 
4102
  msgstr ""
4103
 
4104
- #: includes/free/class-login.php:679
4105
  msgid "Your account has been activated"
4106
  msgstr ""
4107
 
4108
- #: includes/free/class-login.php:723
4109
  msgid "Someone requested that the password be reset for the following account:"
4110
  msgstr ""
4111
 
4112
- #: includes/free/class-login.php:742
4113
  msgid "The e-mail could not be sent."
4114
  msgstr ""
4115
 
4116
- #: includes/free/class-login.php:742
4117
  msgid "Possible reason: your host may have disabled the mail() function."
4118
  msgstr ""
4119
 
@@ -4720,7 +4777,11 @@ msgstr ""
4720
  msgid "No %s found"
4721
  msgstr ""
4722
 
4723
- #: templates/dashboard/subscription.php:57
 
 
 
 
4724
  msgid "<p><i>To cancel the pack, press the following cancel button.</i></p>"
4725
  msgstr ""
4726
 
@@ -4745,10 +4806,10 @@ msgid "+ Add Post"
4745
  msgstr ""
4746
 
4747
  #: templates/logged-in.php:8
4748
- msgid "Hello %s"
4749
  msgstr ""
4750
 
4751
- #: templates/logged-in.php:11
4752
  msgid "You are currently logged in! %s?"
4753
  msgstr ""
4754
 
@@ -4800,247 +4861,247 @@ msgstr ""
4800
  msgid "-- select --"
4801
  msgstr ""
4802
 
4803
- #: wpuf-functions.php:420
4804
  msgid "Images"
4805
  msgstr ""
4806
 
4807
- #: wpuf-functions.php:421
4808
  msgid "Audio"
4809
  msgstr ""
4810
 
4811
- #: wpuf-functions.php:422
4812
  msgid "Videos"
4813
  msgstr ""
4814
 
4815
- #: wpuf-functions.php:423
4816
  msgid "PDF"
4817
  msgstr ""
4818
 
4819
- #: wpuf-functions.php:424
4820
  msgid "Office Documents"
4821
  msgstr ""
4822
 
4823
- #: wpuf-functions.php:425
4824
  msgid "Zip Archives"
4825
  msgstr ""
4826
 
4827
- #: wpuf-functions.php:426
4828
  msgid "Executable Files"
4829
  msgstr ""
4830
 
4831
- #: wpuf-functions.php:427
4832
  msgid "CSV"
4833
  msgstr ""
4834
 
4835
- #: wpuf-functions.php:1494
4836
  msgid "Edit Profile"
4837
  msgstr ""
4838
 
4839
- #: wpuf-functions.php:1601
4840
  msgid "United Arab Emirates Dirham"
4841
  msgstr ""
4842
 
4843
- #: wpuf-functions.php:1602
4844
  msgid "Australian Dollars"
4845
  msgstr ""
4846
 
4847
- #: wpuf-functions.php:1603
4848
  msgid "Argentine Peso"
4849
  msgstr ""
4850
 
4851
- #: wpuf-functions.php:1604
4852
  msgid "Bangladeshi Taka"
4853
  msgstr ""
4854
 
4855
- #: wpuf-functions.php:1605
4856
  msgid "Brazilian Real"
4857
  msgstr ""
4858
 
4859
- #: wpuf-functions.php:1606
4860
  msgid "Bulgarian Lev"
4861
  msgstr ""
4862
 
4863
- #: wpuf-functions.php:1607
4864
  msgid "Canadian Dollars"
4865
  msgstr ""
4866
 
4867
- #: wpuf-functions.php:1608
4868
  msgid "Chilean Peso"
4869
  msgstr ""
4870
 
4871
- #: wpuf-functions.php:1609
4872
  msgid "Chinese Yuan"
4873
  msgstr ""
4874
 
4875
- #: wpuf-functions.php:1610
4876
  msgid "Colombian Peso"
4877
  msgstr ""
4878
 
4879
- #: wpuf-functions.php:1611
4880
  msgid "Czech Koruna"
4881
  msgstr ""
4882
 
4883
- #: wpuf-functions.php:1612
4884
  msgid "Danish Krone"
4885
  msgstr ""
4886
 
4887
- #: wpuf-functions.php:1613
4888
  msgid "Dominican Peso"
4889
  msgstr ""
4890
 
4891
- #: wpuf-functions.php:1614
4892
  msgid "Algerian Dinar"
4893
  msgstr ""
4894
 
4895
- #: wpuf-functions.php:1615
4896
  msgid "Euros"
4897
  msgstr ""
4898
 
4899
- #: wpuf-functions.php:1616
4900
  msgid "Hong Kong Dollar"
4901
  msgstr ""
4902
 
4903
- #: wpuf-functions.php:1617
4904
  msgid "Croatia kuna"
4905
  msgstr ""
4906
 
4907
- #: wpuf-functions.php:1618
4908
  msgid "Hungarian Forint"
4909
  msgstr ""
4910
 
4911
- #: wpuf-functions.php:1619
4912
  msgid "Icelandic krona"
4913
  msgstr ""
4914
 
4915
- #: wpuf-functions.php:1620
4916
  msgid "Indonesia Rupiah"
4917
  msgstr ""
4918
 
4919
- #: wpuf-functions.php:1621
4920
  msgid "Indian Rupee"
4921
  msgstr ""
4922
 
4923
- #: wpuf-functions.php:1622
4924
  msgid "Nepali Rupee"
4925
  msgstr ""
4926
 
4927
- #: wpuf-functions.php:1623
4928
  msgid "Israeli Shekel"
4929
  msgstr ""
4930
 
4931
- #: wpuf-functions.php:1624
4932
  msgid "Japanese Yen"
4933
  msgstr ""
4934
 
4935
- #: wpuf-functions.php:1625
4936
  msgid "Lao Kip"
4937
  msgstr ""
4938
 
4939
- #: wpuf-functions.php:1626
4940
  msgid "South Korean Won"
4941
  msgstr ""
4942
 
4943
- #: wpuf-functions.php:1627
4944
  msgid "Malaysian Ringgits"
4945
  msgstr ""
4946
 
4947
- #: wpuf-functions.php:1628
4948
  msgid "Mexican Peso"
4949
  msgstr ""
4950
 
4951
- #: wpuf-functions.php:1629
4952
  msgid "Nigerian Naira"
4953
  msgstr ""
4954
 
4955
- #: wpuf-functions.php:1630
4956
  msgid "Norwegian Krone"
4957
  msgstr ""
4958
 
4959
- #: wpuf-functions.php:1631
4960
  msgid "New Zealand Dollar"
4961
  msgstr ""
4962
 
4963
- #: wpuf-functions.php:1632
4964
  msgid "Omani Rial"
4965
  msgstr ""
4966
 
4967
- #: wpuf-functions.php:1633
4968
  msgid "Iranian Rial"
4969
  msgstr ""
4970
 
4971
- #: wpuf-functions.php:1634
4972
  msgid "Pakistani Rupee"
4973
  msgstr ""
4974
 
4975
- #: wpuf-functions.php:1635
4976
  msgid "Paraguayan Guaraní"
4977
  msgstr ""
4978
 
4979
- #: wpuf-functions.php:1636
4980
  msgid "Philippine Pesos"
4981
  msgstr ""
4982
 
4983
- #: wpuf-functions.php:1637
4984
  msgid "Polish Zloty"
4985
  msgstr ""
4986
 
4987
- #: wpuf-functions.php:1638
4988
  msgid "Pounds Sterling"
4989
  msgstr ""
4990
 
4991
- #: wpuf-functions.php:1639
4992
  msgid "Romanian Leu"
4993
  msgstr ""
4994
 
4995
- #: wpuf-functions.php:1640
4996
  msgid "Russian Ruble"
4997
  msgstr ""
4998
 
4999
- #: wpuf-functions.php:1641
5000
  msgid "Saudi Riyal"
5001
  msgstr ""
5002
 
5003
- #: wpuf-functions.php:1642
5004
  msgid "Singapore Dollar"
5005
  msgstr ""
5006
 
5007
- #: wpuf-functions.php:1643
5008
  msgid "South African rand"
5009
  msgstr ""
5010
 
5011
- #: wpuf-functions.php:1644
5012
  msgid "Swedish Krona"
5013
  msgstr ""
5014
 
5015
- #: wpuf-functions.php:1645
5016
  msgid "Swiss Franc"
5017
  msgstr ""
5018
 
5019
- #: wpuf-functions.php:1646
5020
  msgid "Taiwan New Dollars"
5021
  msgstr ""
5022
 
5023
- #: wpuf-functions.php:1647
5024
  msgid "Thai Baht"
5025
  msgstr ""
5026
 
5027
- #: wpuf-functions.php:1648
5028
  msgid "Turkish Lira"
5029
  msgstr ""
5030
 
5031
- #: wpuf-functions.php:1649
5032
  msgid "US Dollar"
5033
  msgstr ""
5034
 
5035
- #: wpuf-functions.php:1650
5036
  msgid "Vietnamese Dong"
5037
  msgstr ""
5038
 
5039
- #: wpuf-functions.php:1651
5040
  msgid "Egyptian Pound"
5041
  msgstr ""
5042
 
5043
- #: wpuf-functions.php:2481
5044
  msgid "None"
5045
  msgstr ""
5046
 
@@ -5060,7 +5121,7 @@ msgstr ""
5060
  msgid "Your Post Has Been Expired"
5061
  msgstr ""
5062
 
5063
- #: wpuf.php:655
5064
  msgid "Error: Nonce verification failed"
5065
  msgstr ""
5066
 
@@ -5142,7 +5203,7 @@ msgctxt "enhanced select"
5142
  msgid "Searching&hellip;"
5143
  msgstr ""
5144
 
5145
- #: wpuf-functions.php:1105
5146
  msgctxt "tag delimiter"
5147
  msgid ","
5148
  msgstr ""
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP User Frontend 2.8.8\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2018-05-16 05:32:49+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
74
  msgid "Settings"
75
  msgstr ""
76
 
77
+ #: admin/class-admin-settings.php:120 admin/class-admin-subscription.php:195
78
  #: admin/subscribers.php:18
79
  msgid "Subscribers"
80
  msgstr ""
119
  msgid "Subscription pack draft updated."
120
  msgstr ""
121
 
122
+ #: admin/class-admin-subscription.php:193 class/subscription.php:297
123
  msgid "Pack Name"
124
  msgstr ""
125
 
126
+ #: admin/class-admin-subscription.php:194
127
  msgid "Amount"
128
  msgstr ""
129
 
130
+ #: admin/class-admin-subscription.php:196 includes/free/subscription.php:8
131
  msgid "Recurring"
132
  msgstr ""
133
 
134
+ #: admin/class-admin-subscription.php:197
135
  msgid "Duration"
136
  msgstr ""
137
 
138
+ #: admin/class-admin-subscription.php:216
139
+ #: admin/class-admin-subscription.php:570 class/frontend-account.php:126
140
+ #: class/subscription.php:846 includes/class-user-subscription.php:307
141
+ #: templates/subscriptions/pack-details.php:26
142
  msgid "Free"
143
  msgstr ""
144
 
145
+ #: admin/class-admin-subscription.php:234
146
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:66
147
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:140
148
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:526
149
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:584
150
+ #: admin/form.php:805 admin/html/form-settings-display.php:41
151
+ #: admin/post-forms-list-table.php:345 admin/settings-options.php:106
152
+ #: admin/settings-options.php:117 admin/settings-options.php:209
153
+ #: admin/settings-options.php:220 admin/template.php:70
154
+ #: includes/free/form-element.php:477
155
  msgid "Yes"
156
  msgstr ""
157
 
158
+ #: admin/class-admin-subscription.php:236
159
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:67
160
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:141
161
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:527
162
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:585
163
+ #: admin/form.php:806 admin/html/form-settings-display.php:40
164
+ #: admin/post-forms-list-table.php:346 admin/settings-options.php:107
165
+ #: admin/settings-options.php:118 admin/settings-options.php:210
166
+ #: admin/settings-options.php:221 admin/template.php:71
167
+ #: includes/free/form-element.php:478
168
  msgid "No"
169
  msgstr ""
170
 
171
+ #: admin/class-admin-subscription.php:325 admin/form.php:230
172
  msgid "Payment Settings"
173
  msgstr ""
174
 
175
+ #: admin/class-admin-subscription.php:332
176
  msgid "Posting Restriction"
177
  msgstr ""
178
 
179
+ #: admin/class-admin-subscription.php:346
180
  msgid "Billing amount:"
181
  msgstr ""
182
 
183
+ #: admin/class-admin-subscription.php:347
184
  msgid "Billing amount each cycle:"
185
  msgstr ""
186
 
187
+ #: admin/class-admin-subscription.php:355
188
  msgid "Expires In:"
189
  msgstr ""
190
 
191
+ #: admin/class-admin-subscription.php:379 admin/form.php:232
192
  #: includes/free/form-element.php:56
193
  msgid "Post Expiration"
194
  msgstr ""
195
 
196
+ #: admin/class-admin-subscription.php:384 includes/free/form-element.php:60
197
  msgid "Enable Post Expiration"
198
  msgstr ""
199
 
200
+ #: admin/class-admin-subscription.php:396
201
+ #: admin/class-admin-subscription.php:672 includes/free/form-element.php:66
202
  msgid "Post Expiration Time"
203
  msgstr ""
204
 
205
+ #: admin/class-admin-subscription.php:421 admin/html/form-settings-post.php:57
206
  #: admin/post-forms-list-table.php:298
207
  msgid "Post Status"
208
  msgstr ""
209
 
210
+ #: admin/class-admin-subscription.php:435 includes/free/form-element.php:112
211
  msgid "Status of post after post expiration time is over "
212
  msgstr ""
213
 
214
+ #: admin/class-admin-subscription.php:440
215
  msgid "Expiration Mail"
216
  msgstr ""
217
 
218
+ #: admin/class-admin-subscription.php:445
219
  msgid "Send Expiration Email to Post Author"
220
  msgstr ""
221
 
222
+ #: admin/class-admin-subscription.php:449
223
  msgid "Send Mail to Author After Exceeding Post Expiration Time"
224
  msgstr ""
225
 
226
+ #: admin/class-admin-subscription.php:454
227
  msgid "Expiration Message"
228
  msgstr ""
229
 
230
+ #: admin/class-admin-subscription.php:517
231
  msgid "Day(s)"
232
  msgstr ""
233
 
234
+ #: admin/class-admin-subscription.php:518
235
  msgid "Week(s)"
236
  msgstr ""
237
 
238
+ #: admin/class-admin-subscription.php:519
239
  msgid "Month(s)"
240
  msgstr ""
241
 
242
+ #: admin/class-admin-subscription.php:520
243
  msgid "Year(s)"
244
  msgstr ""
245
 
246
+ #: admin/class-admin-subscription.php:561
247
  msgid "WPUF Subscription Information"
248
  msgstr ""
249
 
250
+ #: admin/class-admin-subscription.php:574 class/frontend-account.php:128
251
+ msgid "For each %s %s"
252
+ msgstr ""
253
+
254
+ #: admin/class-admin-subscription.php:575 class/frontend-account.php:129
255
+ msgid ", for %s installments"
256
+ msgstr ""
257
+
258
+ #: admin/class-admin-subscription.php:587
259
  msgid "Subcription Name"
260
  msgstr ""
261
 
262
+ #: admin/class-admin-subscription.php:597
263
  msgid "Billing Info"
264
  msgstr ""
265
 
266
+ #: admin/class-admin-subscription.php:611
267
  msgid "This user is using recurring subscription pack"
268
  msgstr ""
269
 
270
+ #: admin/class-admin-subscription.php:617
271
  msgid "Remaining Posting Count"
272
  msgstr ""
273
 
274
+ #: admin/class-admin-subscription.php:638
275
  msgid "Subscription Expiration Info"
276
  msgstr ""
277
 
278
+ #: admin/class-admin-subscription.php:647
279
+ #: includes/class-user-subscription.php:361
280
+ #: templates/dashboard/subscription.php:40
281
  msgid "Expire date:"
282
  msgstr ""
283
 
284
+ #: admin/class-admin-subscription.php:661
285
  msgid "Post Expiration Enabled"
286
  msgstr ""
287
 
288
+ #: admin/class-admin-subscription.php:698
289
  msgid "Allowed Taxonomy Terms"
290
  msgstr ""
291
 
292
+ #: admin/class-admin-subscription.php:753
293
  msgid "Assign Package"
294
  msgstr ""
295
 
296
+ #: admin/class-admin-subscription.php:754
297
  #: admin/form-builder/class-wpuf-admin-form-builder.php:329
298
+ #: class/payment.php:192 class/subscription.php:777
299
  #: includes/class-list-table-subscribers.php:128
300
+ #: lib/class-wedevs-insights.php:667 templates/dashboard/subscription.php:61
301
  msgid "Cancel"
302
  msgstr ""
303
 
304
+ #: admin/class-admin-subscription.php:760
305
  msgid "Select Package:"
306
  msgstr ""
307
 
308
+ #: admin/class-admin-subscription.php:763
309
  msgid "&mdash; Select &mdash;"
310
  msgstr ""
311
 
312
+ #: admin/class-admin-subscription.php:774
313
  msgid "Delete Package"
314
  msgstr ""
315
 
316
+ #: admin/class-admin-subscription.php:823
317
  msgid "Learn more about <a href=\"%s\" target=\"_blank\">Subscription</a>"
318
  msgstr ""
319
 
327
 
328
  #: admin/class-tools.php:39 admin/class-tools.php:95
329
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:86
330
+ #: includes/class-list-table-subscribers.php:126 wpuf-functions.php:2488
331
  msgid "All"
332
  msgstr ""
333
 
505
  msgid "No subscription plan found."
506
  msgstr ""
507
 
508
+ #: admin/form-builder/assets/js/components/form-featured_image/template.php:6
509
+ #: admin/form-builder/assets/js/components/form-image_upload/template.php:6
510
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:779
511
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:813
512
+ #: admin/form.php:688 admin/form.php:714 class/render-form.php:1668
513
  msgid "Select Image"
514
  msgstr ""
515
 
516
  #: admin/form-builder/assets/js/components/form-post_content/template.php:4
517
+ #: class/render-form.php:1048
518
  msgid "Insert Photo"
519
  msgstr ""
520
 
595
  msgid "Get the Pro version"
596
  msgstr ""
597
 
598
+ #: admin/form-builder/class-wpuf-admin-form-builder.php:338 admin/form.php:780
599
  msgid "Select"
600
  msgstr ""
601
 
678
  msgstr ""
679
 
680
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:110
681
+ #: admin/html/form-settings-display.php:19
682
  msgid "Hidden"
683
  msgstr ""
684
 
803
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:307
804
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:455
805
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:498
806
+ #: admin/form.php:910
807
  msgid "- select -"
808
  msgstr ""
809
 
824
  msgstr ""
825
 
826
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:428
827
+ #: admin/form.php:793 admin/template.php:449 admin/template.php:481
828
  msgid "Select Text"
829
  msgstr ""
830
 
831
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:432
832
+ #: admin/form.php:797 admin/template.php:438 admin/template.php:470
833
  msgid ""
834
  "First element of the select dropdown. Leave this empty if you don't want to "
835
  "show this field"
843
 
844
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:483
845
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:490
846
+ #: admin/form.php:781 admin/template-post.php:157
847
  msgid "Multi Select"
848
  msgstr ""
849
 
850
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:523
851
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:581
852
+ #: admin/form.php:802
853
  msgid "Show in inline list"
854
  msgstr ""
855
 
856
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:533
857
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:591
858
+ #: admin/form.php:812
859
  msgid "Show this option in an inline list"
860
  msgstr ""
861
 
868
  msgstr ""
869
 
870
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:599
871
+ #: admin/form.php:782 admin/template-post.php:158
872
  msgid "Checkbox"
873
  msgstr ""
874
 
923
  msgstr ""
924
 
925
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:777
926
+ #: admin/form.php:686
927
  msgid "Button Label"
928
  msgstr ""
929
 
930
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:782
931
+ #: admin/form.php:691
932
  msgid "Enter a label for the Select button"
933
  msgstr ""
934
 
935
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:786
936
+ #: admin/form.php:695 admin/template-post.php:105 admin/template.php:646
937
  msgid "Max. file size"
938
  msgstr ""
939
 
940
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:790
941
+ #: admin/form.php:699 admin/template-post.php:93 admin/template.php:634
942
  msgid "Enter maximum upload size limit in KB"
943
  msgstr ""
944
 
962
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:926
963
  #: admin/template.php:544 admin/template.php:604 admin/template.php:683
964
  #: class/upload.php:164 templates/dashboard/posts.php:75
965
+ #: templates/dashboard.php:84 wpuf-functions.php:753
966
  msgid "Title"
967
  msgstr ""
968
 
972
  msgstr ""
973
 
974
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:849
975
+ #: admin/template.php:609 class/upload.php:166 wpuf-functions.php:759
976
  msgid "Description"
977
  msgstr ""
978
 
1200
  msgstr ""
1201
 
1202
  #: admin/form.php:440 admin/html/form-settings-post.php:22
1203
+ #: class/render-form.php:752
1204
  msgid "Save Draft"
1205
  msgstr ""
1206
 
1224
  msgid "Excerpt"
1225
  msgstr ""
1226
 
1227
+ #: admin/form.php:705 admin/form.php:712 templates/dashboard/posts.php:72
1228
  #: templates/dashboard.php:81
1229
  msgid "Featured Image"
1230
  msgstr ""
1231
 
1232
+ #: admin/form.php:741 admin/form.php:747
1233
  msgid "Tags"
1234
  msgstr ""
1235
 
1236
+ #: admin/form.php:777 admin/template-post.php:154
1237
  msgid "Type"
1238
  msgstr ""
1239
 
1240
+ #: admin/form.php:783 admin/template-post.php:159
1241
  msgid "Text Input"
1242
  msgstr ""
1243
 
1244
+ #: admin/form.php:784 admin/template-post.php:160
1245
  msgid "Ajax"
1246
  msgstr ""
1247
 
1248
+ #: admin/form.php:817 admin/template-post.php:165
1249
  msgid "Order By"
1250
  msgstr ""
1251
 
1252
+ #: admin/form.php:820 admin/html/form-submission-restriction.php:11
1253
  #: admin/template-post.php:167 includes/free/edit-profile.php:97
1254
  #: templates/registration-form.php:27
1255
  msgid "Name"
1256
  msgstr ""
1257
 
1258
+ #: admin/form.php:821 admin/template-post.php:168
1259
  msgid "Term ID"
1260
  msgstr ""
1261
 
1262
+ #: admin/form.php:822 admin/template-post.php:169
1263
  msgid "Slug"
1264
  msgstr ""
1265
 
1266
+ #: admin/form.php:823 admin/template-post.php:170
1267
  msgid "Count"
1268
  msgstr ""
1269
 
1270
+ #: admin/form.php:824 admin/template-post.php:171
1271
  msgid "Term Group"
1272
  msgstr ""
1273
 
1274
+ #: admin/form.php:833 admin/template-post.php:176
1275
  msgid "Order"
1276
  msgstr ""
1277
 
1278
+ #: admin/form.php:837 admin/template-post.php:178
1279
  msgid "ASC"
1280
  msgstr ""
1281
 
1282
+ #: admin/form.php:838 admin/template-post.php:179
1283
  msgid "DESC"
1284
  msgstr ""
1285
 
1286
+ #: admin/form.php:847 admin/template-post.php:184
1287
  msgid "Selection Type"
1288
  msgstr ""
1289
 
1290
+ #: admin/form.php:850 admin/template-post.php:186
1291
  msgid "Exclude"
1292
  msgstr ""
1293
 
1294
+ #: admin/form.php:851 admin/template-post.php:187
1295
  msgid "Include"
1296
  msgstr ""
1297
 
1298
+ #: admin/form.php:852 admin/template-post.php:188
1299
  msgid "Child of"
1300
  msgstr ""
1301
 
1302
+ #: admin/form.php:861
1303
  msgid "Selection Terms"
1304
  msgstr ""
1305
 
1306
+ #: admin/form.php:865 admin/template-post.php:194
1307
  msgid ""
1308
  "Enter the term IDs as comma separated (without space) to exclude/include in "
1309
  "the form."
1310
  msgstr ""
1311
 
1312
+ #: admin/form.php:874 admin/template-post.php:204
1313
  msgid "This taxonomy is a WooCommerce attribute"
1314
  msgstr ""
1315
 
1316
+ #: admin/form.php:885 admin/template-post.php:216
1317
  msgid "Visible on product page"
1318
  msgstr ""
1319
 
1320
+ #: admin/form.php:937
1321
  msgid "Post Forms must have either Post Title, Post Body or Excerpt field"
1322
  msgstr ""
1323
 
1324
+ #: admin/html/form-settings-display.php:11
1325
  msgid "Label Position"
1326
  msgstr ""
1327
 
1328
+ #: admin/html/form-settings-display.php:16
1329
  msgid "Above Element"
1330
  msgstr ""
1331
 
1332
+ #: admin/html/form-settings-display.php:17
1333
  msgid "Left of Element"
1334
  msgstr ""
1335
 
1336
+ #: admin/html/form-settings-display.php:18
1337
  msgid "Right of Element"
1338
  msgstr ""
1339
 
1340
+ #: admin/html/form-settings-display.php:29
1341
  msgid "Where the labels of the form should display"
1342
  msgstr ""
1343
 
1344
+ #: admin/html/form-settings-display.php:35
1345
+ msgid "Use Theme CSS"
1346
+ msgstr ""
1347
+
1348
+ #: admin/html/form-settings-display.php:51
1349
+ msgid "Selecting \"Yes\" will use your theme's style for form fields."
1350
+ msgstr ""
1351
+
1352
+ #: admin/html/form-settings-display.php:58
1353
  msgid "Form Style"
1354
  msgstr ""
1355
 
1870
  msgstr ""
1871
 
1872
  #: admin/html/whats-new.php:8
1873
+ msgid "Allow overriding form input styles using theme styling."
1874
  msgstr ""
1875
 
1876
  #: admin/html/whats-new.php:10
1877
+ msgid "Overriding form input styles using theme style is now possible."
1878
+ msgstr ""
1879
+
1880
+ #: admin/html/whats-new.php:13
1881
+ msgid "Fixed Auto Login after registration."
1882
+ msgstr ""
1883
+
1884
+ #: admin/html/whats-new.php:15
1885
+ msgid "Auto Login after registration was not working is fixed now."
1886
+ msgstr ""
1887
+
1888
+ #: admin/html/whats-new.php:18
1889
+ msgid "Fixed fallback cost calculation"
1890
+ msgstr ""
1891
+
1892
+ #: admin/html/whats-new.php:20
1893
+ msgid "Fallback cost calculation was inaccurate for some cases, it is fixed now."
1894
+ msgstr ""
1895
+
1896
+ #: admin/html/whats-new.php:23
1897
+ msgid "Removal of subscription from User Profile gets reverted if updated"
1898
+ msgstr ""
1899
+
1900
+ #: admin/html/whats-new.php:25
1901
+ msgid "User subscription deletion gets reverted if updated is fixed."
1902
+ msgstr ""
1903
+
1904
+ #: admin/html/whats-new.php:28
1905
+ msgid "Show Free pack users in subscribers list."
1906
+ msgstr ""
1907
+
1908
+ #: admin/html/whats-new.php:30
1909
+ msgid "Free pack users were not showing in subscribers list, now they will."
1910
+ msgstr ""
1911
+
1912
+ #: admin/html/whats-new.php:39
1913
+ msgid "WP User Frontend Guten Block is added"
1914
+ msgstr ""
1915
+
1916
+ #: admin/html/whats-new.php:41
1917
  msgid ""
1918
  "WPUF Form Block is now available to be used within gutenberg editor with "
1919
  "preview of the form. "
1920
  msgstr ""
1921
 
1922
+ #: admin/html/whats-new.php:44
1923
  msgid "Advanced Custom Fields plugin compatibility"
1924
  msgstr ""
1925
 
1926
+ #: admin/html/whats-new.php:46
1927
  msgid "Now all your ACF fields can be used within WPUF Post forms. "
1928
  msgstr ""
1929
 
1930
+ #: admin/html/whats-new.php:49
1931
  msgid "Taxonomy Terms not showing for custom post types"
1932
  msgstr ""
1933
 
1934
+ #: admin/html/whats-new.php:51
1935
  msgid ""
1936
  "Fixed an issue with taxonomy terms not appearing for Custom Post types "
1937
  "within Form Settings and Dashboard Post Listing"
1938
  msgstr ""
1939
 
1940
+ #: admin/html/whats-new.php:54
1941
  msgid "Various other code optimizations"
1942
  msgstr ""
1943
 
1944
+ #: admin/html/whats-new.php:56 admin/html/whats-new.php:113
1945
  msgid "Code structure organization and optimization for better performance"
1946
  msgstr ""
1947
 
1948
+ #: admin/html/whats-new.php:65
1949
  msgid "WoooCommerce billing address Sync"
1950
  msgstr ""
1951
 
1952
+ #: admin/html/whats-new.php:67
1953
  msgid ""
1954
  "If an existing customer has previously set his billing address, that will "
1955
  "be imported into WPUF Billing address "
1956
  msgstr ""
1957
 
1958
+ #: admin/html/whats-new.php:70
1959
  msgid "Trial subscription message not showing properly"
1960
  msgstr ""
1961
 
1962
+ #: admin/html/whats-new.php:72
1963
  msgid "Subscriptions with Trial now shows trial notices"
1964
  msgstr ""
1965
 
1966
+ #: admin/html/whats-new.php:75
1967
  msgid "Reset email Key not working"
1968
  msgstr ""
1969
 
1970
+ #: admin/html/whats-new.php:77
1971
  msgid "Reset Email key was not working in some cases"
1972
  msgstr ""
1973
 
1974
+ #: admin/html/whats-new.php:80
1975
  msgid "Post count not showing on the frontend dashboard"
1976
  msgstr ""
1977
 
1978
+ #: admin/html/whats-new.php:82
1979
  msgid ""
1980
  "Dashboard with multiple post type was not showing post counts properly, is "
1981
  "now fixed and shows count for each post type"
1982
  msgstr ""
1983
 
1984
+ #: admin/html/whats-new.php:85
1985
  msgid "Login Redirect showing blank page is fixed"
1986
  msgstr ""
1987
 
1988
+ #: admin/html/whats-new.php:87
1989
  msgid ""
1990
  "If \"Previous Page\" was set for redirection, login redirect was "
1991
  "redirecting to blank page for users who hit login page directly"
1992
  msgstr ""
1993
 
1994
+ #: admin/html/whats-new.php:96
1995
  msgid "Enhanced Login Redirect to redirect users to previous page"
1996
  msgstr ""
1997
 
1998
+ #: admin/html/whats-new.php:98
1999
  msgid ""
2000
  "You can choose Previous Page as Login Redirect page settings now to "
2001
  "redirect users to the page from which they went for Login. "
2002
  msgstr ""
2003
 
2004
+ #: admin/html/whats-new.php:101
2005
  msgid "Email HTML links not Rendreing properly issue is fixed"
2006
  msgstr ""
2007
 
2008
+ #: admin/html/whats-new.php:103
2009
  msgid ""
2010
  "For some clients emails were not rendering the HTML links properly, this is "
2011
  "now fixed"
2012
  msgstr ""
2013
 
2014
+ #: admin/html/whats-new.php:106
2015
  msgid "Form Builder : Form Field's Help text styles not showing properly"
2016
  msgstr ""
2017
 
2018
+ #: admin/html/whats-new.php:108
2019
  msgid "Help texts styling is now fixed and much easier to read and understand"
2020
  msgstr ""
2021
 
2022
+ #: admin/html/whats-new.php:111
2023
  msgid "Various other code improvements"
2024
  msgstr ""
2025
 
2026
+ #: admin/html/whats-new.php:122
2027
  msgid "Dashboard Post Listing now supports multiple post types"
2028
  msgstr ""
2029
 
2030
+ #: admin/html/whats-new.php:124
2031
  msgid ""
2032
  "Now you can show multiple post type in user dashboard using shortcode like "
2033
  "this : <br><b>[wpuf_dashboard post_type=\"post,page,custom_type\"]</b> "
2034
  msgstr ""
2035
 
2036
+ #: admin/html/whats-new.php:127
2037
  msgid "Added Login Redirect Settings"
2038
  msgstr ""
2039
 
2040
+ #: admin/html/whats-new.php:129
2041
  msgid ""
2042
  "You can now set a page from <i>WPUF Settings > Login/Registration > "
2043
  "Redirect after Login</i>. When login redirection is active the user will be "
2044
  "redirected to this page after login."
2045
  msgstr ""
2046
 
2047
+ #: admin/html/whats-new.php:132
2048
  msgid "Image Upload field button text can be changed"
2049
  msgstr ""
2050
 
2051
+ #: admin/html/whats-new.php:134
2052
  msgid ""
2053
  "The upload button text can now be changed for image upload fields which "
2054
  "defaults to \"Select Image\" if not set. "
2055
  msgstr ""
2056
 
2057
+ #: admin/html/whats-new.php:137
2058
  msgid "Multi Step Form styles made compatible with more themes"
2059
  msgstr ""
2060
 
2061
+ #: admin/html/whats-new.php:139
2062
  msgid "Multi Step form can now be styled more easily with other themes "
2063
  msgstr ""
2064
 
2065
+ #: admin/html/whats-new.php:142
2066
  msgid "Required field condition for google map not working is fixed"
2067
  msgstr ""
2068
 
2069
+ #: admin/html/whats-new.php:144
2070
  msgid ""
2071
  "If Google Map field was set as required users were able to submit form "
2072
  "without changing the default value."
2073
  msgstr ""
2074
 
2075
+ #: admin/html/whats-new.php:153
2076
  msgid "Admin form builder is now fully responsive."
2077
  msgstr ""
2078
 
2079
+ #: admin/html/whats-new.php:155
2080
  msgid ""
2081
  "Now you can edit forms from your mobile devices directly. Our improved "
2082
  "responsive layouts of form builder makes it easy for you to build forms on "
2083
  "the go."
2084
  msgstr ""
2085
 
2086
+ #: admin/html/whats-new.php:158
2087
  msgid "Added color schemes for creating attractive form layouts."
2088
  msgstr ""
2089
 
2090
+ #: admin/html/whats-new.php:160
2091
  msgid ""
2092
  "We have added 3 new color schemes for the form layouts which you can choose "
2093
  "from each form's new display settings."
2094
  msgstr ""
2095
 
2096
+ #: admin/html/whats-new.php:163
2097
  msgid "Restrict Free subscription pack to be enabled multiple times "
2098
  msgstr ""
2099
 
2100
+ #: admin/html/whats-new.php:165
2101
  msgid ""
2102
  "Free subscription packs now can only be purchased once and the limit "
2103
  "applies properly"
2104
  msgstr ""
2105
 
2106
+ #: admin/html/whats-new.php:168
2107
  msgid "Various other bug fixes and improvements were made "
2108
  msgstr ""
2109
 
2110
+ #: admin/html/whats-new.php:170
2111
  msgid "Please see the change log to see full details."
2112
  msgstr ""
2113
 
2114
+ #: admin/html/whats-new.php:179
2115
  msgid "Added upgrade function for default category"
2116
  msgstr ""
2117
 
2118
+ #: admin/html/whats-new.php:181
2119
  msgid "Upgrader added to upgrade previously set default post category."
2120
  msgstr ""
2121
 
2122
+ #: admin/html/whats-new.php:184
2123
  msgid "Subscription pack cannot be canceled"
2124
  msgstr ""
2125
 
2126
+ #: admin/html/whats-new.php:186
2127
  msgid ""
2128
  "Fixed recurring subscription pack cannot be canceled from my account page "
2129
  "in subscription details section."
2130
  msgstr ""
2131
 
2132
+ #: admin/html/whats-new.php:189
2133
  msgid "page installer admin notice logic issue"
2134
  msgstr ""
2135
 
2136
+ #: admin/html/whats-new.php:191
2137
  msgid ""
2138
  "Fixed page installer admin notice logic problem due to new payment settings "
2139
  "default value not set."
2140
  msgstr ""
2141
 
2142
+ #: admin/html/whats-new.php:201
2143
  msgid "Setup Wizard"
2144
  msgstr ""
2145
 
2146
+ #: admin/html/whats-new.php:203
2147
  msgid "Setup Wizard added to turn off payment options and install pages."
2148
  msgstr ""
2149
 
2150
+ #: admin/html/whats-new.php:207
2151
  msgid "Multi-select Category"
2152
  msgstr ""
2153
 
2154
+ #: admin/html/whats-new.php:209
2155
  msgid "Add multi-select to default category in post form settings."
2156
  msgstr ""
2157
 
2158
+ #: admin/html/whats-new.php:213
2159
  msgid "Select Text option for Taxonomy"
2160
  msgstr ""
2161
 
2162
+ #: admin/html/whats-new.php:215
2163
  msgid ""
2164
  "Add Select Text option for taxonomy fields. Now you can add default text "
2165
  "with empty value as first option for Taxonomy dropdown."
2166
  msgstr ""
2167
 
2168
+ #: admin/html/whats-new.php:218
2169
  msgid "Taxonomy Checkbox Inline"
2170
  msgstr ""
2171
 
2172
+ #: admin/html/whats-new.php:220
2173
  msgid ""
2174
  "Added checkbox inline option to taxonomy checkbox. You can now display "
2175
  "Taxonomy checkbox fields inline."
2176
  msgstr ""
2177
 
2178
+ #: admin/html/whats-new.php:230
2179
  msgid "Manage schedule for form submission"
2180
  msgstr ""
2181
 
2182
+ #: admin/html/whats-new.php:232
2183
  msgid ""
2184
  "Do not accept form submission if the current date is not between the date "
2185
  "range of the schedule."
2186
  msgstr ""
2187
 
2188
+ #: admin/html/whats-new.php:236
2189
  msgid "Restrict form submission based on the user roles"
2190
  msgstr ""
2191
 
2192
+ #: admin/html/whats-new.php:238
2193
  msgid ""
2194
  "Restrict form submission based on the user roles. Now you can manage user "
2195
  "role base permission on form submission."
2196
  msgstr ""
2197
 
2198
+ #: admin/html/whats-new.php:242
2199
  msgid "Limit how many entries a form will accept"
2200
  msgstr ""
2201
 
2202
+ #: admin/html/whats-new.php:244
2203
  msgid ""
2204
  "Limit how many entries a form will accept and display a custom message when "
2205
  "that limit is reached."
2206
  msgstr ""
2207
 
2208
+ #: admin/html/whats-new.php:248
2209
  msgid "Show/hide Admin Bar"
2210
  msgstr ""
2211
 
2212
+ #: admin/html/whats-new.php:250
2213
  msgid "Control the admin bar visibility based on user roles."
2214
  msgstr ""
2215
 
2216
+ #: admin/html/whats-new.php:254
2217
  msgid "Ajax Login widget"
2218
  msgstr ""
2219
 
2220
+ #: admin/html/whats-new.php:256
2221
  msgid ""
2222
  "Login user is more simple now with Ajax Login Widget. The simple ajax login "
2223
  "form do not required page loading for login."
2224
  msgstr ""
2225
 
2226
+ #: admin/html/whats-new.php:260
2227
  msgid "Form submission with Captcha field"
2228
  msgstr ""
2229
 
2230
+ #: admin/html/whats-new.php:262
2231
  msgid "Form field validation process updated if form submits with captcha field."
2232
  msgstr ""
2233
 
2234
+ #: admin/html/whats-new.php:276
2235
  msgid "What's New in WPUF?"
2236
  msgstr ""
2237
 
2260
  msgstr ""
2261
 
2262
  #: admin/installer.php:73 admin/settings-options.php:23
2263
+ #: includes/free/admin/shortcode-button.php:82 wpuf-functions.php:1500
2264
  msgid "Dashboard"
2265
  msgstr ""
2266
 
2275
 
2276
  #: admin/installer.php:84 class/subscription.php:356 class/subscription.php:376
2277
  #: class/subscription.php:377 class/subscription.php:378
2278
+ #: includes/free/admin/shortcode-button.php:102 wpuf-functions.php:1503
2279
  msgid "Subscription"
2280
  msgstr ""
2281
 
2370
  msgid "Draft"
2371
  msgstr ""
2372
 
2373
+ #: admin/posting.php:66 class/asset-loader.php:51 class/render-form.php:1686
2374
+ #: wpuf.php:504
2375
  msgid "Are you sure?"
2376
  msgstr ""
2377
 
2378
+ #: admin/posting.php:72 class/asset-loader.php:57 wpuf.php:512
2379
  msgid "Allowed Files"
2380
  msgstr ""
2381
 
2382
+ #: admin/posting.php:75 class/asset-loader.php:60 wpuf.php:518
2383
  msgid "Maximum number of files reached!"
2384
  msgstr ""
2385
 
2386
+ #: admin/posting.php:76 class/asset-loader.php:61 wpuf.php:519
2387
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
2388
  msgstr ""
2389
 
2390
+ #: admin/posting.php:77 class/asset-loader.php:62 wpuf.php:520
2391
  msgid "You have uploaded an incorrect file type. Please try again."
2392
  msgstr ""
2393
 
3240
  msgid "is not valid"
3241
  msgstr ""
3242
 
3243
+ #: class/asset-loader.php:45 wpuf.php:498
3244
  msgid "Please fix the errors to proceed"
3245
  msgstr ""
3246
 
3247
+ #: class/asset-loader.php:47 wpuf.php:500
3248
  msgid "Word limit reached"
3249
  msgstr ""
3250
 
3251
+ #: class/frontend-account.php:113
3252
+ msgid "<p>You are not subscribed to any package yet.</p>"
 
 
 
 
3253
  msgstr ""
3254
 
3255
+ #: class/frontend-account.php:187 class/subscription.php:73
3256
  msgid "Nonce failure"
3257
  msgstr ""
3258
 
3259
+ #: class/frontend-account.php:201
3260
  msgid "First Name is a required field."
3261
  msgstr ""
3262
 
3263
+ #: class/frontend-account.php:205
3264
  msgid "Last Name is a required field."
3265
  msgstr ""
3266
 
3267
+ #: class/frontend-account.php:209
3268
  msgid "Email is a required field."
3269
  msgstr ""
3270
 
3271
+ #: class/frontend-account.php:220
3272
  msgid "Please provide a valid email address."
3273
  msgstr ""
3274
 
3275
+ #: class/frontend-account.php:222
3276
  msgid "This email address is already registered."
3277
  msgstr ""
3278
 
3279
+ #: class/frontend-account.php:228
3280
  msgid "Please fill out all password fields."
3281
  msgstr ""
3282
 
3283
+ #: class/frontend-account.php:231
3284
  msgid "Please enter your current password."
3285
  msgstr ""
3286
 
3287
+ #: class/frontend-account.php:234
3288
  msgid "Please re-enter your password."
3289
  msgstr ""
3290
 
3291
+ #: class/frontend-account.php:237
3292
  msgid "New passwords do not match."
3293
  msgstr ""
3294
 
3295
+ #: class/frontend-account.php:240 class/frontend-account.php:251
3296
  msgid "Your current password is incorrect."
3297
  msgstr ""
3298
 
3362
  msgid "You do not have sufficient permissions to access this form."
3363
  msgstr ""
3364
 
3365
+ #: class/frontend-form-post.php:751
3366
  msgid "Something went wrong"
3367
  msgstr ""
3368
 
3369
+ #: class/frontend-form-post.php:1108
3370
  msgid "Email successfully verified. Please Login."
3371
  msgstr ""
3372
 
3390
  msgid "You already have activated a free package previously."
3391
  msgstr ""
3392
 
3393
+ #: class/payment.php:133 wpuf-functions.php:1504
3394
  msgid "Billing Address"
3395
  msgstr ""
3396
 
3410
  msgid "Pack Price "
3411
  msgstr ""
3412
 
3413
+ #: class/payment.php:179 class/payment.php:225
3414
  msgid "Total"
3415
  msgstr ""
3416
 
3422
  msgid "Have a discount code?"
3423
  msgstr ""
3424
 
3425
+ #: class/payment.php:221
3426
  msgid "Post cost"
3427
  msgstr ""
3428
 
3429
+ #: class/payment.php:232
3430
  msgid "Choose Your Payment Method"
3431
  msgstr ""
3432
 
3433
+ #: class/payment.php:268
3434
  msgid "Proceed"
3435
  msgstr ""
3436
 
3437
+ #: class/payment.php:274
3438
  msgid "No Payment gateway found"
3439
  msgstr ""
3440
 
3441
+ #: class/payment.php:439 lib/gateway/bank.php:109
3442
  msgid "[%s] Payment Received"
3443
  msgstr ""
3444
 
3445
+ #: class/payment.php:440
3446
  msgid "New payment received at %s"
3447
  msgstr ""
3448
 
3479
  msgid "Please make sure you've published your form."
3480
  msgstr ""
3481
 
3482
+ #: class/render-form.php:1354 includes/free/edit-profile.php:203
3483
  #: templates/dashboard/edit-profile.php:54
3484
  msgid "Strength indicator"
3485
  msgstr ""
3486
 
3487
+ #: class/render-form.php:1419
3488
  msgid "-- Select --"
3489
  msgstr ""
3490
 
3491
+ #: class/render-form.php:1484
3492
  msgid "This field is no longer available."
3493
  msgstr ""
3494
 
3495
+ #: class/render-form.php:1686 class/transactions-list-table.php:115
3496
+ #: class/transactions-list-table.php:181 includes/free/edit-user.php:101
3497
+ #: templates/dashboard/posts.php:162 templates/dashboard.php:255
 
3498
  msgid "Delete"
3499
  msgstr ""
3500
 
3534
  msgid "Parent Subscription"
3535
  msgstr ""
3536
 
3537
+ #: class/subscription.php:746
3538
  msgid "Payment is complete"
3539
  msgstr ""
3540
 
3541
+ #: class/subscription.php:746
3542
  msgid "Congratulations, your payment has been completed!"
3543
  msgstr ""
3544
 
3545
+ #: class/subscription.php:750 class/subscription.php:754
3546
  msgid "Please buy a subscription pack to post"
3547
  msgstr ""
3548
 
3549
+ #: class/subscription.php:768
3550
  msgid "<p><i>You have a subscription pack activated. </i></p>"
3551
  msgstr ""
3552
 
3553
+ #: class/subscription.php:769
3554
  msgid "<p><i>Pack name: %s </i></p>"
3555
  msgstr ""
3556
 
3557
+ #: class/subscription.php:771
3558
  msgid "<p><i>To cancel the pack, press the following cancel button</i></p>"
3559
  msgstr ""
3560
 
3561
+ #: class/subscription.php:821
 
 
 
 
3562
  msgid "One time payment"
3563
  msgstr ""
3564
 
3565
+ #: class/subscription.php:828
3566
+ msgid "Every"
3567
  msgstr ""
3568
 
3569
+ #: class/subscription.php:839
3570
  msgid "Buy Now"
3571
  msgstr ""
3572
 
3573
+ #: class/subscription.php:843
3574
+ msgid "Sign Up"
3575
+ msgstr ""
3576
+
3577
+ #: class/subscription.php:906
3578
  msgid "There is a <strong>%s</strong> charge to add a new post."
3579
  msgstr ""
3580
 
3581
+ #: class/subscription.php:923
3582
  msgid ""
3583
  "Your Subscription pack exhausted. There is a <strong>%s</strong> charge to "
3584
  "add a new post."
3585
  msgstr ""
3586
 
3587
+ #: class/subscription.php:968 includes/class-user-subscription.php:58
3588
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
3589
  msgstr ""
3590
 
3659
  msgid "No transactions found."
3660
  msgstr ""
3661
 
3662
+ #: class/upload.php:165 wpuf-functions.php:756
3663
  msgid "Caption"
3664
  msgstr ""
3665
 
3735
  msgid "Billing address is updated."
3736
  msgstr ""
3737
 
3738
+ #: includes/class-dokan-integration.php:37 wpuf-functions.php:1501
3739
  msgid "Posts"
3740
  msgstr ""
3741
 
3839
  msgid "Someone has requested a password reset for the following account:"
3840
  msgstr ""
3841
 
3842
+ #: includes/class-login-widget.php:137 includes/free/class-login.php:739
3843
  msgid "Username: %s"
3844
  msgstr ""
3845
 
3846
+ #: includes/class-login-widget.php:138 includes/free/class-login.php:740
3847
  msgid "If this was a mistake, just ignore this email and nothing will happen."
3848
  msgstr ""
3849
 
3850
+ #: includes/class-login-widget.php:139 includes/free/class-login.php:741
3851
  msgid "To reset your password, visit the following address:"
3852
  msgstr ""
3853
 
3854
+ #: includes/class-login-widget.php:144 includes/free/class-login.php:750
3855
  msgid "[%s] Password Reset"
3856
  msgstr ""
3857
 
3862
  msgstr ""
3863
 
3864
  #: includes/class-login-widget.php:206 includes/class-login-widget.php:238
3865
+ #: includes/free/class-login.php:211 includes/free/class-registration.php:124
3866
  #: includes/free/form-element.php:345 templates/registration-form.php:72
3867
  msgid "Register"
3868
  msgstr ""
3908
  msgid "Remember Me"
3909
  msgstr ""
3910
 
3911
+ #: includes/class-login-widget.php:268 includes/free/class-login.php:207
3912
+ #: includes/free/class-login.php:263 templates/login-form.php:36
3913
  msgid "Log In"
3914
  msgstr ""
3915
 
3950
  msgstr ""
3951
 
3952
  #: includes/class-user-subscription.php:63
3953
+ msgid "The subscription pack has expired. Please buy a pack."
3954
  msgstr ""
3955
 
3956
+ #: includes/class-user-subscription.php:318
3957
+ #: templates/dashboard/subscription.php:3
3958
  msgid "Subscription Details"
3959
  msgstr ""
3960
 
3961
+ #: includes/class-user-subscription.php:320
3962
+ #: templates/dashboard/subscription.php:5
3963
  msgid "Subcription Name: "
3964
  msgstr ""
3965
 
3966
+ #: includes/class-user-subscription.php:322
3967
+ #: templates/dashboard/subscription.php:7
3968
  msgid "Package & billing details: "
3969
  msgstr ""
3970
 
3971
+ #: includes/class-user-subscription.php:333
3972
+ #: templates/dashboard/subscription.php:11
3973
  msgid "Remaining post: "
3974
  msgstr ""
3975
 
3976
+ #: includes/class-user-subscription.php:346
3977
+ #: templates/dashboard/subscription.php:25
3978
  msgid "Unlimited"
3979
  msgstr ""
3980
 
3981
+ #: includes/class-user-subscription.php:380
3982
  msgid "Change"
3983
  msgstr ""
3984
 
4066
  msgid " Add Form"
4067
  msgstr ""
4068
 
4069
+ #: includes/free/class-login.php:215
4070
  msgid "Lost Password"
4071
  msgstr ""
4072
 
4073
+ #: includes/free/class-login.php:253
4074
  msgid ""
4075
  "Please enter your username or email address. You will receive a link to "
4076
  "create a new password via email."
4077
  msgstr ""
4078
 
4079
+ #: includes/free/class-login.php:263
4080
  msgid "Your password has been reset. %s"
4081
  msgstr ""
4082
 
4083
+ #: includes/free/class-login.php:267
4084
  msgid "Enter your new password below.."
4085
  msgstr ""
4086
 
4087
+ #: includes/free/class-login.php:277
4088
  msgid "Check your e-mail for the confirmation link."
4089
  msgstr ""
4090
 
4091
+ #: includes/free/class-login.php:281
4092
  msgid "You are now logged out."
4093
  msgstr ""
4094
 
4095
+ #: includes/free/class-login.php:310 includes/free/class-login.php:315
4096
+ #: includes/free/class-login.php:320 includes/free/class-login.php:330
4097
  #: includes/free/class-registration.php:192
4098
  #: includes/free/class-registration.php:197
4099
  #: includes/free/class-registration.php:202
4107
  msgid "Error"
4108
  msgstr ""
4109
 
4110
+ #: includes/free/class-login.php:315 includes/free/class-registration.php:212
4111
  msgid "Username is required."
4112
  msgstr ""
4113
 
4114
+ #: includes/free/class-login.php:320 includes/free/class-registration.php:217
4115
  msgid "Password is required."
4116
  msgstr ""
4117
 
4118
+ #: includes/free/class-login.php:330 includes/free/class-registration.php:242
4119
  msgid "A user could not be found with this email address."
4120
  msgstr ""
4121
 
4122
+ #: includes/free/class-login.php:451
4123
  msgid "Please enter your password."
4124
  msgstr ""
4125
 
4126
+ #: includes/free/class-login.php:456
4127
  msgid "Passwords do not match."
4128
  msgstr ""
4129
 
4130
+ #: includes/free/class-login.php:499
4131
  msgid "Enter a username or e-mail address."
4132
  msgstr ""
4133
 
4134
+ #: includes/free/class-login.php:507
4135
  msgid "There is no user registered with that email address."
4136
  msgstr ""
4137
 
4138
+ #: includes/free/class-login.php:525
4139
  msgid "Invalid username or e-mail."
4140
  msgstr ""
4141
 
4142
+ #: includes/free/class-login.php:539
4143
  msgid "Password reset is not allowed for this user"
4144
  msgstr ""
4145
 
4146
+ #: includes/free/class-login.php:593 includes/free/class-login.php:605
4147
  msgid "Invalid key"
4148
  msgstr ""
4149
 
4150
+ #: includes/free/class-login.php:598
4151
  msgid "Invalid Login"
4152
  msgstr ""
4153
 
4154
+ #: includes/free/class-login.php:629
4155
  msgid ""
4156
  "<strong>Your account is not active.</strong><br>Please check your email for "
4157
+ "activation link. <br><a href=\"%s\">Click here</a> to resend the activation "
4158
+ "link"
4159
  msgstr ""
4160
 
4161
+ #: includes/free/class-login.php:693
4162
  msgid "Your account has been activated"
4163
  msgstr ""
4164
 
4165
+ #: includes/free/class-login.php:737
4166
  msgid "Someone requested that the password be reset for the following account:"
4167
  msgstr ""
4168
 
4169
+ #: includes/free/class-login.php:756
4170
  msgid "The e-mail could not be sent."
4171
  msgstr ""
4172
 
4173
+ #: includes/free/class-login.php:756
4174
  msgid "Possible reason: your host may have disabled the mail() function."
4175
  msgstr ""
4176
 
4777
  msgid "No %s found"
4778
  msgstr ""
4779
 
4780
+ #: templates/dashboard/subscription.php:1
4781
+ msgid "You've subscribed to the following package."
4782
+ msgstr ""
4783
+
4784
+ #: templates/dashboard/subscription.php:56
4785
  msgid "<p><i>To cancel the pack, press the following cancel button.</i></p>"
4786
  msgstr ""
4787
 
4806
  msgstr ""
4807
 
4808
  #: templates/logged-in.php:8
4809
+ msgid "Hello, %s"
4810
  msgstr ""
4811
 
4812
+ #: templates/logged-in.php:10
4813
  msgid "You are currently logged in! %s?"
4814
  msgstr ""
4815
 
4861
  msgid "-- select --"
4862
  msgstr ""
4863
 
4864
+ #: wpuf-functions.php:424
4865
  msgid "Images"
4866
  msgstr ""
4867
 
4868
+ #: wpuf-functions.php:425
4869
  msgid "Audio"
4870
  msgstr ""
4871
 
4872
+ #: wpuf-functions.php:426
4873
  msgid "Videos"
4874
  msgstr ""
4875
 
4876
+ #: wpuf-functions.php:427
4877
  msgid "PDF"
4878
  msgstr ""
4879
 
4880
+ #: wpuf-functions.php:428
4881
  msgid "Office Documents"
4882
  msgstr ""
4883
 
4884
+ #: wpuf-functions.php:429
4885
  msgid "Zip Archives"
4886
  msgstr ""
4887
 
4888
+ #: wpuf-functions.php:430
4889
  msgid "Executable Files"
4890
  msgstr ""
4891
 
4892
+ #: wpuf-functions.php:431
4893
  msgid "CSV"
4894
  msgstr ""
4895
 
4896
+ #: wpuf-functions.php:1502
4897
  msgid "Edit Profile"
4898
  msgstr ""
4899
 
4900
+ #: wpuf-functions.php:1609
4901
  msgid "United Arab Emirates Dirham"
4902
  msgstr ""
4903
 
4904
+ #: wpuf-functions.php:1610
4905
  msgid "Australian Dollars"
4906
  msgstr ""
4907
 
4908
+ #: wpuf-functions.php:1611
4909
  msgid "Argentine Peso"
4910
  msgstr ""
4911
 
4912
+ #: wpuf-functions.php:1612
4913
  msgid "Bangladeshi Taka"
4914
  msgstr ""
4915
 
4916
+ #: wpuf-functions.php:1613
4917
  msgid "Brazilian Real"
4918
  msgstr ""
4919
 
4920
+ #: wpuf-functions.php:1614
4921
  msgid "Bulgarian Lev"
4922
  msgstr ""
4923
 
4924
+ #: wpuf-functions.php:1615
4925
  msgid "Canadian Dollars"
4926
  msgstr ""
4927
 
4928
+ #: wpuf-functions.php:1616
4929
  msgid "Chilean Peso"
4930
  msgstr ""
4931
 
4932
+ #: wpuf-functions.php:1617
4933
  msgid "Chinese Yuan"
4934
  msgstr ""
4935
 
4936
+ #: wpuf-functions.php:1618
4937
  msgid "Colombian Peso"
4938
  msgstr ""
4939
 
4940
+ #: wpuf-functions.php:1619
4941
  msgid "Czech Koruna"
4942
  msgstr ""
4943
 
4944
+ #: wpuf-functions.php:1620
4945
  msgid "Danish Krone"
4946
  msgstr ""
4947
 
4948
+ #: wpuf-functions.php:1621
4949
  msgid "Dominican Peso"
4950
  msgstr ""
4951
 
4952
+ #: wpuf-functions.php:1622
4953
  msgid "Algerian Dinar"
4954
  msgstr ""
4955
 
4956
+ #: wpuf-functions.php:1623
4957
  msgid "Euros"
4958
  msgstr ""
4959
 
4960
+ #: wpuf-functions.php:1624
4961
  msgid "Hong Kong Dollar"
4962
  msgstr ""
4963
 
4964
+ #: wpuf-functions.php:1625
4965
  msgid "Croatia kuna"
4966
  msgstr ""
4967
 
4968
+ #: wpuf-functions.php:1626
4969
  msgid "Hungarian Forint"
4970
  msgstr ""
4971
 
4972
+ #: wpuf-functions.php:1627
4973
  msgid "Icelandic krona"
4974
  msgstr ""
4975
 
4976
+ #: wpuf-functions.php:1628
4977
  msgid "Indonesia Rupiah"
4978
  msgstr ""
4979
 
4980
+ #: wpuf-functions.php:1629
4981
  msgid "Indian Rupee"
4982
  msgstr ""
4983
 
4984
+ #: wpuf-functions.php:1630
4985
  msgid "Nepali Rupee"
4986
  msgstr ""
4987
 
4988
+ #: wpuf-functions.php:1631
4989
  msgid "Israeli Shekel"
4990
  msgstr ""
4991
 
4992
+ #: wpuf-functions.php:1632
4993
  msgid "Japanese Yen"
4994
  msgstr ""
4995
 
4996
+ #: wpuf-functions.php:1633
4997
  msgid "Lao Kip"
4998
  msgstr ""
4999
 
5000
+ #: wpuf-functions.php:1634
5001
  msgid "South Korean Won"
5002
  msgstr ""
5003
 
5004
+ #: wpuf-functions.php:1635
5005
  msgid "Malaysian Ringgits"
5006
  msgstr ""
5007
 
5008
+ #: wpuf-functions.php:1636
5009
  msgid "Mexican Peso"
5010
  msgstr ""
5011
 
5012
+ #: wpuf-functions.php:1637
5013
  msgid "Nigerian Naira"
5014
  msgstr ""
5015
 
5016
+ #: wpuf-functions.php:1638
5017
  msgid "Norwegian Krone"
5018
  msgstr ""
5019
 
5020
+ #: wpuf-functions.php:1639
5021
  msgid "New Zealand Dollar"
5022
  msgstr ""
5023
 
5024
+ #: wpuf-functions.php:1640
5025
  msgid "Omani Rial"
5026
  msgstr ""
5027
 
5028
+ #: wpuf-functions.php:1641
5029
  msgid "Iranian Rial"
5030
  msgstr ""
5031
 
5032
+ #: wpuf-functions.php:1642
5033
  msgid "Pakistani Rupee"
5034
  msgstr ""
5035
 
5036
+ #: wpuf-functions.php:1643
5037
  msgid "Paraguayan Guaraní"
5038
  msgstr ""
5039
 
5040
+ #: wpuf-functions.php:1644
5041
  msgid "Philippine Pesos"
5042
  msgstr ""
5043
 
5044
+ #: wpuf-functions.php:1645
5045
  msgid "Polish Zloty"
5046
  msgstr ""
5047
 
5048
+ #: wpuf-functions.php:1646
5049
  msgid "Pounds Sterling"
5050
  msgstr ""
5051
 
5052
+ #: wpuf-functions.php:1647
5053
  msgid "Romanian Leu"
5054
  msgstr ""
5055
 
5056
+ #: wpuf-functions.php:1648
5057
  msgid "Russian Ruble"
5058
  msgstr ""
5059
 
5060
+ #: wpuf-functions.php:1649
5061
  msgid "Saudi Riyal"
5062
  msgstr ""
5063
 
5064
+ #: wpuf-functions.php:1650
5065
  msgid "Singapore Dollar"
5066
  msgstr ""
5067
 
5068
+ #: wpuf-functions.php:1651
5069
  msgid "South African rand"
5070
  msgstr ""
5071
 
5072
+ #: wpuf-functions.php:1652
5073
  msgid "Swedish Krona"
5074
  msgstr ""
5075
 
5076
+ #: wpuf-functions.php:1653
5077
  msgid "Swiss Franc"
5078
  msgstr ""
5079
 
5080
+ #: wpuf-functions.php:1654
5081
  msgid "Taiwan New Dollars"
5082
  msgstr ""
5083
 
5084
+ #: wpuf-functions.php:1655
5085
  msgid "Thai Baht"
5086
  msgstr ""
5087
 
5088
+ #: wpuf-functions.php:1656
5089
  msgid "Turkish Lira"
5090
  msgstr ""
5091
 
5092
+ #: wpuf-functions.php:1657
5093
  msgid "US Dollar"
5094
  msgstr ""
5095
 
5096
+ #: wpuf-functions.php:1658
5097
  msgid "Vietnamese Dong"
5098
  msgstr ""
5099
 
5100
+ #: wpuf-functions.php:1659
5101
  msgid "Egyptian Pound"
5102
  msgstr ""
5103
 
5104
+ #: wpuf-functions.php:2489
5105
  msgid "None"
5106
  msgstr ""
5107
 
5121
  msgid "Your Post Has Been Expired"
5122
  msgstr ""
5123
 
5124
+ #: wpuf.php:657
5125
  msgid "Error: Nonce verification failed"
5126
  msgstr ""
5127
 
5203
  msgid "Searching&hellip;"
5204
  msgstr ""
5205
 
5206
+ #: wpuf-functions.php:1113
5207
  msgctxt "tag delimiter"
5208
  msgid ","
5209
  msgstr ""
lib/class.settings-api.php CHANGED
File without changes
lib/recaptchalib_noCaptcha.php CHANGED
@@ -34,16 +34,14 @@
34
  * A ReCaptchaResponse is returned from checkAnswer().
35
  */
36
 
37
- if ( !class_exists( 'ReCaptchaResponse' ) ) {
38
- class ReCaptchaResponse
39
- {
40
- public $success;
41
- public $errorCodes;
42
- }
43
  }
44
 
45
 
46
- class ReCaptcha
47
  {
48
  private static $_signupUrl = "https://www.google.com/recaptcha/admin";
49
  private static $_siteVerifyUrl =
@@ -95,7 +93,35 @@ class ReCaptcha
95
  private function _submitHTTPGet($path, $data)
96
  {
97
  $req = $this->_encodeQS($data);
98
- $response = file_get_contents($path . $req);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  return $response;
100
  }
101
 
@@ -106,13 +132,13 @@ class ReCaptcha
106
  * @param string $remoteIp IP address of end user.
107
  * @param string $response response string from recaptcha verification.
108
  *
109
- * @return ReCaptchaResponse
110
  */
111
  public function verifyResponse($remoteIp, $response)
112
  {
113
  // Discard empty solution submissions
114
  if ($response == null || strlen($response) == 0) {
115
- $recaptchaResponse = new ReCaptchaResponse();
116
  $recaptchaResponse->success = false;
117
  $recaptchaResponse->errorCodes = 'missing-input';
118
  return $recaptchaResponse;
@@ -128,7 +154,7 @@ class ReCaptcha
128
  )
129
  );
130
  $answers = json_decode($getResponse, true);
131
- $recaptchaResponse = new ReCaptchaResponse();
132
 
133
  if (trim($answers ['success']) == true) {
134
  $recaptchaResponse->success = true;
34
  * A ReCaptchaResponse is returned from checkAnswer().
35
  */
36
 
37
+ class WPUF_ReCaptchaResponse
38
+ {
39
+ public $success;
40
+ public $errorCodes;
 
 
41
  }
42
 
43
 
44
+ class WPUF_ReCaptcha
45
  {
46
  private static $_signupUrl = "https://www.google.com/recaptcha/admin";
47
  private static $_siteVerifyUrl =
93
  private function _submitHTTPGet($path, $data)
94
  {
95
  $req = $this->_encodeQS($data);
96
+ $url = $path . $req;
97
+
98
+ // Use curl if possible because allow_url_fopen is off in many
99
+ // environments, making file_get_contents fail.
100
+ if (function_exists('curl_init')) {
101
+ $response = $this->_curl($url);
102
+ } else {
103
+ $response = file_get_contents($url);
104
+ }
105
+ return $response;
106
+ }
107
+
108
+ private function _curl($url)
109
+ {
110
+ // Initiate curl.
111
+ $c = curl_init();
112
+ // Set timeout.
113
+ $timeout = 3;
114
+ curl_setopt($c, CURLOPT_CONNECTTIMEOUT, $timeout);
115
+ curl_setopt($c, CURLOPT_RETURNTRANSFER, TRUE);
116
+ // Set url for call.
117
+ curl_setopt($c, CURLOPT_URL, $url);
118
+
119
+ // Execute curl call.
120
+ $response = curl_exec($c);
121
+
122
+ // Close curl.
123
+ curl_close($c);
124
+
125
  return $response;
126
  }
127
 
132
  * @param string $remoteIp IP address of end user.
133
  * @param string $response response string from recaptcha verification.
134
  *
135
+ * @return WPUF_ReCaptchaResponse
136
  */
137
  public function verifyResponse($remoteIp, $response)
138
  {
139
  // Discard empty solution submissions
140
  if ($response == null || strlen($response) == 0) {
141
+ $recaptchaResponse = new WPUF_ReCaptchaResponse();
142
  $recaptchaResponse->success = false;
143
  $recaptchaResponse->errorCodes = 'missing-input';
144
  return $recaptchaResponse;
154
  )
155
  );
156
  $answers = json_decode($getResponse, true);
157
+ $recaptchaResponse = new WPUF_ReCaptchaResponse();
158
 
159
  if (trim($answers ['success']) == true) {
160
  $recaptchaResponse->success = true;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: tareq1988, sk.shaikat, rabbii, rafsuntaskin, itowhid06, wedevs
3
  Donate link: https://tareq.co/donate/
4
  Tags: Forms, registration, profile-builder, login, membership
5
  Requires at least: 4.0
6
- Tested up to: 4.9.4
7
  Requires PHP: 5.4
8
  Stable tag: trunk
9
  License: GPLv2
@@ -171,6 +171,23 @@ redirected to the edit page with that post id. Then you'll see the edit post for
171
 
172
  == Changelog ==
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  = v2.8.7 (09 April, 2018) =
175
 
176
  * **New:** Added WP User Frontend Guten Block
3
  Donate link: https://tareq.co/donate/
4
  Tags: Forms, registration, profile-builder, login, membership
5
  Requires at least: 4.0
6
+ Tested up to: 4.9.6
7
  Requires PHP: 5.4
8
  Stable tag: trunk
9
  License: GPLv2
171
 
172
  == Changelog ==
173
 
174
+ = v2.8.8 (16 May, 2018) =
175
+
176
+ * **New:** Allow override form input style using theme styling.
177
+ * **Improved:** Nocaptcha recaptcha wasn't working when allow_url_fopen is disabled is fixed.
178
+ * **Improved:** Free pack users were not showing in subscribers list, now they will.
179
+ * **Improved:** If login override is disabled redirect to default wordpress register page.
180
+ * **Improved:** Updated image upload field style.
181
+ * **Improved:** Updated logged in user display style.
182
+ * **Improved:** Added label in featured image field.
183
+ * **Improved:** Changed content of subscription expiration mail.
184
+ * **Fix:** Taxonomy fields checkboxes were disappearing from builder in some cases, now they won't.
185
+ * **Fix:** Fallback cost calculation was inaccurate, it is fixed now.
186
+ * **Fix:** Subscription expiry date showing wrong time for unlimited packs, it is fixed now.
187
+ * **Fix:** User subscription deletion gets reverted if updated, it is fixed now.
188
+ * **Fix:** Fixed some issues in Advanced Custom Fields(Free) compatibility
189
+ * **Fix:** Fixed some translations issues.
190
+
191
  = v2.8.7 (09 April, 2018) =
192
 
193
  * **New:** Added WP User Frontend Guten Block
templates/dashboard.php CHANGED
@@ -10,7 +10,9 @@
10
  <?php
11
  $labels = array();
12
  foreach ($post_type_obj as $key => $post_type_name) {
13
- $labels[] = $post_type_name->label;
 
 
14
  }
15
  printf( __( 'You have created <span>%d</span> (%s)', 'wpuf' ), $dashboard_query->found_posts, implode( ', ', $labels ) );
16
  ?>
10
  <?php
11
  $labels = array();
12
  foreach ($post_type_obj as $key => $post_type_name) {
13
+ if ( isset( $post_type_name->label ) ) {
14
+ $labels[] = $post_type_name->label;
15
+ }
16
  }
17
  printf( __( 'You have created <span>%d</span> (%s)', 'wpuf' ), $dashboard_query->found_posts, implode( ', ', $labels ) );
18
  ?>
templates/dashboard/subscription.php CHANGED
@@ -1,3 +1,4 @@
 
1
  <div class="wpuf_sub_info">
2
  <h3><?php _e( 'Subscription Details', 'wpuf' ); ?></h3>
3
  <div class="wpuf-text">
@@ -33,12 +34,10 @@
33
  <?php
34
  if ( $user_sub['recurring'] != 'yes' ) {
35
  if ( ! empty( $user_sub['expire'] ) ) {
36
-
37
- $expire = ( $user_sub['expire'] == 'unlimited' ) ? ucfirst( 'unlimited' ) : wpuf_date2mysql( $user_sub['expire'] );
38
-
39
  ?>
40
  <div class="wpuf-expire">
41
- <strong><?php echo _e( 'Expire date:', 'wpuf' ); ?></strong> <?php echo wpuf_get_date( $expire ); ?>
42
  </div>
43
  <?php
44
  }
1
+ <p><?php _e( "You've subscribed to the following package.", 'wpuf' ); ?></p>
2
  <div class="wpuf_sub_info">
3
  <h3><?php _e( 'Subscription Details', 'wpuf' ); ?></h3>
4
  <div class="wpuf-text">
34
  <?php
35
  if ( $user_sub['recurring'] != 'yes' ) {
36
  if ( ! empty( $user_sub['expire'] ) ) {
37
+ $expiry_date = ( $user_sub['expire'] == 'unlimited' ) ? ucfirst( 'unlimited' ) : wpuf_get_date( wpuf_date2mysql( $user_sub['expire'] ) );
 
 
38
  ?>
39
  <div class="wpuf-expire">
40
+ <strong><?php echo _e( 'Expire date:', 'wpuf' ); ?></strong> <?php echo $expiry_date ?>
41
  </div>
42
  <?php
43
  }
templates/logged-in.php CHANGED
@@ -1,12 +1,11 @@
1
- <div class="wpuf-user-loggedin">
2
-
3
- <span class="wpuf-user-avatar">
4
- <?php echo get_avatar( $user->ID ); ?>
5
- </span>
6
-
7
- <ul>
8
- <li><?php printf( __( 'Hello %s', 'wpuf' ), $user->display_name ); ?></li>
9
- </ul>
10
-
11
- <?php printf( __( 'You are currently logged in! %s?', 'wpuf' ), wp_loginout( '', false ) ) ?>
12
- </div>
1
+ <div class="wpuf-user-loggedin">
2
+
3
+ <span class="wpuf-user-avatar">
4
+ <?php echo get_avatar( $user->ID ); ?>
5
+ </span>
6
+
7
+ <br>
8
+ <h3> <?php printf( __( 'Hello, %s', 'wpuf' ), $user->display_name ); ?> </h3>
9
+
10
+ <?php printf( __( 'You are currently logged in! %s?', 'wpuf' ), wp_loginout( '', false ) ) ?>
11
+ </div>
 
templates/subscriptions/listing.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Subscriptions Template to Display list of subscriptions packages
4
+ *
5
+ * @version 2.8.8
6
+ *
7
+ * @var $subscription WPUF_Subscription
8
+ * @var $packs array
9
+ * @var $pack_order array
10
+ * @var $args array
11
+ * @var $details_meta
12
+ * @var $current_pack
13
+ */
14
+
15
+ do_action( 'wpuf_before_subscription_listing', $packs );
16
+
17
+ if ( $packs ) {
18
+ echo '<ul class="wpuf_packs">';
19
+ if ( isset($args['include']) && $args['include'] != "" ) {
20
+ for ( $i = 0; $i < count( $pack_order ); $i++ ) {
21
+ foreach ($packs as $pack) {
22
+ if ( (int) $pack->ID == $pack_order[$i] ) {
23
+ $class = 'wpuf-pack-' . $pack->ID;
24
+ ?>
25
+ <li class="<?php echo $class; ?>">
26
+ <?php $subscription->pack_details( $pack, $details_meta, isset( $current_pack['pack_id'] ) ? $current_pack['pack_id'] : '' ); ?>
27
+ </li>
28
+ <?php
29
+ }
30
+ }
31
+ }
32
+ } else {
33
+ foreach ($packs as $pack) {
34
+ $class = 'wpuf-pack-' . $pack->ID;
35
+ ?>
36
+ <li class="<?php echo $class; ?>">
37
+ <?php $subscription->pack_details( $pack, $details_meta, isset( $current_pack['pack_id'] ) ? $current_pack['pack_id'] : '' ); ?>
38
+ </li>
39
+ <?php
40
+ }
41
+ }
42
+ echo '</ul>';
43
+ }
44
+
45
+ do_action( 'wpuf_after_subscription_listing', $packs );
templates/subscriptions/pack-details.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Subscription single pack details template
4
+ *
5
+ * @version 2.8.8
6
+ *
7
+ * @var $pack WP_Post
8
+ * @var $billing_amount
9
+ * @var $details_meta
10
+ * @var $recurring_des
11
+ * @var $trial_des
12
+ * @var $coupon_status
13
+ * @var $current_pack_id
14
+ * @var $button_name
15
+ *
16
+ */
17
+ ?>
18
+ <div class="wpuf-pricing-wrap">
19
+ <h3><?php echo wp_kses_post( $pack->post_title ); ?> </h3>
20
+ <div class="wpuf-sub-amount">
21
+
22
+ <?php if ( $billing_amount != '0.00' ) { ?>
23
+ <sup class="wpuf-sub-symbol"><?php echo $details_meta['symbol']; ?></sup>
24
+ <span class="wpuf-sub-cost"><?php echo $billing_amount; ?></span>
25
+ <?php } else { ?>
26
+ <span class="wpuf-sub-cost"><?php _e( 'Free', 'wpuf' ); ?></span>
27
+ <?php } ?>
28
+
29
+ <?php _e( $recurring_des , 'wpuf' ); ?>
30
+
31
+ </div>
32
+ <?php
33
+ if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
34
+ ?>
35
+ <div class="wpuf-sub-body wpuf-nullamount-hide">
36
+ <div class="wpuf-sub-terms"><?php echo $trial_des; ?></div>
37
+ </div>
38
+ <?php
39
+ }
40
+ ?>
41
+ </div>
42
+ <div class="wpuf-sub-desciption">
43
+ <?php echo wpautop( wp_kses_post( $pack->post_content ) ); ?>
44
+ </div>
45
+ <?php
46
+ if ( isset( $_GET['action'] ) && $_GET['action'] == 'wpuf_pay' || $coupon_status ) {
47
+ return;
48
+ }
49
+ ?>
50
+ <div class="wpuf-sub-button">
51
+ <a <?php echo ( $current_pack_id != '' ) ? ' class = "wpuf-disabled-link" ' : '' ;?> href="<?php echo ( $current_pack_id != '' ) ? 'javascript:' : add_query_arg( $query_args, $query_url ) ?>" onclick="<?php echo esc_attr( $details_meta['onclick'] ); ?>">
52
+ <?php echo $button_name; ?>
53
+ </a>
54
+ </div>
wpuf-functions.php CHANGED
@@ -365,6 +365,10 @@ function wpuf_category_checklist( $post_id = 0, $selected_cats = false, $attr =
365
  $tax = $attr['name'];
366
  $current_user = get_current_user_id();
367
 
 
 
 
 
368
  if ( $post_id ) {
369
  $args['selected_cats'] = wp_get_object_terms( $post_id, $tax, array('fields' => 'ids') );
370
  } elseif ( $selected_cats ) {
@@ -835,11 +839,15 @@ function wpuf_show_custom_fields( $content ) {
835
  $html .= sprintf( '<li><label>%s</label>: %s</li>', $attr['label'], make_clickable( $modified_value ) );
836
  }
837
  } elseif ( ( $attr['input_type'] == 'checkbox' || $attr['input_type'] == 'multiselect' ) && is_array( $value ) ) {
838
- $modified_value = implode( $separator, $value[0] );
839
 
840
- if ( $modified_value ) {
841
- $html .= sprintf( '<li><label>%s</label>: %s</li>', $attr['label'], make_clickable( $modified_value ) );
 
 
 
 
842
  }
 
843
  } else {
844
 
845
  $new = implode( ', ', $value );
365
  $tax = $attr['name'];
366
  $current_user = get_current_user_id();
367
 
368
+ $args = array(
369
+ 'taxonomy' => $tax,
370
+ );
371
+
372
  if ( $post_id ) {
373
  $args['selected_cats'] = wp_get_object_terms( $post_id, $tax, array('fields' => 'ids') );
374
  } elseif ( $selected_cats ) {
839
  $html .= sprintf( '<li><label>%s</label>: %s</li>', $attr['label'], make_clickable( $modified_value ) );
840
  }
841
  } elseif ( ( $attr['input_type'] == 'checkbox' || $attr['input_type'] == 'multiselect' ) && is_array( $value ) ) {
 
842
 
843
+ if ( !empty( $value[0] ) ) {
844
+ $modified_value = implode( $separator, $value[0] );
845
+
846
+ if ( $modified_value ) {
847
+ $html .= sprintf( '<li><label>%s</label>: %s</li>', $attr['label'], make_clickable( $modified_value ) );
848
+ }
849
  }
850
+
851
  } else {
852
 
853
  $new = implode( ', ', $value );
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.8.7
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.8.7' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
@@ -439,6 +439,8 @@ final class WP_User_Frontend {
439
  wp_register_style( 'wpuf-layout1', WPUF_ASSET_URI . '/css/frontend-form/layout1.css' );
440
  wp_register_style( 'wpuf-layout2', WPUF_ASSET_URI . '/css/frontend-form/layout2.css' );
441
  wp_register_style( 'wpuf-layout3', WPUF_ASSET_URI . '/css/frontend-form/layout3.css' );
 
 
442
 
443
  wp_enqueue_script( 'wpuf-subscriptions', WPUF_ASSET_URI . '/js/subscriptions.js', array( 'jquery' ), false, true );
444
 
@@ -491,12 +493,12 @@ final class WP_User_Frontend {
491
  wp_enqueue_script( 'jquery-ui-timepicker', WPUF_ASSET_URI . '/js/jquery-ui-timepicker-addon.js', array( 'jquery-ui-datepicker' ) );
492
  wp_enqueue_script( 'wpuf-upload', WPUF_ASSET_URI . '/js/upload.js', array( 'jquery', 'plupload-handlers' ) );
493
 
494
- wp_localize_script( 'wpuf-form', 'wpuf_frontend', array(
495
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
496
- 'error_message' => __( 'Please fix the errors to proceed', 'wpuf' ),
497
- 'nonce' => wp_create_nonce( 'wpuf_nonce' ),
498
- 'word_limit' => __( 'Word limit reached', 'wpuf' )
499
- ) );
500
 
501
  wp_localize_script( 'wpuf-upload', 'wpuf_frontend_upload', array(
502
  'confirmMsg' => __( 'Are you sure?', 'wpuf' ),
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.8.8
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.8.8' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
439
  wp_register_style( 'wpuf-layout1', WPUF_ASSET_URI . '/css/frontend-form/layout1.css' );
440
  wp_register_style( 'wpuf-layout2', WPUF_ASSET_URI . '/css/frontend-form/layout2.css' );
441
  wp_register_style( 'wpuf-layout3', WPUF_ASSET_URI . '/css/frontend-form/layout3.css' );
442
+ wp_register_style( 'wpuf-layout4', WPUF_ASSET_URI . '/css/frontend-form/layout4.css' );
443
+ wp_register_style( 'wpuf-layout5', WPUF_ASSET_URI . '/css/frontend-form/layout5.css' );
444
 
445
  wp_enqueue_script( 'wpuf-subscriptions', WPUF_ASSET_URI . '/js/subscriptions.js', array( 'jquery' ), false, true );
446
 
493
  wp_enqueue_script( 'jquery-ui-timepicker', WPUF_ASSET_URI . '/js/jquery-ui-timepicker-addon.js', array( 'jquery-ui-datepicker' ) );
494
  wp_enqueue_script( 'wpuf-upload', WPUF_ASSET_URI . '/js/upload.js', array( 'jquery', 'plupload-handlers' ) );
495
 
496
+ wp_localize_script( 'wpuf-form', 'wpuf_frontend', apply_filters( 'wpuf_frontend_js_data' , array(
497
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
498
+ 'error_message' => __( 'Please fix the errors to proceed', 'wpuf' ),
499
+ 'nonce' => wp_create_nonce( 'wpuf_nonce' ),
500
+ 'word_limit' => __( 'Word limit reached', 'wpuf' )
501
+ )) );
502
 
503
  wp_localize_script( 'wpuf-upload', 'wpuf_frontend_upload', array(
504
  'confirmMsg' => __( 'Are you sure?', 'wpuf' ),