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

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.9
Comparing to
See all releases

Code changes from version 2.8.8 to 2.8.9

Files changed (123) hide show
  1. admin/class-admin-settings.php +12 -12
  2. admin/class-admin-subscription.php +56 -56
  3. admin/class-admin-welcome.php +1 -1
  4. admin/class-tools.php +38 -38
  5. admin/form-builder/class-wpuf-admin-form-builder-ajax.php +2 -2
  6. admin/form-builder/class-wpuf-admin-form-builder.php +20 -20
  7. admin/form-builder/class-wpuf-form-builder-field-settings.php +122 -122
  8. admin/form-builder/views/form-builder.php +10 -10
  9. admin/form-handler.php +10 -10
  10. admin/form-template.php +4 -4
  11. admin/form.php +91 -91
  12. admin/html/form-settings-display.php +11 -11
  13. admin/html/form-settings-payment.php +16 -16
  14. admin/html/form-settings-post-edit.php +15 -15
  15. admin/html/form-settings-post.php +29 -29
  16. admin/html/form-submission-restriction.php +35 -35
  17. admin/html/modal.php +10 -10
  18. admin/html/support.php +35 -35
  19. admin/html/whats-new.php +117 -81
  20. admin/installer.php +15 -15
  21. admin/post-forms-list-table-view.php +4 -4
  22. admin/post-forms-list-table.php +23 -24
  23. admin/posting.php +15 -15
  24. admin/premium.php +75 -75
  25. admin/promotion.php +2 -2
  26. admin/settings-options.php +137 -122
  27. admin/subscribers.php +2 -2
  28. admin/template-post.php +34 -34
  29. admin/template.php +61 -61
  30. admin/tools.php +3 -3
  31. admin/transactions.php +1 -1
  32. admin/weforms.php +4 -4
  33. assets/css/admin.css +0 -0
  34. assets/css/frontend-forms.css +12 -2
  35. assets/css/wpuf-form-builder.css +1 -1
  36. assets/images/completed.png +0 -0
  37. assets/images/help/bugs.svg +0 -0
  38. assets/images/help/customization.svg +0 -0
  39. assets/images/help/docs.svg +0 -0
  40. assets/images/help/like.svg +0 -0
  41. assets/images/help/support.svg +0 -0
  42. assets/images/icon-128x128.png +0 -0
  43. assets/images/processing.png +0 -0
  44. assets/js/billing-address.js +21 -0
  45. assets/js/subscriptions.js +2 -2
  46. assets/js/upload.js +6 -4
  47. assets/less/admin.less +0 -661
  48. assets/less/frontend-forms.less +0 -1538
  49. assets/less/help.less +0 -278
  50. assets/less/metabox-tabs.less +0 -76
  51. assets/less/whats-new.less +0 -116
  52. assets/vendor/sweetalert2/package.json +0 -178
  53. assets/vendor/vue/vue.js +0 -0
  54. assets/vendor/vue/vue.min.js +0 -0
  55. assets/vendor/vuex/vuex.js +0 -0
  56. assets/vendor/vuex/vuex.min.js +0 -0
  57. class/asset-loader.php +10 -10
  58. class/frontend-account.php +16 -16
  59. class/frontend-dashboard.php +4 -4
  60. class/frontend-form-post.php +17 -17
  61. class/payment.php +44 -38
  62. class/post-form-templates/post.php +29 -28
  63. class/render-form.php +13 -13
  64. class/subscription.php +44 -43
  65. class/transactions-list-table.php +33 -30
  66. class/upload.php +4 -4
  67. includes/class-acf.php +7 -7
  68. includes/class-billing-address.php +187 -87
  69. includes/class-customizer.php +115 -0
  70. includes/class-dokan-integration.php +5 -5
  71. includes/class-form-preview.php +2 -2
  72. includes/class-gutenblock.php +1 -1
  73. includes/class-list-table-subscribers.php +12 -12
  74. includes/class-login-widget.php +38 -38
  75. includes/class-privacy.php +562 -0
  76. includes/class-user-subscription.php +10 -10
  77. includes/class-user.php +46 -1
  78. includes/class-whats-new.php +5 -5
  79. includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php +14 -14
  80. includes/free/admin/shortcode-builder.php +6 -6
  81. includes/free/admin/shortcode-button.php +8 -8
  82. includes/free/class-login.php +39 -31
  83. includes/free/class-registration.php +12 -12
  84. includes/free/edit-profile.php +25 -25
  85. includes/free/edit-user.php +23 -23
  86. includes/free/form-element.php +66 -66
  87. includes/free/loader.php +13 -13
  88. includes/free/post-form-templates/woocommerce.php +2 -2
  89. includes/free/subscription.php +2 -2
  90. includes/setup-wizard.php +32 -32
  91. languages/{wpuf-es_ES.mo → wp-user-frontend-es_ES.mo} +0 -0
  92. languages/{wpuf-es_ES.po → wp-user-frontend-es_ES.po} +0 -0
  93. languages/{wpuf-fa_IR.mo → wp-user-frontend-fa_IR.mo} +0 -0
  94. languages/{wpuf-fa_IR.po → wp-user-frontend-fa_IR.po} +0 -0
  95. languages/{wpuf-tr_TR.mo → wp-user-frontend-tr_TR.mo} +0 -0
  96. languages/{wpuf-tr_TR.po → wp-user-frontend-tr_TR.po} +0 -0
  97. languages/{wpuf-zh_CN.mo → wp-user-frontend-zh_CN.mo} +0 -0
  98. languages/{wpuf-zh_CN.po → wp-user-frontend-zh_CN.po} +0 -0
  99. languages/{wpuf.pot → wp-user-frontend.pot} +827 -367
  100. lib/class-wedevs-insights.php +9 -9
  101. lib/class-weforms-upsell.php +4 -4
  102. lib/class.settings-api.php +1 -1
  103. lib/gateway/bank.php +9 -9
  104. lib/gateway/paypal.php +6 -6
  105. readme.txt +15 -1
  106. templates/dashboard.php +19 -19
  107. templates/dashboard/billing-address.php +8 -8
  108. templates/dashboard/dashboard.php +2 -2
  109. templates/dashboard/edit-profile.php +11 -11
  110. templates/dashboard/posts.php +17 -17
  111. templates/dashboard/subscription.php +9 -9
  112. templates/dokan/new-post.php +1 -1
  113. templates/dokan/post-listing.php +1 -1
  114. templates/logged-in.php +2 -2
  115. templates/login-form.php +4 -4
  116. templates/lost-pass-form.php +2 -2
  117. templates/registration-form.php +7 -7
  118. templates/reset-pass-form.php +3 -3
  119. templates/subscriptions/pack-details.php +2 -2
  120. templates/unauthorized.php +1 -1
  121. views/welcome-page.php +4 -4
  122. wpuf-functions.php +109 -84
  123. wpuf.php +34 -21
admin/class-admin-settings.php CHANGED
@@ -84,9 +84,9 @@ class WPUF_Admin_Settings {
84
  $capability = wpuf_admin_role();
85
 
86
  // Translation issue: Hook name change due to translate menu title
87
- $this->menu_pages[] = add_menu_page( __( 'WP User Frontend', 'wpuf' ), __( 'User Frontend', '' ), $capability, 'wp-user-frontend', array($this, 'wpuf_post_forms_page'), 'data:image/svg+xml;base64,' . base64_encode( '<svg width="83px" height="76px" viewBox="0 0 83 76" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="wpuf-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="ufp" fill-rule="nonzero" fill="#9EA3A8"><path d="M49.38,51.88 C49.503348,56.4604553 45.8999295,60.2784694 41.32,60.42 C36.7400705,60.2784694 33.136652,56.4604553 33.26,51.88 L33.26,40.23 L19,40.23 L19,51.88 C19,64.77 29,75.25 41.36,75.26 L41.36,75.26 C47.3622079,75.2559227 53.0954073,72.7693647 57.2,68.39 C61.4213559,63.9375842 63.7575868,58.0253435 63.72,51.89 L63.72,40.23 L49.38,40.23 L49.38,51.88 Z" id="Shape"></path><polygon id="Shape" points="32.96 0.59 0 0.59 3.77 16.68 32.96 16.68"></polygon><path d="M68,0 L49.75,0 L49.75,16.1 L68,16.1 C68.74,16.1 69.39,17.1 69.39,18.24 C69.39,19.38 68.74,20.38 68,20.38 L49.75,20.38 L49.75,36.5 L68,36.5 C76,36.5 82.5,28.31 82.5,18.25 C82.5,8.19 76,0 68,0 Z" id="Shape"></path><polygon id="Shape" points="32.96 20.41 5.31 20.41 9.07 36.5 32.96 36.5"></polygon></g></g></svg>' ), 55 );
88
 
89
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Post Forms', 'wpuf' ), __( 'Post Forms', 'wpuf' ), $capability, 'wpuf-post-forms', array( $this, 'wpuf_post_forms_page' ) );
90
  remove_submenu_page( 'wp-user-frontend', 'wp-user-frontend' );
91
 
92
  /**
@@ -95,29 +95,29 @@ class WPUF_Admin_Settings {
95
  do_action( 'wpuf_admin_menu_top' );
96
 
97
  if ( !class_exists( 'WeForms' ) ) {
98
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'weForms', 'wpuf' ), __( 'Contact Form', 'wpuf' ), $capability, 'wpuf_weforms', array($this, 'weforms_page') );
99
  }
100
  if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
101
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Subscriptions', 'wpuf' ), __( 'Subscriptions', 'wpuf' ), $capability, 'edit.php?post_type=wpuf_subscription' );
102
  }
103
 
104
  do_action( 'wpuf_admin_menu' );
105
 
106
  if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
107
- $transactions_page = add_submenu_page( 'wp-user-frontend', __( 'Transactions', 'wpuf' ), __( 'Transactions', 'wpuf' ), $capability, 'wpuf_transaction', array($this, 'transactions_page') );
108
  }
109
 
110
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Tools', 'wpuf' ), __( 'Tools', 'wpuf' ), $capability, 'wpuf_tools', array($this, 'tools_page') );
111
 
112
  do_action( 'wpuf_admin_menu_bottom' );
113
 
114
  if ( !class_exists( 'WP_User_Frontend_Pro' ) ) {
115
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Premium', 'wpuf' ), __( 'Premium', 'wpuf' ), $capability, 'wpuf_premium', array($this, 'premium_page') );
116
  }
117
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Help', 'wpuf' ), __( '<span style="color:#f18500">Help</span>', 'wpuf' ), $capability, 'wpuf-support', array($this, 'support_page') );
118
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Settings', 'wpuf' ), __( 'Settings', 'wpuf' ), $capability, 'wpuf-settings', array($this, 'plugin_page') );
119
 
120
- $this->menu_pages[] = add_submenu_page( 'edit.php?post_type=wpuf_subscription', __( 'Subscribers', 'wpuf' ), __( 'Subscribers', 'wpuf' ), $capability, 'wpuf_subscribers', array($this, 'subscribers_page') );
121
  $_registered_pages['user-frontend_page_wpuf_subscribers'] = true; // hack to work the nested subscribers page
122
 
123
  // manually add subsription page
@@ -153,7 +153,7 @@ class WPUF_Admin_Settings {
153
  ?>
154
  <div class="wrap">
155
 
156
- <h2 style="margin-bottom: 15px;"><?php _e( 'Settings', 'wpuf' ) ?></h2>
157
  <div class="wpuf-settings-wrap">
158
  <?php
159
  settings_errors();
@@ -374,7 +374,7 @@ class WPUF_Admin_Settings {
374
  public function transactions_screen_option() {
375
  $option = 'per_page';
376
  $args = array(
377
- 'label' => __( 'Number of items per page:', 'wpuf' ),
378
  'default' => 20,
379
  'option' => 'transactions_per_page'
380
  );
84
  $capability = wpuf_admin_role();
85
 
86
  // Translation issue: Hook name change due to translate menu title
87
+ $this->menu_pages[] = add_menu_page( __( 'WP User Frontend', 'wp-user-frontend' ), __( 'User Frontend', '' ), $capability, 'wp-user-frontend', array($this, 'wpuf_post_forms_page'), 'data:image/svg+xml;base64,' . base64_encode( '<svg width="83px" height="76px" viewBox="0 0 83 76" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="wpuf-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="ufp" fill-rule="nonzero" fill="#9EA3A8"><path d="M49.38,51.88 C49.503348,56.4604553 45.8999295,60.2784694 41.32,60.42 C36.7400705,60.2784694 33.136652,56.4604553 33.26,51.88 L33.26,40.23 L19,40.23 L19,51.88 C19,64.77 29,75.25 41.36,75.26 L41.36,75.26 C47.3622079,75.2559227 53.0954073,72.7693647 57.2,68.39 C61.4213559,63.9375842 63.7575868,58.0253435 63.72,51.89 L63.72,40.23 L49.38,40.23 L49.38,51.88 Z" id="Shape"></path><polygon id="Shape" points="32.96 0.59 0 0.59 3.77 16.68 32.96 16.68"></polygon><path d="M68,0 L49.75,0 L49.75,16.1 L68,16.1 C68.74,16.1 69.39,17.1 69.39,18.24 C69.39,19.38 68.74,20.38 68,20.38 L49.75,20.38 L49.75,36.5 L68,36.5 C76,36.5 82.5,28.31 82.5,18.25 C82.5,8.19 76,0 68,0 Z" id="Shape"></path><polygon id="Shape" points="32.96 20.41 5.31 20.41 9.07 36.5 32.96 36.5"></polygon></g></g></svg>' ), 55 );
88
 
89
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Post Forms', 'wp-user-frontend' ), __( 'Post Forms', 'wp-user-frontend' ), $capability, 'wpuf-post-forms', array( $this, 'wpuf_post_forms_page' ) );
90
  remove_submenu_page( 'wp-user-frontend', 'wp-user-frontend' );
91
 
92
  /**
95
  do_action( 'wpuf_admin_menu_top' );
96
 
97
  if ( !class_exists( 'WeForms' ) ) {
98
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'weForms', 'wp-user-frontend' ), __( 'Contact Form', 'wp-user-frontend' ), $capability, 'wpuf_weforms', array($this, 'weforms_page') );
99
  }
100
  if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
101
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Subscriptions', 'wp-user-frontend' ), __( 'Subscriptions', 'wp-user-frontend' ), $capability, 'edit.php?post_type=wpuf_subscription' );
102
  }
103
 
104
  do_action( 'wpuf_admin_menu' );
105
 
106
  if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
107
+ $transactions_page = add_submenu_page( 'wp-user-frontend', __( 'Transactions', 'wp-user-frontend' ), __( 'Transactions', 'wp-user-frontend' ), $capability, 'wpuf_transaction', array($this, 'transactions_page') );
108
  }
109
 
110
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Tools', 'wp-user-frontend' ), __( 'Tools', 'wp-user-frontend' ), $capability, 'wpuf_tools', array($this, 'tools_page') );
111
 
112
  do_action( 'wpuf_admin_menu_bottom' );
113
 
114
  if ( !class_exists( 'WP_User_Frontend_Pro' ) ) {
115
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Premium', 'wp-user-frontend' ), __( 'Premium', 'wp-user-frontend' ), $capability, 'wpuf_premium', array($this, 'premium_page') );
116
  }
117
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Help', 'wp-user-frontend' ), __( '<span style="color:#f18500">Help</span>', 'wp-user-frontend' ), $capability, 'wpuf-support', array($this, 'support_page') );
118
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Settings', 'wp-user-frontend' ), __( 'Settings', 'wp-user-frontend' ), $capability, 'wpuf-settings', array($this, 'plugin_page') );
119
 
120
+ $this->menu_pages[] = add_submenu_page( 'edit.php?post_type=wpuf_subscription', __( 'Subscribers', 'wp-user-frontend' ), __( 'Subscribers', 'wp-user-frontend' ), $capability, 'wpuf_subscribers', array($this, 'subscribers_page') );
121
  $_registered_pages['user-frontend_page_wpuf_subscribers'] = true; // hack to work the nested subscribers page
122
 
123
  // manually add subsription page
153
  ?>
154
  <div class="wrap">
155
 
156
+ <h2 style="margin-bottom: 15px;"><?php _e( 'Settings', 'wp-user-frontend' ) ?></h2>
157
  <div class="wpuf-settings-wrap">
158
  <?php
159
  settings_errors();
374
  public function transactions_screen_option() {
375
  $option = 'per_page';
376
  $args = array(
377
+ 'label' => __( 'Number of items per page:', 'wp-user-frontend' ),
378
  'default' => 20,
379
  'option' => 'transactions_per_page'
380
  );
admin/class-admin-subscription.php CHANGED
@@ -57,7 +57,7 @@ class WPUF_Admin_Subscription {
57
  * Add settings metaboxes
58
  */
59
  public function add_meta_boxes() {
60
- add_meta_box( 'wpuf-metabox-subscription', __( 'Pack Description', 'wpuf' ), array($this, 'pack_description_metabox'), 'wpuf_subscription', 'normal', 'high' );
61
  add_meta_box( 'wpuf_subs_metabox', 'Subscription Options', array( $this, 'subs_meta_box' ), 'wpuf_subscription' );
62
  }
63
 
@@ -70,16 +70,16 @@ class WPUF_Admin_Subscription {
70
  function form_updated_message( $messages ) {
71
  $message = array(
72
  0 => '',
73
- 1 => __( 'Subscription pack updated.', 'wpuf' ),
74
- 2 => __( 'Custom field updated.', 'wpuf' ),
75
- 3 => __( 'Custom field deleted.', 'wpuf' ),
76
- 4 => __( 'Subscription pack updated.', 'wpuf' ),
77
- 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Subscription pack restored to revision from %s', 'wpuf' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
78
- 6 => __( 'Subscription pack published.', 'wpuf' ),
79
- 7 => __( 'Subscription pack saved.', 'wpuf' ),
80
- 8 => __( 'Subscription pack submitted.', 'wpuf' ),
81
  9 => '',
82
- 10 => __( 'Subscription pack draft updated.', 'wpuf' ),
83
  );
84
 
85
  $messages['wpuf_subscription'] = $message;
@@ -149,7 +149,7 @@ class WPUF_Admin_Subscription {
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
 
@@ -190,11 +190,11 @@ class WPUF_Admin_Subscription {
190
  */
191
  function subscription_columns_head( $head ) {
192
  unset($head['date']);
193
- $head['title'] = __( 'Pack Name', 'wpuf' );
194
- $head['amount'] = __( 'Amount', 'wpuf' );
195
- $head['subscribers'] = __( 'Subscribers', 'wpuf' );
196
- $head['recurring'] = __( 'Recurring', 'wpuf' );
197
- $head['duration'] = __( 'Duration', 'wpuf' );
198
 
199
  return $head;
200
  }
@@ -213,7 +213,7 @@ class WPUF_Admin_Subscription {
213
 
214
  $amount = get_post_meta( $post_ID, '_billing_amount', true );
215
  if ( intval($amount) == 0 ) {
216
- $amount = __( 'Free', 'wpuf' );
217
  } else {
218
  $amount = wpuf_format_price( $amount );
219
  }
@@ -231,9 +231,9 @@ class WPUF_Admin_Subscription {
231
 
232
  $recurring = get_post_meta( $post_ID, '_recurring_pay', true );
233
  if ( $recurring == 'yes' ) {
234
- _e( 'Yes', 'wpuf' );
235
  } else {
236
- _e( 'No', 'wpuf' );
237
  }
238
  break;
239
 
@@ -322,14 +322,14 @@ class WPUF_Admin_Subscription {
322
  <li class="tab-current">
323
  <a href="#wpuf-payment-settings">
324
  <span class="dashicons dashicons-cart"></span>
325
- <?php _e( 'Payment Settings', 'wpuf' ); ?>
326
  </a>
327
  </li>
328
 
329
  <li>
330
  <a href="#wpuf-post-restriction">
331
  <span class="dashicons dashicons-admin-post"></span>
332
- <?php _e( 'Posting Restriction', 'wpuf' ); ?>
333
  </a>
334
  </li>
335
 
@@ -343,8 +343,8 @@ class WPUF_Admin_Subscription {
343
  <tbody>
344
  <tr>
345
  <th><label for="wpuf-billing-amount">
346
- <span class="wpuf-biling-amount wpuf-subcription-expire" style="display: <?php echo $hidden_expire; ?>;"><?php _e( 'Billing amount:', 'wpuf' ); ?></span>
347
- <span class="wpuf-billing-cycle wpuf-recurring-child" style="display: <?php echo $hidden_recurring_class; ?>;"><?php _e( 'Billing amount each cycle:', 'wpuf' ); ?></span></label></th>
348
  <td>
349
  <?php echo wpuf_get_currency( 'symbol' ); ?>
350
  <input type="text" size="20" style="" id="wpuf-billing-amount" value="<?php echo esc_attr( $sub_meta['billing_amount'] ); ?>" name="billing_amount" />
@@ -352,7 +352,7 @@ class WPUF_Admin_Subscription {
352
  </td>
353
  </tr>
354
  <tr class="wpuf-subcription-expire" style="display: <?php echo $hidden_expire; ?>;">
355
- <th><label for="wpuf-expiration-number"><?php _e( 'Expires In:', 'wpuf' ); ?></label></th>
356
  <td>
357
  <input type="text" size="20" style="" id="wpuf-expiration-number" value="<?php echo esc_attr( $sub_meta['expiration_number'] ); ?>" name="expiration_number" />
358
 
@@ -376,12 +376,12 @@ class WPUF_Admin_Subscription {
376
  ?>
377
  <tr class="wpuf-metabox-post_expiration">
378
 
379
- <th><?php _e( 'Post Expiration', 'wpuf' ); ?></th>
380
 
381
  <td>
382
  <label>
383
  <input type="checkbox" id="wpuf-enable_post_expiration" name="post_expiration_settings[enable_post_expiration]" value="on" <?php echo $is_post_exp_selected;?> />
384
- <?php _e( 'Enable Post Expiration', 'wpuf' ); ?>
385
  </label>
386
  </td>
387
  </tr>
@@ -393,7 +393,7 @@ class WPUF_Admin_Subscription {
393
  'day' => 30
394
  );
395
  ?>
396
- <th class="wpuf-post-exp-time"> <?php _e( 'Post Expiration Time', 'wpuf' ); ?> </th>
397
  <td class="wpuf-post-exp-time">
398
  <select name="post_expiration_settings[expiration_time_value]" id="wpuf-expiration_time_value">
399
  <?php
@@ -418,7 +418,7 @@ class WPUF_Admin_Subscription {
418
  </tr>
419
  <tr class="wpuf_subscription_expiration_field">
420
  <th>
421
- <?php _e( 'Post Status', 'wpuf' ); ?>
422
  </th>
423
  <td>
424
  <?php $post_statuses = get_post_statuses();
@@ -432,26 +432,26 @@ class WPUF_Admin_Subscription {
432
  }
433
  ?>
434
  </select>
435
- <p class="description"><?php _e('Status of post after post expiration time is over ', 'wpuf' );?></p>
436
  </td>
437
  </tr>
438
  <tr class="wpuf_subscription_expiration_field">
439
  <th>
440
- <?php _e( 'Expiration Mail', 'wpuf' ); ?>
441
  </th>
442
  <td>
443
  <label>
444
  <input type="checkbox" name="post_expiration_settings[enable_mail_after_expired]" value="on" <?php echo $is_enable_mail_after_expired;?> />
445
- <?php _e( 'Send Expiration Email to Post Author', 'wpuf' ); ?>
446
  </label>
447
 
448
  <p class="help">
449
- <?php _e( 'Send Mail to Author After Exceeding Post Expiration Time', 'wpuf' ); ?>
450
  </p>
451
  </td>
452
  </tr>
453
  <tr class="wpuf_subscription_expiration_field">
454
- <th><?php _e( 'Expiration Message', 'wpuf' ); ?></th>
455
  <td>
456
  <textarea name="post_expiration_settings[post_expiration_message]" id="wpuf-post_expiration_message" cols="50" rows="5"><?php echo $post_expiration_message;?></textarea>
457
  </td>
@@ -514,10 +514,10 @@ class WPUF_Admin_Subscription {
514
  */
515
  function option_field( $selected ) {
516
  ?>
517
- <option value="day" <?php selected( $selected, 'day' ); ?> ><?php _e( 'Day(s)', 'wpuf' ); ?></option>
518
- <option value="week" <?php selected( $selected, 'week' ); ?> ><?php _e( 'Week(s)', 'wpuf' ); ?></option>
519
- <option value="month" <?php selected( $selected, 'month' ); ?> ><?php _e( 'Month(s)', 'wpuf'); ?></option>
520
- <option value="year" <?php selected( $selected, 'year' ); ?> ><?php _e( 'Year(s)', 'wpuf' ); ?></option>
521
  <?php
522
  }
523
 
@@ -558,7 +558,7 @@ class WPUF_Admin_Subscription {
558
  $pack_id = isset( $user_sub['pack_id'] ) ? $user_sub['pack_id'] : '';
559
  ?>
560
  <div class="wpuf-user-subscription" style="width: 640px;">
561
- <h3><?php _e( 'WPUF Subscription Information', 'wpuf' ); ?></h3>
562
 
563
  <?php
564
 
@@ -567,12 +567,12 @@ class WPUF_Admin_Subscription {
567
  $pack = WPUF_Subscription::get_subscription( $user_sub['pack_id'] );
568
  $details_meta = WPUF_Subscription::init()->get_details_meta_value();
569
 
570
- $billing_amount = ( isset( $pack->meta_value['billing_amount'] ) && intval( $pack->meta_value['billing_amount'] ) > 0 ) ? $details_meta['symbol'] . $pack->meta_value['billing_amount'] : __( 'Free', 'wpuf' );
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 = '';
@@ -584,7 +584,7 @@ class WPUF_Admin_Subscription {
584
  <div class="wpuf-sub-summary">
585
  <div class="sub-name">
586
  <span class="label">
587
- <?php _e( 'Subcription Name', 'wpuf' ); ?>
588
  </span>
589
 
590
  <span class="value">
@@ -594,7 +594,7 @@ class WPUF_Admin_Subscription {
594
 
595
  <div class="sub-price">
596
  <span class="label">
597
- <?php _e( 'Billing Info', 'wpuf' ); ?>
598
  </span>
599
 
600
  <span class="value">
@@ -608,13 +608,13 @@ class WPUF_Admin_Subscription {
608
 
609
  <?php if ( isset( $user_sub['recurring'] ) && $user_sub['recurring'] == 'yes' ) { ?>
610
  <div class="info">
611
- <p><?php _e( 'This user is using recurring subscription pack', 'wpuf' ); ?></p>
612
  </div>
613
  <?php } ?>
614
  </div>
615
 
616
  <div class="wpuf-sub-section remaining-posts">
617
- <h4><?php _e( 'Remaining Posting Count', 'wpuf'); ?></h4>
618
 
619
  <table class="form-table">
620
 
@@ -635,7 +635,7 @@ class WPUF_Admin_Subscription {
635
  </div>
636
 
637
  <div class="wpuf-sub-section post-expiration">
638
- <h4><?php _e( 'Subscription Expiration Info', 'wpuf' ); ?></h4>
639
 
640
  <table class="form-table">
641
  <?php
@@ -644,7 +644,7 @@ class WPUF_Admin_Subscription {
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
@@ -658,7 +658,7 @@ class WPUF_Admin_Subscription {
658
  $time_type = isset( $_post_expiration_time[1] ) && !empty( $_post_expiration_time[1] ) ? $_post_expiration_time[1] : 'day';
659
  ?>
660
  <tr>
661
- <th><label><?php echo _e('Post Expiration Enabled', 'wpuf'); ?></label></th>
662
  <td><input type="checkbox" class="wpuf-post-exp-enabled" name="is_post_expiration_enabled" value="on" <?php echo $is_post_exp_selected;?>></td>
663
  </tr>
664
  <tr class="wpuf-post-exp-time">
@@ -669,7 +669,7 @@ class WPUF_Admin_Subscription {
669
  'day' => 30
670
  );
671
  ?>
672
- <th><?php _e( 'Post Expiration Time', 'wpuf' ); ?></th>
673
  <td>
674
  <select name="post_expiration_settings[expiration_time_value]" id="wpuf-expiration_time_value">
675
  <?php
@@ -695,7 +695,7 @@ class WPUF_Admin_Subscription {
695
  </div>
696
 
697
  <div class="wpuf-sub-section tax-restriction">
698
- <h4><?php _e( 'Allowed Taxonomy Terms', 'wpuf' ); ?></h4>
699
 
700
  <table class="form-table">
701
  <tr>
@@ -750,17 +750,17 @@ class WPUF_Admin_Subscription {
750
 
751
  <?php if ( empty( $user_sub ) ): ?>
752
  <div class="wpuf-sub-actions">
753
- <a class="btn button-secondary wpuf-assing-pack-btn wpuf-add-pack" href="#"><?php _e( 'Assign Package', 'wpuf' ); ?></a>
754
- <a class="btn button-secondary wpuf-assing-pack-btn wpuf-cancel-pack" style="display:none;" href="#"><?php _e( 'Cancel', 'wpuf' ); ?></a>
755
  </div>
756
  <?php endif ?>
757
 
758
  <table class="form-table wpuf-pack-dropdown" disabled="disabled" style="display: none;">
759
  <tr>
760
- <th><label for="wpuf_sub_pack"><?php _e( 'Select Package:', 'wpuf' ); ?> </label></th>
761
  <td>
762
  <select name="pack_id" id="wpuf_sub_pack">
763
- <option value="-1"><?php _e( '&mdash; Select &mdash;', 'wpuf' ); ?></option>
764
  <?php $this->packdropdown_without_recurring( $packs, $pack_id );//WPUF_Subscription::init()->packdropdown( $packs, $selected = '' ); ?>
765
  </select>
766
  </td>
@@ -771,7 +771,7 @@ class WPUF_Admin_Subscription {
771
  do_action( 'wpuf_admin_subscription_content', $userdata->ID ) ?>
772
  <?php if ( !empty( $user_sub ) ): ?>
773
  <div class="wpuf-sub-actions">
774
- <a class="btn button-secondary wpuf-delete-pack-btn" href="javascript:" data-userid="<?php echo $userdata->ID; ?>" data-packid="<?php echo $user_sub['pack_id']; ?>"><?php _e( 'Delete Package', 'wpuf' ); ?></a>
775
  </div>
776
  <?php endif; ?>
777
  </div>
@@ -820,7 +820,7 @@ class WPUF_Admin_Subscription {
820
  <div class="wpuf-footer-help">
821
  <span class="wpuf-footer-help-content">
822
  <span class="dashicons dashicons-editor-help"></span>
823
- <?php printf( __( 'Learn more about <a href="%s" target="_blank">Subscription</a>', 'wpuf' ), 'https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/?utm_source=wpuf-footer-help&utm_medium=text-link&utm_campaign=learn-more-subscription' ); ?>
824
  </span>
825
  </div>
826
 
57
  * Add settings metaboxes
58
  */
59
  public function add_meta_boxes() {
60
+ add_meta_box( 'wpuf-metabox-subscription', __( 'Pack Description', 'wp-user-frontend' ), array($this, 'pack_description_metabox'), 'wpuf_subscription', 'normal', 'high' );
61
  add_meta_box( 'wpuf_subs_metabox', 'Subscription Options', array( $this, 'subs_meta_box' ), 'wpuf_subscription' );
62
  }
63
 
70
  function form_updated_message( $messages ) {
71
  $message = array(
72
  0 => '',
73
+ 1 => __( 'Subscription pack updated.', 'wp-user-frontend' ),
74
+ 2 => __( 'Custom field updated.', 'wp-user-frontend' ),
75
+ 3 => __( 'Custom field deleted.', 'wp-user-frontend' ),
76
+ 4 => __( 'Subscription pack updated.', 'wp-user-frontend' ),
77
+ 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Subscription pack restored to revision from %s', 'wp-user-frontend' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
78
+ 6 => __( 'Subscription pack published.', 'wp-user-frontend' ),
79
+ 7 => __( 'Subscription pack saved.', 'wp-user-frontend' ),
80
+ 8 => __( 'Subscription pack submitted.', 'wp-user-frontend' ),
81
  9 => '',
82
+ 10 => __( 'Subscription pack draft updated.', 'wp-user-frontend' ),
83
  );
84
 
85
  $messages['wpuf_subscription'] = $message;
149
  }
150
 
151
  $user_info = get_userdata( $user_id );
152
+ $cost = $pack->meta_value['billing_amount'];
153
  $billing_amount = apply_filters( 'wpuf_payment_amount', $cost );
154
  $tax_amount = $billing_amount - $cost;
155
 
190
  */
191
  function subscription_columns_head( $head ) {
192
  unset($head['date']);
193
+ $head['title'] = __( 'Pack Name', 'wp-user-frontend' );
194
+ $head['amount'] = __( 'Amount', 'wp-user-frontend' );
195
+ $head['subscribers'] = __( 'Subscribers', 'wp-user-frontend' );
196
+ $head['recurring'] = __( 'Recurring', 'wp-user-frontend' );
197
+ $head['duration'] = __( 'Duration', 'wp-user-frontend' );
198
 
199
  return $head;
200
  }
213
 
214
  $amount = get_post_meta( $post_ID, '_billing_amount', true );
215
  if ( intval($amount) == 0 ) {
216
+ $amount = __( 'Free', 'wp-user-frontend' );
217
  } else {
218
  $amount = wpuf_format_price( $amount );
219
  }
231
 
232
  $recurring = get_post_meta( $post_ID, '_recurring_pay', true );
233
  if ( $recurring == 'yes' ) {
234
+ _e( 'Yes', 'wp-user-frontend' );
235
  } else {
236
+ _e( 'No', 'wp-user-frontend' );
237
  }
238
  break;
239
 
322
  <li class="tab-current">
323
  <a href="#wpuf-payment-settings">
324
  <span class="dashicons dashicons-cart"></span>
325
+ <?php _e( 'Payment Settings', 'wp-user-frontend' ); ?>
326
  </a>
327
  </li>
328
 
329
  <li>
330
  <a href="#wpuf-post-restriction">
331
  <span class="dashicons dashicons-admin-post"></span>
332
+ <?php _e( 'Posting Restriction', 'wp-user-frontend' ); ?>
333
  </a>
334
  </li>
335
 
343
  <tbody>
344
  <tr>
345
  <th><label for="wpuf-billing-amount">
346
+ <span class="wpuf-biling-amount wpuf-subcription-expire" style="display: <?php echo $hidden_expire; ?>;"><?php _e( 'Billing amount:', 'wp-user-frontend' ); ?></span>
347
+ <span class="wpuf-billing-cycle wpuf-recurring-child" style="display: <?php echo $hidden_recurring_class; ?>;"><?php _e( 'Billing amount each cycle:', 'wp-user-frontend' ); ?></span></label></th>
348
  <td>
349
  <?php echo wpuf_get_currency( 'symbol' ); ?>
350
  <input type="text" size="20" style="" id="wpuf-billing-amount" value="<?php echo esc_attr( $sub_meta['billing_amount'] ); ?>" name="billing_amount" />
352
  </td>
353
  </tr>
354
  <tr class="wpuf-subcription-expire" style="display: <?php echo $hidden_expire; ?>;">
355
+ <th><label for="wpuf-expiration-number"><?php _e( 'Expires In:', 'wp-user-frontend' ); ?></label></th>
356
  <td>
357
  <input type="text" size="20" style="" id="wpuf-expiration-number" value="<?php echo esc_attr( $sub_meta['expiration_number'] ); ?>" name="expiration_number" />
358
 
376
  ?>
377
  <tr class="wpuf-metabox-post_expiration">
378
 
379
+ <th><?php _e( 'Post Expiration', 'wp-user-frontend' ); ?></th>
380
 
381
  <td>
382
  <label>
383
  <input type="checkbox" id="wpuf-enable_post_expiration" name="post_expiration_settings[enable_post_expiration]" value="on" <?php echo $is_post_exp_selected;?> />
384
+ <?php _e( 'Enable Post Expiration', 'wp-user-frontend' ); ?>
385
  </label>
386
  </td>
387
  </tr>
393
  'day' => 30
394
  );
395
  ?>
396
+ <th class="wpuf-post-exp-time"> <?php _e( 'Post Expiration Time', 'wp-user-frontend' ); ?> </th>
397
  <td class="wpuf-post-exp-time">
398
  <select name="post_expiration_settings[expiration_time_value]" id="wpuf-expiration_time_value">
399
  <?php
418
  </tr>
419
  <tr class="wpuf_subscription_expiration_field">
420
  <th>
421
+ <?php _e( 'Post Status', 'wp-user-frontend' ); ?>
422
  </th>
423
  <td>
424
  <?php $post_statuses = get_post_statuses();
432
  }
433
  ?>
434
  </select>
435
+ <p class="description"><?php _e('Status of post after post expiration time is over ', 'wp-user-frontend' );?></p>
436
  </td>
437
  </tr>
438
  <tr class="wpuf_subscription_expiration_field">
439
  <th>
440
+ <?php _e( 'Expiration Mail', 'wp-user-frontend' ); ?>
441
  </th>
442
  <td>
443
  <label>
444
  <input type="checkbox" name="post_expiration_settings[enable_mail_after_expired]" value="on" <?php echo $is_enable_mail_after_expired;?> />
445
+ <?php _e( 'Send Expiration Email to Post Author', 'wp-user-frontend' ); ?>
446
  </label>
447
 
448
  <p class="help">
449
+ <?php _e( 'Send Mail to Author After Exceeding Post Expiration Time', 'wp-user-frontend' ); ?>
450
  </p>
451
  </td>
452
  </tr>
453
  <tr class="wpuf_subscription_expiration_field">
454
+ <th><?php _e( 'Expiration Message', 'wp-user-frontend' ); ?></th>
455
  <td>
456
  <textarea name="post_expiration_settings[post_expiration_message]" id="wpuf-post_expiration_message" cols="50" rows="5"><?php echo $post_expiration_message;?></textarea>
457
  </td>
514
  */
515
  function option_field( $selected ) {
516
  ?>
517
+ <option value="day" <?php selected( $selected, 'day' ); ?> ><?php _e( 'Day(s)', 'wp-user-frontend' ); ?></option>
518
+ <option value="week" <?php selected( $selected, 'week' ); ?> ><?php _e( 'Week(s)', 'wp-user-frontend' ); ?></option>
519
+ <option value="month" <?php selected( $selected, 'month' ); ?> ><?php _e( 'Month(s)', 'wp-user-frontend'); ?></option>
520
+ <option value="year" <?php selected( $selected, 'year' ); ?> ><?php _e( 'Year(s)', 'wp-user-frontend' ); ?></option>
521
  <?php
522
  }
523
 
558
  $pack_id = isset( $user_sub['pack_id'] ) ? $user_sub['pack_id'] : '';
559
  ?>
560
  <div class="wpuf-user-subscription" style="width: 640px;">
561
+ <h3><?php _e( 'WPUF Subscription Information', 'wp-user-frontend' ); ?></h3>
562
 
563
  <?php
564
 
567
  $pack = WPUF_Subscription::get_subscription( $user_sub['pack_id'] );
568
  $details_meta = WPUF_Subscription::init()->get_details_meta_value();
569
 
570
+ $billing_amount = ( isset( $pack->meta_value['billing_amount'] ) && intval( $pack->meta_value['billing_amount'] ) > 0 ) ? $details_meta['symbol'] . $pack->meta_value['billing_amount'] : __( 'Free', 'wp-user-frontend' );
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', 'wp-user-frontend' ), $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', 'wp-user-frontend' ), $pack->meta_value['billing_limit'] ) : '';
576
  $recurring_des = $recurring_des;
577
  } else {
578
  $recurring_des = '';
584
  <div class="wpuf-sub-summary">
585
  <div class="sub-name">
586
  <span class="label">
587
+ <?php _e( 'Subcription Name', 'wp-user-frontend' ); ?>
588
  </span>
589
 
590
  <span class="value">
594
 
595
  <div class="sub-price">
596
  <span class="label">
597
+ <?php _e( 'Billing Info', 'wp-user-frontend' ); ?>
598
  </span>
599
 
600
  <span class="value">
608
 
609
  <?php if ( isset( $user_sub['recurring'] ) && $user_sub['recurring'] == 'yes' ) { ?>
610
  <div class="info">
611
+ <p><?php _e( 'This user is using recurring subscription pack', 'wp-user-frontend' ); ?></p>
612
  </div>
613
  <?php } ?>
614
  </div>
615
 
616
  <div class="wpuf-sub-section remaining-posts">
617
+ <h4><?php _e( 'Remaining Posting Count', 'wp-user-frontend'); ?></h4>
618
 
619
  <table class="form-table">
620
 
635
  </div>
636
 
637
  <div class="wpuf-sub-section post-expiration">
638
+ <h4><?php _e( 'Subscription Expiration Info', 'wp-user-frontend' ); ?></h4>
639
 
640
  <table class="form-table">
641
  <?php
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:' , 'wp-user-frontend'); ?></label></th>
648
  <td><input type="text" class="wpuf-date-picker" name="expire" value="<?php echo $expire; ?>"></td>
649
  </tr>
650
  <?php
658
  $time_type = isset( $_post_expiration_time[1] ) && !empty( $_post_expiration_time[1] ) ? $_post_expiration_time[1] : 'day';
659
  ?>
660
  <tr>
661
+ <th><label><?php echo _e('Post Expiration Enabled', 'wp-user-frontend'); ?></label></th>
662
  <td><input type="checkbox" class="wpuf-post-exp-enabled" name="is_post_expiration_enabled" value="on" <?php echo $is_post_exp_selected;?>></td>
663
  </tr>
664
  <tr class="wpuf-post-exp-time">
669
  'day' => 30
670
  );
671
  ?>
672
+ <th><?php _e( 'Post Expiration Time', 'wp-user-frontend' ); ?></th>
673
  <td>
674
  <select name="post_expiration_settings[expiration_time_value]" id="wpuf-expiration_time_value">
675
  <?php
695
  </div>
696
 
697
  <div class="wpuf-sub-section tax-restriction">
698
+ <h4><?php _e( 'Allowed Taxonomy Terms', 'wp-user-frontend' ); ?></h4>
699
 
700
  <table class="form-table">
701
  <tr>
750
 
751
  <?php if ( empty( $user_sub ) ): ?>
752
  <div class="wpuf-sub-actions">
753
+ <a class="btn button-secondary wpuf-assing-pack-btn wpuf-add-pack" href="#"><?php _e( 'Assign Package', 'wp-user-frontend' ); ?></a>
754
+ <a class="btn button-secondary wpuf-assing-pack-btn wpuf-cancel-pack" style="display:none;" href="#"><?php _e( 'Cancel', 'wp-user-frontend' ); ?></a>
755
  </div>
756
  <?php endif ?>
757
 
758
  <table class="form-table wpuf-pack-dropdown" disabled="disabled" style="display: none;">
759
  <tr>
760
+ <th><label for="wpuf_sub_pack"><?php _e( 'Select Package:', 'wp-user-frontend' ); ?> </label></th>
761
  <td>
762
  <select name="pack_id" id="wpuf_sub_pack">
763
+ <option value="-1"><?php _e( '&mdash; Select &mdash;', 'wp-user-frontend' ); ?></option>
764
  <?php $this->packdropdown_without_recurring( $packs, $pack_id );//WPUF_Subscription::init()->packdropdown( $packs, $selected = '' ); ?>
765
  </select>
766
  </td>
771
  do_action( 'wpuf_admin_subscription_content', $userdata->ID ) ?>
772
  <?php if ( !empty( $user_sub ) ): ?>
773
  <div class="wpuf-sub-actions">
774
+ <a class="btn button-secondary wpuf-delete-pack-btn" href="javascript:" data-userid="<?php echo $userdata->ID; ?>" data-packid="<?php echo $user_sub['pack_id']; ?>"><?php _e( 'Delete Package', 'wp-user-frontend' ); ?></a>
775
  </div>
776
  <?php endif; ?>
777
  </div>
820
  <div class="wpuf-footer-help">
821
  <span class="wpuf-footer-help-content">
822
  <span class="dashicons dashicons-editor-help"></span>
823
+ <?php printf( __( 'Learn more about <a href="%s" target="_blank">Subscription</a>', 'wp-user-frontend' ), 'https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/?utm_source=wpuf-footer-help&utm_medium=text-link&utm_campaign=learn-more-subscription' ); ?>
824
  </span>
825
  </div>
826
 
admin/class-admin-welcome.php CHANGED
@@ -19,7 +19,7 @@ class WPUF_Admin_Welcome {
19
  * @return void
20
  */
21
  public function register_menu() {
22
- add_dashboard_page( __( 'Welcome to WP User Frontend', 'wpuf' ), __( 'Welcome to WP User Frontend', 'wpuf' ), 'manage_options', 'wpuf-welcome', array( $this, 'welcome_page' ) );
23
  }
24
 
25
  /**
19
  * @return void
20
  */
21
  public function register_menu() {
22
+ add_dashboard_page( __( 'Welcome to WP User Frontend', 'wp-user-frontend' ), __( 'Welcome to WP User Frontend', 'wp-user-frontend' ), 'manage_options', 'wpuf-welcome', array( $this, 'welcome_page' ) );
23
  }
24
 
25
  /**
admin/class-tools.php CHANGED
@@ -30,18 +30,18 @@ class WPUF_Admin_Tools {
30
  if ( $forms ) {
31
  ?>
32
  <div class="postbox" style="margin-top: 15px;">
33
- <h3 style="padding:10px 15px"><?php _e( 'Form Export', 'wpuf' ); ?></h3>
34
  <div class="inside">
35
  <div class="main">
36
  <form action="" method="post" style="margin-top: 20px;">
37
  <p>
38
  <input class="export_type" type="radio" name="export_content" value="all" id="wpuf-all_export" checked>
39
- <label for="wpuf-all_export"><?php _e( 'All', 'wpuf' ); ?></label>
40
  </p>
41
 
42
  <p>
43
  <input class="export_type" type="radio" name="export_content" value="selected" id="wpuf-selected_export">
44
- <label for="wpuf-selected_export"><?php _e( 'Select individual', 'wpuf' ); ?></label></p>
45
  <p>
46
  <select class="formlist" name="formlist[]" multiple="multiple">
47
  <?php foreach ( $forms as $form ) { ?>
@@ -51,7 +51,7 @@ class WPUF_Admin_Tools {
51
  </p>
52
 
53
  <?php wp_nonce_field( 'wpuf-export-form' ); ?>
54
- <input type="submit" class="button button-primary" name="export" value="<?php _e( 'Export', 'wpuf' ) ?>">
55
  </form>
56
  </div>
57
  </div>
@@ -59,7 +59,7 @@ class WPUF_Admin_Tools {
59
 
60
  <?php
61
  } else {
62
- sprintf( '<p>%s</p>', __( 'Sorry you have no form to export', 'wpuf' ) );
63
  }
64
  }
65
 
@@ -84,7 +84,7 @@ class WPUF_Admin_Tools {
84
  if ( $forms ) {
85
  ?>
86
  <div class="postbox">
87
- <h3 style="padding:10px 15px"><?php _e( 'Registration Form Export', 'wpuf' ); ?></h3>
88
  <div class="inside">
89
  <div class="main">
90
 
@@ -92,12 +92,12 @@ class WPUF_Admin_Tools {
92
 
93
  <p>
94
  <input class="export_type" type="radio" name="export_regis_content" value="all" id="wpuf-all_regis_export" checked>
95
- <label for="wpuf-all_regis_export"><?php _e( 'All', 'wpuf' ); ?></label>
96
  </p>
97
 
98
  <p>
99
  <input class="export_type" type="radio" name="export_regis_content" value="selected" id="wpuf-selected_regis_export">
100
- <label for="wpuf-selected_regis_export"><?php _e( 'Select individual', 'wpuf' ); ?></label>
101
  </p>
102
 
103
  <p>
@@ -110,14 +110,14 @@ class WPUF_Admin_Tools {
110
 
111
  <?php wp_nonce_field( 'wpuf-export-regs-form' ); ?>
112
 
113
- <input type="submit" class="button button-primary" name="export_regis_form" value="<?php _e( 'Export', 'wpuf' ) ?>">
114
  </form>
115
  </div>
116
  </div>
117
  </div>
118
  <?php
119
  } else {
120
- sprintf( '<p>%s</p>', __( 'Sorry you have no form to export', 'wpuf' ) );
121
  }
122
  }
123
 
@@ -130,7 +130,7 @@ class WPUF_Admin_Tools {
130
 
131
  if ( $_FILES['import']['error'] > 0 ) {
132
 
133
- printf( '<div class="error"><p>%s</p></div>', __( 'Somthing went wrong. Please choose a file again', 'wpuf' ) );
134
  } else {
135
 
136
  $file_name = $_FILES['import']['name'];
@@ -142,24 +142,24 @@ class WPUF_Admin_Tools {
142
  $data = static::import_json_file( $_FILES['import']['tmp_name'] );
143
 
144
  if ( $data ) {
145
- printf( '<div class="updated"><p>%s</p></div>', __( 'Import successful. Have fun!', 'wpuf' ) );
146
  }
147
  } else {
148
- printf( '<div class="error"><p>%s</p></div>', __( 'Invalid file or file size too big.', 'wpuf' ) );
149
  }
150
  }
151
  }
152
  ?>
153
 
154
- <h3><?php _e( 'Import forms', 'wpuf' ); ?></h3>
155
 
156
- <p><?php _e( 'Click Browse button and choose a json file that you backup before.', 'wpuf' ); ?></p>
157
- <p><?php _e( 'Press <strong>Import</strong> button, we will do the rest for you.', 'wpuf' ); ?></p>
158
 
159
  <form action="" method="post" enctype='multipart/form-data' style="margin-top: 20px;">
160
  <?php wp_nonce_field( 'wpuf-import' ); ?>
161
  <input type='file' name='import' />
162
- <input type="submit" class="button button-primary" name="import_data" value="<?php _e( 'Import', 'wpuf' ); ?>">
163
  </form>
164
  <?php
165
  }
@@ -214,7 +214,7 @@ class WPUF_Admin_Tools {
214
  } elseif ( $export_type == 'selected' && check_admin_referer( 'wpuf-export-regs-form' ) ) {
215
 
216
  if ( $_POST['formlist'] == NULL ) {
217
- printf( '<div class="error"><p>%s</p></div>', __( 'Please select some form for exporting', 'wpuf' ) );
218
  } else {
219
  static::export_to_json( 'wpuf_profile', $post_ids );
220
  }
@@ -234,7 +234,7 @@ class WPUF_Admin_Tools {
234
  } elseif ( $export_type == 'selected' && check_admin_referer( 'wpuf-export-form' ) ) {
235
 
236
  if ( $_POST['formlist'] == NULL ) {
237
- printf( '<div class="error"><p>%s</p></div>', __( 'Please select some form for exporting', 'wpuf' ) );
238
  } else {
239
  static::export_to_json( 'wpuf_forms', $post_ids );
240
  }
@@ -316,18 +316,18 @@ class WPUF_Admin_Tools {
316
  function tool_page() {
317
  $msg = isset( $_GET['msg'] ) ? $_GET['msg'] : '';
318
  $text = '';
319
- $confirmation_message = __( 'Are you Sure?', 'wpuf' );
320
  switch ($msg) {
321
  case 'del_forms':
322
- $text = __( 'All forms has been deleted', 'wpuf' );
323
  break;
324
 
325
  case 'settings_cleared':
326
- $text = __( 'Settings has been cleared!', 'wpuf' );
327
  break;
328
 
329
  case 'del_trans':
330
- $text = __( 'All transactions has been deleted!', 'wpuf' );
331
  break;
332
  }
333
 
@@ -344,43 +344,43 @@ class WPUF_Admin_Tools {
344
 
345
  <div class="metabox-holder">
346
  <div class="postbox">
347
- <h3><?php _e( 'Page Installation', 'wpuf' ); ?></h3>
348
 
349
  <div class="inside">
350
- <p><?php _e( 'Clicking this button will create required pages for the plugin. Note: It\'ll not delete/replace existing pages.', 'wpuf' ); ?></p>
351
- <a class="button button-primary" href="<?php echo add_query_arg( array( 'install_wpuf_pages' => true ) ); ?>"><?php _e( 'Install WPUF Pages', 'wpuf' ); ?></a>
352
  </div>
353
  </div>
354
 
355
  <div class="postbox">
356
- <h3><?php _e( 'Reset Settings', 'wpuf' ); ?></h3>
357
 
358
  <div class="inside">
359
- <p><?php _e( '<strong>Caution:</strong> This tool will delete all the plugin settings of WP User Frontend Pro', 'wpuf' ); ?></p>
360
- <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'clear_settings' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('Are you sure?');"><?php _e( 'Reset Settings', 'wpuf' ); ?></a>
361
  </div>
362
  </div>
363
 
364
  <div class="postbox">
365
- <h3><?php _e( 'Delete Forms', 'wpuf' ); ?></h3>
366
 
367
  <div class="inside">
368
- <p><?php _e( '<strong>Caution:</strong> This tool will delete all the post and registration/profile forms.', 'wpuf' ); ?></p>
369
 
370
- <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'del_post_forms' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Post Forms', 'wpuf' ); ?></a>
371
- <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'del_pro_forms' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Registration Forms', 'wpuf' ); ?></a>
372
- <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'del_subs' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Subscriptions', 'wpuf' ); ?></a>
373
- <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'del_coupon' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Coupons', 'wpuf' ); ?></a>
374
  </div>
375
  </div>
376
 
377
  <div class="postbox">
378
- <h3><?php _e( 'Transactions', 'wpuf' ); ?></h3>
379
 
380
  <div class="inside">
381
- <p><?php _e( 'This tool will delete all the transactions from the transaction table.', 'wpuf' ); ?></p>
382
 
383
- <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'clear_transaction' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Transactions', 'wpuf' ); ?></a>
384
  </div>
385
  </div>
386
  </div>
30
  if ( $forms ) {
31
  ?>
32
  <div class="postbox" style="margin-top: 15px;">
33
+ <h3 style="padding:10px 15px"><?php _e( 'Form Export', 'wp-user-frontend' ); ?></h3>
34
  <div class="inside">
35
  <div class="main">
36
  <form action="" method="post" style="margin-top: 20px;">
37
  <p>
38
  <input class="export_type" type="radio" name="export_content" value="all" id="wpuf-all_export" checked>
39
+ <label for="wpuf-all_export"><?php _e( 'All', 'wp-user-frontend' ); ?></label>
40
  </p>
41
 
42
  <p>
43
  <input class="export_type" type="radio" name="export_content" value="selected" id="wpuf-selected_export">
44
+ <label for="wpuf-selected_export"><?php _e( 'Select individual', 'wp-user-frontend' ); ?></label></p>
45
  <p>
46
  <select class="formlist" name="formlist[]" multiple="multiple">
47
  <?php foreach ( $forms as $form ) { ?>
51
  </p>
52
 
53
  <?php wp_nonce_field( 'wpuf-export-form' ); ?>
54
+ <input type="submit" class="button button-primary" name="export" value="<?php _e( 'Export', 'wp-user-frontend' ) ?>">
55
  </form>
56
  </div>
57
  </div>
59
 
60
  <?php
61
  } else {
62
+ sprintf( '<p>%s</p>', __( 'Sorry you have no form to export', 'wp-user-frontend' ) );
63
  }
64
  }
65
 
84
  if ( $forms ) {
85
  ?>
86
  <div class="postbox">
87
+ <h3 style="padding:10px 15px"><?php _e( 'Registration Form Export', 'wp-user-frontend' ); ?></h3>
88
  <div class="inside">
89
  <div class="main">
90
 
92
 
93
  <p>
94
  <input class="export_type" type="radio" name="export_regis_content" value="all" id="wpuf-all_regis_export" checked>
95
+ <label for="wpuf-all_regis_export"><?php _e( 'All', 'wp-user-frontend' ); ?></label>
96
  </p>
97
 
98
  <p>
99
  <input class="export_type" type="radio" name="export_regis_content" value="selected" id="wpuf-selected_regis_export">
100
+ <label for="wpuf-selected_regis_export"><?php _e( 'Select individual', 'wp-user-frontend' ); ?></label>
101
  </p>
102
 
103
  <p>
110
 
111
  <?php wp_nonce_field( 'wpuf-export-regs-form' ); ?>
112
 
113
+ <input type="submit" class="button button-primary" name="export_regis_form" value="<?php _e( 'Export', 'wp-user-frontend' ) ?>">
114
  </form>
115
  </div>
116
  </div>
117
  </div>
118
  <?php
119
  } else {
120
+ sprintf( '<p>%s</p>', __( 'Sorry you have no form to export', 'wp-user-frontend' ) );
121
  }
122
  }
123
 
130
 
131
  if ( $_FILES['import']['error'] > 0 ) {
132
 
133
+ printf( '<div class="error"><p>%s</p></div>', __( 'Somthing went wrong. Please choose a file again', 'wp-user-frontend' ) );
134
  } else {
135
 
136
  $file_name = $_FILES['import']['name'];
142
  $data = static::import_json_file( $_FILES['import']['tmp_name'] );
143
 
144
  if ( $data ) {
145
+ printf( '<div class="updated"><p>%s</p></div>', __( 'Import successful. Have fun!', 'wp-user-frontend' ) );
146
  }
147
  } else {
148
+ printf( '<div class="error"><p>%s</p></div>', __( 'Invalid file or file size too big.', 'wp-user-frontend' ) );
149
  }
150
  }
151
  }
152
  ?>
153
 
154
+ <h3><?php _e( 'Import forms', 'wp-user-frontend' ); ?></h3>
155
 
156
+ <p><?php _e( 'Click Browse button and choose a json file that you backup before.', 'wp-user-frontend' ); ?></p>
157
+ <p><?php _e( 'Press <strong>Import</strong> button, we will do the rest for you.', 'wp-user-frontend' ); ?></p>
158
 
159
  <form action="" method="post" enctype='multipart/form-data' style="margin-top: 20px;">
160
  <?php wp_nonce_field( 'wpuf-import' ); ?>
161
  <input type='file' name='import' />
162
+ <input type="submit" class="button button-primary" name="import_data" value="<?php _e( 'Import', 'wp-user-frontend' ); ?>">
163
  </form>
164
  <?php
165
  }
214
  } elseif ( $export_type == 'selected' && check_admin_referer( 'wpuf-export-regs-form' ) ) {
215
 
216
  if ( $_POST['formlist'] == NULL ) {
217
+ printf( '<div class="error"><p>%s</p></div>', __( 'Please select some form for exporting', 'wp-user-frontend' ) );
218
  } else {
219
  static::export_to_json( 'wpuf_profile', $post_ids );
220
  }
234
  } elseif ( $export_type == 'selected' && check_admin_referer( 'wpuf-export-form' ) ) {
235
 
236
  if ( $_POST['formlist'] == NULL ) {
237
+ printf( '<div class="error"><p>%s</p></div>', __( 'Please select some form for exporting', 'wp-user-frontend' ) );
238
  } else {
239
  static::export_to_json( 'wpuf_forms', $post_ids );
240
  }
316
  function tool_page() {
317
  $msg = isset( $_GET['msg'] ) ? $_GET['msg'] : '';
318
  $text = '';
319
+ $confirmation_message = __( 'Are you Sure?', 'wp-user-frontend' );
320
  switch ($msg) {
321
  case 'del_forms':
322
+ $text = __( 'All forms has been deleted', 'wp-user-frontend' );
323
  break;
324
 
325
  case 'settings_cleared':
326
+ $text = __( 'Settings has been cleared!', 'wp-user-frontend' );
327
  break;
328
 
329
  case 'del_trans':
330
+ $text = __( 'All transactions has been deleted!', 'wp-user-frontend' );
331
  break;
332
  }
333
 
344
 
345
  <div class="metabox-holder">
346
  <div class="postbox">
347
+ <h3><?php _e( 'Page Installation', 'wp-user-frontend' ); ?></h3>
348
 
349
  <div class="inside">
350
+ <p><?php _e( 'Clicking this button will create required pages for the plugin. Note: It\'ll not delete/replace existing pages.', 'wp-user-frontend' ); ?></p>
351
+ <a class="button button-primary" href="<?php echo add_query_arg( array( 'install_wpuf_pages' => true ) ); ?>"><?php _e( 'Install WPUF Pages', 'wp-user-frontend' ); ?></a>
352
  </div>
353
  </div>
354
 
355
  <div class="postbox">
356
+ <h3><?php _e( 'Reset Settings', 'wp-user-frontend' ); ?></h3>
357
 
358
  <div class="inside">
359
+ <p><?php _e( '<strong>Caution:</strong> This tool will delete all the plugin settings of WP User Frontend Pro', 'wp-user-frontend' ); ?></p>
360
+ <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'clear_settings' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('Are you sure?');"><?php _e( 'Reset Settings', 'wp-user-frontend' ); ?></a>
361
  </div>
362
  </div>
363
 
364
  <div class="postbox">
365
+ <h3><?php _e( 'Delete Forms', 'wp-user-frontend' ); ?></h3>
366
 
367
  <div class="inside">
368
+ <p><?php _e( '<strong>Caution:</strong> This tool will delete all the post and registration/profile forms.', 'wp-user-frontend' ); ?></p>
369
 
370
+ <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'del_post_forms' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Post Forms', 'wp-user-frontend' ); ?></a>
371
+ <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'del_pro_forms' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Registration Forms', 'wp-user-frontend' ); ?></a>
372
+ <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'del_subs' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Subscriptions', 'wp-user-frontend' ); ?></a>
373
+ <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'del_coupon' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Coupons', 'wp-user-frontend' ); ?></a>
374
  </div>
375
  </div>
376
 
377
  <div class="postbox">
378
+ <h3><?php _e( 'Transactions', 'wp-user-frontend' ); ?></h3>
379
 
380
  <div class="inside">
381
+ <p><?php _e( 'This tool will delete all the transactions from the transaction table.', 'wp-user-frontend' ); ?></p>
382
 
383
+ <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'wpuf_action' => 'clear_transaction' ), 'admin.php?page=wpuf_tools&action=tools' ), 'wpuf-tools-action' ); ?>" onclick="return confirm('<?php echo $confirmation_message ?>');"><?php _e( 'Delete Transactions', 'wp-user-frontend' ); ?></a>
384
  </div>
385
  </div>
386
  </div>
admin/form-builder/class-wpuf-admin-form-builder-ajax.php CHANGED
@@ -26,11 +26,11 @@ class WPUF_Admin_Form_Builder_Ajax {
26
  parse_str( $_POST['form_data'], $form_data );
27
 
28
  if ( ! wp_verify_nonce( $form_data['wpuf_form_builder_nonce'], 'wpuf_form_builder_save_form' ) ) {
29
- wp_send_json_error( __( 'Unauthorized operation', 'wpuf' ) );
30
  }
31
 
32
  if ( empty( $form_data['wpuf_form_id'] ) ) {
33
- wp_send_json_error( __( 'Invalid form id', 'wpuf' ) );
34
  }
35
 
36
  $form_fields = isset( $_POST['form_fields'] ) ? $_POST['form_fields'] : '';
26
  parse_str( $_POST['form_data'], $form_data );
27
 
28
  if ( ! wp_verify_nonce( $form_data['wpuf_form_builder_nonce'], 'wpuf_form_builder_save_form' ) ) {
29
+ wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) );
30
  }
31
 
32
  if ( empty( $form_data['wpuf_form_id'] ) ) {
33
+ wp_send_json_error( __( 'Invalid form id', 'wp-user-frontend' ) );
34
  }
35
 
36
  $form_fields = isset( $_POST['form_fields'] ) ? $_POST['form_fields'] : '';
admin/form-builder/class-wpuf-admin-form-builder.php CHANGED
@@ -284,7 +284,7 @@ class WPUF_Admin_Form_Builder {
284
 
285
  return array(
286
  array(
287
- 'title' => __( 'Custom Fields', 'wpuf' ),
288
  'id' => 'custom-fields',
289
  'fields' => $fields
290
  )
@@ -305,7 +305,7 @@ class WPUF_Admin_Form_Builder {
305
 
306
  return array(
307
  array(
308
- 'title' => __( 'Others', 'wpuf' ),
309
  'id' => 'others',
310
  'fields' => $fields
311
  )
@@ -321,24 +321,24 @@ class WPUF_Admin_Form_Builder {
321
  */
322
  private function i18n() {
323
  return apply_filters( 'wpuf-form-builder-i18n', array(
324
- 'advanced_options' => __( 'Advanced Options', 'wpuf' ),
325
- 'delete_field_warn_msg' => __( 'Are you sure you want to delete this field?', 'wpuf' ),
326
- 'yes_delete_it' => __( 'Yes, delete it', 'wpuf' ),
327
- 'no_cancel_it' => __( 'No, cancel it', 'wpuf' ),
328
- 'ok' => __( 'OK', 'wpuf' ),
329
- 'cancel' => __( 'Cancel', 'wpuf' ),
330
- 'close' => __( 'Close', 'wpuf' ),
331
- 'last_choice_warn_msg' => __( 'This field must contain at least one choice', 'wpuf' ),
332
- 'option' => __( 'Option', 'wpuf' ),
333
- 'column' => __( 'Column', 'wpuf' ),
334
- 'last_column_warn_msg' => __( 'This field must contain at least one column', 'wpuf' ),
335
- 'is_a_pro_feature' => __( 'is available in Pro version', 'wpuf' ),
336
- 'pro_feature_msg' => __( 'Please upgrade to the Pro version to unlock all these awesome features', 'wpuf' ),
337
- 'upgrade_to_pro' => __( 'Get the Pro version', 'wpuf' ),
338
- 'select' => __( 'Select', 'wpuf' ),
339
- 'saved_form_data' => __( 'Saved form data', 'wpuf' ),
340
- 'unsaved_changes' => __( 'You have unsaved changes.', 'wpuf' ),
341
- 'copy_shortcode' => __( 'Click to copy shortcode', 'wpuf' ),
342
  ) );
343
  }
344
 
284
 
285
  return array(
286
  array(
287
+ 'title' => __( 'Custom Fields', 'wp-user-frontend' ),
288
  'id' => 'custom-fields',
289
  'fields' => $fields
290
  )
305
 
306
  return array(
307
  array(
308
+ 'title' => __( 'Others', 'wp-user-frontend' ),
309
  'id' => 'others',
310
  'fields' => $fields
311
  )
321
  */
322
  private function i18n() {
323
  return apply_filters( 'wpuf-form-builder-i18n', array(
324
+ 'advanced_options' => __( 'Advanced Options', 'wp-user-frontend' ),
325
+ 'delete_field_warn_msg' => __( 'Are you sure you want to delete this field?', 'wp-user-frontend' ),
326
+ 'yes_delete_it' => __( 'Yes, delete it', 'wp-user-frontend' ),
327
+ 'no_cancel_it' => __( 'No, cancel it', 'wp-user-frontend' ),
328
+ 'ok' => __( 'OK', 'wp-user-frontend' ),
329
+ 'cancel' => __( 'Cancel', 'wp-user-frontend' ),
330
+ 'close' => __( 'Close', 'wp-user-frontend' ),
331
+ 'last_choice_warn_msg' => __( 'This field must contain at least one choice', 'wp-user-frontend' ),
332
+ 'option' => __( 'Option', 'wp-user-frontend' ),
333
+ 'column' => __( 'Column', 'wp-user-frontend' ),
334
+ 'last_column_warn_msg' => __( 'This field must contain at least one column', 'wp-user-frontend' ),
335
+ 'is_a_pro_feature' => __( 'is available in Pro version', 'wp-user-frontend' ),
336
+ 'pro_feature_msg' => __( 'Please upgrade to the Pro version to unlock all these awesome features', 'wp-user-frontend' ),
337
+ 'upgrade_to_pro' => __( 'Get the Pro version', 'wp-user-frontend' ),
338
+ 'select' => __( 'Select', 'wp-user-frontend' ),
339
+ 'saved_form_data' => __( 'Saved form data', 'wp-user-frontend' ),
340
+ 'unsaved_changes' => __( 'You have unsaved changes.', 'wp-user-frontend' ),
341
+ 'copy_shortcode' => __( 'Click to copy shortcode', 'wp-user-frontend' ),
342
  ) );
343
  }
344
 
admin/form-builder/class-wpuf-form-builder-field-settings.php CHANGED
@@ -42,45 +42,45 @@ class WPUF_Form_Builder_Field_Settings {
42
  $common_properties = array(
43
  array(
44
  'name' => 'label',
45
- 'title' => __( 'Field Label', 'wpuf' ),
46
  'type' => 'text',
47
  'section' => 'basic',
48
  'priority' => 10,
49
- 'help_text' => __( 'Enter a title of this field', 'wpuf' ),
50
  ),
51
 
52
  array(
53
  'name' => 'help',
54
- 'title' => __( 'Help text', 'wpuf' ),
55
  'type' => 'text',
56
  'section' => 'basic',
57
  'priority' => 20,
58
- 'help_text' => __( 'Give the user some information about this field', 'wpuf' ),
59
  ),
60
 
61
  array(
62
  'name' => 'required',
63
- 'title' => __( 'Required', 'wpuf' ),
64
  'type' => 'radio',
65
  'options' => array(
66
- 'yes' => __( 'Yes', 'wpuf' ),
67
- 'no' => __( 'No', 'wpuf' ),
68
  ),
69
  'section' => 'basic',
70
  'priority' => 21,
71
  'default' => 'no',
72
  'inline' => true,
73
- 'help_text' => __( 'Check this option to mark the field required. A form will not submit unless all required fields are provided.', 'wpuf' ),
74
  ),
75
 
76
  array(
77
  'name' => 'width',
78
- 'title' => __( 'Field Size', 'wpuf' ),
79
  'type' => 'radio',
80
  'options' => array(
81
- 'small' => __( 'Small', 'wpuf' ),
82
- 'medium' => __( 'Medium', 'wpuf' ),
83
- 'large' => __( 'Large', 'wpuf' ),
84
  ),
85
  'section' => 'advanced',
86
  'priority' => 23,
@@ -90,11 +90,11 @@ class WPUF_Form_Builder_Field_Settings {
90
 
91
  array(
92
  'name' => 'css',
93
- 'title' => __( 'CSS Class Name', 'wpuf' ),
94
  'type' => 'text',
95
  'section' => 'advanced',
96
  'priority' => 22,
97
- 'help_text' => __( 'Provide a container class name for this field.', 'wpuf' ),
98
  )
99
  );
100
 
@@ -102,18 +102,18 @@ class WPUF_Form_Builder_Field_Settings {
102
  $common_properties = array_merge($common_properties, array(
103
  array(
104
  'name' => 'wpuf_visibility',
105
- 'title' => __( 'Visibility', 'wpuf' ),
106
  'type' => 'visibility',
107
  'section' => 'advanced',
108
  'options' => array(
109
- 'everyone' => __( 'Everyone', 'wpuf' ),
110
- 'hidden' => __( 'Hidden', 'wpuf' ),
111
- 'logged_in' => __( 'Logged in users only', 'wpuf' ),
112
- 'subscribed_users' => __( 'Subscription users only', 'wpuf' ),
113
  ),
114
  'priority' => 30,
115
  'inline' => true,
116
- 'help_text' => __( 'Select option', 'wpuf' ),
117
  )
118
  ));
119
  }
@@ -122,11 +122,11 @@ class WPUF_Form_Builder_Field_Settings {
122
  $common_properties = array_merge($common_properties, array(
123
  array(
124
  'name' => 'name',
125
- 'title' => __( 'Meta Key', 'wpuf' ),
126
  'type' => 'text-meta',
127
  'section' => 'basic',
128
  'priority' => 11,
129
- 'help_text' => __( 'Name of the meta key this field will save to', 'wpuf' ),
130
  )
131
  ));
132
 
@@ -134,17 +134,17 @@ class WPUF_Form_Builder_Field_Settings {
134
  $common_properties = array_merge($common_properties, array(
135
  array(
136
  'name' => 'show_in_post',
137
- 'title' => __( 'Show Data in Post', 'wpuf' ),
138
  'type' => 'radio',
139
  'options' => array(
140
- 'yes' => __( 'Yes', 'wpuf' ),
141
- 'no' => __( 'No', 'wpuf' ),
142
  ),
143
  'section' => 'advanced',
144
  'priority' => 24,
145
  'default' => 'yes',
146
  'inline' => true,
147
- 'help_text' => __( 'Select Yes if you want to show the field data in single post.', 'wpuf' ),
148
  )
149
  ));
150
  }
@@ -164,41 +164,41 @@ class WPUF_Form_Builder_Field_Settings {
164
  $properties = array(
165
  array(
166
  'name' => 'placeholder',
167
- 'title' => __( 'Placeholder text', 'wpuf' ),
168
  'type' => 'text',
169
  'section' => 'advanced',
170
  'priority' => 10,
171
- 'help_text' => __( 'Text for HTML5 placeholder attribute', 'wpuf' ),
172
  ),
173
 
174
  array(
175
  'name' => 'default',
176
- 'title' => __( 'Default value', 'wpuf' ),
177
  'type' => 'text',
178
  'section' => 'advanced',
179
  'priority' => 11,
180
- 'help_text' => __( 'The default value this field will have', 'wpuf' ),
181
  ),
182
 
183
  array(
184
  'name' => 'size',
185
- 'title' => __( 'Size', 'wpuf' ),
186
  'type' => 'text',
187
  'variation' => 'number',
188
  'section' => 'advanced',
189
  'priority' => 20,
190
- 'help_text' => __( 'Size of this input field', 'wpuf' ),
191
  )
192
  );
193
 
194
  if ( $word_restriction ) {
195
  $properties[] = array(
196
  'name' => 'word_restriction',
197
- 'title' => __( 'Word Restriction', 'wpuf' ),
198
  'type' => 'text',
199
  'section' => 'advanced',
200
  'priority' => 15,
201
- 'help_text' => __( 'Numebr of words the author to be restricted in', 'wpuf' ),
202
  );
203
  }
204
 
@@ -216,29 +216,29 @@ class WPUF_Form_Builder_Field_Settings {
216
  return array(
217
  array(
218
  'name' => 'rows',
219
- 'title' => __( 'Rows', 'wpuf' ),
220
  'type' => 'text',
221
  'section' => 'advanced',
222
  'priority' => 10,
223
- 'help_text' => __( 'Number of rows in textarea', 'wpuf' ),
224
  ),
225
 
226
  array(
227
  'name' => 'cols',
228
- 'title' => __( 'Columns', 'wpuf' ),
229
  'type' => 'text',
230
  'section' => 'advanced',
231
  'priority' => 11,
232
- 'help_text' => __( 'Number of columns in textarea', 'wpuf' ),
233
  ),
234
 
235
  array(
236
  'name' => 'placeholder',
237
- 'title' => __( 'Placeholder text', 'wpuf' ),
238
  'type' => 'text',
239
  'section' => 'advanced',
240
  'priority' => 12,
241
- 'help_text' => __( 'Text for HTML5 placeholder attribute', 'wpuf' ),
242
  'dependencies' => array(
243
  'rich' => 'no'
244
  )
@@ -246,21 +246,21 @@ class WPUF_Form_Builder_Field_Settings {
246
 
247
  array(
248
  'name' => 'default',
249
- 'title' => __( 'Default value', 'wpuf' ),
250
  'type' => 'text',
251
  'section' => 'advanced',
252
  'priority' => 13,
253
- 'help_text' => __( 'The default value this field will have', 'wpuf' ),
254
  ),
255
 
256
  array(
257
  'name' => 'rich',
258
- 'title' => __( 'Textarea', 'wpuf' ),
259
  'type' => 'radio',
260
  'options' => array(
261
- 'no' => __( 'Normal', 'wpuf' ),
262
- 'yes' => __( 'Rich textarea', 'wpuf' ),
263
- 'teeny' => __( 'Teeny Rich textarea', 'wpuf' ),
264
  ),
265
  'section' => 'advanced',
266
  'priority' => 14,
@@ -269,11 +269,11 @@ class WPUF_Form_Builder_Field_Settings {
269
 
270
  array(
271
  'name' => 'word_restriction',
272
- 'title' => __( 'Word Restriction', 'wpuf' ),
273
  'type' => 'text',
274
  'section' => 'advanced',
275
  'priority' => 15,
276
- 'help_text' => __( 'Numebr of words the author to be restricted in', 'wpuf' ),
277
  ),
278
  );
279
  }
@@ -304,7 +304,7 @@ class WPUF_Form_Builder_Field_Settings {
304
  'condition_status' => 'no',
305
  'cond_field' => array(),
306
  'cond_operator' => array( '=' ),
307
- 'cond_option' => array( __( '- select -', 'wpuf' ) ),
308
  'cond_logic' => 'all'
309
  );
310
  }
@@ -322,14 +322,14 @@ class WPUF_Form_Builder_Field_Settings {
322
 
323
  return array(
324
  'template' => 'text_field',
325
- 'title' => __( 'Text', 'wpuf' ),
326
  'icon' => 'text-width',
327
  'settings' => $settings,
328
  'field_props' => array(
329
  'input_type' => 'text',
330
  'template' => 'text_field',
331
  'required' => 'no',
332
- 'label' => __( 'Text', 'wpuf' ),
333
  'name' => '',
334
  'is_meta' => 'yes',
335
  'help' => '',
@@ -361,14 +361,14 @@ class WPUF_Form_Builder_Field_Settings {
361
 
362
  return array(
363
  'template' => 'textarea_field',
364
- 'title' => __( 'Textarea', 'wpuf' ),
365
  'icon' => 'paragraph',
366
  'settings' => $settings,
367
  'field_props' => array(
368
  'input_type' => 'textarea',
369
  'template' => 'textarea_field',
370
  'required' => 'no',
371
- 'label' => __( 'Textarea', 'wpuf' ),
372
  'name' => '',
373
  'is_meta' => 'yes',
374
  'help' => '',
@@ -401,12 +401,12 @@ class WPUF_Form_Builder_Field_Settings {
401
  public static function get_option_data_setting( $is_multiple = false ) {
402
  return array(
403
  'name' => 'options',
404
- 'title' => __( 'Options', 'wpuf' ),
405
  'type' => 'option-data',
406
  'is_multiple' => $is_multiple,
407
  'section' => 'basic',
408
  'priority' => 12,
409
- 'help_text' => __( 'Add options for the form field', 'wpuf' ),
410
  );
411
  }
412
 
@@ -425,11 +425,11 @@ class WPUF_Form_Builder_Field_Settings {
425
 
426
  array(
427
  'name' => 'first',
428
- 'title' => __( 'Select Text', 'wpuf' ),
429
  'type' => 'text',
430
  'section' => 'basic',
431
  'priority' => 13,
432
- 'help_text' => __( "First element of the select dropdown. Leave this empty if you don't want to show this field", 'wpuf' ),
433
  ),
434
  );
435
 
@@ -437,22 +437,22 @@ class WPUF_Form_Builder_Field_Settings {
437
 
438
  return array(
439
  'template' => 'dropdown_field',
440
- 'title' => __( 'Dropdown', 'wpuf' ),
441
  'icon' => 'caret-square-o-down',
442
  'settings' => $settings,
443
  'field_props' => array(
444
  'input_type' => 'select',
445
  'template' => 'dropdown_field',
446
  'required' => 'no',
447
- 'label' => __( 'Dropdown', 'wpuf' ),
448
  'name' => '',
449
  'is_meta' => 'yes',
450
  'help' => '',
451
  'width' => '',
452
  'css' => '',
453
  'selected' => '',
454
- 'options' => array( 'Option' => __( 'Option', 'wpuf' ) ),
455
- 'first' => __( '- select -', 'wpuf' ),
456
  'id' => 0,
457
  'is_new' => true,
458
  'show_in_post' => 'yes',
@@ -480,22 +480,22 @@ class WPUF_Form_Builder_Field_Settings {
480
 
481
  return array(
482
  'template' => 'multiple_select',
483
- 'title' => __( 'Multi Select', 'wpuf' ),
484
  'icon' => 'list-ul',
485
  'settings' => $settings,
486
  'field_props' => array(
487
  'input_type' => 'multiselect',
488
  'template' => 'multiple_select',
489
  'required' => 'no',
490
- 'label' => __( 'Multi Select', 'wpuf' ),
491
  'name' => '',
492
  'is_meta' => 'yes',
493
  'help' => '',
494
  'width' => '',
495
  'css' => '',
496
  'selected' => array(),
497
- 'options' => array( 'Option' => __( 'Option', 'wpuf' ) ),
498
- 'first' => __( '- select -', 'wpuf' ),
499
  'id' => 0,
500
  'is_new' => true,
501
  'show_in_post' => 'yes',
@@ -520,17 +520,17 @@ class WPUF_Form_Builder_Field_Settings {
520
 
521
  array(
522
  'name' => 'inline',
523
- 'title' => __( 'Show in inline list', 'wpuf' ),
524
  'type' => 'radio',
525
  'options' => array(
526
- 'yes' => __( 'Yes', 'wpuf' ),
527
- 'no' => __( 'No', 'wpuf' ),
528
  ),
529
  'default' => 'no',
530
  'inline' => true,
531
  'section' => 'advanced',
532
  'priority' => 23,
533
- 'help_text' => __( 'Show this option in an inline list', 'wpuf' ),
534
  )
535
  );
536
 
@@ -538,14 +538,14 @@ class WPUF_Form_Builder_Field_Settings {
538
 
539
  return array(
540
  'template' => 'radio_field',
541
- 'title' => __( 'Radio', 'wpuf' ),
542
  'icon' => 'dot-circle-o',
543
  'settings' => $settings,
544
  'field_props' => array(
545
  'input_type' => 'radio',
546
  'template' => 'radio_field',
547
  'required' => 'no',
548
- 'label' => __( 'Radio Field', 'wpuf' ),
549
  'name' => '',
550
  'is_meta' => 'yes',
551
  'help' => '',
@@ -553,7 +553,7 @@ class WPUF_Form_Builder_Field_Settings {
553
  'css' => '',
554
  'selected' => '',
555
  'inline' => 'no',
556
- 'options' => array( 'Option' => __( 'Option', 'wpuf' ) ),
557
  'id' => 0,
558
  'is_new' => true,
559
  'show_in_post' => 'yes',
@@ -578,17 +578,17 @@ class WPUF_Form_Builder_Field_Settings {
578
 
579
  array(
580
  'name' => 'inline',
581
- 'title' => __( 'Show in inline list', 'wpuf' ),
582
  'type' => 'radio',
583
  'options' => array(
584
- 'yes' => __( 'Yes', 'wpuf' ),
585
- 'no' => __( 'No', 'wpuf' ),
586
  ),
587
  'default' => 'no',
588
  'inline' => true,
589
  'section' => 'advanced',
590
  'priority' => 23,
591
- 'help_text' => __( 'Show this option in an inline list', 'wpuf' ),
592
  )
593
  );
594
 
@@ -596,14 +596,14 @@ class WPUF_Form_Builder_Field_Settings {
596
 
597
  return array(
598
  'template' => 'checkbox_field',
599
- 'title' => __( 'Checkbox', 'wpuf' ),
600
  'icon' => 'check-square-o',
601
  'settings' => $settings,
602
  'field_props' => array(
603
  'input_type' => 'checkbox',
604
  'template' => 'checkbox_field',
605
  'required' => 'no',
606
- 'label' => __( 'Checkbox Field', 'wpuf' ),
607
  'name' => '',
608
  'is_meta' => 'yes',
609
  'help' => '',
@@ -611,7 +611,7 @@ class WPUF_Form_Builder_Field_Settings {
611
  'css' => '',
612
  'selected' => array(),
613
  'inline' => 'no',
614
- 'options' => array( 'Option' => __( 'Option', 'wpuf' ) ),
615
  'id' => 0,
616
  'is_new' => true,
617
  'show_in_post' => 'yes',
@@ -633,29 +633,29 @@ class WPUF_Form_Builder_Field_Settings {
633
  $settings = array_merge( $settings, self::get_common_text_properties() );
634
  $settings[] = array(
635
  'name' => 'open_window',
636
- 'title' => __( 'Open in : ', 'wpuf' ),
637
  'type' => 'radio',
638
  'options' => array(
639
- 'same' => __( 'Same Window', 'wpuf' ),
640
- 'new' => __( 'New Window', 'wpuf' ),
641
  ),
642
  'section' => 'basic',
643
  'default' => 'same',
644
  'inline' => true,
645
  'priority' => 32,
646
- 'help_text' => __( 'Choose whether the link will open in new tab or same window', 'wpuf' ),
647
  );
648
 
649
  return array(
650
  'template' => 'website_url',
651
- 'title' => __( 'URL', 'wpuf' ),
652
  'icon' => 'link',
653
  'settings' => $settings,
654
  'field_props' => array(
655
  'input_type' => 'url',
656
  'template' => 'website_url',
657
  'required' => 'no',
658
- 'label' => __( 'URL', 'wpuf' ),
659
  'name' => '',
660
  'is_meta' => 'yes',
661
  'help' => '',
@@ -687,14 +687,14 @@ class WPUF_Form_Builder_Field_Settings {
687
 
688
  return array(
689
  'template' => 'email_address',
690
- 'title' => __( 'Email Address', 'wpuf' ),
691
  'icon' => 'envelope-o',
692
  'settings' => $settings,
693
  'field_props' => array(
694
  'input_type' => 'email',
695
  'template' => 'email_address',
696
  'required' => 'no',
697
- 'label' => __( 'Email', 'wpuf' ),
698
  'name' => '',
699
  'is_meta' => 'yes',
700
  'help' => '',
@@ -723,26 +723,26 @@ class WPUF_Form_Builder_Field_Settings {
723
  $settings = array(
724
  array(
725
  'name' => 'name',
726
- 'title' => __( 'Meta Key', 'wpuf' ),
727
  'type' => 'text',
728
  'section' => 'basic',
729
  'priority' => 10,
730
- 'help_text' => __( 'Name of the meta key this field will save to', 'wpuf' ),
731
  ),
732
 
733
  array(
734
  'name' => 'meta_value',
735
- 'title' => __( 'Meta Value', 'wpuf' ),
736
  'type' => 'text',
737
  'section' => 'basic',
738
  'priority' => 11,
739
- 'help_text' => __( 'Enter the meta value', 'wpuf' ),
740
  ),
741
  );
742
 
743
  return array(
744
  'template' => 'custom_hidden_field',
745
- 'title' => __( 'Hidden Field', 'wpuf' ),
746
  'icon' => 'eye-slash',
747
  'settings' => $settings,
748
  'field_props' => array(
@@ -774,43 +774,43 @@ class WPUF_Form_Builder_Field_Settings {
774
  $settings = array_merge( $settings, array(
775
  array(
776
  'name' => 'button_label',
777
- 'title' => __( 'Button Label', 'wpuf' ),
778
  'type' => 'text',
779
- 'default' => __( 'Select Image', 'wpuf' ),
780
  'section' => 'basic',
781
  'priority' => 30,
782
- 'help_text' => __( 'Enter a label for the Select button', 'wpuf' ),
783
  ),
784
  array(
785
  'name' => 'max_size',
786
- 'title' => __( 'Max. file size', 'wpuf' ),
787
  'type' => 'text',
788
  'section' => 'advanced',
789
  'priority' => 20,
790
- 'help_text' => __( 'Enter maximum upload size limit in KB', 'wpuf' ),
791
  ),
792
  array(
793
  'name' => 'count',
794
- 'title' => __( 'Max. files', 'wpuf' ),
795
  'type' => 'text',
796
  'section' => 'advanced',
797
  'priority' => 21,
798
- 'help_text' => __( 'Number of images can be uploaded', 'wpuf' ),
799
  ),
800
  ) );
801
 
802
  return array(
803
  'template' => 'image_upload',
804
- 'title' => __( 'Image Upload', 'wpuf' ),
805
  'icon' => 'file-image-o',
806
  'settings' => $settings,
807
  'field_props' => array(
808
  'input_type' => 'image_upload',
809
  'template' => 'image_upload',
810
  'required' => 'no',
811
- 'label' => __( 'Image Upload', 'wpuf' ),
812
  'name' => '',
813
- 'button_label' => __( 'Select Image', 'wpuf' ),
814
  'is_meta' => 'yes',
815
  'help' => '',
816
  'width' => '',
@@ -837,34 +837,34 @@ class WPUF_Form_Builder_Field_Settings {
837
  $settings = array(
838
  array(
839
  'name' => 'label',
840
- 'title' => __( 'Title', 'wpuf' ),
841
  'type' => 'text',
842
  'section' => 'basic',
843
  'priority' => 10,
844
- 'help_text' => __( 'Title of the section', 'wpuf' ),
845
  ),
846
 
847
  array(
848
  'name' => 'description',
849
- 'title' => __( 'Description', 'wpuf' ),
850
  'type' => 'textarea',
851
  'section' => 'basic',
852
  'priority' => 11,
853
- 'help_text' => __( 'Some details text about the section', 'wpuf' ),
854
  ),
855
  );
856
 
857
  return array(
858
  'template' => 'section_break',
859
- 'title' => __( 'Section Break', 'wpuf' ),
860
  'icon' => 'columns',
861
  'is_full_width' => true,
862
  'settings' => $settings,
863
  'field_props' => array(
864
  'input_type' => 'section_break',
865
  'template' => 'section_break',
866
- 'label' => __( 'Section Break', 'wpuf' ),
867
- 'description' => __( 'Some description about this section', 'wpuf' ),
868
  'id' => 0,
869
  'is_new' => true,
870
  'show_in_post' => 'yes',
@@ -885,25 +885,25 @@ class WPUF_Form_Builder_Field_Settings {
885
  $settings = array(
886
  array(
887
  'name' => 'html',
888
- 'title' => __( 'HTML Codes', 'wpuf' ),
889
  'type' => 'textarea',
890
  'section' => 'basic',
891
  'priority' => 11,
892
- 'help_text' => __( 'Paste your HTML codes, WordPress shortcodes will also work here', 'wpuf' ),
893
  ),
894
  );
895
 
896
  return array(
897
  'template' => 'custom_html',
898
- 'title' => __( 'Custom HTML', 'wpuf' ),
899
  'icon' => 'code',
900
  'is_full_width' => true,
901
  'settings' => $settings,
902
  'field_props' => array(
903
  'input_type' => 'html',
904
  'template' => 'custom_html',
905
- 'label' => __( 'Custom HTML', 'wpuf' ),
906
- 'html' => sprintf( '<p>%s</p>', __( 'Some description about this section', 'wpuf' ) ),
907
  'id' => 0,
908
  'is_new' => true,
909
  'wpuf_visibility' => self::get_wpuf_visibility_prop(),
@@ -923,11 +923,11 @@ class WPUF_Form_Builder_Field_Settings {
923
  $settings = array(
924
  array(
925
  'name' => 'label',
926
- 'title' => __( 'Title', 'wpuf' ),
927
  'type' => 'text',
928
  'section' => 'basic',
929
  'priority' => 10,
930
- 'help_text' => __( 'Title of the section', 'wpuf' ),
931
  ),
932
 
933
  array(
@@ -935,26 +935,26 @@ class WPUF_Form_Builder_Field_Settings {
935
  'title' => 'reCaptcha type',
936
  'type' => 'radio',
937
  'options' => array(
938
- 'enable_no_captcha' => __( 'Enable noCaptcha', 'wpuf' ),
939
- 'invisible_recaptcha' => __( 'Enable Invisible reCaptcha', 'wpuf' ),
940
  ),
941
  'default' => 'enable_no_captcha',
942
  'section' => 'basic',
943
  'priority' => 11,
944
- 'help_text' => __( 'Select reCaptcha type', 'wpuf' ),
945
  )
946
  );
947
 
948
  return array(
949
  'template' => 'recaptcha',
950
- 'title' => __( 'reCaptcha', 'wpuf' ),
951
  'icon' => 'qrcode',
952
  'validator' => array(
953
  'callback' => 'has_recaptcha_api_keys',
954
  'button_class' => 'button-faded',
955
- 'msg_title' => __( 'Site key and Secret key', 'wpuf' ),
956
  'msg' => sprintf(
957
- __( 'You need to set Site key and Secret key in <a href="%s" target="_blank">Settings</a> in order to use "Recaptcha" field. <a href="%s" target="_blank">Click here to get the these key</a>.', 'wpuf' ),
958
  admin_url( 'admin.php?page=wpuf-settings' ),
959
  'https://www.google.com/recaptcha/'
960
  ),
42
  $common_properties = array(
43
  array(
44
  'name' => 'label',
45
+ 'title' => __( 'Field Label', 'wp-user-frontend' ),
46
  'type' => 'text',
47
  'section' => 'basic',
48
  'priority' => 10,
49
+ 'help_text' => __( 'Enter a title of this field', 'wp-user-frontend' ),
50
  ),
51
 
52
  array(
53
  'name' => 'help',
54
+ 'title' => __( 'Help text', 'wp-user-frontend' ),
55
  'type' => 'text',
56
  'section' => 'basic',
57
  'priority' => 20,
58
+ 'help_text' => __( 'Give the user some information about this field', 'wp-user-frontend' ),
59
  ),
60
 
61
  array(
62
  'name' => 'required',
63
+ 'title' => __( 'Required', 'wp-user-frontend' ),
64
  'type' => 'radio',
65
  'options' => array(
66
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
67
+ 'no' => __( 'No', 'wp-user-frontend' ),
68
  ),
69
  'section' => 'basic',
70
  'priority' => 21,
71
  'default' => 'no',
72
  'inline' => true,
73
+ 'help_text' => __( 'Check this option to mark the field required. A form will not submit unless all required fields are provided.', 'wp-user-frontend' ),
74
  ),
75
 
76
  array(
77
  'name' => 'width',
78
+ 'title' => __( 'Field Size', 'wp-user-frontend' ),
79
  'type' => 'radio',
80
  'options' => array(
81
+ 'small' => __( 'Small', 'wp-user-frontend' ),
82
+ 'medium' => __( 'Medium', 'wp-user-frontend' ),
83
+ 'large' => __( 'Large', 'wp-user-frontend' ),
84
  ),
85
  'section' => 'advanced',
86
  'priority' => 23,
90
 
91
  array(
92
  'name' => 'css',
93
+ 'title' => __( 'CSS Class Name', 'wp-user-frontend' ),
94
  'type' => 'text',
95
  'section' => 'advanced',
96
  'priority' => 22,
97
+ 'help_text' => __( 'Provide a container class name for this field.', 'wp-user-frontend' ),
98
  )
99
  );
100
 
102
  $common_properties = array_merge($common_properties, array(
103
  array(
104
  'name' => 'wpuf_visibility',
105
+ 'title' => __( 'Visibility', 'wp-user-frontend' ),
106
  'type' => 'visibility',
107
  'section' => 'advanced',
108
  'options' => array(
109
+ 'everyone' => __( 'Everyone', 'wp-user-frontend' ),
110
+ 'hidden' => __( 'Hidden', 'wp-user-frontend' ),
111
+ 'logged_in' => __( 'Logged in users only', 'wp-user-frontend' ),
112
+ 'subscribed_users' => __( 'Subscription users only', 'wp-user-frontend' ),
113
  ),
114
  'priority' => 30,
115
  'inline' => true,
116
+ 'help_text' => __( 'Select option', 'wp-user-frontend' ),
117
  )
118
  ));
119
  }
122
  $common_properties = array_merge($common_properties, array(
123
  array(
124
  'name' => 'name',
125
+ 'title' => __( 'Meta Key', 'wp-user-frontend' ),
126
  'type' => 'text-meta',
127
  'section' => 'basic',
128
  'priority' => 11,
129
+ 'help_text' => __( 'Name of the meta key this field will save to', 'wp-user-frontend' ),
130
  )
131
  ));
132
 
134
  $common_properties = array_merge($common_properties, array(
135
  array(
136
  'name' => 'show_in_post',
137
+ 'title' => __( 'Show Data in Post', 'wp-user-frontend' ),
138
  'type' => 'radio',
139
  'options' => array(
140
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
141
+ 'no' => __( 'No', 'wp-user-frontend' ),
142
  ),
143
  'section' => 'advanced',
144
  'priority' => 24,
145
  'default' => 'yes',
146
  'inline' => true,
147
+ 'help_text' => __( 'Select Yes if you want to show the field data in single post.', 'wp-user-frontend' ),
148
  )
149
  ));
150
  }
164
  $properties = array(
165
  array(
166
  'name' => 'placeholder',
167
+ 'title' => __( 'Placeholder text', 'wp-user-frontend' ),
168
  'type' => 'text',
169
  'section' => 'advanced',
170
  'priority' => 10,
171
+ 'help_text' => __( 'Text for HTML5 placeholder attribute', 'wp-user-frontend' ),
172
  ),
173
 
174
  array(
175
  'name' => 'default',
176
+ 'title' => __( 'Default value', 'wp-user-frontend' ),
177
  'type' => 'text',
178
  'section' => 'advanced',
179
  'priority' => 11,
180
+ 'help_text' => __( 'The default value this field will have', 'wp-user-frontend' ),
181
  ),
182
 
183
  array(
184
  'name' => 'size',
185
+ 'title' => __( 'Size', 'wp-user-frontend' ),
186
  'type' => 'text',
187
  'variation' => 'number',
188
  'section' => 'advanced',
189
  'priority' => 20,
190
+ 'help_text' => __( 'Size of this input field', 'wp-user-frontend' ),
191
  )
192
  );
193
 
194
  if ( $word_restriction ) {
195
  $properties[] = array(
196
  'name' => 'word_restriction',
197
+ 'title' => __( 'Word Restriction', 'wp-user-frontend' ),
198
  'type' => 'text',
199
  'section' => 'advanced',
200
  'priority' => 15,
201
+ 'help_text' => __( 'Numebr of words the author to be restricted in', 'wp-user-frontend' ),
202
  );
203
  }
204
 
216
  return array(
217
  array(
218
  'name' => 'rows',
219
+ 'title' => __( 'Rows', 'wp-user-frontend' ),
220
  'type' => 'text',
221
  'section' => 'advanced',
222
  'priority' => 10,
223
+ 'help_text' => __( 'Number of rows in textarea', 'wp-user-frontend' ),
224
  ),
225
 
226
  array(
227
  'name' => 'cols',
228
+ 'title' => __( 'Columns', 'wp-user-frontend' ),
229
  'type' => 'text',
230
  'section' => 'advanced',
231
  'priority' => 11,
232
+ 'help_text' => __( 'Number of columns in textarea', 'wp-user-frontend' ),
233
  ),
234
 
235
  array(
236
  'name' => 'placeholder',
237
+ 'title' => __( 'Placeholder text', 'wp-user-frontend' ),
238
  'type' => 'text',
239
  'section' => 'advanced',
240
  'priority' => 12,
241
+ 'help_text' => __( 'Text for HTML5 placeholder attribute', 'wp-user-frontend' ),
242
  'dependencies' => array(
243
  'rich' => 'no'
244
  )
246
 
247
  array(
248
  'name' => 'default',
249
+ 'title' => __( 'Default value', 'wp-user-frontend' ),
250
  'type' => 'text',
251
  'section' => 'advanced',
252
  'priority' => 13,
253
+ 'help_text' => __( 'The default value this field will have', 'wp-user-frontend' ),
254
  ),
255
 
256
  array(
257
  'name' => 'rich',
258
+ 'title' => __( 'Textarea', 'wp-user-frontend' ),
259
  'type' => 'radio',
260
  'options' => array(
261
+ 'no' => __( 'Normal', 'wp-user-frontend' ),
262
+ 'yes' => __( 'Rich textarea', 'wp-user-frontend' ),
263
+ 'teeny' => __( 'Teeny Rich textarea', 'wp-user-frontend' ),
264
  ),
265
  'section' => 'advanced',
266
  'priority' => 14,
269
 
270
  array(
271
  'name' => 'word_restriction',
272
+ 'title' => __( 'Word Restriction', 'wp-user-frontend' ),
273
  'type' => 'text',
274
  'section' => 'advanced',
275
  'priority' => 15,
276
+ 'help_text' => __( 'Numebr of words the author to be restricted in', 'wp-user-frontend' ),
277
  ),
278
  );
279
  }
304
  'condition_status' => 'no',
305
  'cond_field' => array(),
306
  'cond_operator' => array( '=' ),
307
+ 'cond_option' => array( __( '- select -', 'wp-user-frontend' ) ),
308
  'cond_logic' => 'all'
309
  );
310
  }
322
 
323
  return array(
324
  'template' => 'text_field',
325
+ 'title' => __( 'Text', 'wp-user-frontend' ),
326
  'icon' => 'text-width',
327
  'settings' => $settings,
328
  'field_props' => array(
329
  'input_type' => 'text',
330
  'template' => 'text_field',
331
  'required' => 'no',
332
+ 'label' => __( 'Text', 'wp-user-frontend' ),
333
  'name' => '',
334
  'is_meta' => 'yes',
335
  'help' => '',
361
 
362
  return array(
363
  'template' => 'textarea_field',
364
+ 'title' => __( 'Textarea', 'wp-user-frontend' ),
365
  'icon' => 'paragraph',
366
  'settings' => $settings,
367
  'field_props' => array(
368
  'input_type' => 'textarea',
369
  'template' => 'textarea_field',
370
  'required' => 'no',
371
+ 'label' => __( 'Textarea', 'wp-user-frontend' ),
372
  'name' => '',
373
  'is_meta' => 'yes',
374
  'help' => '',
401
  public static function get_option_data_setting( $is_multiple = false ) {
402
  return array(
403
  'name' => 'options',
404
+ 'title' => __( 'Options', 'wp-user-frontend' ),
405
  'type' => 'option-data',
406
  'is_multiple' => $is_multiple,
407
  'section' => 'basic',
408
  'priority' => 12,
409
+ 'help_text' => __( 'Add options for the form field', 'wp-user-frontend' ),
410
  );
411
  }
412
 
425
 
426
  array(
427
  'name' => 'first',
428
+ 'title' => __( 'Select Text', 'wp-user-frontend' ),
429
  'type' => 'text',
430
  'section' => 'basic',
431
  'priority' => 13,
432
+ 'help_text' => __( "First element of the select dropdown. Leave this empty if you don't want to show this field", 'wp-user-frontend' ),
433
  ),
434
  );
435
 
437
 
438
  return array(
439
  'template' => 'dropdown_field',
440
+ 'title' => __( 'Dropdown', 'wp-user-frontend' ),
441
  'icon' => 'caret-square-o-down',
442
  'settings' => $settings,
443
  'field_props' => array(
444
  'input_type' => 'select',
445
  'template' => 'dropdown_field',
446
  'required' => 'no',
447
+ 'label' => __( 'Dropdown', 'wp-user-frontend' ),
448
  'name' => '',
449
  'is_meta' => 'yes',
450
  'help' => '',
451
  'width' => '',
452
  'css' => '',
453
  'selected' => '',
454
+ 'options' => array( 'Option' => __( 'Option', 'wp-user-frontend' ) ),
455
+ 'first' => __( '- select -', 'wp-user-frontend' ),
456
  'id' => 0,
457
  'is_new' => true,
458
  'show_in_post' => 'yes',
480
 
481
  return array(
482
  'template' => 'multiple_select',
483
+ 'title' => __( 'Multi Select', 'wp-user-frontend' ),
484
  'icon' => 'list-ul',
485
  'settings' => $settings,
486
  'field_props' => array(
487
  'input_type' => 'multiselect',
488
  'template' => 'multiple_select',
489
  'required' => 'no',
490
+ 'label' => __( 'Multi Select', 'wp-user-frontend' ),
491
  'name' => '',
492
  'is_meta' => 'yes',
493
  'help' => '',
494
  'width' => '',
495
  'css' => '',
496
  'selected' => array(),
497
+ 'options' => array( 'Option' => __( 'Option', 'wp-user-frontend' ) ),
498
+ 'first' => __( '- select -', 'wp-user-frontend' ),
499
  'id' => 0,
500
  'is_new' => true,
501
  'show_in_post' => 'yes',
520
 
521
  array(
522
  'name' => 'inline',
523
+ 'title' => __( 'Show in inline list', 'wp-user-frontend' ),
524
  'type' => 'radio',
525
  'options' => array(
526
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
527
+ 'no' => __( 'No', 'wp-user-frontend' ),
528
  ),
529
  'default' => 'no',
530
  'inline' => true,
531
  'section' => 'advanced',
532
  'priority' => 23,
533
+ 'help_text' => __( 'Show this option in an inline list', 'wp-user-frontend' ),
534
  )
535
  );
536
 
538
 
539
  return array(
540
  'template' => 'radio_field',
541
+ 'title' => __( 'Radio', 'wp-user-frontend' ),
542
  'icon' => 'dot-circle-o',
543
  'settings' => $settings,
544
  'field_props' => array(
545
  'input_type' => 'radio',
546
  'template' => 'radio_field',
547
  'required' => 'no',
548
+ 'label' => __( 'Radio Field', 'wp-user-frontend' ),
549
  'name' => '',
550
  'is_meta' => 'yes',
551
  'help' => '',
553
  'css' => '',
554
  'selected' => '',
555
  'inline' => 'no',
556
+ 'options' => array( 'Option' => __( 'Option', 'wp-user-frontend' ) ),
557
  'id' => 0,
558
  'is_new' => true,
559
  'show_in_post' => 'yes',
578
 
579
  array(
580
  'name' => 'inline',
581
+ 'title' => __( 'Show in inline list', 'wp-user-frontend' ),
582
  'type' => 'radio',
583
  'options' => array(
584
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
585
+ 'no' => __( 'No', 'wp-user-frontend' ),
586
  ),
587
  'default' => 'no',
588
  'inline' => true,
589
  'section' => 'advanced',
590
  'priority' => 23,
591
+ 'help_text' => __( 'Show this option in an inline list', 'wp-user-frontend' ),
592
  )
593
  );
594
 
596
 
597
  return array(
598
  'template' => 'checkbox_field',
599
+ 'title' => __( 'Checkbox', 'wp-user-frontend' ),
600
  'icon' => 'check-square-o',
601
  'settings' => $settings,
602
  'field_props' => array(
603
  'input_type' => 'checkbox',
604
  'template' => 'checkbox_field',
605
  'required' => 'no',
606
+ 'label' => __( 'Checkbox Field', 'wp-user-frontend' ),
607
  'name' => '',
608
  'is_meta' => 'yes',
609
  'help' => '',
611
  'css' => '',
612
  'selected' => array(),
613
  'inline' => 'no',
614
+ 'options' => array( 'Option' => __( 'Option', 'wp-user-frontend' ) ),
615
  'id' => 0,
616
  'is_new' => true,
617
  'show_in_post' => 'yes',
633
  $settings = array_merge( $settings, self::get_common_text_properties() );
634
  $settings[] = array(
635
  'name' => 'open_window',
636
+ 'title' => __( 'Open in : ', 'wp-user-frontend' ),
637
  'type' => 'radio',
638
  'options' => array(
639
+ 'same' => __( 'Same Window', 'wp-user-frontend' ),
640
+ 'new' => __( 'New Window', 'wp-user-frontend' ),
641
  ),
642
  'section' => 'basic',
643
  'default' => 'same',
644
  'inline' => true,
645
  'priority' => 32,
646
+ 'help_text' => __( 'Choose whether the link will open in new tab or same window', 'wp-user-frontend' ),
647
  );
648
 
649
  return array(
650
  'template' => 'website_url',
651
+ 'title' => __( 'URL', 'wp-user-frontend' ),
652
  'icon' => 'link',
653
  'settings' => $settings,
654
  'field_props' => array(
655
  'input_type' => 'url',
656
  'template' => 'website_url',
657
  'required' => 'no',
658
+ 'label' => __( 'URL', 'wp-user-frontend' ),
659
  'name' => '',
660
  'is_meta' => 'yes',
661
  'help' => '',
687
 
688
  return array(
689
  'template' => 'email_address',
690
+ 'title' => __( 'Email Address', 'wp-user-frontend' ),
691
  'icon' => 'envelope-o',
692
  'settings' => $settings,
693
  'field_props' => array(
694
  'input_type' => 'email',
695
  'template' => 'email_address',
696
  'required' => 'no',
697
+ 'label' => __( 'Email', 'wp-user-frontend' ),
698
  'name' => '',
699
  'is_meta' => 'yes',
700
  'help' => '',
723
  $settings = array(
724
  array(
725
  'name' => 'name',
726
+ 'title' => __( 'Meta Key', 'wp-user-frontend' ),
727
  'type' => 'text',
728
  'section' => 'basic',
729
  'priority' => 10,
730
+ 'help_text' => __( 'Name of the meta key this field will save to', 'wp-user-frontend' ),
731
  ),
732
 
733
  array(
734
  'name' => 'meta_value',
735
+ 'title' => __( 'Meta Value', 'wp-user-frontend' ),
736
  'type' => 'text',
737
  'section' => 'basic',
738
  'priority' => 11,
739
+ 'help_text' => __( 'Enter the meta value', 'wp-user-frontend' ),
740
  ),
741
  );
742
 
743
  return array(
744
  'template' => 'custom_hidden_field',
745
+ 'title' => __( 'Hidden Field', 'wp-user-frontend' ),
746
  'icon' => 'eye-slash',
747
  'settings' => $settings,
748
  'field_props' => array(
774
  $settings = array_merge( $settings, array(
775
  array(
776
  'name' => 'button_label',
777
+ 'title' => __( 'Button Label', 'wp-user-frontend' ),
778
  'type' => 'text',
779
+ 'default' => __( 'Select Image', 'wp-user-frontend' ),
780
  'section' => 'basic',
781
  'priority' => 30,
782
+ 'help_text' => __( 'Enter a label for the Select button', 'wp-user-frontend' ),
783
  ),
784
  array(
785
  'name' => 'max_size',
786
+ 'title' => __( 'Max. file size', 'wp-user-frontend' ),
787
  'type' => 'text',
788
  'section' => 'advanced',
789
  'priority' => 20,
790
+ 'help_text' => __( 'Enter maximum upload size limit in KB', 'wp-user-frontend' ),
791
  ),
792
  array(
793
  'name' => 'count',
794
+ 'title' => __( 'Max. files', 'wp-user-frontend' ),
795
  'type' => 'text',
796
  'section' => 'advanced',
797
  'priority' => 21,
798
+ 'help_text' => __( 'Number of images can be uploaded', 'wp-user-frontend' ),
799
  ),
800
  ) );
801
 
802
  return array(
803
  'template' => 'image_upload',
804
+ 'title' => __( 'Image Upload', 'wp-user-frontend' ),
805
  'icon' => 'file-image-o',
806
  'settings' => $settings,
807
  'field_props' => array(
808
  'input_type' => 'image_upload',
809
  'template' => 'image_upload',
810
  'required' => 'no',
811
+ 'label' => __( 'Image Upload', 'wp-user-frontend' ),
812
  'name' => '',
813
+ 'button_label' => __( 'Select Image', 'wp-user-frontend' ),
814
  'is_meta' => 'yes',
815
  'help' => '',
816
  'width' => '',
837
  $settings = array(
838
  array(
839
  'name' => 'label',
840
+ 'title' => __( 'Title', 'wp-user-frontend' ),
841
  'type' => 'text',
842
  'section' => 'basic',
843
  'priority' => 10,
844
+ 'help_text' => __( 'Title of the section', 'wp-user-frontend' ),
845
  ),
846
 
847
  array(
848
  'name' => 'description',
849
+ 'title' => __( 'Description', 'wp-user-frontend' ),
850
  'type' => 'textarea',
851
  'section' => 'basic',
852
  'priority' => 11,
853
+ 'help_text' => __( 'Some details text about the section', 'wp-user-frontend' ),
854
  ),
855
  );
856
 
857
  return array(
858
  'template' => 'section_break',
859
+ 'title' => __( 'Section Break', 'wp-user-frontend' ),
860
  'icon' => 'columns',
861
  'is_full_width' => true,
862
  'settings' => $settings,
863
  'field_props' => array(
864
  'input_type' => 'section_break',
865
  'template' => 'section_break',
866
+ 'label' => __( 'Section Break', 'wp-user-frontend' ),
867
+ 'description' => __( 'Some description about this section', 'wp-user-frontend' ),
868
  'id' => 0,
869
  'is_new' => true,
870
  'show_in_post' => 'yes',
885
  $settings = array(
886
  array(
887
  'name' => 'html',
888
+ 'title' => __( 'HTML Codes', 'wp-user-frontend' ),
889
  'type' => 'textarea',
890
  'section' => 'basic',
891
  'priority' => 11,
892
+ 'help_text' => __( 'Paste your HTML codes, WordPress shortcodes will also work here', 'wp-user-frontend' ),
893
  ),
894
  );
895
 
896
  return array(
897
  'template' => 'custom_html',
898
+ 'title' => __( 'Custom HTML', 'wp-user-frontend' ),
899
  'icon' => 'code',
900
  'is_full_width' => true,
901
  'settings' => $settings,
902
  'field_props' => array(
903
  'input_type' => 'html',
904
  'template' => 'custom_html',
905
+ 'label' => __( 'Custom HTML', 'wp-user-frontend' ),
906
+ 'html' => sprintf( '<p>%s</p>', __( 'Some description about this section', 'wp-user-frontend' ) ),
907
  'id' => 0,
908
  'is_new' => true,
909
  'wpuf_visibility' => self::get_wpuf_visibility_prop(),
923
  $settings = array(
924
  array(
925
  'name' => 'label',
926
+ 'title' => __( 'Title', 'wp-user-frontend' ),
927
  'type' => 'text',
928
  'section' => 'basic',
929
  'priority' => 10,
930
+ 'help_text' => __( 'Title of the section', 'wp-user-frontend' ),
931
  ),
932
 
933
  array(
935
  'title' => 'reCaptcha type',
936
  'type' => 'radio',
937
  'options' => array(
938
+ 'enable_no_captcha' => __( 'Enable noCaptcha', 'wp-user-frontend' ),
939
+ 'invisible_recaptcha' => __( 'Enable Invisible reCaptcha', 'wp-user-frontend' ),
940
  ),
941
  'default' => 'enable_no_captcha',
942
  'section' => 'basic',
943
  'priority' => 11,
944
+ 'help_text' => __( 'Select reCaptcha type', 'wp-user-frontend' ),
945
  )
946
  );
947
 
948
  return array(
949
  'template' => 'recaptcha',
950
+ 'title' => __( 'reCaptcha', 'wp-user-frontend' ),
951
  'icon' => 'qrcode',
952
  'validator' => array(
953
  'callback' => 'has_recaptcha_api_keys',
954
  'button_class' => 'button-faded',
955
+ 'msg_title' => __( 'Site key and Secret key', 'wp-user-frontend' ),
956
  'msg' => sprintf(
957
+ __( 'You need to set Site key and Secret key in <a href="%s" target="_blank">Settings</a> in order to use "Recaptcha" field. <a href="%s" target="_blank">Click here to get the these key</a>.', 'wp-user-frontend' ),
958
  admin_url( 'admin.php?page=wpuf-settings' ),
959
  'https://www.google.com/recaptcha/'
960
  ),
admin/form-builder/views/form-builder.php CHANGED
@@ -2,26 +2,26 @@
2
  <fieldset :class="[is_form_saving ? 'disabled' : '']" :disabled="is_form_saving">
3
  <h2 class="nav-tab-wrapper">
4
  <a href="#wpuf-form-builder-container" class="nav-tab nav-tab-active">
5
- <?php _e( 'Form Editor', 'wpuf' ); ?>
6
  </a>
7
 
8
  <a href="#wpuf-form-builder-settings" class="nav-tab">
9
- <?php _e( 'Settings', 'wpuf' ); ?>
10
  </a>
11
 
12
  <?php do_action( "wpuf-form-builder-tabs-{$form_type}" ); ?>
13
 
14
  <span class="pull-right">
15
  <button v-if="!is_form_saving" type="button" class="button button-primary" @click="save_form_builder">
16
- <?php _e( 'Save Form', 'wpuf' ); ?>
17
  </button>
18
 
19
  <button v-else type="button" class="button button-primary button-ajax-working" disabled>
20
- <span class="loader"></span> <?php _e( 'Saving Form Data', 'wpuf' ); ?>
21
  </button>
22
  </span>
23
- <span id="wpuf-toggle-field-options"><?php _e( 'Add Fields', 'wpuf' ); ?></span>
24
- <span id="wpuf-toggle-show-form"><?php _e( 'Show Form', 'wpuf' ); ?></span>
25
  </h2>
26
 
27
  <div class="tab-contents">
@@ -41,10 +41,10 @@
41
 
42
  if ( count( $shortcodes ) > 1 && isset( $shortcodes[0]['type'] ) ) {
43
  foreach ( $shortcodes as $shortcode ) {
44
- printf( "<span class=\"form-id\" title=\"%s\" data-clipboard-text='%s'><i class=\"fa fa-clipboard\" aria-hidden=\"true\"></i> %s: #{{ post.ID }}</span>", sprintf( __( 'Click to copy %s shortcode', 'wpuf' ), $shortcode['type'] ), sprintf( '[%s type="%s" id="%s"]', $shortcode['name'], $shortcode['type'], $form_id ), ucwords( $shortcode['type'] ), $shortcode['type'] );
45
  }
46
  } else {
47
- printf( "<span class=\"form-id\" title=\"%s\" data-clipboard-text='%s'><i class=\"fa fa-clipboard\" aria-hidden=\"true\"></i> #{{ post.ID }}</span>", __( 'Click to copy shortcode', 'wpuf' ), '[' . $shortcodes[0]['name'] . ' id="' . $form_id . '"]' );
48
  }
49
  ?>
50
  </header>
@@ -71,13 +71,13 @@
71
  <ul class="clearfix">
72
  <li :class="['form-fields' === current_panel ? 'active' : '']">
73
  <a href="#add-fields" @click.prevent="set_current_panel('form-fields')">
74
- <?php _e( 'Add Fields', 'wpuf' ); ?>
75
  </a>
76
  </li>
77
 
78
  <li :class="['field-options' === current_panel ? 'active' : '', !form_fields_count ? 'disabled' : '']">
79
  <a href="#field-options" @click.prevent="set_current_panel('field-options')">
80
- <?php _e( 'Field Options', 'wpuf' ); ?>
81
  </a>
82
  </li>
83
  </ul>
2
  <fieldset :class="[is_form_saving ? 'disabled' : '']" :disabled="is_form_saving">
3
  <h2 class="nav-tab-wrapper">
4
  <a href="#wpuf-form-builder-container" class="nav-tab nav-tab-active">
5
+ <?php _e( 'Form Editor', 'wp-user-frontend' ); ?>
6
  </a>
7
 
8
  <a href="#wpuf-form-builder-settings" class="nav-tab">
9
+ <?php _e( 'Settings', 'wp-user-frontend' ); ?>
10
  </a>
11
 
12
  <?php do_action( "wpuf-form-builder-tabs-{$form_type}" ); ?>
13
 
14
  <span class="pull-right">
15
  <button v-if="!is_form_saving" type="button" class="button button-primary" @click="save_form_builder">
16
+ <?php _e( 'Save Form', 'wp-user-frontend' ); ?>
17
  </button>
18
 
19
  <button v-else type="button" class="button button-primary button-ajax-working" disabled>
20
+ <span class="loader"></span> <?php _e( 'Saving Form Data', 'wp-user-frontend' ); ?>
21
  </button>
22
  </span>
23
+ <span id="wpuf-toggle-field-options"><?php _e( 'Add Fields', 'wp-user-frontend' ); ?></span>
24
+ <span id="wpuf-toggle-show-form"><?php _e( 'Show Form', 'wp-user-frontend' ); ?></span>
25
  </h2>
26
 
27
  <div class="tab-contents">
41
 
42
  if ( count( $shortcodes ) > 1 && isset( $shortcodes[0]['type'] ) ) {
43
  foreach ( $shortcodes as $shortcode ) {
44
+ printf( "<span class=\"form-id\" title=\"%s\" data-clipboard-text='%s'><i class=\"fa fa-clipboard\" aria-hidden=\"true\"></i> %s: #{{ post.ID }}</span>", sprintf( __( 'Click to copy %s shortcode', 'wp-user-frontend' ), $shortcode['type'] ), sprintf( '[%s type="%s" id="%s"]', $shortcode['name'], $shortcode['type'], $form_id ), ucwords( $shortcode['type'] ), $shortcode['type'] );
45
  }
46
  } else {
47
+ printf( "<span class=\"form-id\" title=\"%s\" data-clipboard-text='%s'><i class=\"fa fa-clipboard\" aria-hidden=\"true\"></i> #{{ post.ID }}</span>", __( 'Click to copy shortcode', 'wp-user-frontend' ), '[' . $shortcodes[0]['name'] . ' id="' . $form_id . '"]' );
48
  }
49
  ?>
50
  </header>
71
  <ul class="clearfix">
72
  <li :class="['form-fields' === current_panel ? 'active' : '']">
73
  <a href="#add-fields" @click.prevent="set_current_panel('form-fields')">
74
+ <?php _e( 'Add Fields', 'wp-user-frontend' ); ?>
75
  </a>
76
  </li>
77
 
78
  <li :class="['field-options' === current_panel ? 'active' : '', !form_fields_count ? 'disabled' : '']">
79
  <a href="#field-options" @click.prevent="set_current_panel('field-options')">
80
+ <?php _e( 'Field Options', 'wp-user-frontend' ); ?>
81
  </a>
82
  </li>
83
  </ul>
admin/form-handler.php CHANGED
@@ -51,7 +51,7 @@ class WPUF_Admin_Form_Handler {
51
 
52
  // Check permission if not wpuf admin then go out from here
53
  if ( ! current_user_can( wpuf_admin_role() ) ) {
54
- wp_die( __( 'You do not have sufficient permissions to do this action', 'wpuf' ) );
55
  }
56
 
57
 
@@ -178,7 +178,7 @@ class WPUF_Admin_Form_Handler {
178
 
179
  // Check permission if not wpuf admin then go out from here
180
  if ( ! current_user_can( wpuf_admin_role() ) ) {
181
- wp_die( __( 'You do not have sufficient permissions to do this action', 'wpuf' ) );
182
  }
183
 
184
 
@@ -314,40 +314,40 @@ class WPUF_Admin_Form_Handler {
314
  public function admin_notices() {
315
  if ( !empty( $_GET['page'] ) && 'wpuf-post-forms' === $_GET['page'] ) {
316
  if ( !empty( $_GET['trashed'] ) ) {
317
- $notice = sprintf( _n( '%d form moved to the trash.', '%d forms moved to the trash.', $_GET['trashed'], 'wpuf' ), $_GET['trashed'] );
318
  $this->display_notice( $notice );
319
 
320
  } else if ( !empty( $_GET['untrashed'] ) ) {
321
- $notice = sprintf( _n( '%d form restored from the trash.', '%d forms restored from the trash.', $_GET['untrashed'], 'wpuf' ), $_GET['untrashed'] );
322
  $this->display_notice( $notice );
323
 
324
  } else if ( !empty( $_GET['deleted'] ) ) {
325
- $notice = sprintf( _n( '%d form permanently deleted.', '%d forms permanently deleted.', $_GET['deleted'], 'wpuf' ), $_GET['deleted'] );
326
  $this->display_notice( $notice );
327
 
328
  } else if ( !empty( $_GET['duplicated'] ) ) {
329
  $form_url = admin_url( 'admin.php?page=wpuf-post-forms&action=edit&id=' . $_GET['duplicated'] );
330
- $notice = sprintf( __( 'Form duplicated successfully. <a href="%s">View form.</a>', 'wpuf' ), $form_url );
331
  $this->display_notice( $notice );
332
  }
333
  }
334
 
335
  if ( !empty( $_GET['page'] ) && 'wpuf-profile-forms' === $_GET['page'] ) {
336
  if ( !empty( $_GET['trashed'] ) ) {
337
- $notice = sprintf( _n( '%d form moved to the trash.', '%d forms moved to the trash.', $_GET['trashed'], 'wpuf' ), $_GET['trashed'] );
338
  $this->display_notice( $notice );
339
 
340
  } else if ( !empty( $_GET['untrashed'] ) ) {
341
- $notice = sprintf( _n( '%d form restored from the trash.', '%d forms restored from the trash.', $_GET['untrashed'], 'wpuf' ), $_GET['untrashed'] );
342
  $this->display_notice( $notice );
343
 
344
  } else if ( !empty( $_GET['deleted'] ) ) {
345
- $notice = sprintf( _n( '%d form permanently deleted.', '%d forms permanently deleted.', $_GET['deleted'], 'wpuf' ), $_GET['deleted'] );
346
  $this->display_notice( $notice );
347
 
348
  } else if ( !empty( $_GET['duplicated'] ) ) {
349
  $form_url = admin_url( 'admin.php?page=wpuf-profile-forms&action=edit&id=' . $_GET['duplicated'] );
350
- $notice = sprintf( __( 'Form duplicated successfully. <a href="%s">View form.</a>', 'wpuf' ), $form_url );
351
  $this->display_notice( $notice );
352
  }
353
  }
51
 
52
  // Check permission if not wpuf admin then go out from here
53
  if ( ! current_user_can( wpuf_admin_role() ) ) {
54
+ wp_die( __( 'You do not have sufficient permissions to do this action', 'wp-user-frontend' ) );
55
  }
56
 
57
 
178
 
179
  // Check permission if not wpuf admin then go out from here
180
  if ( ! current_user_can( wpuf_admin_role() ) ) {
181
+ wp_die( __( 'You do not have sufficient permissions to do this action', 'wp-user-frontend' ) );
182
  }
183
 
184
 
314
  public function admin_notices() {
315
  if ( !empty( $_GET['page'] ) && 'wpuf-post-forms' === $_GET['page'] ) {
316
  if ( !empty( $_GET['trashed'] ) ) {
317
+ $notice = sprintf( _n( '%d form moved to the trash.', '%d forms moved to the trash.', $_GET['trashed'], 'wp-user-frontend' ), $_GET['trashed'] );
318
  $this->display_notice( $notice );
319
 
320
  } else if ( !empty( $_GET['untrashed'] ) ) {
321
+ $notice = sprintf( _n( '%d form restored from the trash.', '%d forms restored from the trash.', $_GET['untrashed'], 'wp-user-frontend' ), $_GET['untrashed'] );
322
  $this->display_notice( $notice );
323
 
324
  } else if ( !empty( $_GET['deleted'] ) ) {
325
+ $notice = sprintf( _n( '%d form permanently deleted.', '%d forms permanently deleted.', $_GET['deleted'], 'wp-user-frontend' ), $_GET['deleted'] );
326
  $this->display_notice( $notice );
327
 
328
  } else if ( !empty( $_GET['duplicated'] ) ) {
329
  $form_url = admin_url( 'admin.php?page=wpuf-post-forms&action=edit&id=' . $_GET['duplicated'] );
330
+ $notice = sprintf( __( 'Form duplicated successfully. <a href="%s">View form.</a>', 'wp-user-frontend' ), $form_url );
331
  $this->display_notice( $notice );
332
  }
333
  }
334
 
335
  if ( !empty( $_GET['page'] ) && 'wpuf-profile-forms' === $_GET['page'] ) {
336
  if ( !empty( $_GET['trashed'] ) ) {
337
+ $notice = sprintf( _n( '%d form moved to the trash.', '%d forms moved to the trash.', $_GET['trashed'], 'wp-user-frontend' ), $_GET['trashed'] );
338
  $this->display_notice( $notice );
339
 
340
  } else if ( !empty( $_GET['untrashed'] ) ) {
341
+ $notice = sprintf( _n( '%d form restored from the trash.', '%d forms restored from the trash.', $_GET['untrashed'], 'wp-user-frontend' ), $_GET['untrashed'] );
342
  $this->display_notice( $notice );
343
 
344
  } else if ( !empty( $_GET['deleted'] ) ) {
345
+ $notice = sprintf( _n( '%d form permanently deleted.', '%d forms permanently deleted.', $_GET['deleted'], 'wp-user-frontend' ), $_GET['deleted'] );
346
  $this->display_notice( $notice );
347
 
348
  } else if ( !empty( $_GET['duplicated'] ) ) {
349
  $form_url = admin_url( 'admin.php?page=wpuf-profile-forms&action=edit&id=' . $_GET['duplicated'] );
350
+ $notice = sprintf( __( 'Form duplicated successfully. <a href="%s">View form.</a>', 'wp-user-frontend' ), $form_url );
351
  $this->display_notice( $notice );
352
  }
353
  }
admin/form-template.php CHANGED
@@ -60,7 +60,7 @@ class WPUF_Admin_Form_Template {
60
  $registry = wpuf_get_post_form_templates();
61
  $blank_form_url = admin_url( 'admin.php?page=wpuf-post-forms&action=add-new' );
62
  $action_name = 'wpuf_post_form_template';
63
- $footer_help = sprintf( __( 'Want a new integration? <a href="%s" target="_blank">Let us know</a>.', 'wpuf'), 'mailto:support@wedevs.com?subject=WPUF Custom Post Template Integration Request' );
64
 
65
  if ( ! $registry ) {
66
  return;
@@ -166,10 +166,10 @@ class WPUF_Admin_Form_Template {
166
  $selected = isset( $form_settings['form_template'] ) ? $form_settings['form_template'] : '';
167
  ?>
168
  <tr>
169
- <th><?php _e( 'Form Template', 'wpuf' ); ?></th>
170
  <td>
171
  <select name="wpuf_settings[form_template]">
172
- <option value=""><?php echo __( '&mdash; No Template &mdash;', 'wpuf' ); ?></option>
173
  <?php
174
  if ( $registry ) {
175
  foreach ($registry as $key => $template) {
@@ -178,7 +178,7 @@ class WPUF_Admin_Form_Template {
178
  }
179
  ?>
180
  </select>
181
- <p class="description"><?php _e( 'If selected a form template, it will try to execute that integration options when new post created and updated.', 'wpuf' ); ?></p>
182
  </td>
183
  </tr>
184
  <?php
60
  $registry = wpuf_get_post_form_templates();
61
  $blank_form_url = admin_url( 'admin.php?page=wpuf-post-forms&action=add-new' );
62
  $action_name = 'wpuf_post_form_template';
63
+ $footer_help = sprintf( __( 'Want a new integration? <a href="%s" target="_blank">Let us know</a>.', 'wp-user-frontend'), 'mailto:support@wedevs.com?subject=WPUF Custom Post Template Integration Request' );
64
 
65
  if ( ! $registry ) {
66
  return;
166
  $selected = isset( $form_settings['form_template'] ) ? $form_settings['form_template'] : '';
167
  ?>
168
  <tr>
169
+ <th><?php _e( 'Form Template', 'wp-user-frontend' ); ?></th>
170
  <td>
171
  <select name="wpuf_settings[form_template]">
172
+ <option value=""><?php echo __( '&mdash; No Template &mdash;', 'wp-user-frontend' ); ?></option>
173
  <?php
174
  if ( $registry ) {
175
  foreach ($registry as $key => $template) {
178
  }
179
  ?>
180
  </select>
181
+ <p class="description"><?php _e( 'If selected a form template, it will try to execute that integration options when new post created and updated.', 'wp-user-frontend' ); ?></p>
182
  </td>
183
  </tr>
184
  <?php
admin/form.php CHANGED
@@ -46,7 +46,7 @@ class WPUF_Admin_Form {
46
  $capability = wpuf_admin_role();
47
 
48
  register_post_type( 'wpuf_forms', array(
49
- 'label' => __( 'Forms', 'wpuf' ),
50
  'public' => false,
51
  'show_ui' => false,
52
  'show_in_menu' => false, //false,
@@ -66,25 +66,25 @@ class WPUF_Admin_Form {
66
  'read_post' => $capability,
67
  ),
68
  'labels' => array(
69
- 'name' => __( 'Forms', 'wpuf' ),
70
- 'singular_name' => __( 'Form', 'wpuf' ),
71
- 'menu_name' => __( 'Forms', 'wpuf' ),
72
- 'add_new' => __( 'Add Form', 'wpuf' ),
73
- 'add_new_item' => __( 'Add New Form', 'wpuf' ),
74
- 'edit' => __( 'Edit', 'wpuf' ),
75
- 'edit_item' => __( 'Edit Form', 'wpuf' ),
76
- 'new_item' => __( 'New Form', 'wpuf' ),
77
- 'view' => __( 'View Form', 'wpuf' ),
78
- 'view_item' => __( 'View Form', 'wpuf' ),
79
- 'search_items' => __( 'Search Form', 'wpuf' ),
80
- 'not_found' => __( 'No Form Found', 'wpuf' ),
81
- 'not_found_in_trash' => __( 'No Form Found in Trash', 'wpuf' ),
82
- 'parent' => __( 'Parent Form', 'wpuf' ),
83
  ),
84
  ) );
85
 
86
  register_post_type( 'wpuf_profile', array(
87
- 'label' => __( 'Registraton Forms', 'wpuf' ),
88
  'public' => false,
89
  'show_ui' => false,
90
  'show_in_menu' => false,
@@ -104,20 +104,20 @@ class WPUF_Admin_Form {
104
  'read_post' => $capability,
105
  ),
106
  'labels' => array(
107
- 'name' => __( 'Forms', 'wpuf' ),
108
- 'singular_name' => __( 'Form', 'wpuf' ),
109
- 'menu_name' => __( 'Registration Forms', 'wpuf' ),
110
- 'add_new' => __( 'Add Form', 'wpuf' ),
111
- 'add_new_item' => __( 'Add New Form', 'wpuf' ),
112
- 'edit' => __( 'Edit', 'wpuf' ),
113
- 'edit_item' => __( 'Edit Form', 'wpuf' ),
114
- 'new_item' => __( 'New Form', 'wpuf' ),
115
- 'view' => __( 'View Form', 'wpuf' ),
116
- 'view_item' => __( 'View Form', 'wpuf' ),
117
- 'search_items' => __( 'Search Form', 'wpuf' ),
118
- 'not_found' => __( 'No Form Found', 'wpuf' ),
119
- 'not_found_in_trash' => __( 'No Form Found in Trash', 'wpuf' ),
120
- 'parent' => __( 'Parent Form', 'wpuf' ),
121
  ),
122
  ) );
123
 
@@ -191,7 +191,7 @@ class WPUF_Admin_Form {
191
  ?>
192
 
193
  <a href="#wpuf-form-builder-notification" class="nav-tab">
194
- <?php _e( 'Notification', 'wpuf' ); ?>
195
  </a>
196
 
197
  <?php
@@ -224,12 +224,12 @@ class WPUF_Admin_Form {
224
  public function add_settings_tabs() {
225
  ?>
226
 
227
- <a href="#wpuf-metabox-settings" class="nav-tab"><?php _e( 'Post Settings', 'wpuf' ); ?></a>
228
- <a href="#wpuf-metabox-settings-update" class="nav-tab"><?php _e( 'Edit Settings', 'wpuf' ); ?></a>
229
- <a href="#wpuf-metabox-submission-restriction" class="nav-tab"><?php _e( 'Submission Restriction', 'wpuf' ); ?></a>
230
- <a href="#wpuf-metabox-settings-payment" class="nav-tab"><?php _e( 'Payment Settings', 'wpuf' ); ?></a>
231
- <a href="#wpuf-metabox-settings-display" class="nav-tab"><?php _e( 'Display Settings', 'wpuf' ); ?></a>
232
- <a href="#wpuf-metabox-post_expiration" class="nav-tab"><?php _e( 'Post Expiration', 'wpuf' ); ?></a>
233
 
234
  <?php do_action( 'wpuf_post_form_tab' ); ?>
235
 
@@ -291,11 +291,11 @@ class WPUF_Admin_Form {
291
  $subscriptions = WPUF_Subscription::init()->get_subscriptions();
292
 
293
  if ( ! $subscriptions ) {
294
- printf( '<option>%s</option>', __( '- Select -', 'wpuf' ), 'wpuf' );
295
  return;
296
  }
297
 
298
- printf( '<option>%s</option>', __( '- Select -', 'wpuf' ) );
299
 
300
  foreach ( $subscriptions as $key => $subscription ) {
301
  ?>
@@ -329,13 +329,13 @@ class WPUF_Admin_Form {
329
 
330
  return array(
331
  array(
332
- 'title' => __( 'Post Fields', 'wpuf' ),
333
  'id' => 'post-fields',
334
  'fields' => $post_fields
335
  ),
336
 
337
  array(
338
- 'title' => __( 'Taxonomies', 'wpuf' ),
339
  'id' => 'taxonomies',
340
  'fields' => array()
341
  )
@@ -437,7 +437,7 @@ class WPUF_Admin_Form {
437
  class="btn"
438
  id="wpuf-post-draft"
439
  >
440
- <?php _e( 'Save Draft', 'wpuf' ); ?>
441
  </a>
442
  <?php
443
  }
@@ -547,14 +547,14 @@ class WPUF_Admin_Form {
547
 
548
  return array(
549
  'template' => 'post_title',
550
- 'title' => __( 'Post Title', 'wpuf' ),
551
  'icon' => 'header',
552
  'settings' => $settings,
553
  'field_props' => array(
554
  'input_type' => 'text',
555
  'template' => 'post_title',
556
  'required' => 'no',
557
- 'label' => __( 'Post Title', 'wpuf' ),
558
  'name' => 'post_title',
559
  'is_meta' => 'no',
560
  'help' => '',
@@ -586,9 +586,9 @@ class WPUF_Admin_Form {
586
  $settings = array_merge( $settings, array(
587
  array(
588
  'name' => 'insert_image',
589
- 'title' => __( 'Enable Image Insertion', 'wpuf' ),
590
  'type' => 'checkbox',
591
- 'options' => array( 'yes' => __( 'Enable image upload in post area', 'wpuf' ) ),
592
  'is_single_opt' => true,
593
  'section' => 'advanced',
594
  'priority' => 14,
@@ -597,14 +597,14 @@ class WPUF_Admin_Form {
597
 
598
  return array(
599
  'template' => 'post_content',
600
- 'title' => __( 'Post Body', 'wpuf' ),
601
  'icon' => 'file-text',
602
  'settings' => $settings,
603
  'field_props' => array(
604
  'input_type' => 'textarea',
605
  'template' => 'post_content',
606
  'required' => 'no',
607
- 'label' => __( 'Post Body', 'wpuf' ),
608
  'name' => 'post_content',
609
  'is_meta' => 'no',
610
  'help' => '',
@@ -643,14 +643,14 @@ class WPUF_Admin_Form {
643
 
644
  return array(
645
  'template' => 'post_excerpt',
646
- 'title' => __( 'Excerpt', 'wpuf' ),
647
  'icon' => 'compress',
648
  'settings' => $settings,
649
  'field_props' => array(
650
  'input_type' => 'textarea',
651
  'template' => 'post_excerpt',
652
  'required' => 'no',
653
- 'label' => __( 'Excerpt', 'wpuf' ),
654
  'name' => 'post_excerpt',
655
  'is_meta' => 'no',
656
  'help' => '',
@@ -683,35 +683,35 @@ class WPUF_Admin_Form {
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' ),
696
  'type' => 'text',
697
  'section' => 'advanced',
698
  'priority' => 20,
699
- 'help_text' => __( 'Enter maximum upload size limit in KB', 'wpuf' ),
700
  )
701
  ) );
702
 
703
  return array(
704
  'template' => 'featured_image',
705
- 'title' => __( 'Featured Image', 'wpuf' ),
706
  'icon' => 'picture-o',
707
  'settings' => $settings,
708
  'field_props' => array(
709
  'input_type' => 'image_upload',
710
  'template' => 'featured_image',
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' => '',
@@ -738,13 +738,13 @@ class WPUF_Admin_Form {
738
 
739
  return array(
740
  'template' => 'post_tags',
741
- 'title' => __( 'Tags', 'wpuf' ),
742
  'settings' => $settings,
743
  'field_props' => array(
744
  'input_type' => 'text',
745
  'template' => 'post_tags',
746
  'required' => 'no',
747
- 'label' => __( 'Tags', 'wpuf' ),
748
  'name' => 'tags',
749
  'is_meta' => 'no',
750
  'help' => '',
@@ -774,14 +774,14 @@ class WPUF_Admin_Form {
774
  $settings = array_merge( $settings, array(
775
  array(
776
  'name' => 'type',
777
- 'title' => __( 'Type', 'wpuf' ),
778
  'type' => 'select',
779
  'options' => array(
780
- 'select' => __( 'Select', 'wpuf' ),
781
- 'multiselect' => __( 'Multi Select', 'wpuf' ),
782
- 'checkbox' => __( 'Checkbox', 'wpuf' ),
783
- 'text' => __( 'Text Input', 'wpuf' ),
784
- 'ajax' => __( 'Ajax', 'wpuf' ),
785
  ),
786
  'section' => 'advanced',
787
  'priority' => 23,
@@ -790,38 +790,38 @@ class WPUF_Admin_Form {
790
 
791
  array(
792
  'name' => 'first',
793
- 'title' => __( 'Select Text', 'wpuf' ),
794
  'type' => 'text',
795
  'section' => 'basic',
796
  'priority' => 13,
797
- 'help_text' => __( "First element of the select dropdown. Leave this empty if you don't want to show this field", 'wpuf' ),
798
  ),
799
 
800
  array(
801
  'name' => 'show_inline',
802
- 'title' => __( 'Show in inline list', 'wpuf' ),
803
  'type' => 'radio',
804
  'options' => array(
805
- 'yes' => __( 'Yes', 'wpuf' ),
806
- 'no' => __( 'No', 'wpuf' ),
807
  ),
808
  'default' => 'no',
809
  'inline' => true,
810
  'section' => 'advanced',
811
  'priority' => 23,
812
- 'help_text' => __( 'Show this option in an inline list', 'wpuf' ),
813
  ),
814
 
815
  array(
816
  'name' => 'orderby',
817
- 'title' => __( 'Order By', 'wpuf' ),
818
  'type' => 'select',
819
  'options' => array(
820
- 'name' => __( 'Name', 'wpuf' ),
821
- 'term_id' => __( 'Term ID', 'wpuf' ), // NOTE: before 2.5 the key was 'id' not 'term_id'
822
- 'slug' => __( 'Slug', 'wpuf' ),
823
- 'count' => __( 'Count', 'wpuf' ),
824
- 'term_group' => __( 'Term Group', 'wpuf' ),
825
  ),
826
  'section' => 'advanced',
827
  'priority' => 24,
@@ -830,12 +830,12 @@ class WPUF_Admin_Form {
830
 
831
  array(
832
  'name' => 'order',
833
- 'title' => __( 'Order', 'wpuf' ),
834
  'type' => 'radio',
835
  'inline' => true,
836
  'options' => array(
837
- 'ASC' => __( 'ASC', 'wpuf' ),
838
- 'DESC' => __( 'DESC', 'wpuf' ),
839
  ),
840
  'section' => 'advanced',
841
  'priority' => 25,
@@ -844,12 +844,12 @@ class WPUF_Admin_Form {
844
 
845
  array(
846
  'name' => 'exclude_type',
847
- 'title' => __( 'Selection Type', 'wpuf' ),
848
  'type' => 'select',
849
  'options' => array(
850
- 'exclude' => __( 'Exclude', 'wpuf' ),
851
- 'include' => __( 'Include', 'wpuf' ),
852
- 'child_of' => __( 'Child of', 'wpuf' ),
853
  ),
854
  'section' => 'advanced',
855
  'priority' => 26,
@@ -858,11 +858,11 @@ class WPUF_Admin_Form {
858
 
859
  array(
860
  'name' => 'exclude',
861
- 'title' => __( 'Selection Terms', 'wpuf' ),
862
  'type' => 'multiselect',
863
  'section' => 'advanced',
864
  'priority' => 27,
865
- 'help_text' => __( 'Enter the term IDs as comma separated (without space) to exclude/include in the form.', 'wpuf' ),
866
  'options' => wpuf_get_terms( $tax_name ),
867
  ),
868
 
@@ -871,7 +871,7 @@ class WPUF_Admin_Form {
871
  'type' => 'checkbox',
872
  'is_single_opt' => true,
873
  'options' => array(
874
- 'yes' => __( 'This taxonomy is a WooCommerce attribute', 'wpuf' )
875
  ),
876
  'section' => 'advanced',
877
  'priority' => 28,
@@ -882,7 +882,7 @@ class WPUF_Admin_Form {
882
  'type' => 'checkbox',
883
  'is_single_opt' => true,
884
  'options' => array(
885
- 'yes' => __( 'Visible on product page', 'wpuf' )
886
  ),
887
  'section' => 'advanced',
888
  'priority' => 29,
@@ -907,7 +907,7 @@ class WPUF_Admin_Form {
907
  'width' => 'small',
908
  'css' => '',
909
  'type' => 'select',
910
- 'first' => __( '- select -', 'wpuf' ),
911
  'show_inline' => 'inline',
912
  'orderby' => 'name',
913
  'order' => 'ASC',
@@ -934,7 +934,7 @@ class WPUF_Admin_Form {
934
  */
935
  public function i18n( $i18n ) {
936
  return array_merge( $i18n, array(
937
- 'any_of_three_needed' => __( 'Post Forms must have either Post Title, Post Body or Excerpt field', 'wpuf' )
938
  ) );
939
  }
940
 
46
  $capability = wpuf_admin_role();
47
 
48
  register_post_type( 'wpuf_forms', array(
49
+ 'label' => __( 'Forms', 'wp-user-frontend' ),
50
  'public' => false,
51
  'show_ui' => false,
52
  'show_in_menu' => false, //false,
66
  'read_post' => $capability,
67
  ),
68
  'labels' => array(
69
+ 'name' => __( 'Forms', 'wp-user-frontend' ),
70
+ 'singular_name' => __( 'Form', 'wp-user-frontend' ),
71
+ 'menu_name' => __( 'Forms', 'wp-user-frontend' ),
72
+ 'add_new' => __( 'Add Form', 'wp-user-frontend' ),
73
+ 'add_new_item' => __( 'Add New Form', 'wp-user-frontend' ),
74
+ 'edit' => __( 'Edit', 'wp-user-frontend' ),
75
+ 'edit_item' => __( 'Edit Form', 'wp-user-frontend' ),
76
+ 'new_item' => __( 'New Form', 'wp-user-frontend' ),
77
+ 'view' => __( 'View Form', 'wp-user-frontend' ),
78
+ 'view_item' => __( 'View Form', 'wp-user-frontend' ),
79
+ 'search_items' => __( 'Search Form', 'wp-user-frontend' ),
80
+ 'not_found' => __( 'No Form Found', 'wp-user-frontend' ),
81
+ 'not_found_in_trash' => __( 'No Form Found in Trash', 'wp-user-frontend' ),
82
+ 'parent' => __( 'Parent Form', 'wp-user-frontend' ),
83
  ),
84
  ) );
85
 
86
  register_post_type( 'wpuf_profile', array(
87
+ 'label' => __( 'Registraton Forms', 'wp-user-frontend' ),
88
  'public' => false,
89
  'show_ui' => false,
90
  'show_in_menu' => false,
104
  'read_post' => $capability,
105
  ),
106
  'labels' => array(
107
+ 'name' => __( 'Forms', 'wp-user-frontend' ),
108
+ 'singular_name' => __( 'Form', 'wp-user-frontend' ),
109
+ 'menu_name' => __( 'Registration Forms', 'wp-user-frontend' ),
110
+ 'add_new' => __( 'Add Form', 'wp-user-frontend' ),
111
+ 'add_new_item' => __( 'Add New Form', 'wp-user-frontend' ),
112
+ 'edit' => __( 'Edit', 'wp-user-frontend' ),
113
+ 'edit_item' => __( 'Edit Form', 'wp-user-frontend' ),
114
+ 'new_item' => __( 'New Form', 'wp-user-frontend' ),
115
+ 'view' => __( 'View Form', 'wp-user-frontend' ),
116
+ 'view_item' => __( 'View Form', 'wp-user-frontend' ),
117
+ 'search_items' => __( 'Search Form', 'wp-user-frontend' ),
118
+ 'not_found' => __( 'No Form Found', 'wp-user-frontend' ),
119
+ 'not_found_in_trash' => __( 'No Form Found in Trash', 'wp-user-frontend' ),
120
+ 'parent' => __( 'Parent Form', 'wp-user-frontend' ),
121
  ),
122
  ) );
123
 
191
  ?>
192
 
193
  <a href="#wpuf-form-builder-notification" class="nav-tab">
194
+ <?php _e( 'Notification', 'wp-user-frontend' ); ?>
195
  </a>
196
 
197
  <?php
224
  public function add_settings_tabs() {
225
  ?>
226
 
227
+ <a href="#wpuf-metabox-settings" class="nav-tab"><?php _e( 'Post Settings', 'wp-user-frontend' ); ?></a>
228
+ <a href="#wpuf-metabox-settings-update" class="nav-tab"><?php _e( 'Edit Settings', 'wp-user-frontend' ); ?></a>
229
+ <a href="#wpuf-metabox-submission-restriction" class="nav-tab"><?php _e( 'Submission Restriction', 'wp-user-frontend' ); ?></a>
230
+ <a href="#wpuf-metabox-settings-payment" class="nav-tab"><?php _e( 'Payment Settings', 'wp-user-frontend' ); ?></a>
231
+ <a href="#wpuf-metabox-settings-display" class="nav-tab"><?php _e( 'Display Settings', 'wp-user-frontend' ); ?></a>
232
+ <a href="#wpuf-metabox-post_expiration" class="nav-tab"><?php _e( 'Post Expiration', 'wp-user-frontend' ); ?></a>
233
 
234
  <?php do_action( 'wpuf_post_form_tab' ); ?>
235
 
291
  $subscriptions = WPUF_Subscription::init()->get_subscriptions();
292
 
293
  if ( ! $subscriptions ) {
294
+ printf( '<option>%s</option>', __( '- Select -', 'wp-user-frontend' ), 'wpuf' );
295
  return;
296
  }
297
 
298
+ printf( '<option>%s</option>', __( '- Select -', 'wp-user-frontend' ) );
299
 
300
  foreach ( $subscriptions as $key => $subscription ) {
301
  ?>
329
 
330
  return array(
331
  array(
332
+ 'title' => __( 'Post Fields', 'wp-user-frontend' ),
333
  'id' => 'post-fields',
334
  'fields' => $post_fields
335
  ),
336
 
337
  array(
338
+ 'title' => __( 'Taxonomies', 'wp-user-frontend' ),
339
  'id' => 'taxonomies',
340
  'fields' => array()
341
  )
437
  class="btn"
438
  id="wpuf-post-draft"
439
  >
440
+ <?php _e( 'Save Draft', 'wp-user-frontend' ); ?>
441
  </a>
442
  <?php
443
  }
547
 
548
  return array(
549
  'template' => 'post_title',
550
+ 'title' => __( 'Post Title', 'wp-user-frontend' ),
551
  'icon' => 'header',
552
  'settings' => $settings,
553
  'field_props' => array(
554
  'input_type' => 'text',
555
  'template' => 'post_title',
556
  'required' => 'no',
557
+ 'label' => __( 'Post Title', 'wp-user-frontend' ),
558
  'name' => 'post_title',
559
  'is_meta' => 'no',
560
  'help' => '',
586
  $settings = array_merge( $settings, array(
587
  array(
588
  'name' => 'insert_image',
589
+ 'title' => __( 'Enable Image Insertion', 'wp-user-frontend' ),
590
  'type' => 'checkbox',
591
+ 'options' => array( 'yes' => __( 'Enable image upload in post area', 'wp-user-frontend' ) ),
592
  'is_single_opt' => true,
593
  'section' => 'advanced',
594
  'priority' => 14,
597
 
598
  return array(
599
  'template' => 'post_content',
600
+ 'title' => __( 'Post Body', 'wp-user-frontend' ),
601
  'icon' => 'file-text',
602
  'settings' => $settings,
603
  'field_props' => array(
604
  'input_type' => 'textarea',
605
  'template' => 'post_content',
606
  'required' => 'no',
607
+ 'label' => __( 'Post Body', 'wp-user-frontend' ),
608
  'name' => 'post_content',
609
  'is_meta' => 'no',
610
  'help' => '',
643
 
644
  return array(
645
  'template' => 'post_excerpt',
646
+ 'title' => __( 'Excerpt', 'wp-user-frontend' ),
647
  'icon' => 'compress',
648
  'settings' => $settings,
649
  'field_props' => array(
650
  'input_type' => 'textarea',
651
  'template' => 'post_excerpt',
652
  'required' => 'no',
653
+ 'label' => __( 'Excerpt', 'wp-user-frontend' ),
654
  'name' => 'post_excerpt',
655
  'is_meta' => 'no',
656
  'help' => '',
683
  $settings = array_merge( $settings, array(
684
  array(
685
  'name' => 'button_label',
686
+ 'title' => __( 'Button Label', 'wp-user-frontend' ),
687
  'type' => 'text',
688
+ 'default' => __( 'Select Image', 'wp-user-frontend' ),
689
  'section' => 'basic',
690
  'priority' => 30,
691
+ 'help_text' => __( 'Enter a label for the Select button', 'wp-user-frontend' ),
692
  ),
693
  array(
694
  'name' => 'max_size',
695
+ 'title' => __( 'Max. file size', 'wp-user-frontend' ),
696
  'type' => 'text',
697
  'section' => 'advanced',
698
  'priority' => 20,
699
+ 'help_text' => __( 'Enter maximum upload size limit in KB', 'wp-user-frontend' ),
700
  )
701
  ) );
702
 
703
  return array(
704
  'template' => 'featured_image',
705
+ 'title' => __( 'Featured Image', 'wp-user-frontend' ),
706
  'icon' => 'picture-o',
707
  'settings' => $settings,
708
  'field_props' => array(
709
  'input_type' => 'image_upload',
710
  'template' => 'featured_image',
711
  'required' => 'no',
712
+ 'label' => __( 'Featured Image', 'wp-user-frontend' ),
713
  'name' => 'featured_image',
714
+ 'button_label' => __( 'Select Image', 'wp-user-frontend' ),
715
  'is_meta' => 'no',
716
  'help' => '',
717
  'css' => '',
738
 
739
  return array(
740
  'template' => 'post_tags',
741
+ 'title' => __( 'Tags', 'wp-user-frontend' ),
742
  'settings' => $settings,
743
  'field_props' => array(
744
  'input_type' => 'text',
745
  'template' => 'post_tags',
746
  'required' => 'no',
747
+ 'label' => __( 'Tags', 'wp-user-frontend' ),
748
  'name' => 'tags',
749
  'is_meta' => 'no',
750
  'help' => '',
774
  $settings = array_merge( $settings, array(
775
  array(
776
  'name' => 'type',
777
+ 'title' => __( 'Type', 'wp-user-frontend' ),
778
  'type' => 'select',
779
  'options' => array(
780
+ 'select' => __( 'Select', 'wp-user-frontend' ),
781
+ 'multiselect' => __( 'Multi Select', 'wp-user-frontend' ),
782
+ 'checkbox' => __( 'Checkbox', 'wp-user-frontend' ),
783
+ 'text' => __( 'Text Input', 'wp-user-frontend' ),
784
+ 'ajax' => __( 'Ajax', 'wp-user-frontend' ),
785
  ),
786
  'section' => 'advanced',
787
  'priority' => 23,
790
 
791
  array(
792
  'name' => 'first',
793
+ 'title' => __( 'Select Text', 'wp-user-frontend' ),
794
  'type' => 'text',
795
  'section' => 'basic',
796
  'priority' => 13,
797
+ 'help_text' => __( "First element of the select dropdown. Leave this empty if you don't want to show this field", 'wp-user-frontend' ),
798
  ),
799
 
800
  array(
801
  'name' => 'show_inline',
802
+ 'title' => __( 'Show in inline list', 'wp-user-frontend' ),
803
  'type' => 'radio',
804
  'options' => array(
805
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
806
+ 'no' => __( 'No', 'wp-user-frontend' ),
807
  ),
808
  'default' => 'no',
809
  'inline' => true,
810
  'section' => 'advanced',
811
  'priority' => 23,
812
+ 'help_text' => __( 'Show this option in an inline list', 'wp-user-frontend' ),
813
  ),
814
 
815
  array(
816
  'name' => 'orderby',
817
+ 'title' => __( 'Order By', 'wp-user-frontend' ),
818
  'type' => 'select',
819
  'options' => array(
820
+ 'name' => __( 'Name', 'wp-user-frontend' ),
821
+ 'term_id' => __( 'Term ID', 'wp-user-frontend' ), // NOTE: before 2.5 the key was 'id' not 'term_id'
822
+ 'slug' => __( 'Slug', 'wp-user-frontend' ),
823
+ 'count' => __( 'Count', 'wp-user-frontend' ),
824
+ 'term_group' => __( 'Term Group', 'wp-user-frontend' ),
825
  ),
826
  'section' => 'advanced',
827
  'priority' => 24,
830
 
831
  array(
832
  'name' => 'order',
833
+ 'title' => __( 'Order', 'wp-user-frontend' ),
834
  'type' => 'radio',
835
  'inline' => true,
836
  'options' => array(
837
+ 'ASC' => __( 'ASC', 'wp-user-frontend' ),
838
+ 'DESC' => __( 'DESC', 'wp-user-frontend' ),
839
  ),
840
  'section' => 'advanced',
841
  'priority' => 25,
844
 
845
  array(
846
  'name' => 'exclude_type',
847
+ 'title' => __( 'Selection Type', 'wp-user-frontend' ),
848
  'type' => 'select',
849
  'options' => array(
850
+ 'exclude' => __( 'Exclude', 'wp-user-frontend' ),
851
+ 'include' => __( 'Include', 'wp-user-frontend' ),
852
+ 'child_of' => __( 'Child of', 'wp-user-frontend' ),
853
  ),
854
  'section' => 'advanced',
855
  'priority' => 26,
858
 
859
  array(
860
  'name' => 'exclude',
861
+ 'title' => __( 'Selection Terms', 'wp-user-frontend' ),
862
  'type' => 'multiselect',
863
  'section' => 'advanced',
864
  'priority' => 27,
865
+ 'help_text' => __( 'Enter the term IDs as comma separated (without space) to exclude/include in the form.', 'wp-user-frontend' ),
866
  'options' => wpuf_get_terms( $tax_name ),
867
  ),
868
 
871
  'type' => 'checkbox',
872
  'is_single_opt' => true,
873
  'options' => array(
874
+ 'yes' => __( 'This taxonomy is a WooCommerce attribute', 'wp-user-frontend' )
875
  ),
876
  'section' => 'advanced',
877
  'priority' => 28,
882
  'type' => 'checkbox',
883
  'is_single_opt' => true,
884
  'options' => array(
885
+ 'yes' => __( 'Visible on product page', 'wp-user-frontend' )
886
  ),
887
  'section' => 'advanced',
888
  'priority' => 29,
907
  'width' => 'small',
908
  'css' => '',
909
  'type' => 'select',
910
+ 'first' => __( '- select -', 'wp-user-frontend' ),
911
  'show_inline' => 'inline',
912
  'orderby' => 'name',
913
  'order' => 'ASC',
934
  */
935
  public function i18n( $i18n ) {
936
  return array_merge( $i18n, array(
937
+ 'any_of_three_needed' => __( 'Post Forms must have either Post Title, Post Body or Excerpt field', 'wp-user-frontend' )
938
  ) );
939
  }
940
 
admin/html/form-settings-display.php CHANGED
@@ -8,15 +8,15 @@ $theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use
8
  <table class="form-table">
9
 
10
  <tr class="wpuf-label-position">
11
- <th><?php _e( 'Label Position', 'wpuf' ); ?></th>
12
  <td>
13
  <select name="wpuf_settings[label_position]">
14
  <?php
15
  $positions = array(
16
- 'above' => __( 'Above Element', 'wpuf' ),
17
- 'left' => __( 'Left of Element', 'wpuf' ),
18
- 'right' => __( 'Right of Element', 'wpuf' ),
19
- 'hidden' => __( 'Hidden', 'wpuf' ),
20
  );
21
 
22
  foreach ($positions as $to => $label) {
@@ -26,19 +26,19 @@ $theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use
26
  </select>
27
 
28
  <p class="description">
29
- <?php _e( 'Where the labels of the form should display', 'wpuf' ) ?>
30
  </p>
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) {
@@ -48,14 +48,14 @@ $theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use
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>
59
  <td>
60
  <ul>
61
  <?php
8
  <table class="form-table">
9
 
10
  <tr class="wpuf-label-position">
11
+ <th><?php _e( 'Label Position', 'wp-user-frontend' ); ?></th>
12
  <td>
13
  <select name="wpuf_settings[label_position]">
14
  <?php
15
  $positions = array(
16
+ 'above' => __( 'Above Element', 'wp-user-frontend' ),
17
+ 'left' => __( 'Left of Element', 'wp-user-frontend' ),
18
+ 'right' => __( 'Right of Element', 'wp-user-frontend' ),
19
+ 'hidden' => __( 'Hidden', 'wp-user-frontend' ),
20
  );
21
 
22
  foreach ($positions as $to => $label) {
26
  </select>
27
 
28
  <p class="description">
29
+ <?php _e( 'Where the labels of the form should display', 'wp-user-frontend' ) ?>
30
  </p>
31
  </td>
32
  </tr>
33
 
34
  <tr class="wpuf-override-theme-css">
35
+ <th><?php _e( 'Use Theme CSS', 'wp-user-frontend' ); ?></th>
36
  <td>
37
  <select name="wpuf_settings[use_theme_css]">
38
  <?php
39
  $options = array(
40
+ 'wpuf-style' => __( 'No', 'wp-user-frontend' ),
41
+ 'wpuf-theme-style' => __( 'Yes', 'wp-user-frontend' ),
42
  );
43
 
44
  foreach ($options as $to => $label) {
48
  </select>
49
 
50
  <p class="description">
51
+ <?php _e( 'Selecting "Yes" will use your theme\'s style for form fields.', 'wp-user-frontend' ) ?>
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', 'wp-user-frontend' ); ?></th>
59
  <td>
60
  <ul>
61
  <?php
admin/html/form-settings-payment.php CHANGED
@@ -17,70 +17,70 @@ $fallback_ppp_cost = isset( $form_settings['fallback_ppp_cost'] ) ? $form_se
17
  <!-- Added Payment Settings -->
18
 
19
  <tr>
20
- <th><?php _e( 'Payment Options', 'wpuf' ); ?></th>
21
  <td>
22
  <label>
23
  <input type="hidden" name="wpuf_settings[payment_options]" value="false">
24
  <input type="checkbox" name="wpuf_settings[payment_options]" value="true"<?php checked( $payment_options, 'true' ); ?> />
25
- <?php _e( 'Enable Payments', 'wpuf' ) ?>
26
  </label>
27
- <p class="description"><?php _e( 'Check to enable Payments for this form.', 'wpuf' ); ?></p>
28
  </td>
29
  </tr>
30
 
31
  <tr class="show-if-payment">
32
- <th>&mdash; <?php _e( 'Force Pack', 'wpuf' ); ?></th>
33
  <td>
34
  <label>
35
  <input type="hidden" name="wpuf_settings[force_pack_purchase]" value="false">
36
  <input type="checkbox" name="wpuf_settings[force_pack_purchase]" value="true"<?php checked( $force_pack_purchase, 'true' ); ?> />
37
- <?php _e( 'Force subscription pack', 'wpuf' ) ?>
38
  </label>
39
- <p class="description"><?php _e( 'Force users to purchase and use subscription pack.', 'wpuf' ); ?></p>
40
  </td>
41
  </tr>
42
 
43
  <tr class="show-if-payment show-if-force-pack">
44
- <th>&mdash; &mdash; <?php _e( 'Fallback to pay per post', 'wpuf' ); ?></th>
45
  <td>
46
  <label>
47
  <input type="hidden" name="wpuf_settings[fallback_ppp_enable]" value="false">
48
  <input type="checkbox" name="wpuf_settings[fallback_ppp_enable]" value="true"<?php checked( $fallback_ppp_enable, 'true' ); ?> />
49
- <?php _e( 'Fallback pay per post charging', 'wpuf' ) ?>
50
  </label>
51
- <p class="description"><?php _e( 'Fallback to pay per post charging if pack limit exceeds', 'wpuf' ); ?></p>
52
  </td>
53
  </tr>
54
 
55
  <tr class="show-if-payment show-if-force-pack">
56
- <th>&mdash; &mdash; <?php _e( 'Fallback cost', 'wpuf' ); ?></th>
57
  <td>
58
  <label>
59
  <input type="number" name="wpuf_settings[fallback_ppp_cost]" value="<?php echo esc_attr( $fallback_ppp_cost ); ?>" />
60
  </label>
61
- <p class="description"><?php _e( 'Cost of pay per post after a subscription pack limit is reached.', 'wpuf' ); ?></p>
62
  </td>
63
  </tr>
64
 
65
  <tr class="show-if-payment">
66
- <th>&mdash; <?php _e( 'Pay Per Post', 'wpuf' ); ?></th>
67
  <td>
68
  <label>
69
  <input type="hidden" name="wpuf_settings[enable_pay_per_post]" value="false">
70
  <input type="checkbox" name="wpuf_settings[enable_pay_per_post]" value="true"<?php checked( $enable_pay_per_post, 'true' ); ?> />
71
- <?php _e( 'Enable Pay Per Post', 'wpuf' ) ?>
72
  </label>
73
- <p class="description"><?php _e( 'Charge users for posting,', 'wpuf' ); ?><a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/how-to-charge-for-each-post-submission/"><?php _e( ' Learn More about Pay Per Post.', 'wpuf' ); ?></a></p>
74
  </td>
75
  </tr>
76
 
77
  <tr class="show-if-payment show-if-pay-per-post">
78
- <th>&mdash; &mdash; <?php _e( 'Cost Settings', 'wpuf' ); ?></th>
79
  <td>
80
  <label>
81
  <input type="number" name="wpuf_settings[pay_per_post_cost]" value="<?php echo esc_attr( $pay_per_post_cost ); ?>" />
82
  </label>
83
- <p class="description"><?php _e( 'Amount to be charged per post', 'wpuf' ); ?></p>
84
  </td>
85
  </tr>
86
  <?php do_action( 'wpuf_form_setting_payment', $form_settings, $post ); ?>
17
  <!-- Added Payment Settings -->
18
 
19
  <tr>
20
+ <th><?php _e( 'Payment Options', 'wp-user-frontend' ); ?></th>
21
  <td>
22
  <label>
23
  <input type="hidden" name="wpuf_settings[payment_options]" value="false">
24
  <input type="checkbox" name="wpuf_settings[payment_options]" value="true"<?php checked( $payment_options, 'true' ); ?> />
25
+ <?php _e( 'Enable Payments', 'wp-user-frontend' ) ?>
26
  </label>
27
+ <p class="description"><?php _e( 'Check to enable Payments for this form.', 'wp-user-frontend' ); ?></p>
28
  </td>
29
  </tr>
30
 
31
  <tr class="show-if-payment">
32
+ <th>&mdash; <?php _e( 'Force Pack', 'wp-user-frontend' ); ?></th>
33
  <td>
34
  <label>
35
  <input type="hidden" name="wpuf_settings[force_pack_purchase]" value="false">
36
  <input type="checkbox" name="wpuf_settings[force_pack_purchase]" value="true"<?php checked( $force_pack_purchase, 'true' ); ?> />
37
+ <?php _e( 'Force subscription pack', 'wp-user-frontend' ) ?>
38
  </label>
39
+ <p class="description"><?php _e( 'Force users to purchase and use subscription pack.', 'wp-user-frontend' ); ?></p>
40
  </td>
41
  </tr>
42
 
43
  <tr class="show-if-payment show-if-force-pack">
44
+ <th>&mdash; &mdash; <?php _e( 'Fallback to pay per post', 'wp-user-frontend' ); ?></th>
45
  <td>
46
  <label>
47
  <input type="hidden" name="wpuf_settings[fallback_ppp_enable]" value="false">
48
  <input type="checkbox" name="wpuf_settings[fallback_ppp_enable]" value="true"<?php checked( $fallback_ppp_enable, 'true' ); ?> />
49
+ <?php _e( 'Fallback pay per post charging', 'wp-user-frontend' ) ?>
50
  </label>
51
+ <p class="description"><?php _e( 'Fallback to pay per post charging if pack limit exceeds', 'wp-user-frontend' ); ?></p>
52
  </td>
53
  </tr>
54
 
55
  <tr class="show-if-payment show-if-force-pack">
56
+ <th>&mdash; &mdash; <?php _e( 'Fallback cost', 'wp-user-frontend' ); ?></th>
57
  <td>
58
  <label>
59
  <input type="number" name="wpuf_settings[fallback_ppp_cost]" value="<?php echo esc_attr( $fallback_ppp_cost ); ?>" />
60
  </label>
61
+ <p class="description"><?php _e( 'Cost of pay per post after a subscription pack limit is reached.', 'wp-user-frontend' ); ?></p>
62
  </td>
63
  </tr>
64
 
65
  <tr class="show-if-payment">
66
+ <th>&mdash; <?php _e( 'Pay Per Post', 'wp-user-frontend' ); ?></th>
67
  <td>
68
  <label>
69
  <input type="hidden" name="wpuf_settings[enable_pay_per_post]" value="false">
70
  <input type="checkbox" name="wpuf_settings[enable_pay_per_post]" value="true"<?php checked( $enable_pay_per_post, 'true' ); ?> />
71
+ <?php _e( 'Enable Pay Per Post', 'wp-user-frontend' ) ?>
72
  </label>
73
+ <p class="description"><?php _e( 'Charge users for posting,', 'wp-user-frontend' ); ?><a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/how-to-charge-for-each-post-submission/"><?php _e( ' Learn More about Pay Per Post.', 'wp-user-frontend' ); ?></a></p>
74
  </td>
75
  </tr>
76
 
77
  <tr class="show-if-payment show-if-pay-per-post">
78
+ <th>&mdash; &mdash; <?php _e( 'Cost Settings', 'wp-user-frontend' ); ?></th>
79
  <td>
80
  <label>
81
  <input type="number" name="wpuf_settings[pay_per_post_cost]" value="<?php echo esc_attr( $pay_per_post_cost ); ?>" />
82
  </label>
83
+ <p class="description"><?php _e( 'Amount to be charged per post', 'wp-user-frontend' ); ?></p>
84
  </td>
85
  </tr>
86
  <?php do_action( 'wpuf_form_setting_payment', $form_settings, $post ); ?>
admin/html/form-settings-post-edit.php CHANGED
@@ -1,16 +1,16 @@
1
  <?php
2
  $post_status_selected = isset( $form_settings['edit_post_status'] ) ? $form_settings['edit_post_status'] : 'publish';
3
  $redirect_to = isset( $form_settings['edit_redirect_to'] ) ? $form_settings['edit_redirect_to'] : 'same';
4
- $update_message = isset( $form_settings['update_message'] ) ? $form_settings['update_message'] : __( 'Post updated successfully', 'wpuf' );
5
  $page_id = isset( $form_settings['edit_page_id'] ) ? $form_settings['edit_page_id'] : 0;
6
  $url = isset( $form_settings['edit_url'] ) ? $form_settings['edit_url'] : '';
7
- $update_text = isset( $form_settings['update_text'] ) ? $form_settings['update_text'] : __( 'Update', 'wpuf' );
8
  $subscription = isset( $form_settings['subscription'] ) ? $form_settings['subscription'] : null;
9
  ?>
10
  <table class="form-table">
11
 
12
  <tr class="wpuf-post-status">
13
- <th><?php _e( 'Set Post Status to', 'wpuf' ); ?></th>
14
  <td>
15
  <select name="wpuf_settings[edit_post_status]">
16
  <?php
@@ -20,22 +20,22 @@ $subscription = isset( $form_settings['subscription'] ) ? $form_settings
20
  printf('<option value="%s"%s>%s</option>', $status, selected( $post_status_selected, $status, false ), $label );
21
  }
22
 
23
- printf( '<option value="_nochange"%s>%s</option>', selected( $post_status_selected, '_nochange', false ), __( 'No Change', 'wpuf' ) );
24
  ?>
25
  </select>
26
  </td>
27
  </tr>
28
 
29
  <tr class="wpuf-redirect-to">
30
- <th><?php _e( 'Redirect To', 'wpuf' ); ?></th>
31
  <td>
32
  <select name="wpuf_settings[edit_redirect_to]">
33
  <?php
34
  $redirect_options = array(
35
- 'post' => __( 'Newly created post', 'wpuf' ),
36
- 'same' => __( 'Same Page', 'wpuf' ),
37
- 'page' => __( 'To a page', 'wpuf' ),
38
- 'url' => __( 'To a custom URL', 'wpuf' )
39
  );
40
 
41
  foreach ($redirect_options as $to => $label) {
@@ -44,20 +44,20 @@ $subscription = isset( $form_settings['subscription'] ) ? $form_settings
44
  ?>
45
  </select>
46
  <p class="description">
47
- <?php _e( 'After successfull submit, where the page will redirect to', $domain = 'wpuf' ) ?>
48
  </p>
49
  </td>
50
  </tr>
51
 
52
  <tr class="wpuf-same-page">
53
- <th><?php _e( 'Post Update Message', 'wpuf' ); ?></th>
54
  <td>
55
  <textarea rows="3" cols="40" name="wpuf_settings[update_message]"><?php echo esc_textarea( $update_message ); ?></textarea>
56
  </td>
57
  </tr>
58
 
59
  <tr class="wpuf-page-id">
60
- <th><?php _e( 'Page', 'wpuf' ); ?></th>
61
  <td>
62
  <select name="wpuf_settings[edit_page_id]">
63
  <?php
@@ -72,14 +72,14 @@ $subscription = isset( $form_settings['subscription'] ) ? $form_settings
72
  </tr>
73
 
74
  <tr class="wpuf-url">
75
- <th><?php _e( 'Custom URL', 'wpuf' ); ?></th>
76
  <td>
77
  <input type="url" name="wpuf_settings[edit_url]" value="<?php echo esc_attr( $url ); ?>">
78
  </td>
79
  </tr>
80
 
81
  <tr class="wpuf-subscription-pack" style="display: none;">
82
- <th><?php _e( 'Subscription Title', 'wpuf'); ?></th>
83
  <td>
84
  <select id="wpuf-subscription-list" name="wpuf_settings[subscription]">
85
  <?php $this->subscription_dropdown( $subscription ); ?>
@@ -88,7 +88,7 @@ $subscription = isset( $form_settings['subscription'] ) ? $form_settings
88
  </tr>
89
 
90
  <tr class="wpuf-update-text">
91
- <th><?php _e( 'Update Post Button text', 'wpuf' ); ?></th>
92
  <td>
93
  <input type="text" name="wpuf_settings[update_text]" value="<?php echo esc_attr( $update_text ); ?>">
94
  </td>
1
  <?php
2
  $post_status_selected = isset( $form_settings['edit_post_status'] ) ? $form_settings['edit_post_status'] : 'publish';
3
  $redirect_to = isset( $form_settings['edit_redirect_to'] ) ? $form_settings['edit_redirect_to'] : 'same';
4
+ $update_message = isset( $form_settings['update_message'] ) ? $form_settings['update_message'] : __( 'Post updated successfully', 'wp-user-frontend' );
5
  $page_id = isset( $form_settings['edit_page_id'] ) ? $form_settings['edit_page_id'] : 0;
6
  $url = isset( $form_settings['edit_url'] ) ? $form_settings['edit_url'] : '';
7
+ $update_text = isset( $form_settings['update_text'] ) ? $form_settings['update_text'] : __( 'Update', 'wp-user-frontend' );
8
  $subscription = isset( $form_settings['subscription'] ) ? $form_settings['subscription'] : null;
9
  ?>
10
  <table class="form-table">
11
 
12
  <tr class="wpuf-post-status">
13
+ <th><?php _e( 'Set Post Status to', 'wp-user-frontend' ); ?></th>
14
  <td>
15
  <select name="wpuf_settings[edit_post_status]">
16
  <?php
20
  printf('<option value="%s"%s>%s</option>', $status, selected( $post_status_selected, $status, false ), $label );
21
  }
22
 
23
+ printf( '<option value="_nochange"%s>%s</option>', selected( $post_status_selected, '_nochange', false ), __( 'No Change', 'wp-user-frontend' ) );
24
  ?>
25
  </select>
26
  </td>
27
  </tr>
28
 
29
  <tr class="wpuf-redirect-to">
30
+ <th><?php _e( 'Redirect To', 'wp-user-frontend' ); ?></th>
31
  <td>
32
  <select name="wpuf_settings[edit_redirect_to]">
33
  <?php
34
  $redirect_options = array(
35
+ 'post' => __( 'Newly created post', 'wp-user-frontend' ),
36
+ 'same' => __( 'Same Page', 'wp-user-frontend' ),
37
+ 'page' => __( 'To a page', 'wp-user-frontend' ),
38
+ 'url' => __( 'To a custom URL', 'wp-user-frontend' )
39
  );
40
 
41
  foreach ($redirect_options as $to => $label) {
44
  ?>
45
  </select>
46
  <p class="description">
47
+ <?php _e( 'After successfull submit, where the page will redirect to', $domain = 'wp-user-frontend' ) ?>
48
  </p>
49
  </td>
50
  </tr>
51
 
52
  <tr class="wpuf-same-page">
53
+ <th><?php _e( 'Post Update Message', 'wp-user-frontend' ); ?></th>
54
  <td>
55
  <textarea rows="3" cols="40" name="wpuf_settings[update_message]"><?php echo esc_textarea( $update_message ); ?></textarea>
56
  </td>
57
  </tr>
58
 
59
  <tr class="wpuf-page-id">
60
+ <th><?php _e( 'Page', 'wp-user-frontend' ); ?></th>
61
  <td>
62
  <select name="wpuf_settings[edit_page_id]">
63
  <?php
72
  </tr>
73
 
74
  <tr class="wpuf-url">
75
+ <th><?php _e( 'Custom URL', 'wp-user-frontend' ); ?></th>
76
  <td>
77
  <input type="url" name="wpuf_settings[edit_url]" value="<?php echo esc_attr( $url ); ?>">
78
  </td>
79
  </tr>
80
 
81
  <tr class="wpuf-subscription-pack" style="display: none;">
82
+ <th><?php _e( 'Subscription Title', 'wp-user-frontend'); ?></th>
83
  <td>
84
  <select id="wpuf-subscription-list" name="wpuf_settings[subscription]">
85
  <?php $this->subscription_dropdown( $subscription ); ?>
88
  </tr>
89
 
90
  <tr class="wpuf-update-text">
91
+ <th><?php _e( 'Update Post Button text', 'wp-user-frontend' ); ?></th>
92
  <td>
93
  <input type="text" name="wpuf_settings[update_text]" value="<?php echo esc_attr( $update_text ); ?>">
94
  </td>
admin/html/form-settings-post.php CHANGED
@@ -4,7 +4,7 @@ global $post;
4
  $form_settings = wpuf_get_form_settings( $post->ID );
5
 
6
  $post_status_selected = isset( $form_settings['post_status'] ) ? $form_settings['post_status'] : 'publish';
7
- $restrict_message = __( "This page is restricted. Please Log in / Register to view this page.", 'wpuf' );
8
 
9
  $post_type_selected = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
10
 
@@ -12,22 +12,22 @@ $post_format_selected = isset( $form_settings['post_format'] ) ? $form_settings
12
  $default_cat = isset( $form_settings['default_cat'] ) ? $form_settings['default_cat'] : array();
13
 
14
  $redirect_to = isset( $form_settings['redirect_to'] ) ? $form_settings['redirect_to'] : 'post';
15
- $message = isset( $form_settings['message'] ) ? $form_settings['message'] : __( 'Post saved', 'wpuf' );
16
- $update_message = isset( $form_settings['update_message'] ) ? $form_settings['update_message'] : __( 'Post updated successfully', 'wpuf' );
17
  $page_id = isset( $form_settings['page_id'] ) ? $form_settings['page_id'] : 0;
18
  $url = isset( $form_settings['url'] ) ? $form_settings['url'] : '';
19
  $comment_status = isset( $form_settings['comment_status'] ) ? $form_settings['comment_status'] : 'open';
20
 
21
- $submit_text = isset( $form_settings['submit_text'] ) ? $form_settings['submit_text'] : __( 'Submit', 'wpuf' );
22
- $draft_text = isset( $form_settings['draft_text'] ) ? $form_settings['draft_text'] : __( 'Save Draft', 'wpuf' );
23
- $preview_text = isset( $form_settings['preview_text'] ) ? $form_settings['preview_text'] : __( 'Preview', 'wpuf' );
24
  $draft_post = isset( $form_settings['draft_post'] ) ? $form_settings['draft_post'] : 'false';
25
 
26
  ?>
27
  <table class="form-table">
28
 
29
  <tr class="wpuf-post-type">
30
- <th><?php _e( 'Post Type', 'wpuf' ); ?></th>
31
  <td>
32
  <select name="wpuf_settings[post_type]">
33
  <?php
@@ -49,12 +49,12 @@ $draft_post = isset( $form_settings['draft_post'] ) ? $form_settings[
49
  }
50
  ?>
51
  </select>
52
- <p class="description"><?php _e( 'Custom Post Type will appear here. ', 'wpuf' );?><a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/different-custom-post-type-submission-2/"><?php _e('Learn More ', 'wpuf')?></a></p>
53
  </td>
54
  </tr>
55
 
56
  <tr class="wpuf-post-status">
57
- <th><?php _e( 'Post Status', 'wpuf' ); ?></th>
58
  <td>
59
  <select name="wpuf_settings[post_status]">
60
  <?php
@@ -68,10 +68,10 @@ $draft_post = isset( $form_settings['draft_post'] ) ? $form_settings[
68
  </tr>
69
 
70
  <tr class="wpuf-post-fromat">
71
- <th><?php _e( 'Post Format', 'wpuf' ); ?></th>
72
  <td>
73
  <select name="wpuf_settings[post_format]">
74
- <option value="0"><?php _e( '- None -', 'wpuf' ); ?></option>
75
  <?php
76
  $post_formats = get_theme_support( 'post-formats' );
77
 
@@ -86,7 +86,7 @@ $draft_post = isset( $form_settings['draft_post'] ) ? $form_settings[
86
  </tr>
87
 
88
  <tr class="wpuf-default-cat">
89
- <th><?php _e( 'Default Post Category', 'wpuf' ); ?></th>
90
  <td>
91
  <?php
92
 
@@ -124,20 +124,20 @@ $draft_post = isset( $form_settings['draft_post'] ) ? $form_settings[
124
  echo '</select>';
125
 
126
  ?>
127
- <p class="description"><?php echo __( 'If users are not allowed to choose any category, this category will be used instead (if post type supports)', 'wpuf' ); ?></p>
128
  </td>
129
  </tr>
130
 
131
  <tr class="wpuf-redirect-to">
132
- <th><?php _e( 'Redirect To', 'wpuf' ); ?></th>
133
  <td>
134
  <select name="wpuf_settings[redirect_to]">
135
  <?php
136
  $redirect_options = array(
137
- 'post' => __( 'Newly created post', 'wpuf' ),
138
- 'same' => __( 'Same Page', 'wpuf' ),
139
- 'page' => __( 'To a page', 'wpuf' ),
140
- 'url' => __( 'To a custom URL', 'wpuf' )
141
  );
142
 
143
  foreach ($redirect_options as $to => $label) {
@@ -146,20 +146,20 @@ $draft_post = isset( $form_settings['draft_post'] ) ? $form_settings[
146
  ?>
147
  </select>
148
  <p class="description">
149
- <?php _e( 'After successfull submit, where the page will redirect to', $domain = 'wpuf' ) ?>
150
  </p>
151
  </td>
152
  </tr>
153
 
154
  <tr class="wpuf-same-page">
155
- <th><?php _e( 'Message to show', 'wpuf' ); ?></th>
156
  <td>
157
  <textarea rows="3" cols="40" name="wpuf_settings[message]"><?php echo esc_textarea( $message ); ?></textarea>
158
  </td>
159
  </tr>
160
 
161
  <tr class="wpuf-page-id">
162
- <th><?php _e( 'Page', 'wpuf' ); ?></th>
163
  <td>
164
  <select name="wpuf_settings[page_id]">
165
  <?php
@@ -174,38 +174,38 @@ $draft_post = isset( $form_settings['draft_post'] ) ? $form_settings[
174
  </tr>
175
 
176
  <tr class="wpuf-url">
177
- <th><?php _e( 'Custom URL', 'wpuf' ); ?></th>
178
  <td>
179
  <input type="url" name="wpuf_settings[url]" value="<?php echo esc_attr( $url ); ?>">
180
  </td>
181
  </tr>
182
 
183
  <tr class="wpuf-comment">
184
- <th><?php _e( 'Comment Status', 'wpuf' ); ?></th>
185
  <td>
186
  <select name="wpuf_settings[comment_status]">
187
- <option value="open" <?php selected( $comment_status, 'open'); ?>><?php _e('Open', 'wpuf'); ?></option>
188
- <option value="closed" <?php selected( $comment_status, 'closed'); ?>><?php _e('Closed', 'wpuf'); ?></option>
189
  </select>
190
  </td>
191
  </tr>
192
 
193
  <tr class="wpuf-submit-text">
194
- <th><?php _e( 'Submit Post Button text', 'wpuf' ); ?></th>
195
  <td>
196
  <input type="text" name="wpuf_settings[submit_text]" value="<?php echo esc_attr( $submit_text ); ?>">
197
  </td>
198
  </tr>
199
 
200
  <tr>
201
- <th><?php _e( 'Post Draft', 'wpuf' ); ?></th>
202
  <td>
203
  <label>
204
  <input type="hidden" name="wpuf_settings[draft_post]" value="false">
205
  <input type="checkbox" name="wpuf_settings[draft_post]" value="true"<?php checked( $draft_post, 'true' ); ?> />
206
- <?php _e( 'Enable Saving as draft', 'wpuf' ) ?>
207
  </label>
208
- <p class="description"><?php _e( 'It will show a button to save as draft', 'wpuf' ); ?></p>
209
  </td>
210
  </tr>
211
 
4
  $form_settings = wpuf_get_form_settings( $post->ID );
5
 
6
  $post_status_selected = isset( $form_settings['post_status'] ) ? $form_settings['post_status'] : 'publish';
7
+ $restrict_message = __( "This page is restricted. Please Log in / Register to view this page.", 'wp-user-frontend' );
8
 
9
  $post_type_selected = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
10
 
12
  $default_cat = isset( $form_settings['default_cat'] ) ? $form_settings['default_cat'] : array();
13
 
14
  $redirect_to = isset( $form_settings['redirect_to'] ) ? $form_settings['redirect_to'] : 'post';
15
+ $message = isset( $form_settings['message'] ) ? $form_settings['message'] : __( 'Post saved', 'wp-user-frontend' );
16
+ $update_message = isset( $form_settings['update_message'] ) ? $form_settings['update_message'] : __( 'Post updated successfully', 'wp-user-frontend' );
17
  $page_id = isset( $form_settings['page_id'] ) ? $form_settings['page_id'] : 0;
18
  $url = isset( $form_settings['url'] ) ? $form_settings['url'] : '';
19
  $comment_status = isset( $form_settings['comment_status'] ) ? $form_settings['comment_status'] : 'open';
20
 
21
+ $submit_text = isset( $form_settings['submit_text'] ) ? $form_settings['submit_text'] : __( 'Submit', 'wp-user-frontend' );
22
+ $draft_text = isset( $form_settings['draft_text'] ) ? $form_settings['draft_text'] : __( 'Save Draft', 'wp-user-frontend' );
23
+ $preview_text = isset( $form_settings['preview_text'] ) ? $form_settings['preview_text'] : __( 'Preview', 'wp-user-frontend' );
24
  $draft_post = isset( $form_settings['draft_post'] ) ? $form_settings['draft_post'] : 'false';
25
 
26
  ?>
27
  <table class="form-table">
28
 
29
  <tr class="wpuf-post-type">
30
+ <th><?php _e( 'Post Type', 'wp-user-frontend' ); ?></th>
31
  <td>
32
  <select name="wpuf_settings[post_type]">
33
  <?php
49
  }
50
  ?>
51
  </select>
52
+ <p class="description"><?php _e( 'Custom Post Type will appear here. ', 'wp-user-frontend' );?><a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/different-custom-post-type-submission-2/"><?php _e('Learn More ', 'wp-user-frontend')?></a></p>
53
  </td>
54
  </tr>
55
 
56
  <tr class="wpuf-post-status">
57
+ <th><?php _e( 'Post Status', 'wp-user-frontend' ); ?></th>
58
  <td>
59
  <select name="wpuf_settings[post_status]">
60
  <?php
68
  </tr>
69
 
70
  <tr class="wpuf-post-fromat">
71
+ <th><?php _e( 'Post Format', 'wp-user-frontend' ); ?></th>
72
  <td>
73
  <select name="wpuf_settings[post_format]">
74
+ <option value="0"><?php _e( '- None -', 'wp-user-frontend' ); ?></option>
75
  <?php
76
  $post_formats = get_theme_support( 'post-formats' );
77
 
86
  </tr>
87
 
88
  <tr class="wpuf-default-cat">
89
+ <th><?php _e( 'Default Post Category', 'wp-user-frontend' ); ?></th>
90
  <td>
91
  <?php
92
 
124
  echo '</select>';
125
 
126
  ?>
127
+ <p class="description"><?php echo __( 'If users are not allowed to choose any category, this category will be used instead (if post type supports)', 'wp-user-frontend' ); ?></p>
128
  </td>
129
  </tr>
130
 
131
  <tr class="wpuf-redirect-to">
132
+ <th><?php _e( 'Redirect To', 'wp-user-frontend' ); ?></th>
133
  <td>
134
  <select name="wpuf_settings[redirect_to]">
135
  <?php
136
  $redirect_options = array(
137
+ 'post' => __( 'Newly created post', 'wp-user-frontend' ),
138
+ 'same' => __( 'Same Page', 'wp-user-frontend' ),
139
+ 'page' => __( 'To a page', 'wp-user-frontend' ),
140
+ 'url' => __( 'To a custom URL', 'wp-user-frontend' )
141
  );
142
 
143
  foreach ($redirect_options as $to => $label) {
146
  ?>
147
  </select>
148
  <p class="description">
149
+ <?php _e( 'After successfull submit, where the page will redirect to', $domain = 'wp-user-frontend' ) ?>
150
  </p>
151
  </td>
152
  </tr>
153
 
154
  <tr class="wpuf-same-page">
155
+ <th><?php _e( 'Message to show', 'wp-user-frontend' ); ?></th>
156
  <td>
157
  <textarea rows="3" cols="40" name="wpuf_settings[message]"><?php echo esc_textarea( $message ); ?></textarea>
158
  </td>
159
  </tr>
160
 
161
  <tr class="wpuf-page-id">
162
+ <th><?php _e( 'Page', 'wp-user-frontend' ); ?></th>
163
  <td>
164
  <select name="wpuf_settings[page_id]">
165
  <?php
174
  </tr>
175
 
176
  <tr class="wpuf-url">
177
+ <th><?php _e( 'Custom URL', 'wp-user-frontend' ); ?></th>
178
  <td>
179
  <input type="url" name="wpuf_settings[url]" value="<?php echo esc_attr( $url ); ?>">
180
  </td>
181
  </tr>
182
 
183
  <tr class="wpuf-comment">
184
+ <th><?php _e( 'Comment Status', 'wp-user-frontend' ); ?></th>
185
  <td>
186
  <select name="wpuf_settings[comment_status]">
187
+ <option value="open" <?php selected( $comment_status, 'open'); ?>><?php _e('Open', 'wp-user-frontend'); ?></option>
188
+ <option value="closed" <?php selected( $comment_status, 'closed'); ?>><?php _e('Closed', 'wp-user-frontend'); ?></option>
189
  </select>
190
  </td>
191
  </tr>
192
 
193
  <tr class="wpuf-submit-text">
194
+ <th><?php _e( 'Submit Post Button text', 'wp-user-frontend' ); ?></th>
195
  <td>
196
  <input type="text" name="wpuf_settings[submit_text]" value="<?php echo esc_attr( $submit_text ); ?>">
197
  </td>
198
  </tr>
199
 
200
  <tr>
201
+ <th><?php _e( 'Post Draft', 'wp-user-frontend' ); ?></th>
202
  <td>
203
  <label>
204
  <input type="hidden" name="wpuf_settings[draft_post]" value="false">
205
  <input type="checkbox" name="wpuf_settings[draft_post]" value="true"<?php checked( $draft_post, 'true' ); ?> />
206
+ <?php _e( 'Enable Saving as draft', 'wp-user-frontend' ) ?>
207
  </label>
208
+ <p class="description"><?php _e( 'It will show a button to save as draft', 'wp-user-frontend' ); ?></p>
209
  </td>
210
  </tr>
211
 
admin/html/form-submission-restriction.php CHANGED
@@ -8,8 +8,8 @@ $role_base = !empty( $form_settings['role_base'] ) ? $form_settings
8
  $roles = !empty( $form_settings['roles'] ) ? $form_settings['roles'] : array( 'administrator' );
9
  $guest_details = !empty( $form_settings['guest_details'] ) ? $form_settings['guest_details'] : 'true';
10
  $guest_email_verify = !empty( $form_settings['guest_email_verify'] ) ? $form_settings['guest_email_verify'] : 'false';
11
- $name_label = !empty( $form_settings['name_label'] ) ? $form_settings['name_label'] : __( 'Name', 'wpuf' );
12
- $email_label = !empty( $form_settings['email_label'] ) ? $form_settings['email_label'] : __( 'Email', 'wpuf' );
13
  $message_restrict = !empty( $form_settings['message_restrict'] ) ? $form_settings['message_restrict'] : $restrict_message;
14
 
15
  $schedule_form = !empty( $form_settings['schedule_form'] ) ? $form_settings['schedule_form'] : 'false';
@@ -26,74 +26,74 @@ $limit_message = !empty( $form_settings['limit_message'] ) ? $form_settings['l
26
 
27
  <!-- Added Submission Restriction Settings -->
28
  <tr>
29
- <th><?php _e( 'Guest Post', 'wpuf' ); ?></th>
30
  <td>
31
  <label>
32
  <input type="hidden" name="wpuf_settings[guest_post]" value="false">
33
  <input type="checkbox" name="wpuf_settings[guest_post]" value="true"<?php checked( $guest_post, 'true' ); ?> />
34
- <?php _e( 'Enable Guest Post', 'wpuf' ) ?>
35
  </label>
36
- <p class="description"><?php _e( 'Unregistered users will be able to submit posts', 'wpuf' ); ?>. <a href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/guest-posting/"><?php _e( 'Learn more about guest posting.', 'wpuf' ); ?></a></p>
37
  </td>
38
  </tr>
39
 
40
  <tr class="show-if-guest">
41
- <th>&mdash; <?php _e( 'User Details', 'wpuf' ); ?></th>
42
  <td>
43
  <label>
44
  <input type="hidden" name="wpuf_settings[guest_details]" value="false">
45
  <input type="checkbox" name="wpuf_settings[guest_details]" value="true"<?php checked( $guest_details, 'true' ); ?> />
46
- <?php _e( 'Require Name and Email address', 'wpuf' ) ?>
47
  </label>
48
- <p class="description"><?php _e( 'If requires, users will be automatically registered to the site using the name and email address', 'wpuf' ); ?></p>
49
  </td>
50
  </tr>
51
 
52
  <tr class="show-if-guest show-if-details">
53
- <th>&mdash; &mdash; <?php _e( 'Name Label', 'wpuf' ); ?></th>
54
  <td>
55
  <label>
56
  <input type="text" name="wpuf_settings[name_label]" value="<?php echo esc_attr( $name_label ); ?>" />
57
  </label>
58
- <p class="description"><?php _e( 'Label text for name field', 'wpuf' ); ?></p>
59
  </td>
60
  </tr>
61
 
62
  <tr class="show-if-guest show-if-details">
63
- <th>&mdash; &mdash; <?php _e( 'E-Mail Label', 'wpuf' ); ?></th>
64
  <td>
65
  <label>
66
  <input type="text" name="wpuf_settings[email_label]" value="<?php echo esc_attr( $email_label ); ?>" />
67
  </label>
68
- <p class="description"><?php _e( 'Label text for email field', 'wpuf' ); ?></p>
69
  </td>
70
  </tr>
71
 
72
  <tr class="show-if-guest">
73
- <th>&mdash; <?php _e( 'Email Verification', 'wpuf' ); ?></th>
74
  <td>
75
  <label>
76
  <input type="checkbox" name="wpuf_settings[guest_email_verify]" value="true"<?php checked( $guest_email_verify, 'true' ); ?> />
77
- <?php _e( 'Require Email Verification for Guests', 'wpuf' ) ?>
78
  </label>
79
- <p class="description"><?php _e( 'If requires, users will be required to verify their email adress.', 'wpuf' ); ?></p>
80
  </td>
81
  </tr>
82
 
83
  <tr class="show-if-not-guest">
84
- <th>&mdash; <?php _e( 'Role Base', 'wpuf' ); ?></th>
85
  <td>
86
  <label>
87
  <input type="hidden" name="wpuf_settings[role_base]" value="false">
88
  <input type="checkbox" name="wpuf_settings[role_base]" value="true"<?php checked( $role_base, 'true' ); ?> />
89
- <?php _e( 'Enable role base post', 'wpuf' ) ?>
90
  </label>
91
- <p class="description"><?php _e( 'You can choose which role can submit posts by this form.', 'wpuf' ); ?></p>
92
  </td>
93
  </tr>
94
 
95
  <tr class="show-if-not-guest show-if-roles">
96
- <th>&mdash; &mdash; <?php _e( 'Roles', 'wpuf' ); ?></th>
97
  <td>
98
  <?php
99
  foreach ( wpuf_get_user_roles() as $key => $role ) { ?>
@@ -106,82 +106,82 @@ $limit_message = !empty( $form_settings['limit_message'] ) ? $form_settings['l
106
  </label><br>
107
  <?php } ?>
108
  <input type="hidden" name="wpuf_settings[roles][]" value="administrator">
109
- <p class="description"><?php _e( 'Choose which roles can submit posts.', 'wpuf' ); ?></p>
110
  </td>
111
  </tr>
112
 
113
  <tr class="show-if-not-guest">
114
- <th>&mdash; <?php _e( 'Unauthorized Message', 'wpuf' ); ?></th>
115
  <td>
116
  <textarea rows="3" cols="40" name="wpuf_settings[message_restrict]"><?php echo esc_textarea( $message_restrict ); ?></textarea>
117
- <p class="description"><?php _e( 'Not logged in users will see this message', 'wpuf' ); ?></p>
118
  </td>
119
  </tr>
120
 
121
  <tr>
122
- <th><?php _e( 'Schedule form', 'wpuf' ); ?></th>
123
  <td>
124
  <label>
125
  <input type="hidden" name="wpuf_settings[schedule_form]" value="false">
126
  <input type="checkbox" name="wpuf_settings[schedule_form]" value="true"<?php checked( $schedule_form, 'true' ); ?> />
127
- <?php _e( 'Schedule form for a period', 'wpuf' ) ?>
128
  </label>
129
- <p class="description"><?php _e( 'Schedule for a time period the form is active.', 'wpuf' ); ?></p>
130
  </td>
131
  </tr>
132
 
133
  <tr class="show-if-schedule">
134
- <th>&mdash; <?php _e( 'Schedule Period', 'wpuf' ); ?></th>
135
  <td>
136
 
137
- <?php _e( 'From', 'wpuf' ); ?>
138
  <input type="text" name="wpuf_settings[schedule_start]" id="schedule_start" value="<?php echo $schedule_start; ?>" class="datepicker">
139
  <!-- <datepicker name="wpuf_settings[schedule_start]"></datepicker> -->
140
 
141
- <?php _e( 'To', 'wpuf' ); ?>
142
  <input type="text" name="wpuf_settings[schedule_end]" id="schedule_end" value="<?php echo $schedule_end; ?>" class="datepicker">
143
  <!-- <datepicker name="wpuf_settings[schedule_end]"></datepicker> -->
144
  </td>
145
  </tr>
146
 
147
  <tr class="show-if-schedule">
148
- <th>&mdash; <?php _e( 'Form Pending Message', 'wpuf' ); ?></th>
149
  <td>
150
  <textarea rows="3" cols="40" name="wpuf_settings[form_pending_message]"><?php echo esc_textarea( $form_pending_message ); ?></textarea>
151
  </td>
152
  </tr>
153
 
154
  <tr class="show-if-schedule">
155
- <th>&mdash; <?php _e( 'Form Expired Message', 'wpuf' ); ?></th>
156
  <td>
157
  <textarea rows="3" cols="40" name="wpuf_settings[form_expired_message]"><?php echo esc_textarea( $form_expired_message ); ?></textarea>
158
  </td>
159
  </tr>
160
 
161
  <tr class="wpuf-limit-entries">
162
- <th><?php _e( 'Limit Entries', 'wpuf' ); ?></th>
163
  <td>
164
  <label>
165
  <input type="hidden" name="wpuf_settings[limit_entries]" value="false">
166
  <input type="checkbox" name="wpuf_settings[limit_entries]" value="true"<?php checked( $limit_entries, 'true' ); ?> />
167
- <?php _e( 'Enable form entry limit', 'wpuf' ); ?>
168
  </label>
169
 
170
  <p class="description">
171
- <?php _e( 'Limit the number of entries allowed for this form', 'wpuf' ) ?>
172
  </p>
173
  </td>
174
  </tr>
175
 
176
  <tr class="show-if-limit-entries">
177
- <th>&mdash; <?php _e( 'Number of Entries', 'wpuf' ); ?></th>
178
  <td>
179
  <input type="number" value="<?php echo esc_attr( $limit_number ); ?>" name="wpuf_settings[limit_number]">
180
  </td>
181
  </tr>
182
 
183
  <tr class="show-if-limit-entries">
184
- <th>&mdash; <?php _e( 'Limit Reached Message', 'wpuf' ); ?></th>
185
  <td>
186
  <textarea rows="3" cols="40" name="wpuf_settings[limit_message]"><?php echo esc_textarea( $limit_message ); ?></textarea>
187
  </td>
8
  $roles = !empty( $form_settings['roles'] ) ? $form_settings['roles'] : array( 'administrator' );
9
  $guest_details = !empty( $form_settings['guest_details'] ) ? $form_settings['guest_details'] : 'true';
10
  $guest_email_verify = !empty( $form_settings['guest_email_verify'] ) ? $form_settings['guest_email_verify'] : 'false';
11
+ $name_label = !empty( $form_settings['name_label'] ) ? $form_settings['name_label'] : __( 'Name', 'wp-user-frontend' );
12
+ $email_label = !empty( $form_settings['email_label'] ) ? $form_settings['email_label'] : __( 'Email', 'wp-user-frontend' );
13
  $message_restrict = !empty( $form_settings['message_restrict'] ) ? $form_settings['message_restrict'] : $restrict_message;
14
 
15
  $schedule_form = !empty( $form_settings['schedule_form'] ) ? $form_settings['schedule_form'] : 'false';
26
 
27
  <!-- Added Submission Restriction Settings -->
28
  <tr>
29
+ <th><?php _e( 'Guest Post', 'wp-user-frontend' ); ?></th>
30
  <td>
31
  <label>
32
  <input type="hidden" name="wpuf_settings[guest_post]" value="false">
33
  <input type="checkbox" name="wpuf_settings[guest_post]" value="true"<?php checked( $guest_post, 'true' ); ?> />
34
+ <?php _e( 'Enable Guest Post', 'wp-user-frontend' ) ?>
35
  </label>
36
+ <p class="description"><?php _e( 'Unregistered users will be able to submit posts', 'wp-user-frontend' ); ?>. <a href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/guest-posting/"><?php _e( 'Learn more about guest posting.', 'wp-user-frontend' ); ?></a></p>
37
  </td>
38
  </tr>
39
 
40
  <tr class="show-if-guest">
41
+ <th>&mdash; <?php _e( 'User Details', 'wp-user-frontend' ); ?></th>
42
  <td>
43
  <label>
44
  <input type="hidden" name="wpuf_settings[guest_details]" value="false">
45
  <input type="checkbox" name="wpuf_settings[guest_details]" value="true"<?php checked( $guest_details, 'true' ); ?> />
46
+ <?php _e( 'Require Name and Email address', 'wp-user-frontend' ) ?>
47
  </label>
48
+ <p class="description"><?php _e( 'If requires, users will be automatically registered to the site using the name and email address', 'wp-user-frontend' ); ?></p>
49
  </td>
50
  </tr>
51
 
52
  <tr class="show-if-guest show-if-details">
53
+ <th>&mdash; &mdash; <?php _e( 'Name Label', 'wp-user-frontend' ); ?></th>
54
  <td>
55
  <label>
56
  <input type="text" name="wpuf_settings[name_label]" value="<?php echo esc_attr( $name_label ); ?>" />
57
  </label>
58
+ <p class="description"><?php _e( 'Label text for name field', 'wp-user-frontend' ); ?></p>
59
  </td>
60
  </tr>
61
 
62
  <tr class="show-if-guest show-if-details">
63
+ <th>&mdash; &mdash; <?php _e( 'E-Mail Label', 'wp-user-frontend' ); ?></th>
64
  <td>
65
  <label>
66
  <input type="text" name="wpuf_settings[email_label]" value="<?php echo esc_attr( $email_label ); ?>" />
67
  </label>
68
+ <p class="description"><?php _e( 'Label text for email field', 'wp-user-frontend' ); ?></p>
69
  </td>
70
  </tr>
71
 
72
  <tr class="show-if-guest">
73
+ <th>&mdash; <?php _e( 'Email Verification', 'wp-user-frontend' ); ?></th>
74
  <td>
75
  <label>
76
  <input type="checkbox" name="wpuf_settings[guest_email_verify]" value="true"<?php checked( $guest_email_verify, 'true' ); ?> />
77
+ <?php _e( 'Require Email Verification for Guests', 'wp-user-frontend' ) ?>
78
  </label>
79
+ <p class="description"><?php _e( 'If requires, users will be required to verify their email adress.', 'wp-user-frontend' ); ?></p>
80
  </td>
81
  </tr>
82
 
83
  <tr class="show-if-not-guest">
84
+ <th>&mdash; <?php _e( 'Role Base', 'wp-user-frontend' ); ?></th>
85
  <td>
86
  <label>
87
  <input type="hidden" name="wpuf_settings[role_base]" value="false">
88
  <input type="checkbox" name="wpuf_settings[role_base]" value="true"<?php checked( $role_base, 'true' ); ?> />
89
+ <?php _e( 'Enable role base post', 'wp-user-frontend' ) ?>
90
  </label>
91
+ <p class="description"><?php _e( 'You can choose which role can submit posts by this form.', 'wp-user-frontend' ); ?></p>
92
  </td>
93
  </tr>
94
 
95
  <tr class="show-if-not-guest show-if-roles">
96
+ <th>&mdash; &mdash; <?php _e( 'Roles', 'wp-user-frontend' ); ?></th>
97
  <td>
98
  <?php
99
  foreach ( wpuf_get_user_roles() as $key => $role ) { ?>
106
  </label><br>
107
  <?php } ?>
108
  <input type="hidden" name="wpuf_settings[roles][]" value="administrator">
109
+ <p class="description"><?php _e( 'Choose which roles can submit posts.', 'wp-user-frontend' ); ?></p>
110
  </td>
111
  </tr>
112
 
113
  <tr class="show-if-not-guest">
114
+ <th>&mdash; <?php _e( 'Unauthorized Message', 'wp-user-frontend' ); ?></th>
115
  <td>
116
  <textarea rows="3" cols="40" name="wpuf_settings[message_restrict]"><?php echo esc_textarea( $message_restrict ); ?></textarea>
117
+ <p class="description"><?php _e( 'Not logged in users will see this message', 'wp-user-frontend' ); ?></p>
118
  </td>
119
  </tr>
120
 
121
  <tr>
122
+ <th><?php _e( 'Schedule form', 'wp-user-frontend' ); ?></th>
123
  <td>
124
  <label>
125
  <input type="hidden" name="wpuf_settings[schedule_form]" value="false">
126
  <input type="checkbox" name="wpuf_settings[schedule_form]" value="true"<?php checked( $schedule_form, 'true' ); ?> />
127
+ <?php _e( 'Schedule form for a period', 'wp-user-frontend' ) ?>
128
  </label>
129
+ <p class="description"><?php _e( 'Schedule for a time period the form is active.', 'wp-user-frontend' ); ?></p>
130
  </td>
131
  </tr>
132
 
133
  <tr class="show-if-schedule">
134
+ <th>&mdash; <?php _e( 'Schedule Period', 'wp-user-frontend' ); ?></th>
135
  <td>
136
 
137
+ <?php _e( 'From', 'wp-user-frontend' ); ?>
138
  <input type="text" name="wpuf_settings[schedule_start]" id="schedule_start" value="<?php echo $schedule_start; ?>" class="datepicker">
139
  <!-- <datepicker name="wpuf_settings[schedule_start]"></datepicker> -->
140
 
141
+ <?php _e( 'To', 'wp-user-frontend' ); ?>
142
  <input type="text" name="wpuf_settings[schedule_end]" id="schedule_end" value="<?php echo $schedule_end; ?>" class="datepicker">
143
  <!-- <datepicker name="wpuf_settings[schedule_end]"></datepicker> -->
144
  </td>
145
  </tr>
146
 
147
  <tr class="show-if-schedule">
148
+ <th>&mdash; <?php _e( 'Form Pending Message', 'wp-user-frontend' ); ?></th>
149
  <td>
150
  <textarea rows="3" cols="40" name="wpuf_settings[form_pending_message]"><?php echo esc_textarea( $form_pending_message ); ?></textarea>
151
  </td>
152
  </tr>
153
 
154
  <tr class="show-if-schedule">
155
+ <th>&mdash; <?php _e( 'Form Expired Message', 'wp-user-frontend' ); ?></th>
156
  <td>
157
  <textarea rows="3" cols="40" name="wpuf_settings[form_expired_message]"><?php echo esc_textarea( $form_expired_message ); ?></textarea>
158
  </td>
159
  </tr>
160
 
161
  <tr class="wpuf-limit-entries">
162
+ <th><?php _e( 'Limit Entries', 'wp-user-frontend' ); ?></th>
163
  <td>
164
  <label>
165
  <input type="hidden" name="wpuf_settings[limit_entries]" value="false">
166
  <input type="checkbox" name="wpuf_settings[limit_entries]" value="true"<?php checked( $limit_entries, 'true' ); ?> />
167
+ <?php _e( 'Enable form entry limit', 'wp-user-frontend' ); ?>
168
  </label>
169
 
170
  <p class="description">
171
+ <?php _e( 'Limit the number of entries allowed for this form', 'wp-user-frontend' ) ?>
172
  </p>
173
  </td>
174
  </tr>
175
 
176
  <tr class="show-if-limit-entries">
177
+ <th>&mdash; <?php _e( 'Number of Entries', 'wp-user-frontend' ); ?></th>
178
  <td>
179
  <input type="number" value="<?php echo esc_attr( $limit_number ); ?>" name="wpuf_settings[limit_number]">
180
  </td>
181
  </tr>
182
 
183
  <tr class="show-if-limit-entries">
184
+ <th>&mdash; <?php _e( 'Limit Reached Message', 'wp-user-frontend' ); ?></th>
185
  <td>
186
  <textarea rows="3" cols="40" name="wpuf_settings[limit_message]"><?php echo esc_textarea( $limit_message ); ?></textarea>
187
  </td>
admin/html/modal.php CHANGED
@@ -1,15 +1,15 @@
1
  <div id="wpuf-form-template-modal">
2
  <div class="wpuf-form-template-modal">
3
 
4
- <span id="modal-label" class="screen-reader-text"><?php _e( 'Modal window. Press escape to close.', 'wpuf' ); ?></span>
5
- <a href="#" class="close">× <span class="screen-reader-text"><?php _e( 'Close modal window', 'wpuf' ); ?></span></a>
6
 
7
  <header class="modal-header">
8
  <h2>
9
- <?php _e( 'Select a Template', 'wpuf' ); ?>
10
  <small><?php
11
  printf(
12
- __( 'Select from a pre-defined template or from a <a href="%s">blank form</a>', 'wpuf' ),
13
  $blank_form_url
14
  ); ?></small>
15
  </h2>
@@ -20,18 +20,18 @@
20
 
21
  <ul>
22
  <li class="blank-form">
23
- <h3><?php _e( 'Blank Form', 'wpuf' ); ?></h3>
24
 
25
  <div class="form-middle-text">
26
  <span class="dashicons dashicons-plus"></span>
27
- <div class="title"><?php _e( 'Blank Form', 'wpuf' ); ?></div>
28
  </div>
29
 
30
  <div class="form-create-overlay">
31
- <div class="title"><?php _e( 'Blank Form', 'wpuf' ); ?></div>
32
  <br>
33
  <a href="<?php echo $blank_form_url; ?>" class="button button-primary" title="<?php echo esc_attr('Blank Form'); ?>">
34
- <?php _e('Create Form', 'wpuf' ); ?>
35
  </a>
36
  </div>
37
  </li>
@@ -51,7 +51,7 @@
51
  if ( ! $template->is_enabled() ) {
52
  $url = '#';
53
  $class = 'template-inactive';
54
- $title = __( 'This integration is not installed.', 'wpuf' );
55
  }
56
  ?>
57
 
@@ -64,7 +64,7 @@
64
  <div class="description"><?php echo $template->get_description(); ?></div>
65
  <br>
66
  <a href="<?php echo $url; ?>" class="button button-primary" title="<?php echo $template->get_title(); ?>">
67
- <?php _e('Create Form', 'wpuf' ); ?>
68
  </a>
69
  </div>
70
  </li>
1
  <div id="wpuf-form-template-modal">
2
  <div class="wpuf-form-template-modal">
3
 
4
+ <span id="modal-label" class="screen-reader-text"><?php _e( 'Modal window. Press escape to close.', 'wp-user-frontend' ); ?></span>
5
+ <a href="#" class="close">× <span class="screen-reader-text"><?php _e( 'Close modal window', 'wp-user-frontend' ); ?></span></a>
6
 
7
  <header class="modal-header">
8
  <h2>
9
+ <?php _e( 'Select a Template', 'wp-user-frontend' ); ?>
10
  <small><?php
11
  printf(
12
+ __( 'Select from a pre-defined template or from a <a href="%s">blank form</a>', 'wp-user-frontend' ),
13
  $blank_form_url
14
  ); ?></small>
15
  </h2>
20
 
21
  <ul>
22
  <li class="blank-form">
23
+ <h3><?php _e( 'Blank Form', 'wp-user-frontend' ); ?></h3>
24
 
25
  <div class="form-middle-text">
26
  <span class="dashicons dashicons-plus"></span>
27
+ <div class="title"><?php _e( 'Blank Form', 'wp-user-frontend' ); ?></div>
28
  </div>
29
 
30
  <div class="form-create-overlay">
31
+ <div class="title"><?php _e( 'Blank Form', 'wp-user-frontend' ); ?></div>
32
  <br>
33
  <a href="<?php echo $blank_form_url; ?>" class="button button-primary" title="<?php echo esc_attr('Blank Form'); ?>">
34
+ <?php _e('Create Form', 'wp-user-frontend' ); ?>
35
  </a>
36
  </div>
37
  </li>
51
  if ( ! $template->is_enabled() ) {
52
  $url = '#';
53
  $class = 'template-inactive';
54
+ $title = __( 'This integration is not installed.', 'wp-user-frontend' );
55
  }
56
  ?>
57
 
64
  <div class="description"><?php echo $template->get_description(); ?></div>
65
  <br>
66
  <a href="<?php echo $url; ?>" class="button button-primary" title="<?php echo $template->get_title(); ?>">
67
+ <?php _e('Create Form', 'wp-user-frontend' ); ?>
68
  </a>
69
  </div>
70
  </li>
admin/html/support.php CHANGED
@@ -184,7 +184,7 @@ $articles = array(
184
  */
185
  function wpuf_help_related_articles( $articles ) {
186
  ?>
187
- <h2><?php _e( 'Related Articles:', 'wpuf' ); ?></h2>
188
 
189
  <ul class="related-articles">
190
  <?php
@@ -203,31 +203,31 @@ function wpuf_help_related_articles( $articles ) {
203
  ?>
204
 
205
  <div class="wrap wpuf-help-page">
206
- <h1><?php _e( 'General Help Questions', 'wpuf' ); ?> <a href="https://wedevs.com/docs/wp-user-frontend-pro/?utm_source=wpuf-help-page&utm_medium=button-primary&utm_campaign=view-all-docs" target="_blank" class="page-title-action"><span class="dashicons dashicons-external" style="margin-top: 8px;"></span> <?php _e( 'View all Documentations', 'wpuf' ); ?></a></h1>
207
 
208
  <form class="wpuf-subscribe-box" id="wpuf-form-subscribe" action="https://wedevs.us16.list-manage.com/subscribe/post-json?u=66e606cfe0af264974258f030&id=0d176bb256&c=?" method="get">
209
 
210
  <div class="text-wrap">
211
- <h3><?php _e( 'Subscribe to Our Newsletter', 'wpuf' ); ?></h3>
212
  <p>
213
- <?php _e( 'Subscribe to our newsletter for regular <strong>tips</strong>, <strong>offers</strong> and <strong>news updates</strong>.', 'wpuf' ); ?>
214
  </p>
215
  </div>
216
 
217
  <div class="form-wrap">
218
  <div class="fname">
219
- <label for="fname"><?php _e( 'First Name', 'wpuf' ); ?></label>
220
  <input type="text" name="FNAME" id="fname" class="regular-text" value="<?php echo esc_attr( $current_user->first_name ); ?>" required>
221
  </div>
222
 
223
  <div class="email">
224
- <label for="email"><?php _e( 'Email', 'wpuf' ); ?></label>
225
  <input type="email" name="EMAIL" id="email" class="regular-text" value="<?php echo esc_attr( $current_user->user_email ); ?>" required>
226
  </div>
227
 
228
  <div class="submit-btn">
229
  <input type="hidden" name="group[3555][1]" value="1">
230
- <input type="submit" class="button button-primary" value="<?php echo esc_attr( __( 'Subscribe', 'wpuf' ) ); ?>">
231
  </div>
232
  </div>
233
  </form>
@@ -238,49 +238,49 @@ function wpuf_help_related_articles( $articles ) {
238
  <li class="tab-current">
239
  <a href="#setup">
240
  <span class="dashicons dashicons-admin-home"></span>
241
- <label><?php _e( 'Plugin Setup', 'wpuf' ); ?></label>
242
  </a>
243
  </li>
244
  <li>
245
  <a href="#frontend-posting">
246
  <span class="dashicons dashicons-media-text"></span>
247
- <label><?php _e( 'Frontend Posting', 'wpuf' ); ?></label>
248
  </a>
249
  </li>
250
  <li>
251
  <a href="#frontend-dashboard">
252
  <span class="dashicons dashicons-dashboard"></span>
253
- <label><?php _e( 'Frontend Dashboard', 'wpuf' ); ?></label>
254
  </a>
255
  </li>
256
  <li>
257
  <a href="#user-registration">
258
  <span class="dashicons dashicons-admin-users"></span>
259
- <label><?php _e( 'User Registration', 'wpuf' ); ?></label>
260
  </a>
261
  </li>
262
  <li>
263
  <a href="#login-page">
264
  <span class="dashicons dashicons-lock"></span>
265
- <label><?php _e( 'User Login', 'wpuf' ); ?></label>
266
  </a>
267
  </li>
268
  <li>
269
  <a href="#profile-editing">
270
  <span class="dashicons dashicons-edit"></span>
271
- <label><?php _e( 'Profile Editing', 'wpuf' ); ?></label>
272
  </a>
273
  </li>
274
  <li>
275
  <a href="#subscription-payment">
276
  <span class="dashicons dashicons-cart"></span>
277
- <label><?php _e( 'Subscription &amp; Payment', 'wpuf' ); ?></label>
278
  </a>
279
  </li>
280
  <li>
281
  <a href="#content-restriction">
282
  <span class="dashicons dashicons-unlock"></span>
283
- <label><?php _e( 'Content Restriction', 'wpuf' ); ?></label>
284
  </a>
285
  </li>
286
  </ul>
@@ -302,7 +302,7 @@ function wpuf_help_related_articles( $articles ) {
302
  <li><strong>Enable guest posting</strong> and earn from each posts without any difficulties. </li>
303
  </ol>
304
 
305
- <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/getting-started/how-to-install/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=how-to-install" target="_blank"><?php _e( 'Learn More About Installation', 'wpuf' ); ?></a>
306
 
307
  <?php wpuf_help_related_articles( $articles['setup'] ); ?>
308
  </section>
@@ -313,7 +313,7 @@ function wpuf_help_related_articles( $articles ) {
313
  <p>To create a posting form, go to <a href="<?php echo admin_url( 'admin.php?page=wpuf-post-forms' ); ?>" target="_blank">Post Forms</a> → Add Form and start building your ultimate frontend posting forms. </p>
314
  <p>After building your forms, <strong>use the shortcodes</strong> on any new page or post and publish them before sharing.</p>
315
 
316
- <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=frontend-posting" target="_blank"><?php _e( 'Learn More About Frontend Posting', 'wpuf' ); ?></a>
317
 
318
  <?php wpuf_help_related_articles( $articles['posting'] ); ?>
319
  </section>
@@ -323,7 +323,7 @@ function wpuf_help_related_articles( $articles ) {
323
  <p>WP User Frontend generates <strong>Frontend Dashboard</strong> and <strong>My Account</strong> page for all your users. Using these pages, they can get a list of their posts and subscriptions directly at frontend. They can also customize the details of their profile. You don’t need to give them access to the backend at all!</p>
324
  <p>To crate this page, <a href="<?php echo admin_url( 'post-new.php?post_type=page' ); ?>" target="_blank">create a new page</a>, put a title and simply copy-paste the following shortcode: <code>[wpuf_dashboard]</code>. Alternatively, there is an unified <a href="https://wedevs.com/docs/wp-user-frontend-pro/frontend/how-to-create-my-account-page/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=unified-my-account-page" target="_blank">my account page</a> as well. Finally, hit the publish button and you are done.</p>
325
 
326
- <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/frontend/configuring-dashboard-settings/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=frontend-dashboard" target="_blank"><?php _e( 'Learn More About Frontend Dashboard', 'wpuf' ); ?></a>
327
 
328
  <?php wpuf_help_related_articles( $articles['dashboard'] ); ?>
329
  </section>
@@ -353,7 +353,7 @@ function wpuf_help_related_articles( $articles ) {
353
  </ul>
354
 
355
 
356
- <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/registration-profile-forms/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=registration-profile-forms" target="_blank"><?php _e( 'Learn More About Registration', 'wpuf' ); ?></a>
357
 
358
  <?php wpuf_help_related_articles( $articles['registration'] ); ?>
359
  </section>
@@ -369,7 +369,7 @@ function wpuf_help_related_articles( $articles ) {
369
 
370
  <p>Simply, create a new page and put the above shortcode. Finally, publish the page and add it to the Login Page option in the settings.</p>
371
 
372
- <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/registration-profile-forms/user-login/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=learn-more-login" target="_blank"><?php _e( 'Learn More About Login', 'wpuf' ); ?></a>
373
  </section>
374
  <section id="profile-editing">
375
  <h2>Creating a Profile Editing Form</h2>
@@ -386,7 +386,7 @@ function wpuf_help_related_articles( $articles ) {
386
  <p>We assume that you already have created a registration form. If not you can use the default registration form, that was created automatically while installing the plugin.
387
  So to get the shortcode, navigate to <strong>User Frontend</strong> → <strong>Registration Forms</strong> and you will be able to see the shortcodes on the right side of your screen.</p>
388
 
389
- <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/registration-profile-forms/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=registration-profile-forms" target="_blank"><?php _e( 'Learn More About Profile Editing', 'wpuf' ); ?></a>
390
 
391
  <?php wpuf_help_related_articles( $articles['profile'] ); ?>
392
  </section>
@@ -439,7 +439,7 @@ function wpuf_help_related_articles( $articles ) {
439
  <p>Currently only PayPal basic gateway is supported. The plugin is extension aware, that means other gateways can be integrated.</p>
440
 
441
 
442
- <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=subscription-payment" target="_blank"><?php _e( 'Learn More About Payments', 'wpuf' ); ?></a>
443
 
444
  <?php wpuf_help_related_articles( $articles['subscription'] ); ?>
445
  </section>
@@ -456,7 +456,7 @@ function wpuf_help_related_articles( $articles ) {
456
  <li>Finally, update the page.</li>
457
  </ol>
458
 
459
- <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/content-restriction/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=content-restriction" target="_blank"><?php _e( 'Learn More About Content Restriction', 'wpuf' ); ?></a>
460
 
461
  <?php wpuf_help_related_articles( $articles['restriction'] ); ?>
462
  </section>
@@ -465,33 +465,33 @@ function wpuf_help_related_articles( $articles ) {
465
 
466
  <div class="help-blocks">
467
  <div class="help-block">
468
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/help/like.svg" alt="<?php esc_attr_e( 'Like The Plugin?', 'wpuf' ); ?>">
469
 
470
- <h3><?php _e( 'Like The Plugin?', 'wpuf' ); ?></h3>
471
 
472
- <p><?php _e( 'Your Review is very important to us as it helps us to grow more.', 'wpuf' ); ?></p>
473
 
474
- <a target="_blank" class="button button-primary" href="https://wordpress.org/support/plugin/wp-user-frontend/reviews/?rate=5#new-post"><?php _e( 'Review Us on WP.org', 'wpuf' ); ?></a>
475
  </div>
476
 
477
  <div class="help-block">
478
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/help/bugs.svg" alt="<?php esc_attr_e( 'Found Any Bugs?', 'wpuf' ); ?>">
479
 
480
- <h3><?php _e( 'Found Any Bugs?', 'wpuf' ); ?></h3>
481
 
482
- <p><?php _e( 'Report any Bug that you Discovered, Get Instant Solutions.', 'wpuf' ); ?></p>
483
 
484
- <a target="_blank" class="button button-primary" href="https://github.com/weDevsOfficial/wp-user-frontend/?utm_source=wpuf-help-page&utm_medium=help-block&utm_campaign=found-bugs"><?php _e( 'Report to GitHub', 'wpuf' ); ?></a>
485
  </div>
486
 
487
  <div class="help-block">
488
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/help/support.svg" alt="<?php esc_attr_e( 'Need Any Assistance?', 'wpuf' ); ?>">
489
 
490
- <h3><?php _e( 'Need Any Assistance?', 'wpuf' ); ?></h3>
491
 
492
- <p><?php _e( 'Our EXPERT Support Team is always ready to Help you out.', 'wpuf' ); ?></p>
493
 
494
- <a target="_blank" class="button button-primary" href="https://wedevs.com/account/tickets/?utm_source=wpuf-help-page&utm_medium=help-block&utm_campaign=need-assistance"><?php _e( 'Contact Support', 'wpuf' ); ?></a>
495
  </div>
496
  </div>
497
  </div>
184
  */
185
  function wpuf_help_related_articles( $articles ) {
186
  ?>
187
+ <h2><?php _e( 'Related Articles:', 'wp-user-frontend' ); ?></h2>
188
 
189
  <ul class="related-articles">
190
  <?php
203
  ?>
204
 
205
  <div class="wrap wpuf-help-page">
206
+ <h1><?php _e( 'General Help Questions', 'wp-user-frontend' ); ?> <a href="https://wedevs.com/docs/wp-user-frontend-pro/?utm_source=wpuf-help-page&utm_medium=button-primary&utm_campaign=view-all-docs" target="_blank" class="page-title-action"><span class="dashicons dashicons-external" style="margin-top: 8px;"></span> <?php _e( 'View all Documentations', 'wp-user-frontend' ); ?></a></h1>
207
 
208
  <form class="wpuf-subscribe-box" id="wpuf-form-subscribe" action="https://wedevs.us16.list-manage.com/subscribe/post-json?u=66e606cfe0af264974258f030&id=0d176bb256&c=?" method="get">
209
 
210
  <div class="text-wrap">
211
+ <h3><?php _e( 'Subscribe to Our Newsletter', 'wp-user-frontend' ); ?></h3>
212
  <p>
213
+ <?php _e( 'Subscribe to our newsletter for regular <strong>tips</strong>, <strong>offers</strong> and <strong>news updates</strong>.', 'wp-user-frontend' ); ?>
214
  </p>
215
  </div>
216
 
217
  <div class="form-wrap">
218
  <div class="fname">
219
+ <label for="fname"><?php _e( 'First Name', 'wp-user-frontend' ); ?></label>
220
  <input type="text" name="FNAME" id="fname" class="regular-text" value="<?php echo esc_attr( $current_user->first_name ); ?>" required>
221
  </div>
222
 
223
  <div class="email">
224
+ <label for="email"><?php _e( 'Email', 'wp-user-frontend' ); ?></label>
225
  <input type="email" name="EMAIL" id="email" class="regular-text" value="<?php echo esc_attr( $current_user->user_email ); ?>" required>
226
  </div>
227
 
228
  <div class="submit-btn">
229
  <input type="hidden" name="group[3555][1]" value="1">
230
+ <input type="submit" class="button button-primary" value="<?php echo esc_attr( __( 'Subscribe', 'wp-user-frontend' ) ); ?>">
231
  </div>
232
  </div>
233
  </form>
238
  <li class="tab-current">
239
  <a href="#setup">
240
  <span class="dashicons dashicons-admin-home"></span>
241
+ <label><?php _e( 'Plugin Setup', 'wp-user-frontend' ); ?></label>
242
  </a>
243
  </li>
244
  <li>
245
  <a href="#frontend-posting">
246
  <span class="dashicons dashicons-media-text"></span>
247
+ <label><?php _e( 'Frontend Posting', 'wp-user-frontend' ); ?></label>
248
  </a>
249
  </li>
250
  <li>
251
  <a href="#frontend-dashboard">
252
  <span class="dashicons dashicons-dashboard"></span>
253
+ <label><?php _e( 'Frontend Dashboard', 'wp-user-frontend' ); ?></label>
254
  </a>
255
  </li>
256
  <li>
257
  <a href="#user-registration">
258
  <span class="dashicons dashicons-admin-users"></span>
259
+ <label><?php _e( 'User Registration', 'wp-user-frontend' ); ?></label>
260
  </a>
261
  </li>
262
  <li>
263
  <a href="#login-page">
264
  <span class="dashicons dashicons-lock"></span>
265
+ <label><?php _e( 'User Login', 'wp-user-frontend' ); ?></label>
266
  </a>
267
  </li>
268
  <li>
269
  <a href="#profile-editing">
270
  <span class="dashicons dashicons-edit"></span>
271
+ <label><?php _e( 'Profile Editing', 'wp-user-frontend' ); ?></label>
272
  </a>
273
  </li>
274
  <li>
275
  <a href="#subscription-payment">
276
  <span class="dashicons dashicons-cart"></span>
277
+ <label><?php _e( 'Subscription &amp; Payment', 'wp-user-frontend' ); ?></label>
278
  </a>
279
  </li>
280
  <li>
281
  <a href="#content-restriction">
282
  <span class="dashicons dashicons-unlock"></span>
283
+ <label><?php _e( 'Content Restriction', 'wp-user-frontend' ); ?></label>
284
  </a>
285
  </li>
286
  </ul>
302
  <li><strong>Enable guest posting</strong> and earn from each posts without any difficulties. </li>
303
  </ol>
304
 
305
+ <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/getting-started/how-to-install/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=how-to-install" target="_blank"><?php _e( 'Learn More About Installation', 'wp-user-frontend' ); ?></a>
306
 
307
  <?php wpuf_help_related_articles( $articles['setup'] ); ?>
308
  </section>
313
  <p>To create a posting form, go to <a href="<?php echo admin_url( 'admin.php?page=wpuf-post-forms' ); ?>" target="_blank">Post Forms</a> → Add Form and start building your ultimate frontend posting forms. </p>
314
  <p>After building your forms, <strong>use the shortcodes</strong> on any new page or post and publish them before sharing.</p>
315
 
316
+ <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=frontend-posting" target="_blank"><?php _e( 'Learn More About Frontend Posting', 'wp-user-frontend' ); ?></a>
317
 
318
  <?php wpuf_help_related_articles( $articles['posting'] ); ?>
319
  </section>
323
  <p>WP User Frontend generates <strong>Frontend Dashboard</strong> and <strong>My Account</strong> page for all your users. Using these pages, they can get a list of their posts and subscriptions directly at frontend. They can also customize the details of their profile. You don’t need to give them access to the backend at all!</p>
324
  <p>To crate this page, <a href="<?php echo admin_url( 'post-new.php?post_type=page' ); ?>" target="_blank">create a new page</a>, put a title and simply copy-paste the following shortcode: <code>[wpuf_dashboard]</code>. Alternatively, there is an unified <a href="https://wedevs.com/docs/wp-user-frontend-pro/frontend/how-to-create-my-account-page/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=unified-my-account-page" target="_blank">my account page</a> as well. Finally, hit the publish button and you are done.</p>
325
 
326
+ <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/frontend/configuring-dashboard-settings/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=frontend-dashboard" target="_blank"><?php _e( 'Learn More About Frontend Dashboard', 'wp-user-frontend' ); ?></a>
327
 
328
  <?php wpuf_help_related_articles( $articles['dashboard'] ); ?>
329
  </section>
353
  </ul>
354
 
355
 
356
+ <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/registration-profile-forms/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=registration-profile-forms" target="_blank"><?php _e( 'Learn More About Registration', 'wp-user-frontend' ); ?></a>
357
 
358
  <?php wpuf_help_related_articles( $articles['registration'] ); ?>
359
  </section>
369
 
370
  <p>Simply, create a new page and put the above shortcode. Finally, publish the page and add it to the Login Page option in the settings.</p>
371
 
372
+ <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/registration-profile-forms/user-login/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=learn-more-login" target="_blank"><?php _e( 'Learn More About Login', 'wp-user-frontend' ); ?></a>
373
  </section>
374
  <section id="profile-editing">
375
  <h2>Creating a Profile Editing Form</h2>
386
  <p>We assume that you already have created a registration form. If not you can use the default registration form, that was created automatically while installing the plugin.
387
  So to get the shortcode, navigate to <strong>User Frontend</strong> → <strong>Registration Forms</strong> and you will be able to see the shortcodes on the right side of your screen.</p>
388
 
389
+ <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/registration-profile-forms/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=registration-profile-forms" target="_blank"><?php _e( 'Learn More About Profile Editing', 'wp-user-frontend' ); ?></a>
390
 
391
  <?php wpuf_help_related_articles( $articles['profile'] ); ?>
392
  </section>
439
  <p>Currently only PayPal basic gateway is supported. The plugin is extension aware, that means other gateways can be integrated.</p>
440
 
441
 
442
+ <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=subscription-payment" target="_blank"><?php _e( 'Learn More About Payments', 'wp-user-frontend' ); ?></a>
443
 
444
  <?php wpuf_help_related_articles( $articles['subscription'] ); ?>
445
  </section>
456
  <li>Finally, update the page.</li>
457
  </ol>
458
 
459
+ <a class="button button-primary button-large" href="https://wedevs.com/docs/wp-user-frontend-pro/content-restriction/?utm_source=wpuf-help-page&utm_medium=help-links&utm_campaign=wpuf-help&utm_term=content-restriction" target="_blank"><?php _e( 'Learn More About Content Restriction', 'wp-user-frontend' ); ?></a>
460
 
461
  <?php wpuf_help_related_articles( $articles['restriction'] ); ?>
462
  </section>
465
 
466
  <div class="help-blocks">
467
  <div class="help-block">
468
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/help/like.svg" alt="<?php esc_attr_e( 'Like The Plugin?', 'wp-user-frontend' ); ?>">
469
 
470
+ <h3><?php _e( 'Like The Plugin?', 'wp-user-frontend' ); ?></h3>
471
 
472
+ <p><?php _e( 'Your Review is very important to us as it helps us to grow more.', 'wp-user-frontend' ); ?></p>
473
 
474
+ <a target="_blank" class="button button-primary" href="https://wordpress.org/support/plugin/wp-user-frontend/reviews/?rate=5#new-post"><?php _e( 'Review Us on WP.org', 'wp-user-frontend' ); ?></a>
475
  </div>
476
 
477
  <div class="help-block">
478
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/help/bugs.svg" alt="<?php esc_attr_e( 'Found Any Bugs?', 'wp-user-frontend' ); ?>">
479
 
480
+ <h3><?php _e( 'Found Any Bugs?', 'wp-user-frontend' ); ?></h3>
481
 
482
+ <p><?php _e( 'Report any Bug that you Discovered, Get Instant Solutions.', 'wp-user-frontend' ); ?></p>
483
 
484
+ <a target="_blank" class="button button-primary" href="https://github.com/weDevsOfficial/wp-user-frontend/?utm_source=wpuf-help-page&utm_medium=help-block&utm_campaign=found-bugs"><?php _e( 'Report to GitHub', 'wp-user-frontend' ); ?></a>
485
  </div>
486
 
487
  <div class="help-block">
488
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/help/support.svg" alt="<?php esc_attr_e( 'Need Any Assistance?', 'wp-user-frontend' ); ?>">
489
 
490
+ <h3><?php _e( 'Need Any Assistance?', 'wp-user-frontend' ); ?></h3>
491
 
492
+ <p><?php _e( 'Our EXPERT Support Team is always ready to Help you out.', 'wp-user-frontend' ); ?></p>
493
 
494
+ <a target="_blank" class="button button-primary" href="https://wedevs.com/account/tickets/?utm_source=wpuf-help-page&utm_medium=help-block&utm_campaign=need-assistance"><?php _e( 'Contact Support', 'wp-user-frontend' ); ?></a>
495
  </div>
496
  </div>
497
  </div>
admin/html/whats-new.php CHANGED
@@ -1,33 +1,69 @@
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
  ),
@@ -36,24 +72,24 @@ $changelog = array(
36
  'released' => '2018-04-09',
37
  'changes' => array(
38
  array(
39
- 'title' => __( 'WP User Frontend Guten Block is added', 'wpuf' ),
40
  'type' => 'New',
41
- 'description' => __( 'WPUF Form Block is now available to be used within gutenberg editor with preview of the form. ', 'wpuf' )
42
  ),
43
  array(
44
- 'title' => __( 'Advanced Custom Fields plugin compatibility', 'wpuf' ),
45
  'type' => 'New',
46
- 'description' => __( 'Now all your ACF fields can be used within WPUF Post forms. ', 'wpuf' ),
47
  ),
48
  array(
49
- 'title' => __( 'Taxonomy Terms not showing for custom post types', 'wpuf' ),
50
  'type' => 'Fix',
51
- 'description' => __( 'Fixed an issue with taxonomy terms not appearing for Custom Post types within Form Settings and Dashboard Post Listing', 'wpuf' ),
52
  ),
53
  array(
54
- 'title' => __( 'Various other code optimizations', 'wpuf' ),
55
  'type' => 'Improvement',
56
- 'description' => __( 'Code structure organization and optimization for better performance', 'wpuf' ),
57
  )
58
  )
59
  ),
@@ -62,29 +98,29 @@ $changelog = array(
62
  'released' => '2018-03-22',
63
  'changes' => array(
64
  array(
65
- 'title' => __( 'WoooCommerce billing address Sync', 'wpuf' ),
66
  'type' => 'Improvement',
67
- 'description' => __( 'If an existing customer has previously set his billing address, that will be imported into WPUF Billing address ', 'wpuf' )
68
  ),
69
  array(
70
- 'title' => __( 'Trial subscription message not showing properly', 'wpuf' ),
71
  'type' => 'Improvement',
72
- 'description' => __( 'Subscriptions with Trial now shows trial notices', 'wpuf' ),
73
  ),
74
  array(
75
- 'title' => __( 'Reset email Key not working', 'wpuf' ),
76
  'type' => 'Fix',
77
- 'description' => __( 'Reset Email key was not working in some cases', 'wpuf' ),
78
  ),
79
  array(
80
- 'title' => __( 'Post count not showing on the frontend dashboard', 'wpuf' ),
81
  'type' => 'Fix',
82
- 'description' => __( 'Dashboard with multiple post type was not showing post counts properly, is now fixed and shows count for each post type', 'wpuf' ),
83
  ),
84
  array(
85
- 'title' => __( 'Login Redirect showing blank page is fixed', 'wpuf' ),
86
  'type' => 'Fix',
87
- 'description' => __( 'If "Previous Page" was set for redirection, login redirect was redirecting to blank page for users who hit login page directly', 'wpuf' ),
88
  ),
89
  )
90
  ),
@@ -93,24 +129,24 @@ $changelog = array(
93
  'released' => '2018-03-12',
94
  'changes' => array(
95
  array(
96
- 'title' => __( 'Enhanced Login Redirect to redirect users to previous page', 'wpuf' ),
97
  'type' => 'New',
98
- 'description' => __( 'You can choose Previous Page as Login Redirect page settings now to redirect users to the page from which they went for Login. ', 'wpuf' )
99
  ),
100
  array(
101
- 'title' => __( 'Email HTML links not Rendreing properly issue is fixed', 'wpuf' ),
102
  'type' => 'Fix',
103
- 'description' => __( 'For some clients emails were not rendering the HTML links properly, this is now fixed', 'wpuf' ),
104
  ),
105
  array(
106
- 'title' => __( 'Form Builder : Form Field\'s Help text styles not showing properly', 'wpuf' ),
107
  'type' => 'Fix',
108
- 'description' => __( 'Help texts styling is now fixed and much easier to read and understand', 'wpuf' ),
109
  ),
110
  array(
111
- 'title' => __( 'Various other code improvements', 'wpuf' ),
112
  'type' => 'Improvement',
113
- 'description' => __( 'Code structure organization and optimization for better performance', 'wpuf' ),
114
  )
115
  )
116
  ),
@@ -119,29 +155,29 @@ $changelog = array(
119
  'released' => '2018-03-04',
120
  'changes' => array(
121
  array(
122
- 'title' => __( 'Dashboard Post Listing now supports multiple post types', 'wpuf' ),
123
  'type' => 'New',
124
- 'description' => __( 'Now you can show multiple post type in user dashboard using shortcode like this : <br><b>[wpuf_dashboard post_type="post,page,custom_type"]</b> ', 'wpuf' )
125
  ),
126
  array(
127
- 'title' => __( 'Added Login Redirect Settings', 'wpuf' ),
128
  'type' => 'New',
129
- 'description' => __( 'You can now set a page from <i>WPUF Settings > Login/Registration > Redirect after Login</i>. When login redirection is active the user will be redirected to this page after login.', 'wpuf' ),
130
  ),
131
  array(
132
- 'title' => __( 'Image Upload field button text can be changed', 'wpuf' ),
133
  'type' => 'New',
134
- 'description' => __( 'The upload button text can now be changed for image upload fields which defaults to "Select Image" if not set. ', 'wpuf' ).'<img src="'. WPUF_ASSET_URI .'/images/whats-new/image_upload_label.png" alt="Multi-select Category">',
135
  ),
136
  array(
137
- 'title' => __( 'Multi Step Form styles made compatible with more themes', 'wpuf' ),
138
  'type' => 'Fix',
139
- 'description' => __( 'Multi Step form can now be styled more easily with other themes ', 'wpuf' ),
140
  ),
141
  array(
142
- 'title' => __( 'Required field condition for google map not working is fixed', 'wpuf' ),
143
  'type' => 'Fix',
144
- 'description' => __( 'If Google Map field was set as required users were able to submit form without changing the default value.', 'wpuf' ),
145
  )
146
  )
147
  ),
@@ -150,24 +186,24 @@ $changelog = array(
150
  'released' => '2018-02-15',
151
  'changes' => array(
152
  array(
153
- 'title' => __( 'Admin form builder is now fully responsive.', 'wpuf' ),
154
  'type' => 'New',
155
- 'description' => __( 'Now you can edit forms from your mobile devices directly. Our improved responsive layouts of form builder makes it easy for you to build forms on the go.', 'wpuf' )
156
  ),
157
  array(
158
- 'title' => __( 'Added color schemes for creating attractive form layouts.', 'wpuf' ),
159
  'type' => 'New',
160
- 'description' => __( 'We have added 3 new color schemes for the form layouts which you can choose from each form\'s new display settings.', 'wpuf' ),
161
  ),
162
  array(
163
- 'title' => __( 'Restrict Free subscription pack to be enabled multiple times ', 'wpuf' ),
164
  'type' => 'Fix',
165
- 'description' => __( 'Free subscription packs now can only be purchased once and the limit applies properly', 'wpuf' ),
166
  ),
167
  array(
168
- 'title' => __( 'Various other bug fixes and improvements were made ', 'wpuf' ),
169
  'type' => 'Fix',
170
- 'description' => __( 'Please see the change log to see full details.', 'wpuf' ),
171
  ),
172
  )
173
  ),
@@ -176,19 +212,19 @@ $changelog = array(
176
  'released' => '2018-01-23',
177
  'changes' => array(
178
  array(
179
- 'title' => __( 'Added upgrade function for default category', 'wpuf' ),
180
  'type' => 'Improvement',
181
- 'description' => __( 'Upgrader added to upgrade previously set default post category.', 'wpuf' )
182
  ),
183
  array(
184
- 'title' => __( 'Subscription pack cannot be canceled', 'wpuf' ),
185
  'type' => 'Fix',
186
- 'description' => __( 'Fixed recurring subscription pack cannot be canceled from my account page in subscription details section.', 'wpuf' ),
187
  ),
188
  array(
189
- 'title' => __( 'page installer admin notice logic issue', 'wpuf' ),
190
  'type' => 'Fix',
191
- 'description' => __( 'Fixed page installer admin notice logic problem due to new payment settings default value not set.', 'wpuf' ),
192
  ),
193
  )
194
  ),
@@ -198,26 +234,26 @@ $changelog = array(
198
  'released' => '2018-01-14',
199
  'changes' => array(
200
  array(
201
- 'title' => __( 'Setup Wizard', 'wpuf' ),
202
  'type' => 'New',
203
- 'description' => __( 'Setup Wizard added to turn off payment options and install pages.', 'wpuf' ) .
204
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/wizard.gif" alt="Setup Wizard">'
205
  ),
206
  array(
207
- 'title' => __( 'Multi-select Category', 'wpuf' ),
208
  'type' => 'New',
209
- 'description' => __( 'Add multi-select to default category in post form settings.', 'wpuf' ) .
210
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/category.png" alt="Multi-select Category">'
211
  ),
212
  array(
213
- 'title' => __( 'Select Text option for Taxonomy', 'wpuf' ),
214
  'type' => 'Improvement',
215
- 'description' => __( 'Add Select Text option for taxonomy fields. Now you can add default text with empty value as first option for Taxonomy dropdown.', 'wpuf' )
216
  ),
217
  array(
218
- 'title' => __( 'Taxonomy Checkbox Inline', 'wpuf' ),
219
  'type' => 'Improvement',
220
- 'description' => __( 'Added checkbox inline option to taxonomy checkbox. You can now display Taxonomy checkbox fields inline.', 'wpuf' )
221
  ),
222
  )
223
  ),
@@ -227,39 +263,39 @@ $changelog = array(
227
  'released' => '2018-01-06',
228
  'changes' => array(
229
  array(
230
- 'title' => __( 'Manage schedule for form submission', 'wpuf' ),
231
  'type' => 'New',
232
- 'description' => __( 'Do not accept form submission if the current date is not between the date range of the schedule.', 'wpuf' ) .
233
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/schedule.png" alt="Manage schedule for form submission">'
234
  ),
235
  array(
236
- 'title' => __( 'Restrict form submission based on the user roles', 'wpuf' ),
237
  'type' => 'New',
238
- 'description' => __( 'Restrict form submission based on the user roles. Now you can manage user role base permission on form submission.', 'wpuf' ) .
239
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/role-base.png" alt="Restrict form submission based on the users role">'
240
  ),
241
  array(
242
- 'title' => __( 'Limit how many entries a form will accept', 'wpuf' ),
243
  'type' => 'New',
244
- 'description' => __( 'Limit how many entries a form will accept and display a custom message when that limit is reached.', 'wpuf' ) .
245
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/limit.png" alt="Limit how many entries a form will accept">'
246
  ),
247
  array(
248
- 'title' => __( 'Show/hide Admin Bar', 'wpuf' ),
249
  'type' => 'New',
250
- 'description' => __( 'Control the admin bar visibility based on user roles.', 'wpuf' ) .
251
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/admin-bar.png" alt="Show/hide Admin Bar">'
252
  ),
253
  array(
254
- 'title' => __( 'Ajax Login widget', 'wpuf' ),
255
  'type' => 'New',
256
- 'description' => __( 'Login user is more simple now with Ajax Login Widget. The simple ajax login form do not required page loading for login.', 'wpuf' ) .
257
  '<br><br><iframe width="100%" height="372" src="https://www.youtube.com/embed/eZYSuXsCw8E" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>'
258
  ),
259
  array(
260
- 'title' => __( 'Form submission with Captcha field', 'wpuf' ),
261
  'type' => 'Improvement',
262
- 'description' => __( 'Form field validation process updated if form submits with captcha field.', 'wpuf' )
263
  ),
264
  )
265
  )
@@ -273,7 +309,7 @@ function _wpuf_changelog_content( $content ) {
273
  ?>
274
 
275
  <div class="wrap wpuf-whats-new">
276
- <h1><?php _e( 'What\'s New in WPUF?', 'wpuf' ); ?></h1>
277
 
278
  <div class="wedevs-changelog-wrapper">
279
 
1
  <?php
2
  $changelog = array(
3
+ array(
4
+ 'version' => 'Version 2.8.9',
5
+ 'released' => '2018-06-06',
6
+ 'changes' => array(
7
+ array(
8
+ 'title' => __( 'Changed text domain to `wp-user-frontend` from `wpuf` ', 'wp-user-frontend' ),
9
+ 'type' => 'Improvement',
10
+ 'description' => __( 'If you are using other language than English. Please <b>rename</b> your <i>.po and .mo </i> files to `wp-user-frontend_` from `wpuf_` <br> This change was made to support translations from translate.wordpress.org', 'wp-user-frontend' )
11
+ ),
12
+ array(
13
+ 'title' => __( 'Added WP User Frontend Data export and erase functionality.', 'wp-user-frontend' ),
14
+ 'type' => 'New',
15
+ 'description' => __( 'Added functionality to export WP User Frontend Data to comply with GDPR.', 'wp-user-frontend' )
16
+ ),
17
+ array(
18
+ 'title' => __( 'Added billing address customizer.', 'wp-user-frontend' ),
19
+ 'type' => 'New',
20
+ 'description' => __( 'Added customizer options for billing address in payment page.', 'wp-user-frontend' ),
21
+ ),
22
+ array(
23
+ 'title' => __( 'Make the payment page responsive.', 'wp-user-frontend' ),
24
+ 'type' => 'Improvement',
25
+ 'description' => __( 'Some css adjustments are made in payment page to make it responsive.', 'wp-user-frontend' ),
26
+ ),
27
+ array(
28
+ 'title' => __( 'Fixed image upload issue in Safari.', 'wp-user-frontend' ),
29
+ 'type' => 'Fix',
30
+ 'description' => __( 'Images were not showing after upload in safari, it is fixed now.', 'wp-user-frontend' ),
31
+ ),
32
+ array(
33
+ 'title' => __( 'Post update issue after updating or removing post images.', 'wp-user-frontend' ),
34
+ 'type' => 'Fix',
35
+ 'description' => __( 'Posts cannot be updated after updating or removing post images, it is fixed now.', 'wp-user-frontend' ),
36
+ ),
37
+ )
38
+ ),
39
  array(
40
  'version' => 'Version 2.8.8',
41
  'released' => '2018-05-16',
42
  'changes' => array(
43
  array(
44
+ 'title' => __( 'Allow overriding form input styles using theme styling.', 'wp-user-frontend' ),
45
  'type' => 'New',
46
+ 'description' => __( 'Overriding form input styles using theme style is now possible.', 'wp-user-frontend' )
47
  ),
48
  array(
49
+ 'title' => __( 'Fixed Auto Login after registration.', 'wp-user-frontend' ),
50
  'type' => 'Fix',
51
+ 'description' => __( 'Auto Login after registration was not working is fixed now.', 'wp-user-frontend' ),
52
  ),
53
  array(
54
+ 'title' => __( 'Fixed fallback cost calculation', 'wp-user-frontend' ),
55
  'type' => 'Fix',
56
+ 'description' => __( 'Fallback cost calculation was inaccurate for some cases, it is fixed now.', 'wp-user-frontend' ),
57
  ),
58
  array(
59
+ 'title' => __( 'Removal of subscription from User Profile gets reverted if updated', 'wp-user-frontend' ),
60
  'type' => 'Fix',
61
+ 'description' => __( 'User subscription deletion gets reverted if updated is fixed.', 'wp-user-frontend' ),
62
  ),
63
  array(
64
+ 'title' => __( 'Show Free pack users in subscribers list.', 'wp-user-frontend' ),
65
  'type' => 'Improvement',
66
+ 'description' => __( 'Free pack users were not showing in subscribers list, now they will.', 'wp-user-frontend' ),
67
  )
68
  )
69
  ),
72
  'released' => '2018-04-09',
73
  'changes' => array(
74
  array(
75
+ 'title' => __( 'WP User Frontend Guten Block is added', 'wp-user-frontend' ),
76
  'type' => 'New',
77
+ 'description' => __( 'WPUF Form Block is now available to be used within gutenberg editor with preview of the form. ', 'wp-user-frontend' )
78
  ),
79
  array(
80
+ 'title' => __( 'Advanced Custom Fields plugin compatibility', 'wp-user-frontend' ),
81
  'type' => 'New',
82
+ 'description' => __( 'Now all your ACF fields can be used within WPUF Post forms. ', 'wp-user-frontend' ),
83
  ),
84
  array(
85
+ 'title' => __( 'Taxonomy Terms not showing for custom post types', 'wp-user-frontend' ),
86
  'type' => 'Fix',
87
+ 'description' => __( 'Fixed an issue with taxonomy terms not appearing for Custom Post types within Form Settings and Dashboard Post Listing', 'wp-user-frontend' ),
88
  ),
89
  array(
90
+ 'title' => __( 'Various other code optimizations', 'wp-user-frontend' ),
91
  'type' => 'Improvement',
92
+ 'description' => __( 'Code structure organization and optimization for better performance', 'wp-user-frontend' ),
93
  )
94
  )
95
  ),
98
  'released' => '2018-03-22',
99
  'changes' => array(
100
  array(
101
+ 'title' => __( 'WoooCommerce billing address Sync', 'wp-user-frontend' ),
102
  'type' => 'Improvement',
103
+ 'description' => __( 'If an existing customer has previously set his billing address, that will be imported into WPUF Billing address ', 'wp-user-frontend' )
104
  ),
105
  array(
106
+ 'title' => __( 'Trial subscription message not showing properly', 'wp-user-frontend' ),
107
  'type' => 'Improvement',
108
+ 'description' => __( 'Subscriptions with Trial now shows trial notices', 'wp-user-frontend' ),
109
  ),
110
  array(
111
+ 'title' => __( 'Reset email Key not working', 'wp-user-frontend' ),
112
  'type' => 'Fix',
113
+ 'description' => __( 'Reset Email key was not working in some cases', 'wp-user-frontend' ),
114
  ),
115
  array(
116
+ 'title' => __( 'Post count not showing on the frontend dashboard', 'wp-user-frontend' ),
117
  'type' => 'Fix',
118
+ 'description' => __( 'Dashboard with multiple post type was not showing post counts properly, is now fixed and shows count for each post type', 'wp-user-frontend' ),
119
  ),
120
  array(
121
+ 'title' => __( 'Login Redirect showing blank page is fixed', 'wp-user-frontend' ),
122
  'type' => 'Fix',
123
+ 'description' => __( 'If "Previous Page" was set for redirection, login redirect was redirecting to blank page for users who hit login page directly', 'wp-user-frontend' ),
124
  ),
125
  )
126
  ),
129
  'released' => '2018-03-12',
130
  'changes' => array(
131
  array(
132
+ 'title' => __( 'Enhanced Login Redirect to redirect users to previous page', 'wp-user-frontend' ),
133
  'type' => 'New',
134
+ 'description' => __( 'You can choose Previous Page as Login Redirect page settings now to redirect users to the page from which they went for Login. ', 'wp-user-frontend' )
135
  ),
136
  array(
137
+ 'title' => __( 'Email HTML links not Rendreing properly issue is fixed', 'wp-user-frontend' ),
138
  'type' => 'Fix',
139
+ 'description' => __( 'For some clients emails were not rendering the HTML links properly, this is now fixed', 'wp-user-frontend' ),
140
  ),
141
  array(
142
+ 'title' => __( 'Form Builder : Form Field\'s Help text styles not showing properly', 'wp-user-frontend' ),
143
  'type' => 'Fix',
144
+ 'description' => __( 'Help texts styling is now fixed and much easier to read and understand', 'wp-user-frontend' ),
145
  ),
146
  array(
147
+ 'title' => __( 'Various other code improvements', 'wp-user-frontend' ),
148
  'type' => 'Improvement',
149
+ 'description' => __( 'Code structure organization and optimization for better performance', 'wp-user-frontend' ),
150
  )
151
  )
152
  ),
155
  'released' => '2018-03-04',
156
  'changes' => array(
157
  array(
158
+ 'title' => __( 'Dashboard Post Listing now supports multiple post types', 'wp-user-frontend' ),
159
  'type' => 'New',
160
+ 'description' => __( 'Now you can show multiple post type in user dashboard using shortcode like this : <br><b>[wpuf_dashboard post_type="post,page,custom_type"]</b> ', 'wp-user-frontend' )
161
  ),
162
  array(
163
+ 'title' => __( 'Added Login Redirect Settings', 'wp-user-frontend' ),
164
  'type' => 'New',
165
+ 'description' => __( 'You can now set a page from <i>WPUF Settings > Login/Registration > Redirect after Login</i>. When login redirection is active the user will be redirected to this page after login.', 'wp-user-frontend' ),
166
  ),
167
  array(
168
+ 'title' => __( 'Image Upload field button text can be changed', 'wp-user-frontend' ),
169
  'type' => 'New',
170
+ 'description' => __( 'The upload button text can now be changed for image upload fields which defaults to "Select Image" if not set. ', 'wp-user-frontend' ).'<img src="'. WPUF_ASSET_URI .'/images/whats-new/image_upload_label.png" alt="Multi-select Category">',
171
  ),
172
  array(
173
+ 'title' => __( 'Multi Step Form styles made compatible with more themes', 'wp-user-frontend' ),
174
  'type' => 'Fix',
175
+ 'description' => __( 'Multi Step form can now be styled more easily with other themes ', 'wp-user-frontend' ),
176
  ),
177
  array(
178
+ 'title' => __( 'Required field condition for google map not working is fixed', 'wp-user-frontend' ),
179
  'type' => 'Fix',
180
+ 'description' => __( 'If Google Map field was set as required users were able to submit form without changing the default value.', 'wp-user-frontend' ),
181
  )
182
  )
183
  ),
186
  'released' => '2018-02-15',
187
  'changes' => array(
188
  array(
189
+ 'title' => __( 'Admin form builder is now fully responsive.', 'wp-user-frontend' ),
190
  'type' => 'New',
191
+ 'description' => __( 'Now you can edit forms from your mobile devices directly. Our improved responsive layouts of form builder makes it easy for you to build forms on the go.', 'wp-user-frontend' )
192
  ),
193
  array(
194
+ 'title' => __( 'Added color schemes for creating attractive form layouts.', 'wp-user-frontend' ),
195
  'type' => 'New',
196
+ 'description' => __( 'We have added 3 new color schemes for the form layouts which you can choose from each form\'s new display settings.', 'wp-user-frontend' ),
197
  ),
198
  array(
199
+ 'title' => __( 'Restrict Free subscription pack to be enabled multiple times ', 'wp-user-frontend' ),
200
  'type' => 'Fix',
201
+ 'description' => __( 'Free subscription packs now can only be purchased once and the limit applies properly', 'wp-user-frontend' ),
202
  ),
203
  array(
204
+ 'title' => __( 'Various other bug fixes and improvements were made ', 'wp-user-frontend' ),
205
  'type' => 'Fix',
206
+ 'description' => __( 'Please see the change log to see full details.', 'wp-user-frontend' ),
207
  ),
208
  )
209
  ),
212
  'released' => '2018-01-23',
213
  'changes' => array(
214
  array(
215
+ 'title' => __( 'Added upgrade function for default category', 'wp-user-frontend' ),
216
  'type' => 'Improvement',
217
+ 'description' => __( 'Upgrader added to upgrade previously set default post category.', 'wp-user-frontend' )
218
  ),
219
  array(
220
+ 'title' => __( 'Subscription pack cannot be canceled', 'wp-user-frontend' ),
221
  'type' => 'Fix',
222
+ 'description' => __( 'Fixed recurring subscription pack cannot be canceled from my account page in subscription details section.', 'wp-user-frontend' ),
223
  ),
224
  array(
225
+ 'title' => __( 'page installer admin notice logic issue', 'wp-user-frontend' ),
226
  'type' => 'Fix',
227
+ 'description' => __( 'Fixed page installer admin notice logic problem due to new payment settings default value not set.', 'wp-user-frontend' ),
228
  ),
229
  )
230
  ),
234
  'released' => '2018-01-14',
235
  'changes' => array(
236
  array(
237
+ 'title' => __( 'Setup Wizard', 'wp-user-frontend' ),
238
  'type' => 'New',
239
+ 'description' => __( 'Setup Wizard added to turn off payment options and install pages.', 'wp-user-frontend' ) .
240
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/wizard.gif" alt="Setup Wizard">'
241
  ),
242
  array(
243
+ 'title' => __( 'Multi-select Category', 'wp-user-frontend' ),
244
  'type' => 'New',
245
+ 'description' => __( 'Add multi-select to default category in post form settings.', 'wp-user-frontend' ) .
246
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/category.png" alt="Multi-select Category">'
247
  ),
248
  array(
249
+ 'title' => __( 'Select Text option for Taxonomy', 'wp-user-frontend' ),
250
  'type' => 'Improvement',
251
+ 'description' => __( 'Add Select Text option for taxonomy fields. Now you can add default text with empty value as first option for Taxonomy dropdown.', 'wp-user-frontend' )
252
  ),
253
  array(
254
+ 'title' => __( 'Taxonomy Checkbox Inline', 'wp-user-frontend' ),
255
  'type' => 'Improvement',
256
+ 'description' => __( 'Added checkbox inline option to taxonomy checkbox. You can now display Taxonomy checkbox fields inline.', 'wp-user-frontend' )
257
  ),
258
  )
259
  ),
263
  'released' => '2018-01-06',
264
  'changes' => array(
265
  array(
266
+ 'title' => __( 'Manage schedule for form submission', 'wp-user-frontend' ),
267
  'type' => 'New',
268
+ 'description' => __( 'Do not accept form submission if the current date is not between the date range of the schedule.', 'wp-user-frontend' ) .
269
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/schedule.png" alt="Manage schedule for form submission">'
270
  ),
271
  array(
272
+ 'title' => __( 'Restrict form submission based on the user roles', 'wp-user-frontend' ),
273
  'type' => 'New',
274
+ 'description' => __( 'Restrict form submission based on the user roles. Now you can manage user role base permission on form submission.', 'wp-user-frontend' ) .
275
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/role-base.png" alt="Restrict form submission based on the users role">'
276
  ),
277
  array(
278
+ 'title' => __( 'Limit how many entries a form will accept', 'wp-user-frontend' ),
279
  'type' => 'New',
280
+ 'description' => __( 'Limit how many entries a form will accept and display a custom message when that limit is reached.', 'wp-user-frontend' ) .
281
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/limit.png" alt="Limit how many entries a form will accept">'
282
  ),
283
  array(
284
+ 'title' => __( 'Show/hide Admin Bar', 'wp-user-frontend' ),
285
  'type' => 'New',
286
+ 'description' => __( 'Control the admin bar visibility based on user roles.', 'wp-user-frontend' ) .
287
  '<img src="'. WPUF_ASSET_URI .'/images/whats-new/admin-bar.png" alt="Show/hide Admin Bar">'
288
  ),
289
  array(
290
+ 'title' => __( 'Ajax Login widget', 'wp-user-frontend' ),
291
  'type' => 'New',
292
+ 'description' => __( 'Login user is more simple now with Ajax Login Widget. The simple ajax login form do not required page loading for login.', 'wp-user-frontend' ) .
293
  '<br><br><iframe width="100%" height="372" src="https://www.youtube.com/embed/eZYSuXsCw8E" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>'
294
  ),
295
  array(
296
+ 'title' => __( 'Form submission with Captcha field', 'wp-user-frontend' ),
297
  'type' => 'Improvement',
298
+ 'description' => __( 'Form field validation process updated if form submits with captcha field.', 'wp-user-frontend' )
299
  ),
300
  )
301
  )
309
  ?>
310
 
311
  <div class="wrap wpuf-whats-new">
312
+ <h1><?php _e( 'What\'s New in WPUF?', 'wp-user-frontend' ); ?></h1>
313
 
314
  <div class="wedevs-changelog-wrapper">
315
 
admin/installer.php CHANGED
@@ -24,12 +24,12 @@ class WPUF_Admin_Installer {
24
  ?>
25
  <div class="updated error">
26
  <p>
27
- <?php _e( 'If you have not created <strong>WP User Frontend</strong> pages yet, you can do this by one click.', 'wpuf' ); ?>
28
  </p>
29
  <p class="submit">
30
- <a class="button button-primary" href="<?php echo add_query_arg( array( 'install_wpuf_pages' => true ), admin_url( 'admin.php?page=wpuf-settings' ) ); ?>"><?php _e( 'Install WPUF Pages', 'wpuf' ); ?></a>
31
- <?php _e( 'or', 'wpuf' ); ?>
32
- <a class="button" href="<?php echo add_query_arg( array( 'wpuf_hide_page_nag' => true ) ); ?>"><?php _e( 'Skip Setup', 'wpuf' ); ?></a>
33
  </p>
34
  </div>
35
  <?php
@@ -39,7 +39,7 @@ class WPUF_Admin_Installer {
39
  ?>
40
  <div class="updated">
41
  <p>
42
- <strong><?php _e( 'Congratulations!', 'wpuf' ); ?></strong> <?php _e( 'Pages for <strong>WP User Frontend</strong> has been successfully installed and saved!', 'wpuf' ); ?>
43
  </p>
44
  </div>
45
  <?php
@@ -70,21 +70,21 @@ class WPUF_Admin_Installer {
70
  function init_pages() {
71
 
72
  // create a dashboard page
73
- $dashboard_page = $this->create_page( __( 'Dashboard', 'wpuf' ), '[wpuf_dashboard]' );
74
- $account_page = $this->create_page( __( 'Account', 'wpuf' ), '[wpuf_account]' );
75
- $edit_page = $this->create_page( __( 'Edit', 'wpuf' ), '[wpuf_edit]' );
76
 
77
  // login page
78
- $login_page = $this->create_page( __( 'Login', 'wpuf' ), '[wpuf-login]' );
79
 
80
  $post_form = $this->create_form();
81
 
82
  if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
83
  // payment page
84
- $subscr_page = $this->create_page( __( 'Subscription', 'wpuf' ), __( '[wpuf_sub_pack]', 'wpuf') );
85
- $payment_page = $this->create_page( __( 'Payment', 'wpuf' ), __( 'Please select a gateway for payment', 'wpuf') );
86
- $thank_page = $this->create_page( __( 'Thank You', 'wpuf' ), __( '<h1>Payment is complete</h1><p>Congratulations, your payment has been completed!</p>', 'wpuf') );
87
- $bank_page = $this->create_page( __( 'Order Received', 'wpuf' ), __( 'Hi, we have received your order. We will validate the order and will take necessary steps to move forward.', 'wpuf') );
88
  }
89
 
90
  // save the settings
@@ -166,7 +166,7 @@ class WPUF_Admin_Installer {
166
  * @return int|boolean
167
  */
168
  function create_reg_form() {
169
- return wpuf_create_sample_form( __( 'Registration', 'wpuf' ), 'wpuf_profile' );
170
  }
171
 
172
  /**
@@ -175,7 +175,7 @@ class WPUF_Admin_Installer {
175
  * @return void
176
  */
177
  function create_form() {
178
- return wpuf_create_sample_form( __( 'Sample Form', 'wpuf' ), 'wpuf_forms' );
179
  }
180
 
181
  }
24
  ?>
25
  <div class="updated error">
26
  <p>
27
+ <?php _e( 'If you have not created <strong>WP User Frontend</strong> pages yet, you can do this by one click.', 'wp-user-frontend' ); ?>
28
  </p>
29
  <p class="submit">
30
+ <a class="button button-primary" href="<?php echo add_query_arg( array( 'install_wpuf_pages' => true ), admin_url( 'admin.php?page=wpuf-settings' ) ); ?>"><?php _e( 'Install WPUF Pages', 'wp-user-frontend' ); ?></a>
31
+ <?php _e( 'or', 'wp-user-frontend' ); ?>
32
+ <a class="button" href="<?php echo add_query_arg( array( 'wpuf_hide_page_nag' => true ) ); ?>"><?php _e( 'Skip Setup', 'wp-user-frontend' ); ?></a>
33
  </p>
34
  </div>
35
  <?php
39
  ?>
40
  <div class="updated">
41
  <p>
42
+ <strong><?php _e( 'Congratulations!', 'wp-user-frontend' ); ?></strong> <?php _e( 'Pages for <strong>WP User Frontend</strong> has been successfully installed and saved!', 'wp-user-frontend' ); ?>
43
  </p>
44
  </div>
45
  <?php
70
  function init_pages() {
71
 
72
  // create a dashboard page
73
+ $dashboard_page = $this->create_page( __( 'Dashboard', 'wp-user-frontend' ), '[wpuf_dashboard]' );
74
+ $account_page = $this->create_page( __( 'Account', 'wp-user-frontend' ), '[wpuf_account]' );
75
+ $edit_page = $this->create_page( __( 'Edit', 'wp-user-frontend' ), '[wpuf_edit]' );
76
 
77
  // login page
78
+ $login_page = $this->create_page( __( 'Login', 'wp-user-frontend' ), '[wpuf-login]' );
79
 
80
  $post_form = $this->create_form();
81
 
82
  if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
83
  // payment page
84
+ $subscr_page = $this->create_page( __( 'Subscription', 'wp-user-frontend' ), __( '[wpuf_sub_pack]', 'wp-user-frontend') );
85
+ $payment_page = $this->create_page( __( 'Payment', 'wp-user-frontend' ), __( 'Please select a gateway for payment', 'wp-user-frontend') );
86
+ $thank_page = $this->create_page( __( 'Thank You', 'wp-user-frontend' ), __( '<h1>Payment is complete</h1><p>Congratulations, your payment has been completed!</p>', 'wp-user-frontend') );
87
+ $bank_page = $this->create_page( __( 'Order Received', 'wp-user-frontend' ), __( 'Hi, we have received your order. We will validate the order and will take necessary steps to move forward.', 'wp-user-frontend') );
88
  }
89
 
90
  // save the settings
166
  * @return int|boolean
167
  */
168
  function create_reg_form() {
169
+ return wpuf_create_sample_form( __( 'Registration', 'wp-user-frontend' ), 'wpuf_profile' );
170
  }
171
 
172
  /**
175
  * @return void
176
  */
177
  function create_form() {
178
+ return wpuf_create_sample_form( __( 'Sample Form', 'wp-user-frontend' ), 'wpuf_forms' );
179
  }
180
 
181
  }
admin/post-forms-list-table-view.php CHANGED
@@ -1,11 +1,11 @@
1
  <div class="wrap">
2
  <h2>
3
  <?php
4
- _e( 'Post Forms', 'wpuf' );
5
 
6
  if ( current_user_can( wpuf_admin_role() ) ):
7
  ?>
8
- <a href="<?php echo $add_new_page_url; ?>" id="new-wpuf-post-form" class="page-title-action add-form"><?php _e( 'Add Form', 'wpuf' ); ?></a>
9
  <?php
10
  endif;
11
  ?>
@@ -20,7 +20,7 @@
20
  <?php
21
  $wpuf_post_form = new WPUF_Admin_Post_Forms_List_Table();
22
  $wpuf_post_form->prepare_items();
23
- $wpuf_post_form->search_box( __( 'Search Forms', 'wpuf' ), 'wpuf-post-form-search' );
24
 
25
  if ( current_user_can( wpuf_admin_role() ) ) {
26
  $wpuf_post_form->views();
@@ -36,7 +36,7 @@
36
  <div class="wpuf-footer-help">
37
  <span class="wpuf-footer-help-content">
38
  <span class="dashicons dashicons-editor-help"></span>
39
- <?php printf( __( 'Learn more about <a href="%s" target="_blank">Frontend Posting</a>', 'wpuf' ), 'https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/?utm_source=wpuf-footer-help&utm_medium=text-link&utm_campaign=learn-more-frontend-posting' ); ?>
40
  </span>
41
  </div>
42
  </div>
1
  <div class="wrap">
2
  <h2>
3
  <?php
4
+ _e( 'Post Forms', 'wp-user-frontend' );
5
 
6
  if ( current_user_can( wpuf_admin_role() ) ):
7
  ?>
8
+ <a href="<?php echo $add_new_page_url; ?>" id="new-wpuf-post-form" class="page-title-action add-form"><?php _e( 'Add Form', 'wp-user-frontend' ); ?></a>
9
  <?php
10
  endif;
11
  ?>
20
  <?php
21
  $wpuf_post_form = new WPUF_Admin_Post_Forms_List_Table();
22
  $wpuf_post_form->prepare_items();
23
+ $wpuf_post_form->search_box( __( 'Search Forms', 'wp-user-frontend' ), 'wpuf-post-form-search' );
24
 
25
  if ( current_user_can( wpuf_admin_role() ) ) {
26
  $wpuf_post_form->views();
36
  <div class="wpuf-footer-help">
37
  <span class="wpuf-footer-help-content">
38
  <span class="dashicons dashicons-editor-help"></span>
39
+ <?php printf( __( 'Learn more about <a href="%s" target="_blank">Frontend Posting</a>', 'wp-user-frontend' ), 'https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/?utm_source=wpuf-footer-help&utm_medium=text-link&utm_campaign=learn-more-frontend-posting' ); ?>
40
  </span>
41
  </div>
42
  </div>
admin/post-forms-list-table.php CHANGED
@@ -40,9 +40,9 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
40
  $base_link = admin_url( 'admin.php?page=wpuf-post-forms' );
41
 
42
  $post_statuses = apply_filters( 'wpuf_post_forms_list_table_post_statuses', array(
43
- 'all' => __( 'All', 'wpuf' ),
44
- 'publish' => __( 'Published', 'wpuf' ),
45
- 'trash' => __( 'Trash', 'wpuf' )
46
  ) );
47
 
48
  $current_status = isset( $_GET['post_status'] ) ? $_GET['post_status'] : 'all';
@@ -92,7 +92,7 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
92
  * @return void
93
  */
94
  public function no_items() {
95
- _e( 'No form found.', 'wpuf' );
96
  }
97
 
98
  /**
@@ -106,12 +106,12 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
106
  $actions = array();
107
 
108
  if ( ! isset( $_GET['post_status'] ) || 'trash' !== $_GET['post_status'] ) {
109
- $actions['trash'] = __( 'Move to Trash', 'wpuf' );
110
  }
111
 
112
  if ( isset( $_GET['post_status'] ) && 'trash' === $_GET['post_status'] ) {
113
- $actions['restore'] = __( 'Restore', 'wpuf' );
114
- $actions['delete'] = __( 'Delete Permanently', 'wpuf' );
115
  }
116
 
117
  return apply_filters( 'wpuf_post_forms_list_table_get_bulk_actions', $actions );
@@ -262,12 +262,11 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
262
  'ID' => $form->ID,
263
  'post_title' => $form->post_title,
264
  'post_status' => $form->post_status,
265
- 'settings_post_type' => $settings['post_type'],
266
- 'settings_post_status' => $settings['post_status'],
267
- 'settings_guest_post' => $settings['guest_post']
268
  );
269
 
270
-
271
  $i++;
272
  }
273
  }
@@ -293,11 +292,11 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
293
  public function get_columns() {
294
  $columns = array(
295
  'cb' => '<input type="checkbox" />',
296
- 'form_name' => __( 'Form Name', 'wpuf' ),
297
- 'post_type' => __( 'Post Type', 'wpuf' ),
298
- 'post_status' => __( 'Post Status', 'wpuf' ),
299
- 'guest_post' => __( 'Guest Post', 'wpuf' ),
300
- 'shortcode' => __( 'Shortcode', 'wpuf' ),
301
  );
302
 
303
  return apply_filters( 'wpuf_post_forms_list_table_cols', $columns );
@@ -342,8 +341,8 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
342
  $image = '<img src="%s" alt="%s">';
343
 
344
  return filter_var( $is_guest_post, FILTER_VALIDATE_BOOLEAN ) ?
345
- sprintf( $image, $url . 'tick.png', __( 'Yes', 'wpuf' ) ) :
346
- sprintf( $image, $url . 'cross.png', __( 'No', 'wpuf' ) );
347
 
348
  case 'shortcode':
349
  return '<code>[wpuf_form id="' . $item['ID'] . '"]</code>';
@@ -389,9 +388,9 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
389
  $delete_url = $admin_url . '&action=delete';
390
 
391
  if ( ( !isset( $_GET['post_status'] ) || 'trash' !== $_GET['post_status'] ) && current_user_can( wpuf_admin_role() ) ) {
392
- $actions['edit'] = sprintf( '<a href="%s">%s</a>', $edit_url, __( 'Edit', 'wpuf' ) );
393
- $actions['trash'] = sprintf( '<a href="%s" class="submitdelete">%s</a>', $trash_url, __( 'Trash', 'wpuf' ) );
394
- $actions['duplicate'] = sprintf( '<a href="%s">%s</a>', $duplicate_url, __( 'Duplicate', 'wpuf' ) );
395
 
396
  $title = sprintf(
397
  '<a class="row-title" href="%1s" aria-label="%2s">%3s</a>',
@@ -402,8 +401,8 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
402
  }
403
 
404
  if ( ( isset( $_GET['post_status'] ) && 'trash' === $_GET['post_status'] ) && current_user_can( wpuf_admin_role() ) ) {
405
- $actions['restore'] = sprintf( '<a href="%s">%s</a>', $restore_url, __( 'Restore', 'wpuf' ) );
406
- $actions['delete'] = sprintf( '<a href="%s" class="submitdelete">%s</a>', $delete_url, __( 'Delete Permanently', 'wpuf' ) );
407
 
408
  $title = sprintf(
409
  '<strong>%1s</strong>',
@@ -412,7 +411,7 @@ class WPUF_Admin_Post_Forms_List_Table extends WP_List_Table {
412
  }
413
 
414
  $draft_marker = ( 'draft' === $item['post_status'] ) ?
415
- '<strong> — <span class="post-state">' . __( 'Draft', 'wpuf' ) . '</span></strong>' :
416
  '';
417
 
418
  $form_name = sprintf( '%1s %2s %3s', $title, $draft_marker, $this->row_actions( $actions ) );
40
  $base_link = admin_url( 'admin.php?page=wpuf-post-forms' );
41
 
42
  $post_statuses = apply_filters( 'wpuf_post_forms_list_table_post_statuses', array(
43
+ 'all' => __( 'All', 'wp-user-frontend' ),
44
+ 'publish' => __( 'Published', 'wp-user-frontend' ),
45
+ 'trash' => __( 'Trash', 'wp-user-frontend' )
46
  ) );
47
 
48
  $current_status = isset( $_GET['post_status'] ) ? $_GET['post_status'] : 'all';
92
  * @return void
93
  */
94
  public function no_items() {
95
+ _e( 'No form found.', 'wp-user-frontend' );
96
  }
97
 
98
  /**
106
  $actions = array();
107
 
108
  if ( ! isset( $_GET['post_status'] ) || 'trash' !== $_GET['post_status'] ) {
109
+ $actions['trash'] = __( 'Move to Trash', 'wp-user-frontend' );
110
  }
111
 
112
  if ( isset( $_GET['post_status'] ) && 'trash' === $_GET['post_status'] ) {
113
+ $actions['restore'] = __( 'Restore', 'wp-user-frontend' );
114
+ $actions['delete'] = __( 'Delete Permanently', 'wp-user-frontend' );
115
  }
116
 
117
  return apply_filters( 'wpuf_post_forms_list_table_get_bulk_actions', $actions );
262
  'ID' => $form->ID,
263
  'post_title' => $form->post_title,
264
  'post_status' => $form->post_status,
265
+ 'settings_post_type' => isset( $settings['post_type'] ) ? $settings['post_type'] : '',
266
+ 'settings_post_status' => isset( $settings['post_status'] ) ? $settings['post_status'] : '',
267
+ 'settings_guest_post' => isset( $settings['guest_post'] ) ? $settings['guest_post'] : '',
268
  );
269
 
 
270
  $i++;
271
  }
272
  }
292
  public function get_columns() {
293
  $columns = array(
294
  'cb' => '<input type="checkbox" />',
295
+ 'form_name' => __( 'Form Name', 'wp-user-frontend' ),
296
+ 'post_type' => __( 'Post Type', 'wp-user-frontend' ),
297
+ 'post_status' => __( 'Post Status', 'wp-user-frontend' ),
298
+ 'guest_post' => __( 'Guest Post', 'wp-user-frontend' ),
299
+ 'shortcode' => __( 'Shortcode', 'wp-user-frontend' ),
300
  );
301
 
302
  return apply_filters( 'wpuf_post_forms_list_table_cols', $columns );
341
  $image = '<img src="%s" alt="%s">';
342
 
343
  return filter_var( $is_guest_post, FILTER_VALIDATE_BOOLEAN ) ?
344
+ sprintf( $image, $url . 'tick.png', __( 'Yes', 'wp-user-frontend' ) ) :
345
+ sprintf( $image, $url . 'cross.png', __( 'No', 'wp-user-frontend' ) );
346
 
347
  case 'shortcode':
348
  return '<code>[wpuf_form id="' . $item['ID'] . '"]</code>';
388
  $delete_url = $admin_url . '&action=delete';
389
 
390
  if ( ( !isset( $_GET['post_status'] ) || 'trash' !== $_GET['post_status'] ) && current_user_can( wpuf_admin_role() ) ) {
391
+ $actions['edit'] = sprintf( '<a href="%s">%s</a>', $edit_url, __( 'Edit', 'wp-user-frontend' ) );
392
+ $actions['trash'] = sprintf( '<a href="%s" class="submitdelete">%s</a>', $trash_url, __( 'Trash', 'wp-user-frontend' ) );
393
+ $actions['duplicate'] = sprintf( '<a href="%s">%s</a>', $duplicate_url, __( 'Duplicate', 'wp-user-frontend' ) );
394
 
395
  $title = sprintf(
396
  '<a class="row-title" href="%1s" aria-label="%2s">%3s</a>',
401
  }
402
 
403
  if ( ( isset( $_GET['post_status'] ) && 'trash' === $_GET['post_status'] ) && current_user_can( wpuf_admin_role() ) ) {
404
+ $actions['restore'] = sprintf( '<a href="%s">%s</a>', $restore_url, __( 'Restore', 'wp-user-frontend' ) );
405
+ $actions['delete'] = sprintf( '<a href="%s" class="submitdelete">%s</a>', $delete_url, __( 'Delete Permanently', 'wp-user-frontend' ) );
406
 
407
  $title = sprintf(
408
  '<strong>%1s</strong>',
411
  }
412
 
413
  $draft_marker = ( 'draft' === $item['post_status'] ) ?
414
+ '<strong> — <span class="post-state">' . __( 'Draft', 'wp-user-frontend' ) . '</span></strong>' :
415
  '';
416
 
417
  $form_name = sprintf( '%1s %2s %3s', $title, $draft_marker, $this->row_actions( $actions ) );
admin/posting.php CHANGED
@@ -63,18 +63,18 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
63
 
64
  wp_enqueue_script( 'wpuf-upload', WPUF_ASSET_URI . '/js/upload.js', array('jquery', 'plupload-handlers') );
65
  wp_localize_script( 'wpuf-upload', 'wpuf_frontend_upload', array(
66
- 'confirmMsg' => __( 'Are you sure?', 'wpuf' ),
67
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
68
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
69
  'plupload' => array(
70
  'url' => admin_url( 'admin-ajax.php' ) . '?nonce=' . wp_create_nonce( 'wpuf-upload-nonce' ),
71
  'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
72
- 'filters' => array(array('title' => __( 'Allowed Files', 'wpuf' ), 'extensions' => '*')),
73
  'multipart' => true,
74
  'urlstream_upload' => true,
75
- 'warning' => __( 'Maximum number of files reached!', 'wpuf' ),
76
- 'size_error' => __( 'The file you have uploaded exceeds the file size limit. Please try again.', 'wpuf' ),
77
- 'type_error' => __( 'You have uploaded an incorrect file type. Please try again.', 'wpuf' )
78
  )
79
  ) );
80
  }
@@ -93,7 +93,7 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
93
 
94
  $post_types = get_post_types( array('public' => true) );
95
  foreach ($post_types as $post_type) {
96
- add_meta_box( 'wpuf-select-form', __('WPUF Form', 'wpuf'), array($this, 'form_selection_metabox'), $post_type, 'side', 'high' );
97
  }
98
  }
99
 
@@ -164,7 +164,7 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
164
  $post_types = get_post_types( array('public' => true) );
165
 
166
  foreach ($post_types as $post_type) {
167
- add_meta_box( 'wpuf-custom-fields', __( 'WPUF Custom Fields', 'wpuf' ), array($this, 'render_form'), $post_type, 'normal', 'high' );
168
  }
169
  }
170
 
@@ -208,7 +208,7 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
208
  list($post_fields, $taxonomy_fields, $custom_fields) = $this->get_input_fields( $form_id );
209
 
210
  if ( empty( $custom_fields ) ) {
211
- _e( 'No custom fields found.', 'wpuf' );
212
  return;
213
  }
214
  ?>
@@ -392,28 +392,28 @@ class WPUF_Admin_Posting extends WPUF_Render_Form {
392
  * @return void
393
  */
394
  // Save the Metabox Data
395
- function save_meta( $post_id, $post ) {
396
 
397
- if ( !isset( $post->ID ) ) {
398
  return;
399
  }
400
 
401
  if ( !isset( $_POST['wpuf_cf_update'] ) ) {
402
- return $post->ID;
403
  }
404
 
405
  if ( !wp_verify_nonce( $_POST['wpuf_cf_update'], plugin_basename( __FILE__ ) ) ) {
406
- return $post->ID;
407
  }
408
 
409
  // Is the user allowed to edit the post or page?
410
- if ( !current_user_can( 'edit_post', $post->ID ) ) {
411
- return $post->ID;
412
  }
413
 
414
  list( $post_vars, $tax_vars, $meta_vars ) = self::get_input_fields( $_POST['wpuf_cf_form_id'] );
415
 
416
- WPUF_Frontend_Form_Post::update_post_meta( $meta_vars, $post->ID );
417
  }
418
 
419
  }
63
 
64
  wp_enqueue_script( 'wpuf-upload', WPUF_ASSET_URI . '/js/upload.js', array('jquery', 'plupload-handlers') );
65
  wp_localize_script( 'wpuf-upload', 'wpuf_frontend_upload', array(
66
+ 'confirmMsg' => __( 'Are you sure?', 'wp-user-frontend' ),
67
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
68
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
69
  'plupload' => array(
70
  'url' => admin_url( 'admin-ajax.php' ) . '?nonce=' . wp_create_nonce( 'wpuf-upload-nonce' ),
71
  'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
72
+ 'filters' => array(array('title' => __( 'Allowed Files', 'wp-user-frontend' ), 'extensions' => '*')),
73
  'multipart' => true,
74
  'urlstream_upload' => true,
75
+ 'warning' => __( 'Maximum number of files reached!', 'wp-user-frontend' ),
76
+ 'size_error' => __( 'The file you have uploaded exceeds the file size limit. Please try again.', 'wp-user-frontend' ),
77
+ 'type_error' => __( 'You have uploaded an incorrect file type. Please try again.', 'wp-user-frontend' )
78
  )
79
  ) );
80
  }
93
 
94
  $post_types = get_post_types( array('public' => true) );
95
  foreach ($post_types as $post_type) {
96
+ add_meta_box( 'wpuf-select-form', __('WPUF Form', 'wp-user-frontend'), array($this, 'form_selection_metabox'), $post_type, 'side', 'high' );
97
  }
98
  }
99
 
164
  $post_types = get_post_types( array('public' => true) );
165
 
166
  foreach ($post_types as $post_type) {
167
+ add_meta_box( 'wpuf-custom-fields', __( 'WPUF Custom Fields', 'wp-user-frontend' ), array($this, 'render_form'), $post_type, 'normal', 'high' );
168
  }
169
  }
170
 
208
  list($post_fields, $taxonomy_fields, $custom_fields) = $this->get_input_fields( $form_id );
209
 
210
  if ( empty( $custom_fields ) ) {
211
+ _e( 'No custom fields found.', 'wp-user-frontend' );
212
  return;
213
  }
214
  ?>
392
  * @return void
393
  */
394
  // Save the Metabox Data
395
+ function save_meta( $post_id, $post = null ) {
396
 
397
+ if ( !isset( $post_id ) ) {
398
  return;
399
  }
400
 
401
  if ( !isset( $_POST['wpuf_cf_update'] ) ) {
402
+ return $post_id;
403
  }
404
 
405
  if ( !wp_verify_nonce( $_POST['wpuf_cf_update'], plugin_basename( __FILE__ ) ) ) {
406
+ return $post_id;
407
  }
408
 
409
  // Is the user allowed to edit the post or page?
410
+ if ( !current_user_can( 'edit_post', $post_id ) ) {
411
+ return $post_id;
412
  }
413
 
414
  list( $post_vars, $tax_vars, $meta_vars ) = self::get_input_fields( $_POST['wpuf_cf_form_id'] );
415
 
416
+ WPUF_Frontend_Form_Post::update_post_meta( $meta_vars, $post_id );
417
  }
418
 
419
  }
admin/premium.php CHANGED
@@ -1,88 +1,88 @@
1
  <div class="wrap wpuf-premium about-wrap">
2
- <h1><?php _e( 'WPUF Pro', 'wpuf' ); ?></h1>
3
 
4
- <p class="about-text"><?php _e( 'Upgrade to the premium versions of WPUF and unlock even more useful features.', 'wpuf' ); ?></p>
5
- <div class="wp-badge"><?php _e( 'WPUF Pro', 'wpuf' ); ?></div>
6
 
7
  <hr>
8
  <div class="feature-section one-col">
9
  <div class="col">
10
- <h2><?php _e( 'Pro Features', 'wpuf' ); ?></h2>
11
- <p style="text-align: center; font-size: 16px;"><?php _e( 'WPUF Pro is designed just for you, specially to fulfil your business needs. We have designed and curated every feature keeping your requirements in mind.', 'wpuf' ); ?></p>
12
  </div>
13
  </div>
14
 
15
  <div class="feature-section two-col">
16
  <div class="col feature-wrap">
17
  <div class="feature-image">
18
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/registration.gif" alt="<?php _e( 'Registration Form Builder', 'wpuf' ); ?>">
19
  </div>
20
  <div class="feature-details">
21
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/registration-profile-forms/how-to-setup-registrationlogin-page/" target="_blank"><?php _e( 'Registration Form Builder', 'wpuf' ); ?></a></h3>
22
- <p><?php _e( 'Registration form builder is a two way form which can be used both for user registration and profile editing. You could also manage Register for Subscription Package Purchase.', 'wpuf' ); ?></p>
23
  </div>
24
  </div>
25
 
26
  <div class="col feature-wrap">
27
  <div class="feature-image">
28
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/advanced-fields.png" alt="<?php _e( 'Advanced Fields', 'wpuf' ); ?>">
29
  </div>
30
  <div class="feature-details">
31
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/form-elements/" target="_blank"><?php _e( 'Advanced Fields', 'wpuf' ); ?></a></h3>
32
  <ul>
33
- <li><?php _e( 'Country List', 'wpuf' ); ?></li>
34
- <li><?php _e( 'Address', 'wpuf' ); ?></li>
35
- <li><?php _e( 'Date Field', 'wpuf' ); ?></li>
36
- <li><?php _e( 'Google Map', 'wpuf' ); ?></li>
37
- <li><?php _e( 'Action Hook', 'wpuf' ); ?></li>
38
- <li><?php _e( 'Rating', 'wpuf' ); ?></li>
39
- <li><?php _e( 'Shortcode', 'wpuf' ); ?></li>
40
- <li><?php _e( 'Number', 'wpuf' ); ?></li>
41
- <li><?php _e( 'Repeater', 'wpuf' ); ?></li>
42
- <li><?php _e( 'File Upload', 'wpuf' ); ?></li>
43
- <li><?php _e( 'Captcha', 'wpuf' ); ?></li>
44
- <li><?php _e( 'TOC', 'wpuf' ); ?></li>
45
  </ul>
46
  </div>
47
  </div>
48
 
49
  <div class="col feature-wrap">
50
  <div class="feature-image">
51
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/coupon.gif" alt="<?php _e( 'Manage Coupons', 'wpuf' ); ?>">
52
  </div>
53
  <div class="feature-details">
54
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/coupons/" target="_blank"><?php _e( 'Manage Coupons', 'wpuf' ); ?></a></h3>
55
- <p><?php _e( 'Simple yet powerful coupon management system. Use Coupon codes for selling subscription pack with discounts.', 'wpuf' ); ?></p>
56
  </div>
57
  </div>
58
 
59
  <div class="col feature-wrap">
60
  <div class="feature-image">
61
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/content-restrictions.gif" alt="<?php _e( 'Content Restrictions', 'wpuf' ); ?>">
62
  </div>
63
  <div class="feature-details">
64
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/content-restriction/content-restriction/" target="_blank"><?php _e( 'Content Restrictions', 'wpuf' ); ?></a></h3>
65
- <p><?php _e( 'You can restrict premium content for users by access role, registration or subscriptions only with just a shortcode.', 'wpuf' ); ?></p>
66
  </div>
67
  </div>
68
 
69
  <div class="col feature-wrap">
70
  <div class="feature-image">
71
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/conditional-logic.gif" alt="<?php _e( 'Conditional Logic', 'wpuf' ); ?>">
72
  </div>
73
  <div class="feature-details">
74
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/how-to-use-conditional-logic/" target="_blank"><?php _e( 'Conditional Logic', 'wpuf' ); ?></a></h3>
75
- <p><?php _e( 'Configure your form’s settings and user flow based on conditional selection. Your forms should appear just the way you want it.', 'wpuf' ); ?></p>
76
  </div>
77
  </div>
78
 
79
  <div class="col feature-wrap">
80
  <div class="feature-image">
81
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/multi-step.gif" alt="<?php _e( 'Multi-step Form', 'wpuf' ); ?>">
82
  </div>
83
  <div class="feature-details">
84
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/how-to-add-multi-step-form/" target="_blank"><?php _e( 'Multi-step Form', 'wpuf' ); ?></a></h3>
85
- <p><?php _e( 'Break down the long forms into smaller and attractive multi step forms. Long and lengthy forms are uninviting, why build one?', 'wpuf' ); ?></p>
86
  </div>
87
  </div>
88
  </div>
@@ -90,129 +90,129 @@
90
  <hr>
91
  <div class="feature-section one-col">
92
  <div class="col">
93
- <h2><?php _e( 'Modules', 'wpuf' ); ?></h2>
94
- <p style="text-align: center; font-size: 16px;"><?php _e( 'A bunch of awesome modules to speed up your business growth.', 'wpuf' ); ?></p>
95
  </div>
96
  </div>
97
 
98
  <div class="headline-feature two-col">
99
  <div class="col module-wrap">
100
  <div class="module-image">
101
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/Social-Media-Login.png" alt="<?php _e( 'BuddyPress Profile', 'wpuf' ); ?>">
102
  </div>
103
  <div class="module-details">
104
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/social-login-registration/" target="_blank"><?php _e( 'Social Login', 'wpuf' ); ?></a></h3>
105
- <p><?php _e( 'Allow your users to Register or Login using Social networks like Google, Facebook, Twitter and LinkedIn.', 'wpuf' ); ?></p>
106
  </div>
107
  </div>
108
 
109
  <div class="col module-wrap">
110
  <div class="module-image">
111
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-ul.png" alt="<?php _e( 'User Directory', 'wpuf' ); ?>">
112
  </div>
113
  <div class="module-details">
114
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/user-listing-profile/" target="_blank"><?php _e( 'User Directory', 'wpuf' ); ?></a></h3>
115
- <p><?php _e( 'Handle user listing and user profile in the frontend. Create a directory site easily.', 'wpuf' ); ?></p>
116
  </div>
117
  </div>
118
 
119
  <div class="col module-wrap">
120
  <div class="module-image">
121
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-buddypress.png" alt="<?php _e( 'BuddyPress Profile', 'wpuf' ); ?>">
122
  </div>
123
  <div class="module-details">
124
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/buddypress-profile-integration/" target="_blank"><?php _e( 'BuddyPress Profile', 'wpuf' ); ?></a></h3>
125
- <p><?php _e( 'Register and upgrade user profiles and sync data with BuddyPress.', 'wpuf' ); ?></p>
126
  </div>
127
  </div>
128
 
129
  <div class="col module-wrap">
130
  <div class="module-image">
131
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-ua.png" alt="<?php _e( 'MailChimp Integration', 'wpuf' ); ?>">
132
  </div>
133
  <div class="module-details">
134
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/user-analytics/" target="_blank"><?php _e( 'User Analytics', 'wpuf' ); ?></a></h3>
135
- <p><?php _e( 'Show user tracking info during post and registration directly on Frontend.', 'wpuf' ); ?></p>
136
  </div>
137
  </div>
138
 
139
  <div class="col module-wrap">
140
  <div class="module-image">
141
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-pmpro.png" alt="<?php _e( 'Paid Membership Pro', 'wpuf' ); ?>">
142
  </div>
143
  <div class="module-details">
144
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/install-and-configure-pmpro-add-on-for-wpuf/" target="_blank"><?php _e( 'Paid Membership Pro', 'wpuf' ); ?></a></h3>
145
- <p><?php _e( 'Membership Integration of WP User Frontend with Paid Membership Pro.', 'wpuf' ); ?></p>
146
  </div>
147
  </div>
148
 
149
  <div class="col module-wrap">
150
  <div class="module-image">
151
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-stripe.png" alt="<?php _e( 'Stripe Payment', 'wpuf' ); ?>">
152
  </div>
153
  <div class="module-details">
154
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/stripe/" target="_blank"><?php _e( 'Stripe Payment', 'wpuf' ); ?></a></h3>
155
- <p><?php _e( 'Stripe payment gateway for WP User Frontend. Get your subscription payment with Stripe.', 'wpuf' ); ?></p>
156
  </div>
157
  </div>
158
 
159
  <div class="col module-wrap">
160
  <div class="module-image">
161
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-mailpoet.png" alt="<?php _e( 'Mailpoet', 'wpuf' ); ?>">
162
  </div>
163
  <div class="module-details">
164
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/mailpoet/" target="_blank"><?php _e( 'Mailpoet', 'wpuf' ); ?></a></h3>
165
- <p><?php _e( 'Add subscribers to mailpoet mailing list when they registers via WP User Frontend Pro.', 'wpuf' ); ?></p>
166
  </div>
167
  </div>
168
 
169
  <div class="col module-wrap">
170
  <div class="module-image">
171
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-mailchimp.png" alt="<?php _e( 'MailChimp Integration', 'wpuf' ); ?>">
172
  </div>
173
  <div class="module-details">
174
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/add-users-to-mailchimp-subscribers-list-upon-registration-from-frontend/" target="_blank"><?php _e( 'MailChimp', 'wpuf' ); ?></a></h3>
175
- <p><?php _e( 'Integrate your desired form to your MailChimp email newsletter using latest API.', 'wpuf' ); ?></p>
176
  </div>
177
  </div>
178
 
179
  <div class="col module-wrap">
180
  <div class="module-image">
181
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-sms.png" alt="<?php _e( 'SMS Notification', 'wpuf' ); ?>">
182
  </div>
183
  <div class="module-details">
184
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/sms-notification/" target="_blank"><?php _e( 'SMS Notification', 'wpuf' ); ?></a></h3>
185
- <p><?php _e( 'Get instant SMS notification on your mobile when post submits on your site.', 'wpuf' ); ?></p>
186
  </div>
187
  </div>
188
 
189
  <div class="col module-wrap">
190
  <div class="module-image">
191
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-comment.png" alt="<?php _e( 'SMS Notification', 'wpuf' ); ?>">
192
  </div>
193
  <div class="module-details">
194
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/frontend-comment-manager/" target="_blank"><?php _e( 'Comment Manager', 'wpuf' ); ?></a></h3>
195
- <p><?php _e( 'Handle comments in frontend. View / reply comments on post.', 'wpuf' ); ?></p>
196
  </div>
197
  </div>
198
 
199
  <div class="col module-wrap">
200
  <div class="module-image">
201
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-qr.png" alt="<?php _e( 'SMS Notification', 'wpuf' ); ?>">
202
  </div>
203
  <div class="module-details">
204
- <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/qr-code/" target="_blank"><?php _e( 'QR Code Generator', 'wpuf' ); ?></a></h3>
205
- <p><?php _e( 'Generate QR Code with your custom fields or custom post meta.', 'wpuf' ); ?></p>
206
  </div>
207
  </div>
208
 
209
  <div class="col module-wrap">
210
  <div class="module-image">
211
- <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/more.png" alt="<?php _e( 'More...', 'wpuf' ); ?>">
212
  </div>
213
  <div class="module-details">
214
- <h3><?php _e( 'More...', 'wpuf' ); ?></h3>
215
- <p><?php _e( 'A bunch of more modules are coming soon.', 'wpuf' ); ?></p>
216
  </div>
217
  </div>
218
  </div>
@@ -222,13 +222,13 @@
222
  <div class="wpuf-upgrade-sticky-footer">
223
 
224
  <div class="text-left">
225
- <h3><?php _e( 'Upgrade To The Most Powerful Frontend Plugin', 'wpuf' ); ?></h3>
226
 
227
- <p><?php _e( 'WP User Frontend Pro is the most powerful solution for your frontend needs.', 'wpuf' ); ?></p>
228
  </div>
229
 
230
  <div class="text-right">
231
- <a class="button button-primary" href="<?php echo WPUF_Pro_Prompt::get_pro_url(); ?>" target="_blank"><?php _e( 'Upgrade Now', 'wpuf' ); ?></a>
232
  </div>
233
  </div>
234
 
1
  <div class="wrap wpuf-premium about-wrap">
2
+ <h1><?php _e( 'WPUF Pro', 'wp-user-frontend' ); ?></h1>
3
 
4
+ <p class="about-text"><?php _e( 'Upgrade to the premium versions of WPUF and unlock even more useful features.', 'wp-user-frontend' ); ?></p>
5
+ <div class="wp-badge"><?php _e( 'WPUF Pro', 'wp-user-frontend' ); ?></div>
6
 
7
  <hr>
8
  <div class="feature-section one-col">
9
  <div class="col">
10
+ <h2><?php _e( 'Pro Features', 'wp-user-frontend' ); ?></h2>
11
+ <p style="text-align: center; font-size: 16px;"><?php _e( 'WPUF Pro is designed just for you, specially to fulfil your business needs. We have designed and curated every feature keeping your requirements in mind.', 'wp-user-frontend' ); ?></p>
12
  </div>
13
  </div>
14
 
15
  <div class="feature-section two-col">
16
  <div class="col feature-wrap">
17
  <div class="feature-image">
18
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/registration.gif" alt="<?php _e( 'Registration Form Builder', 'wp-user-frontend' ); ?>">
19
  </div>
20
  <div class="feature-details">
21
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/registration-profile-forms/how-to-setup-registrationlogin-page/" target="_blank"><?php _e( 'Registration Form Builder', 'wp-user-frontend' ); ?></a></h3>
22
+ <p><?php _e( 'Registration form builder is a two way form which can be used both for user registration and profile editing. You could also manage Register for Subscription Package Purchase.', 'wp-user-frontend' ); ?></p>
23
  </div>
24
  </div>
25
 
26
  <div class="col feature-wrap">
27
  <div class="feature-image">
28
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/advanced-fields.png" alt="<?php _e( 'Advanced Fields', 'wp-user-frontend' ); ?>">
29
  </div>
30
  <div class="feature-details">
31
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/form-elements/" target="_blank"><?php _e( 'Advanced Fields', 'wp-user-frontend' ); ?></a></h3>
32
  <ul>
33
+ <li><?php _e( 'Country List', 'wp-user-frontend' ); ?></li>
34
+ <li><?php _e( 'Address', 'wp-user-frontend' ); ?></li>
35
+ <li><?php _e( 'Date Field', 'wp-user-frontend' ); ?></li>
36
+ <li><?php _e( 'Google Map', 'wp-user-frontend' ); ?></li>
37
+ <li><?php _e( 'Action Hook', 'wp-user-frontend' ); ?></li>
38
+ <li><?php _e( 'Rating', 'wp-user-frontend' ); ?></li>
39
+ <li><?php _e( 'Shortcode', 'wp-user-frontend' ); ?></li>
40
+ <li><?php _e( 'Number', 'wp-user-frontend' ); ?></li>
41
+ <li><?php _e( 'Repeater', 'wp-user-frontend' ); ?></li>
42
+ <li><?php _e( 'File Upload', 'wp-user-frontend' ); ?></li>
43
+ <li><?php _e( 'Captcha', 'wp-user-frontend' ); ?></li>
44
+ <li><?php _e( 'TOC', 'wp-user-frontend' ); ?></li>
45
  </ul>
46
  </div>
47
  </div>
48
 
49
  <div class="col feature-wrap">
50
  <div class="feature-image">
51
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/coupon.gif" alt="<?php _e( 'Manage Coupons', 'wp-user-frontend' ); ?>">
52
  </div>
53
  <div class="feature-details">
54
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/coupons/" target="_blank"><?php _e( 'Manage Coupons', 'wp-user-frontend' ); ?></a></h3>
55
+ <p><?php _e( 'Simple yet powerful coupon management system. Use Coupon codes for selling subscription pack with discounts.', 'wp-user-frontend' ); ?></p>
56
  </div>
57
  </div>
58
 
59
  <div class="col feature-wrap">
60
  <div class="feature-image">
61
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/content-restrictions.gif" alt="<?php _e( 'Content Restrictions', 'wp-user-frontend' ); ?>">
62
  </div>
63
  <div class="feature-details">
64
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/content-restriction/content-restriction/" target="_blank"><?php _e( 'Content Restrictions', 'wp-user-frontend' ); ?></a></h3>
65
+ <p><?php _e( 'You can restrict premium content for users by access role, registration or subscriptions only with just a shortcode.', 'wp-user-frontend' ); ?></p>
66
  </div>
67
  </div>
68
 
69
  <div class="col feature-wrap">
70
  <div class="feature-image">
71
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/conditional-logic.gif" alt="<?php _e( 'Conditional Logic', 'wp-user-frontend' ); ?>">
72
  </div>
73
  <div class="feature-details">
74
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/how-to-use-conditional-logic/" target="_blank"><?php _e( 'Conditional Logic', 'wp-user-frontend' ); ?></a></h3>
75
+ <p><?php _e( 'Configure your form’s settings and user flow based on conditional selection. Your forms should appear just the way you want it.', 'wp-user-frontend' ); ?></p>
76
  </div>
77
  </div>
78
 
79
  <div class="col feature-wrap">
80
  <div class="feature-image">
81
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/premium/multi-step.gif" alt="<?php _e( 'Multi-step Form', 'wp-user-frontend' ); ?>">
82
  </div>
83
  <div class="feature-details">
84
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/how-to-add-multi-step-form/" target="_blank"><?php _e( 'Multi-step Form', 'wp-user-frontend' ); ?></a></h3>
85
+ <p><?php _e( 'Break down the long forms into smaller and attractive multi step forms. Long and lengthy forms are uninviting, why build one?', 'wp-user-frontend' ); ?></p>
86
  </div>
87
  </div>
88
  </div>
90
  <hr>
91
  <div class="feature-section one-col">
92
  <div class="col">
93
+ <h2><?php _e( 'Modules', 'wp-user-frontend' ); ?></h2>
94
+ <p style="text-align: center; font-size: 16px;"><?php _e( 'A bunch of awesome modules to speed up your business growth.', 'wp-user-frontend' ); ?></p>
95
  </div>
96
  </div>
97
 
98
  <div class="headline-feature two-col">
99
  <div class="col module-wrap">
100
  <div class="module-image">
101
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/Social-Media-Login.png" alt="<?php _e( 'BuddyPress Profile', 'wp-user-frontend' ); ?>">
102
  </div>
103
  <div class="module-details">
104
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/social-login-registration/" target="_blank"><?php _e( 'Social Login', 'wp-user-frontend' ); ?></a></h3>
105
+ <p><?php _e( 'Allow your users to Register or Login using Social networks like Google, Facebook, Twitter and LinkedIn.', 'wp-user-frontend' ); ?></p>
106
  </div>
107
  </div>
108
 
109
  <div class="col module-wrap">
110
  <div class="module-image">
111
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-ul.png" alt="<?php _e( 'User Directory', 'wp-user-frontend' ); ?>">
112
  </div>
113
  <div class="module-details">
114
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/user-listing-profile/" target="_blank"><?php _e( 'User Directory', 'wp-user-frontend' ); ?></a></h3>
115
+ <p><?php _e( 'Handle user listing and user profile in the frontend. Create a directory site easily.', 'wp-user-frontend' ); ?></p>
116
  </div>
117
  </div>
118
 
119
  <div class="col module-wrap">
120
  <div class="module-image">
121
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-buddypress.png" alt="<?php _e( 'BuddyPress Profile', 'wp-user-frontend' ); ?>">
122
  </div>
123
  <div class="module-details">
124
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/buddypress-profile-integration/" target="_blank"><?php _e( 'BuddyPress Profile', 'wp-user-frontend' ); ?></a></h3>
125
+ <p><?php _e( 'Register and upgrade user profiles and sync data with BuddyPress.', 'wp-user-frontend' ); ?></p>
126
  </div>
127
  </div>
128
 
129
  <div class="col module-wrap">
130
  <div class="module-image">
131
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-ua.png" alt="<?php _e( 'MailChimp Integration', 'wp-user-frontend' ); ?>">
132
  </div>
133
  <div class="module-details">
134
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/user-analytics/" target="_blank"><?php _e( 'User Analytics', 'wp-user-frontend' ); ?></a></h3>
135
+ <p><?php _e( 'Show user tracking info during post and registration directly on Frontend.', 'wp-user-frontend' ); ?></p>
136
  </div>
137
  </div>
138
 
139
  <div class="col module-wrap">
140
  <div class="module-image">
141
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-pmpro.png" alt="<?php _e( 'Paid Membership Pro', 'wp-user-frontend' ); ?>">
142
  </div>
143
  <div class="module-details">
144
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/install-and-configure-pmpro-add-on-for-wpuf/" target="_blank"><?php _e( 'Paid Membership Pro', 'wp-user-frontend' ); ?></a></h3>
145
+ <p><?php _e( 'Membership Integration of WP User Frontend with Paid Membership Pro.', 'wp-user-frontend' ); ?></p>
146
  </div>
147
  </div>
148
 
149
  <div class="col module-wrap">
150
  <div class="module-image">
151
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-stripe.png" alt="<?php _e( 'Stripe Payment', 'wp-user-frontend' ); ?>">
152
  </div>
153
  <div class="module-details">
154
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/stripe/" target="_blank"><?php _e( 'Stripe Payment', 'wp-user-frontend' ); ?></a></h3>
155
+ <p><?php _e( 'Stripe payment gateway for WP User Frontend. Get your subscription payment with Stripe.', 'wp-user-frontend' ); ?></p>
156
  </div>
157
  </div>
158
 
159
  <div class="col module-wrap">
160
  <div class="module-image">
161
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-mailpoet.png" alt="<?php _e( 'Mailpoet', 'wp-user-frontend' ); ?>">
162
  </div>
163
  <div class="module-details">
164
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/mailpoet/" target="_blank"><?php _e( 'Mailpoet', 'wp-user-frontend' ); ?></a></h3>
165
+ <p><?php _e( 'Add subscribers to mailpoet mailing list when they registers via WP User Frontend Pro.', 'wp-user-frontend' ); ?></p>
166
  </div>
167
  </div>
168
 
169
  <div class="col module-wrap">
170
  <div class="module-image">
171
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-mailchimp.png" alt="<?php _e( 'MailChimp Integration', 'wp-user-frontend' ); ?>">
172
  </div>
173
  <div class="module-details">
174
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/add-users-to-mailchimp-subscribers-list-upon-registration-from-frontend/" target="_blank"><?php _e( 'MailChimp', 'wp-user-frontend' ); ?></a></h3>
175
+ <p><?php _e( 'Integrate your desired form to your MailChimp email newsletter using latest API.', 'wp-user-frontend' ); ?></p>
176
  </div>
177
  </div>
178
 
179
  <div class="col module-wrap">
180
  <div class="module-image">
181
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-sms.png" alt="<?php _e( 'SMS Notification', 'wp-user-frontend' ); ?>">
182
  </div>
183
  <div class="module-details">
184
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/sms-notification/" target="_blank"><?php _e( 'SMS Notification', 'wp-user-frontend' ); ?></a></h3>
185
+ <p><?php _e( 'Get instant SMS notification on your mobile when post submits on your site.', 'wp-user-frontend' ); ?></p>
186
  </div>
187
  </div>
188
 
189
  <div class="col module-wrap">
190
  <div class="module-image">
191
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-comment.png" alt="<?php _e( 'SMS Notification', 'wp-user-frontend' ); ?>">
192
  </div>
193
  <div class="module-details">
194
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/frontend-comment-manager/" target="_blank"><?php _e( 'Comment Manager', 'wp-user-frontend' ); ?></a></h3>
195
+ <p><?php _e( 'Handle comments in frontend. View / reply comments on post.', 'wp-user-frontend' ); ?></p>
196
  </div>
197
  </div>
198
 
199
  <div class="col module-wrap">
200
  <div class="module-image">
201
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/wpuf-qr.png" alt="<?php _e( 'SMS Notification', 'wp-user-frontend' ); ?>">
202
  </div>
203
  <div class="module-details">
204
+ <h3><a href="https://wedevs.com/docs/wp-user-frontend-pro/modules/qr-code/" target="_blank"><?php _e( 'QR Code Generator', 'wp-user-frontend' ); ?></a></h3>
205
+ <p><?php _e( 'Generate QR Code with your custom fields or custom post meta.', 'wp-user-frontend' ); ?></p>
206
  </div>
207
  </div>
208
 
209
  <div class="col module-wrap">
210
  <div class="module-image">
211
+ <img src="<?php echo WPUF_ASSET_URI; ?>/images/modules/more.png" alt="<?php _e( 'More...', 'wp-user-frontend' ); ?>">
212
  </div>
213
  <div class="module-details">
214
+ <h3><?php _e( 'More...', 'wp-user-frontend' ); ?></h3>
215
+ <p><?php _e( 'A bunch of more modules are coming soon.', 'wp-user-frontend' ); ?></p>
216
  </div>
217
  </div>
218
  </div>
222
  <div class="wpuf-upgrade-sticky-footer">
223
 
224
  <div class="text-left">
225
+ <h3><?php _e( 'Upgrade To The Most Powerful Frontend Plugin', 'wp-user-frontend' ); ?></h3>
226
 
227
+ <p><?php _e( 'WP User Frontend Pro is the most powerful solution for your frontend needs.', 'wp-user-frontend' ); ?></p>
228
  </div>
229
 
230
  <div class="text-right">
231
+ <a class="button button-primary" href="<?php echo WPUF_Pro_Prompt::get_pro_url(); ?>" target="_blank"><?php _e( 'Upgrade Now', 'wp-user-frontend' ); ?></a>
232
  </div>
233
  </div>
234
 
admin/promotion.php CHANGED
@@ -45,7 +45,7 @@ class WPUF_Admin_Promotion {
45
  <a target="_blank" href="%1$s"><strong> we25 </strong></a>
46
  <br>
47
  Offer ending soon!
48
- </p>', 'wpuf' ), 'https://wedevs.com/in/get-25-off' );
49
 
50
  ?>
51
  <div class="notice is-dismissible" id="wpuf-promotional-offer-notice">
@@ -63,7 +63,7 @@ class WPUF_Admin_Promotion {
63
  </table>
64
 
65
  <span class="dashicons dashicons-megaphone"></span>
66
- <a href="https://wedevs.com/in/get-25-off" class="button button-primary promo-btn" target="_blank"><?php _e( 'Get the Offer', 'wpuf' ); ?></a>
67
  </div><!-- #wpuf-promotional-offer-notice -->
68
 
69
  <style>
45
  <a target="_blank" href="%1$s"><strong> we25 </strong></a>
46
  <br>
47
  Offer ending soon!
48
+ </p>', 'wp-user-frontend' ), 'https://wedevs.com/in/get-25-off' );
49
 
50
  ?>
51
  <div class="notice is-dismissible" id="wpuf-promotional-offer-notice">
63
  </table>
64
 
65
  <span class="dashicons dashicons-megaphone"></span>
66
+ <a href="https://wedevs.com/in/get-25-off" class="button button-primary promo-btn" target="_blank"><?php _e( 'Get the Offer', 'wp-user-frontend' ); ?></a>
67
  </div><!-- #wpuf-promotional-offer-notice -->
68
 
69
  <style>
admin/settings-options.php CHANGED
@@ -10,39 +10,43 @@ function wpuf_settings_sections() {
10
  $sections = array(
11
  array(
12
  'id' => 'wpuf_general',
13
- 'title' => __( 'General Options', 'wpuf' ),
14
  'icon' => 'dashicons-admin-generic'
15
  ),
16
  array(
17
  'id' => 'wpuf_frontend_posting',
18
- 'title' => __( 'Frontend Posting', 'wpuf' ),
19
  'icon' => 'dashicons-welcome-write-blog'
20
  ),
21
  array(
22
  'id' => 'wpuf_dashboard',
23
- 'title' => __( 'Dashboard', 'wpuf' ),
24
  'icon' => 'dashicons-dashboard'
25
  ),
26
  array(
27
  'id' => 'wpuf_my_account',
28
- 'title' => __( 'My Account', 'wpuf' ),
29
  'icon' => 'dashicons-id'
30
  ),
31
  array(
32
  'id' => 'wpuf_profile',
33
- 'title' => __( 'Login / Registration', 'wpuf' ),
34
  'icon' => 'dashicons-admin-users'
35
  ),
36
  array(
37
  'id' => 'wpuf_payment',
38
- 'title' => __( 'Payments', 'wpuf' ),
39
  'icon' => 'dashicons-money'
40
  ),
41
  array(
42
  'id' => 'wpuf_mails',
43
- 'title' => __( 'E-Mails', 'wpuf' ),
44
  'icon' => 'dashicons-email-alt'
45
-
 
 
 
 
46
  ),
47
  );
48
 
@@ -52,9 +56,11 @@ function wpuf_settings_sections() {
52
  function wpuf_settings_fields() {
53
  $pages = wpuf_get_pages();
54
  $users = wpuf_list_users();
 
 
55
 
56
  $login_redirect_pages = array(
57
- 'previous_page' => __( 'Previous Page', 'wpuf' )
58
  ) + $pages;
59
 
60
  $all_currencies = wpuf_get_currencies();
@@ -76,124 +82,124 @@ function wpuf_settings_fields() {
76
  'wpuf_general' => apply_filters( 'wpuf_options_others', array(
77
  array(
78
  'name' => 'show_admin_bar',
79
- 'label' => __( 'Show Admin Bar', 'wpuf' ),
80
- 'desc' => __( 'Select user by roles, who can view admin bar in frontend.', 'wpuf' ),
81
  'callback'=> 'wpuf_settings_multiselect',
82
  'options' => $user_roles,
83
  'default' => array( 'administrator', 'editor', 'author', 'contributor' ),
84
  ),
85
  array(
86
  'name' => 'admin_access',
87
- 'label' => __( 'Admin area access', 'wpuf' ),
88
- 'desc' => __( 'Allow you to block specific user role to Ajax request and Media upload.', 'wpuf' ),
89
  'type' => 'select',
90
  'default' => 'read',
91
  'options' => array(
92
- 'manage_options' => __( 'Admin Only', 'wpuf' ),
93
- 'edit_others_posts' => __( 'Admins, Editors', 'wpuf' ),
94
- 'publish_posts' => __( 'Admins, Editors, Authors', 'wpuf' ),
95
- 'edit_posts' => __( 'Admins, Editors, Authors, Contributors', 'wpuf' ),
96
- 'read' => __( 'Default', 'wpuf' )
97
  )
98
  ),
99
  array(
100
  'name' => 'override_editlink',
101
- 'label' => __( 'Override the post edit link', 'wpuf' ),
102
- 'desc' => __( 'Users see the edit link in post if s/he is capable to edit the post/page. Selecting <strong>Yes</strong> will override the default WordPress edit post link in frontend', 'wpuf' ),
103
  'type' => 'select',
104
  'default' => 'no',
105
  'options' => array(
106
- 'yes' => __( 'Yes', 'wpuf' ),
107
- 'no' => __( 'No', 'wpuf' )
108
  )
109
  ),
110
  array(
111
  'name' => 'wpuf_compatibility_acf',
112
- 'label' => __( 'ACF Compatibility', 'wpuf' ),
113
- 'desc' => __( 'Select <strong>Yes</strong> if you want to make compatible WPUF custom fields data with advanced custom fields.', 'wpuf' ),
114
  'type' => 'select',
115
  'default' => 'no',
116
  'options' => array(
117
- 'yes' => __( 'Yes', 'wpuf' ),
118
- 'no' => __( 'No', 'wpuf' )
119
  )
120
  ),
121
  array(
122
  'name' => 'load_script',
123
- 'label' => __( 'Load Scripts', 'wpuf' ),
124
- 'desc' => __( 'Load scripts/styles in all pages', 'wpuf' ),
125
  'type' => 'checkbox',
126
  'default' => 'on'
127
  ),
128
  array(
129
  'name' => 'recaptcha_public',
130
- 'label' => __( 'reCAPTCHA Site Key', 'wpuf' ),
131
  ),
132
  array(
133
  'name' => 'recaptcha_private',
134
- 'label' => __( 'reCAPTCHA Secret Key', 'wpuf' ),
135
- 'desc' => __( '<a target="_blank" href="https://www.google.com/recaptcha/">Register here</a> to get reCaptcha Site and Secret keys.', 'wpuf' ),
136
  ),
137
  array(
138
  'name' => 'custom_css',
139
- 'label' => __( 'Custom CSS codes', 'wpuf' ),
140
- 'desc' => __( 'If you want to add your custom CSS code, it will be added on page header wrapped with style tag', 'wpuf' ),
141
  'type' => 'textarea'
142
  ),
143
  ) ),
144
  'wpuf_frontend_posting' => apply_filters( 'wpuf_options_frontend_posting', array(
145
  array(
146
  'name' => 'edit_page_id',
147
- 'label' => __( 'Edit Page', 'wpuf' ),
148
- 'desc' => __( 'Select the page where <code>[wpuf_edit]</code> is located', 'wpuf' ),
149
  'type' => 'select',
150
  'options' => $pages
151
  ),
152
  array(
153
  'name' => 'default_post_owner',
154
- 'label' => __( 'Default Post Owner', 'wpuf' ),
155
- 'desc' => __( 'If guest post is enabled and user details are OFF, the posts are assigned to this user', 'wpuf' ),
156
  'type' => 'select',
157
  'options' => $users,
158
  'default' => '1'
159
  ),
160
  array(
161
  'name' => 'cf_show_front',
162
- 'label' => __( 'Custom Fields in post', 'wpuf' ),
163
- 'desc' => __( 'Show custom fields on post content area', 'wpuf' ),
164
  'type' => 'checkbox',
165
  'default' => 'off'
166
  ),
167
  array(
168
  'name' => 'insert_photo_size',
169
- 'label' => __( 'Insert Photo image size', 'wpuf' ),
170
- 'desc' => __( 'Default image size of "<strong>Insert Photo</strong>" button in post content area', 'wpuf' ),
171
  'type' => 'select',
172
  'options' => wpuf_get_image_sizes(),
173
  'default' => 'thumbnail'
174
  ),
175
  array(
176
  'name' => 'insert_photo_type',
177
- 'label' => __( 'Insert Photo image type', 'wpuf' ),
178
- 'desc' => __( 'Default image type of "<strong>Insert Photo</strong>" button in post content area', 'wpuf' ),
179
  'type' => 'select',
180
  'options' => array(
181
- 'image' => __( 'Image only', 'wpuf' ),
182
- 'link' => __( 'Image with link', 'wpuf' )
183
  ),
184
  'default' => 'link'
185
  ),
186
  array(
187
  'name' => 'image_caption',
188
- 'label' => __( 'Enable Image Caption', 'wpuf' ),
189
- 'desc' => __( 'Allow users to update image/video title, caption and description', 'wpuf' ),
190
  'type' => 'checkbox',
191
  'default' => 'off'
192
  ),
193
  array(
194
  'name' => 'default_post_form',
195
- 'label' => __( 'Default Post Form', 'wpuf' ),
196
- 'desc' => __( 'Fallback form for post editing if no associated form found', 'wpuf' ),
197
  'type' => 'select',
198
  'options' => wpuf_get_pages( 'wpuf_forms' )
199
  ),
@@ -201,92 +207,92 @@ function wpuf_settings_fields() {
201
  'wpuf_dashboard' => apply_filters( 'wpuf_options_dashboard', array(
202
  array(
203
  'name' => 'enable_post_edit',
204
- 'label' => __( 'Users can edit post?', 'wpuf' ),
205
- 'desc' => __( 'Users will be able to edit their own posts', 'wpuf' ),
206
  'type' => 'select',
207
  'default' => 'yes',
208
  'options' => array(
209
- 'yes' => __( 'Yes', 'wpuf' ),
210
- 'no' => __( 'No', 'wpuf' )
211
  )
212
  ),
213
  array(
214
  'name' => 'enable_post_del',
215
- 'label' => __( 'User can delete post?', 'wpuf' ),
216
- 'desc' => __( 'Users will be able to delete their own posts', 'wpuf' ),
217
  'type' => 'select',
218
  'default' => 'yes',
219
  'options' => array(
220
- 'yes' => __( 'Yes', 'wpuf' ),
221
- 'no' => __( 'No', 'wpuf' )
222
  )
223
  ),
224
  array(
225
  'name' => 'disable_pending_edit',
226
- 'label' => __( 'Pending Post Edit', 'wpuf' ),
227
- 'desc' => __( 'Disable post editing while post in "pending" status', 'wpuf' ),
228
  'type' => 'checkbox',
229
  'default' => 'on'
230
  ),
231
  array(
232
  'name' => 'per_page',
233
- 'label' => __( 'Posts per page', 'wpuf' ),
234
- 'desc' => __( 'How many posts will be listed in a page', 'wpuf' ),
235
  'type' => 'text',
236
  'default' => '10'
237
  ),
238
  array(
239
  'name' => 'show_user_bio',
240
- 'label' => __( 'Show user bio', 'wpuf' ),
241
- 'desc' => __( 'Users biographical info will be shown', 'wpuf' ),
242
  'type' => 'checkbox',
243
  'default' => 'on'
244
  ),
245
  array(
246
  'name' => 'show_post_count',
247
- 'label' => __( 'Show post count', 'wpuf' ),
248
- 'desc' => __( 'Show how many posts are created by the user', 'wpuf' ),
249
  'type' => 'checkbox',
250
  'default' => 'on'
251
  ),
252
  array(
253
  'name' => 'show_ft_image',
254
- 'label' => __( 'Show Featured Image', 'wpuf' ),
255
- 'desc' => __( 'Show featured image of the post (Overridden by Shortcode)', 'wpuf' ),
256
  'type' => 'checkbox'
257
  ),
258
  array(
259
  'name' => 'ft_img_size',
260
- 'label' => __( 'Featured Image size', 'wpuf' ),
261
  'type' => 'select',
262
  'options' => wpuf_get_image_sizes()
263
  ),
264
  array(
265
  'name' => 'un_auth_msg',
266
- 'label' => __( 'Unauthorized Message', 'wpuf' ),
267
- 'desc' => __( 'Not logged in users will see this message', 'wpuf' ),
268
  'type' => 'textarea'
269
  ),
270
  ) ),
271
  'wpuf_my_account' => apply_filters( 'wpuf_options_wpuf_my_account', array(
272
  array(
273
  'name' => 'account_page',
274
- 'label' => __( 'Account Page', 'wpuf' ),
275
- 'desc' => __( 'Select the page which contains <code>[wpuf_account]</code> shortcode', 'wpuf' ),
276
  'type' => 'select',
277
  'options' => $pages
278
  ),
279
  array(
280
  'name' => 'show_subscriptions',
281
- 'label' => __( 'Show Subscriptions', 'wpuf' ),
282
- 'desc' => __( 'Show Subscriptions tab in "my account" page where <code>[wpuf_account]</code> is located', 'wpuf' ),
283
  'type' => 'checkbox',
284
  'default' => 'on',
285
  ),
286
  array(
287
  'name' => 'show_billing_address',
288
- 'label' => __( 'Show Billing Address', 'wpuf' ),
289
- 'desc' => __( 'Show billing address in account page.', 'wpuf' ),
290
  'type' => 'checkbox',
291
  'default' => 'on',
292
  ),
@@ -294,43 +300,43 @@ function wpuf_settings_fields() {
294
  'wpuf_profile' => apply_filters( 'wpuf_options_profile', array(
295
  array(
296
  'name' => 'autologin_after_registration',
297
- 'label' => __( 'Auto Login After Registration', 'wpuf' ),
298
- 'desc' => __( 'If enabled, users after registration will be logged in to the system', 'wpuf' ),
299
  'type' => 'checkbox',
300
  'default' => 'on'
301
  ),
302
  array(
303
  'name' => 'register_link_override',
304
- 'label' => __( 'Login/Registration override', 'wpuf' ),
305
- 'desc' => __( 'If enabled, default login and registration forms will be overridden by WPUF with pages below', 'wpuf' ),
306
  'type' => 'checkbox',
307
  'default' => 'on'
308
  ),
309
  array(
310
  'name' => 'reg_override_page',
311
- 'label' => __( 'Registration Page', 'wpuf' ),
312
- 'desc' => __( 'Select the page you want to use as registration page override <em>(should have shortcode)</em>', 'wpuf' ),
313
  'type' => 'select',
314
  'options' => $pages
315
  ),
316
  array(
317
  'name' => 'login_page',
318
- 'label' => __( 'Login Page', 'wpuf' ),
319
- 'desc' => __( 'Select the page which contains <code>[wpuf-login]</code> shortcode', 'wpuf' ),
320
  'type' => 'select',
321
  'options' => $pages
322
  ),
323
  array(
324
  'name' => 'redirect_after_login_page',
325
- 'label' => __( 'Redirect After Login', 'wpuf' ),
326
- 'desc' => __( 'After successfull login, where the page will redirect to', 'wpuf' ),
327
  'type' => 'select',
328
  'options' => $login_redirect_pages
329
  ),
330
  array(
331
  'name' => 'wp_default_login_redirect',
332
- 'label' => __( 'Default Login Redirect', 'wpuf' ),
333
- 'desc' => __( 'If enabled, users who login using WordPress default login form will be redirected to the selected page.', 'wpuf' ),
334
  'type' => 'checkbox',
335
  'default' => 'off'
336
  ),
@@ -339,47 +345,47 @@ function wpuf_settings_fields() {
339
  'wpuf_payment' => apply_filters( 'wpuf_options_payment', array(
340
  array(
341
  'name' => 'enable_payment',
342
- 'label' => __( 'Enable Payments', 'wpuf' ),
343
- 'desc' => __( 'Enable payments on your site.', 'wpuf' ),
344
  'type' => 'checkbox',
345
  'default' => 'on',
346
  ),
347
  array(
348
  'name' => 'subscription_page',
349
- 'label' => __( 'Subscription Pack Page', 'wpuf' ),
350
- 'desc' => __( 'Select the page where <code>[wpuf_sub_pack]</code> located.', 'wpuf' ),
351
  'type' => 'select',
352
  'options' => $pages
353
  ),
354
  array(
355
  'name' => 'register_subscription',
356
- 'label' => __( 'Subscription at registration', 'wpuf' ),
357
- 'desc' => __( 'Registration time redirect to subscription page', 'wpuf' ),
358
  'type' => 'checkbox',
359
  ),
360
  array(
361
  'name' => 'currency',
362
- 'label' => __( 'Currency', 'wpuf' ),
363
  'type' => 'select',
364
  'default' => 'USD',
365
  'options' => $currencies
366
  ),
367
  array(
368
  'name' => 'currency_position',
369
- 'label' => __( 'Currency Position', 'wpuf' ),
370
  'type' => 'select',
371
  'default' => 'left',
372
  'options' => array(
373
- 'left' => sprintf( '%1$s (%2$s99.99)', __( 'Left', 'wpuf' ), $default_currency_symbol ),
374
- 'right' => sprintf( '%1$s (99.99%2$s)', __( 'Right', 'wpuf' ), $default_currency_symbol ),
375
- 'left_space' => sprintf( '%1$s (%2$s 99.99)', __( 'Left with space', 'wpuf' ), $default_currency_symbol ),
376
- 'right_space' => sprintf( '%1$s (99.99 %2$s)', __( 'Right with space', 'wpuf' ), $default_currency_symbol ),
377
  )
378
  ),
379
  array(
380
  'name' => 'wpuf_price_thousand_sep',
381
- 'label' => __( 'Thousand Separator', 'wpuf' ),
382
- 'desc' => __( 'This sets the thousand separator of displayed prices.', 'wpuf' ),
383
  'css' => 'width:50px;',
384
  'default' => ',',
385
  'type' => 'text',
@@ -387,16 +393,16 @@ function wpuf_settings_fields() {
387
  ),
388
  array(
389
  'name' => 'wpuf_price_decimal_sep',
390
- 'label' => __( 'Decimal Separator', 'wpuf' ),
391
- 'desc' => __( 'This sets the decimal separator of displayed prices.', 'wpuf' ),
392
  'default' => '.',
393
  'type' => 'text',
394
  ),
395
 
396
  array(
397
  'name' => 'wpuf_price_num_decimals',
398
- 'label' => __( 'Number of Decimals', 'wpuf' ),
399
- 'desc' => __( 'This sets the number of decimal points shown in displayed prices.', 'wpuf' ),
400
  'default' => '2',
401
  'type' => 'number',
402
  'custom_attributes' => array(
@@ -406,29 +412,29 @@ function wpuf_settings_fields() {
406
  ),
407
  array(
408
  'name' => 'sandbox_mode',
409
- 'label' => __( 'Enable demo/sandbox mode', 'wpuf' ),
410
- 'desc' => __( 'When sandbox mode is active, all payment gateway will be used in demo mode', 'wpuf' ),
411
  'type' => 'checkbox',
412
  'default' => 'on'
413
  ),
414
  array(
415
  'name' => 'payment_page',
416
- 'label' => __( 'Payment Page', 'wpuf' ),
417
- 'desc' => __( 'This page will be used to process payment options', 'wpuf' ),
418
  'type' => 'select',
419
  'options' => $pages
420
  ),
421
  array(
422
  'name' => 'payment_success',
423
- 'label' => __( 'Payment Success Page', 'wpuf' ),
424
- 'desc' => __( 'After payment users will be redirected here', 'wpuf' ),
425
  'type' => 'select',
426
  'options' => $pages
427
  ),
428
  array(
429
  'name' => 'active_gateways',
430
- 'label' => __( 'Payment Gateways', 'wpuf' ),
431
- 'desc' => __( 'Active payment gateways', 'wpuf' ),
432
  'type' => 'multicheck',
433
  'options' => wpuf_get_gateways()
434
  )
@@ -436,27 +442,36 @@ function wpuf_settings_fields() {
436
  'wpuf_mails' => apply_filters( 'wpuf_mail_options', array(
437
  array(
438
  'name' => 'guest_email_setting',
439
- 'label' => __( '<span class="dashicons dashicons-universal-access-alt"></span> Guest Email', 'wpuf' ),
440
  'type' => 'html',
441
  'class' => 'guest-email-setting',
442
  ),
443
  array(
444
  'name' => 'guest_email_subject',
445
- 'label' => __( 'Guest mail subject', 'wpuf' ),
446
- 'desc' => __( 'This sets the subject of the emails sent to guest users', 'wpuf' ),
447
  'default' => 'Please Confirm Your Email to Get the Post Published!',
448
  'type' => 'text',
449
  'class' => 'guest-email-setting-option',
450
  ),
451
  array(
452
  'name' => 'guest_email_body',
453
- 'label' => __( 'Guest mail body', 'wpuf' ),
454
- 'desc' => __( "This sets the body of the emails sent to guest users. Please DON'T edit the <code>{activation_link}</code> part, you can use {sitename} too.", 'wpuf' ),
455
  'default' => "Hey There, \r\n\r\nWe just received your guest post and now we want you to confirm your email so that we can verify the content and move on to the publishing process.\r\n\r\nPlease click the link below to verify: \r\n\r\n{activation_link}\r\n\r\nRegards,\r\n{sitename}",
456
  'type' => 'wysiwyg',
457
  'class' => 'guest-email-setting-option',
458
  ),
459
- ) )
 
 
 
 
 
 
 
 
 
460
  );
461
 
462
  return apply_filters( 'wpuf_settings_fields', $settings_fields );
@@ -475,7 +490,7 @@ function wpuf_settings_field_profile( $form ) {
475
  ?>
476
 
477
  <p style="padding-left: 10px; font-style: italic; font-size: 13px;">
478
- <strong><?php _e( 'Select profile/registration forms for user roles. These forms will be used to populate extra edit profile fields in backend.', 'wpuf' ); ?></strong>
479
  </p>
480
  <table class="form-table">
481
  <?php
@@ -486,7 +501,7 @@ function wpuf_settings_field_profile( $form ) {
486
  <th scrope="row"><?php echo $name; ?></th>
487
  <td>
488
  <select name="wpuf_profile[roles][<?php echo $role; ?>]">
489
- <option value=""><?php _e( ' - select - ', 'wpuf' ); ?></option>
490
  <?php foreach ($forms as $form) { ?>
491
  <option value="<?php echo $form->ID; ?>"<?php selected( $current, $form->ID ); ?>><?php echo $form->post_title; ?></option>
492
  <?php } ?>
10
  $sections = array(
11
  array(
12
  'id' => 'wpuf_general',
13
+ 'title' => __( 'General Options', 'wp-user-frontend' ),
14
  'icon' => 'dashicons-admin-generic'
15
  ),
16
  array(
17
  'id' => 'wpuf_frontend_posting',
18
+ 'title' => __( 'Frontend Posting', 'wp-user-frontend' ),
19
  'icon' => 'dashicons-welcome-write-blog'
20
  ),
21
  array(
22
  'id' => 'wpuf_dashboard',
23
+ 'title' => __( 'Dashboard', 'wp-user-frontend' ),
24
  'icon' => 'dashicons-dashboard'
25
  ),
26
  array(
27
  'id' => 'wpuf_my_account',
28
+ 'title' => __( 'My Account', 'wp-user-frontend' ),
29
  'icon' => 'dashicons-id'
30
  ),
31
  array(
32
  'id' => 'wpuf_profile',
33
+ 'title' => __( 'Login / Registration', 'wp-user-frontend' ),
34
  'icon' => 'dashicons-admin-users'
35
  ),
36
  array(
37
  'id' => 'wpuf_payment',
38
+ 'title' => __( 'Payments', 'wp-user-frontend' ),
39
  'icon' => 'dashicons-money'
40
  ),
41
  array(
42
  'id' => 'wpuf_mails',
43
+ 'title' => __( 'E-Mails', 'wp-user-frontend' ),
44
  'icon' => 'dashicons-email-alt'
45
+ ),
46
+ array(
47
+ 'id' => 'wpuf_privacy',
48
+ 'title' => __( 'Privacy Options', 'wp-user-frontend' ),
49
+ 'icon' => 'dashicons-shield-alt'
50
  ),
51
  );
52
 
56
  function wpuf_settings_fields() {
57
  $pages = wpuf_get_pages();
58
  $users = wpuf_list_users();
59
+ $post_types = get_post_types();
60
+ unset( $post_types['attachment'], $post_types['revision'], $post_types['nav_menu_item'], $post_types['wpuf_forms'], $post_types['wpuf_profile'], $post_types['wpuf_input'], $post_types['wpuf_subscription'], $post_types['custom_css'], $post_types['customize_changeset'], $post_types['wpuf_coupon'], $post_types['oembed_cache'] );
61
 
62
  $login_redirect_pages = array(
63
+ 'previous_page' => __( 'Previous Page', 'wp-user-frontend' )
64
  ) + $pages;
65
 
66
  $all_currencies = wpuf_get_currencies();
82
  'wpuf_general' => apply_filters( 'wpuf_options_others', array(
83
  array(
84
  'name' => 'show_admin_bar',
85
+ 'label' => __( 'Show Admin Bar', 'wp-user-frontend' ),
86
+ 'desc' => __( 'Select user by roles, who can view admin bar in frontend.', 'wp-user-frontend' ),
87
  'callback'=> 'wpuf_settings_multiselect',
88
  'options' => $user_roles,
89
  'default' => array( 'administrator', 'editor', 'author', 'contributor' ),
90
  ),
91
  array(
92
  'name' => 'admin_access',
93
+ 'label' => __( 'Admin area access', 'wp-user-frontend' ),
94
+ 'desc' => __( 'Allow you to block specific user role to Ajax request and Media upload.', 'wp-user-frontend' ),
95
  'type' => 'select',
96
  'default' => 'read',
97
  'options' => array(
98
+ 'manage_options' => __( 'Admin Only', 'wp-user-frontend' ),
99
+ 'edit_others_posts' => __( 'Admins, Editors', 'wp-user-frontend' ),
100
+ 'publish_posts' => __( 'Admins, Editors, Authors', 'wp-user-frontend' ),
101
+ 'edit_posts' => __( 'Admins, Editors, Authors, Contributors', 'wp-user-frontend' ),
102
+ 'read' => __( 'Default', 'wp-user-frontend' )
103
  )
104
  ),
105
  array(
106
  'name' => 'override_editlink',
107
+ 'label' => __( 'Override the post edit link', 'wp-user-frontend' ),
108
+ 'desc' => __( 'Users see the edit link in post if s/he is capable to edit the post/page. Selecting <strong>Yes</strong> will override the default WordPress edit post link in frontend', 'wp-user-frontend' ),
109
  'type' => 'select',
110
  'default' => 'no',
111
  'options' => array(
112
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
113
+ 'no' => __( 'No', 'wp-user-frontend' )
114
  )
115
  ),
116
  array(
117
  'name' => 'wpuf_compatibility_acf',
118
+ 'label' => __( 'ACF Compatibility', 'wp-user-frontend' ),
119
+ 'desc' => __( 'Select <strong>Yes</strong> if you want to make compatible WPUF custom fields data with advanced custom fields.', 'wp-user-frontend' ),
120
  'type' => 'select',
121
  'default' => 'no',
122
  'options' => array(
123
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
124
+ 'no' => __( 'No', 'wp-user-frontend' )
125
  )
126
  ),
127
  array(
128
  'name' => 'load_script',
129
+ 'label' => __( 'Load Scripts', 'wp-user-frontend' ),
130
+ 'desc' => __( 'Load scripts/styles in all pages', 'wp-user-frontend' ),
131
  'type' => 'checkbox',
132
  'default' => 'on'
133
  ),
134
  array(
135
  'name' => 'recaptcha_public',
136
+ 'label' => __( 'reCAPTCHA Site Key', 'wp-user-frontend' ),
137
  ),
138
  array(
139
  'name' => 'recaptcha_private',
140
+ 'label' => __( 'reCAPTCHA Secret Key', 'wp-user-frontend' ),
141
+ 'desc' => __( '<a target="_blank" href="https://www.google.com/recaptcha/">Register here</a> to get reCaptcha Site and Secret keys.', 'wp-user-frontend' ),
142
  ),
143
  array(
144
  'name' => 'custom_css',
145
+ 'label' => __( 'Custom CSS codes', 'wp-user-frontend' ),
146
+ 'desc' => __( 'If you want to add your custom CSS code, it will be added on page header wrapped with style tag', 'wp-user-frontend' ),
147
  'type' => 'textarea'
148
  ),
149
  ) ),
150
  'wpuf_frontend_posting' => apply_filters( 'wpuf_options_frontend_posting', array(
151
  array(
152
  'name' => 'edit_page_id',
153
+ 'label' => __( 'Edit Page', 'wp-user-frontend' ),
154
+ 'desc' => __( 'Select the page where <code>[wpuf_edit]</code> is located', 'wp-user-frontend' ),
155
  'type' => 'select',
156
  'options' => $pages
157
  ),
158
  array(
159
  'name' => 'default_post_owner',
160
+ 'label' => __( 'Default Post Owner', 'wp-user-frontend' ),
161
+ 'desc' => __( 'If guest post is enabled and user details are OFF, the posts are assigned to this user', 'wp-user-frontend' ),
162
  'type' => 'select',
163
  'options' => $users,
164
  'default' => '1'
165
  ),
166
  array(
167
  'name' => 'cf_show_front',
168
+ 'label' => __( 'Custom Fields in post', 'wp-user-frontend' ),
169
+ 'desc' => __( 'Show custom fields on post content area', 'wp-user-frontend' ),
170
  'type' => 'checkbox',
171
  'default' => 'off'
172
  ),
173
  array(
174
  'name' => 'insert_photo_size',
175
+ 'label' => __( 'Insert Photo image size', 'wp-user-frontend' ),
176
+ 'desc' => __( 'Default image size of "<strong>Insert Photo</strong>" button in post content area', 'wp-user-frontend' ),
177
  'type' => 'select',
178
  'options' => wpuf_get_image_sizes(),
179
  'default' => 'thumbnail'
180
  ),
181
  array(
182
  'name' => 'insert_photo_type',
183
+ 'label' => __( 'Insert Photo image type', 'wp-user-frontend' ),
184
+ 'desc' => __( 'Default image type of "<strong>Insert Photo</strong>" button in post content area', 'wp-user-frontend' ),
185
  'type' => 'select',
186
  'options' => array(
187
+ 'image' => __( 'Image only', 'wp-user-frontend' ),
188
+ 'link' => __( 'Image with link', 'wp-user-frontend' )
189
  ),
190
  'default' => 'link'
191
  ),
192
  array(
193
  'name' => 'image_caption',
194
+ 'label' => __( 'Enable Image Caption', 'wp-user-frontend' ),
195
+ 'desc' => __( 'Allow users to update image/video title, caption and description', 'wp-user-frontend' ),
196
  'type' => 'checkbox',
197
  'default' => 'off'
198
  ),
199
  array(
200
  'name' => 'default_post_form',
201
+ 'label' => __( 'Default Post Form', 'wp-user-frontend' ),
202
+ 'desc' => __( 'Fallback form for post editing if no associated form found', 'wp-user-frontend' ),
203
  'type' => 'select',
204
  'options' => wpuf_get_pages( 'wpuf_forms' )
205
  ),
207
  'wpuf_dashboard' => apply_filters( 'wpuf_options_dashboard', array(
208
  array(
209
  'name' => 'enable_post_edit',
210
+ 'label' => __( 'Users can edit post?', 'wp-user-frontend' ),
211
+ 'desc' => __( 'Users will be able to edit their own posts', 'wp-user-frontend' ),
212
  'type' => 'select',
213
  'default' => 'yes',
214
  'options' => array(
215
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
216
+ 'no' => __( 'No', 'wp-user-frontend' )
217
  )
218
  ),
219
  array(
220
  'name' => 'enable_post_del',
221
+ 'label' => __( 'User can delete post?', 'wp-user-frontend' ),
222
+ 'desc' => __( 'Users will be able to delete their own posts', 'wp-user-frontend' ),
223
  'type' => 'select',
224
  'default' => 'yes',
225
  'options' => array(
226
+ 'yes' => __( 'Yes', 'wp-user-frontend' ),
227
+ 'no' => __( 'No', 'wp-user-frontend' )
228
  )
229
  ),
230
  array(
231
  'name' => 'disable_pending_edit',
232
+ 'label' => __( 'Pending Post Edit', 'wp-user-frontend' ),
233
+ 'desc' => __( 'Disable post editing while post in "pending" status', 'wp-user-frontend' ),
234
  'type' => 'checkbox',
235
  'default' => 'on'
236
  ),
237
  array(
238
  'name' => 'per_page',
239
+ 'label' => __( 'Posts per page', 'wp-user-frontend' ),
240
+ 'desc' => __( 'How many posts will be listed in a page', 'wp-user-frontend' ),
241
  'type' => 'text',
242
  'default' => '10'
243
  ),
244
  array(
245
  'name' => 'show_user_bio',
246
+ 'label' => __( 'Show user bio', 'wp-user-frontend' ),
247
+ 'desc' => __( 'Users biographical info will be shown', 'wp-user-frontend' ),
248
  'type' => 'checkbox',
249
  'default' => 'on'
250
  ),
251
  array(
252
  'name' => 'show_post_count',
253
+ 'label' => __( 'Show post count', 'wp-user-frontend' ),
254
+ 'desc' => __( 'Show how many posts are created by the user', 'wp-user-frontend' ),
255
  'type' => 'checkbox',
256
  'default' => 'on'
257
  ),
258
  array(
259
  'name' => 'show_ft_image',
260
+ 'label' => __( 'Show Featured Image', 'wp-user-frontend' ),
261
+ 'desc' => __( 'Show featured image of the post (Overridden by Shortcode)', 'wp-user-frontend' ),
262
  'type' => 'checkbox'
263
  ),
264
  array(
265
  'name' => 'ft_img_size',
266
+ 'label' => __( 'Featured Image size', 'wp-user-frontend' ),
267
  'type' => 'select',
268
  'options' => wpuf_get_image_sizes()
269
  ),
270
  array(
271
  'name' => 'un_auth_msg',
272
+ 'label' => __( 'Unauthorized Message', 'wp-user-frontend' ),
273
+ 'desc' => __( 'Not logged in users will see this message', 'wp-user-frontend' ),
274
  'type' => 'textarea'
275
  ),
276
  ) ),
277
  'wpuf_my_account' => apply_filters( 'wpuf_options_wpuf_my_account', array(
278
  array(
279
  'name' => 'account_page',
280
+ 'label' => __( 'Account Page', 'wp-user-frontend' ),
281
+ 'desc' => __( 'Select the page which contains <code>[wpuf_account]</code> shortcode', 'wp-user-frontend' ),
282
  'type' => 'select',
283
  'options' => $pages
284
  ),
285
  array(
286
  'name' => 'show_subscriptions',
287
+ 'label' => __( 'Show Subscriptions', 'wp-user-frontend' ),
288
+ 'desc' => __( 'Show Subscriptions tab in "my account" page where <code>[wpuf_account]</code> is located', 'wp-user-frontend' ),
289
  'type' => 'checkbox',
290
  'default' => 'on',
291
  ),
292
  array(
293
  'name' => 'show_billing_address',
294
+ 'label' => __( 'Show Billing Address', 'wp-user-frontend' ),
295
+ 'desc' => __( 'Show billing address in account page.', 'wp-user-frontend' ),
296
  'type' => 'checkbox',
297
  'default' => 'on',
298
  ),
300
  'wpuf_profile' => apply_filters( 'wpuf_options_profile', array(
301
  array(
302
  'name' => 'autologin_after_registration',
303
+ 'label' => __( 'Auto Login After Registration', 'wp-user-frontend' ),
304
+ 'desc' => __( 'If enabled, users after registration will be logged in to the system', 'wp-user-frontend' ),
305
  'type' => 'checkbox',
306
  'default' => 'on'
307
  ),
308
  array(
309
  'name' => 'register_link_override',
310
+ 'label' => __( 'Login/Registration override', 'wp-user-frontend' ),
311
+ 'desc' => __( 'If enabled, default login and registration forms will be overridden by WPUF with pages below', 'wp-user-frontend' ),
312
  'type' => 'checkbox',
313
  'default' => 'on'
314
  ),
315
  array(
316
  'name' => 'reg_override_page',
317
+ 'label' => __( 'Registration Page', 'wp-user-frontend' ),
318
+ 'desc' => __( 'Select the page you want to use as registration page override <em>(should have shortcode)</em>', 'wp-user-frontend' ),
319
  'type' => 'select',
320
  'options' => $pages
321
  ),
322
  array(
323
  'name' => 'login_page',
324
+ 'label' => __( 'Login Page', 'wp-user-frontend' ),
325
+ 'desc' => __( 'Select the page which contains <code>[wpuf-login]</code> shortcode', 'wp-user-frontend' ),
326
  'type' => 'select',
327
  'options' => $pages
328
  ),
329
  array(
330
  'name' => 'redirect_after_login_page',
331
+ 'label' => __( 'Redirect After Login', 'wp-user-frontend' ),
332
+ 'desc' => __( 'After successfull login, where the page will redirect to', 'wp-user-frontend' ),
333
  'type' => 'select',
334
  'options' => $login_redirect_pages
335
  ),
336
  array(
337
  'name' => 'wp_default_login_redirect',
338
+ 'label' => __( 'Default Login Redirect', 'wp-user-frontend' ),
339
+ 'desc' => __( 'If enabled, users who login using WordPress default login form will be redirected to the selected page.', 'wp-user-frontend' ),
340
  'type' => 'checkbox',
341
  'default' => 'off'
342
  ),
345
  'wpuf_payment' => apply_filters( 'wpuf_options_payment', array(
346
  array(
347
  'name' => 'enable_payment',
348
+ 'label' => __( 'Enable Payments', 'wp-user-frontend' ),
349
+ 'desc' => __( 'Enable payments on your site.', 'wp-user-frontend' ),
350
  'type' => 'checkbox',
351
  'default' => 'on',
352
  ),
353
  array(
354
  'name' => 'subscription_page',
355
+ 'label' => __( 'Subscription Pack Page', 'wp-user-frontend' ),
356
+ 'desc' => __( 'Select the page where <code>[wpuf_sub_pack]</code> located.', 'wp-user-frontend' ),
357
  'type' => 'select',
358
  'options' => $pages
359
  ),
360
  array(
361
  'name' => 'register_subscription',
362
+ 'label' => __( 'Subscription at registration', 'wp-user-frontend' ),
363
+ 'desc' => __( 'Registration time redirect to subscription page', 'wp-user-frontend' ),
364
  'type' => 'checkbox',
365
  ),
366
  array(
367
  'name' => 'currency',
368
+ 'label' => __( 'Currency', 'wp-user-frontend' ),
369
  'type' => 'select',
370
  'default' => 'USD',
371
  'options' => $currencies
372
  ),
373
  array(
374
  'name' => 'currency_position',
375
+ 'label' => __( 'Currency Position', 'wp-user-frontend' ),
376
  'type' => 'select',
377
  'default' => 'left',
378
  'options' => array(
379
+ 'left' => sprintf( '%1$s (%2$s99.99)', __( 'Left', 'wp-user-frontend' ), $default_currency_symbol ),
380
+ 'right' => sprintf( '%1$s (99.99%2$s)', __( 'Right', 'wp-user-frontend' ), $default_currency_symbol ),
381
+ 'left_space' => sprintf( '%1$s (%2$s 99.99)', __( 'Left with space', 'wp-user-frontend' ), $default_currency_symbol ),
382
+ 'right_space' => sprintf( '%1$s (99.99 %2$s)', __( 'Right with space', 'wp-user-frontend' ), $default_currency_symbol ),
383
  )
384
  ),
385
  array(
386
  'name' => 'wpuf_price_thousand_sep',
387
+ 'label' => __( 'Thousand Separator', 'wp-user-frontend' ),
388
+ 'desc' => __( 'This sets the thousand separator of displayed prices.', 'wp-user-frontend' ),
389
  'css' => 'width:50px;',
390
  'default' => ',',
391
  'type' => 'text',
393
  ),
394
  array(
395
  'name' => 'wpuf_price_decimal_sep',
396
+ 'label' => __( 'Decimal Separator', 'wp-user-frontend' ),
397
+ 'desc' => __( 'This sets the decimal separator of displayed prices.', 'wp-user-frontend' ),
398
  'default' => '.',
399
  'type' => 'text',
400
  ),
401
 
402
  array(
403
  'name' => 'wpuf_price_num_decimals',
404
+ 'label' => __( 'Number of Decimals', 'wp-user-frontend' ),
405
+ 'desc' => __( 'This sets the number of decimal points shown in displayed prices.', 'wp-user-frontend' ),
406
  'default' => '2',
407
  'type' => 'number',
408
  'custom_attributes' => array(
412
  ),
413
  array(
414
  'name' => 'sandbox_mode',
415
+ 'label' => __( 'Enable demo/sandbox mode', 'wp-user-frontend' ),
416
+ 'desc' => __( 'When sandbox mode is active, all payment gateway will be used in demo mode', 'wp-user-frontend' ),
417
  'type' => 'checkbox',
418
  'default' => 'on'
419
  ),
420
  array(
421
  'name' => 'payment_page',
422
+ 'label' => __( 'Payment Page', 'wp-user-frontend' ),
423
+ 'desc' => __( 'This page will be used to process payment options', 'wp-user-frontend' ),
424
  'type' => 'select',
425
  'options' => $pages
426
  ),
427
  array(
428
  'name' => 'payment_success',
429
+ 'label' => __( 'Payment Success Page', 'wp-user-frontend' ),
430
+ 'desc' => __( 'After payment users will be redirected here', 'wp-user-frontend' ),
431
  'type' => 'select',
432
  'options' => $pages
433
  ),
434
  array(
435
  'name' => 'active_gateways',
436
+ 'label' => __( 'Payment Gateways', 'wp-user-frontend' ),
437
+ 'desc' => __( 'Active payment gateways', 'wp-user-frontend' ),
438
  'type' => 'multicheck',
439
  'options' => wpuf_get_gateways()
440
  )
442
  'wpuf_mails' => apply_filters( 'wpuf_mail_options', array(
443
  array(
444
  'name' => 'guest_email_setting',
445
+ 'label' => __( '<span class="dashicons dashicons-universal-access-alt"></span> Guest Email', 'wp-user-frontend' ),
446
  'type' => 'html',
447
  'class' => 'guest-email-setting',
448
  ),
449
  array(
450
  'name' => 'guest_email_subject',
451
+ 'label' => __( 'Guest mail subject', 'wp-user-frontend' ),
452
+ 'desc' => __( 'This sets the subject of the emails sent to guest users', 'wp-user-frontend' ),
453
  'default' => 'Please Confirm Your Email to Get the Post Published!',
454
  'type' => 'text',
455
  'class' => 'guest-email-setting-option',
456
  ),
457
  array(
458
  'name' => 'guest_email_body',
459
+ 'label' => __( 'Guest mail body', 'wp-user-frontend' ),
460
+ 'desc' => __( "This sets the body of the emails sent to guest users. Please DON'T edit the <code>{activation_link}</code> part, you can use {sitename} too.", 'wp-user-frontend' ),
461
  'default' => "Hey There, \r\n\r\nWe just received your guest post and now we want you to confirm your email so that we can verify the content and move on to the publishing process.\r\n\r\nPlease click the link below to verify: \r\n\r\n{activation_link}\r\n\r\nRegards,\r\n{sitename}",
462
  'type' => 'wysiwyg',
463
  'class' => 'guest-email-setting-option',
464
  ),
465
+ ) ),
466
+ 'wpuf_privacy' => apply_filters( 'wpuf_privacy_options', array(
467
+ array(
468
+ 'name' => 'export_post_types',
469
+ 'label' => __( 'Post Types', 'wp-user-frontend' ),
470
+ 'desc' => __( 'Select the post types you will allow users to export.', 'wp-user-frontend' ),
471
+ 'callback'=> 'wpuf_settings_multiselect',
472
+ 'options' => $post_types,
473
+ ),
474
+ ) ),
475
  );
476
 
477
  return apply_filters( 'wpuf_settings_fields', $settings_fields );
490
  ?>
491
 
492
  <p style="padding-left: 10px; font-style: italic; font-size: 13px;">
493
+ <strong><?php _e( 'Select profile/registration forms for user roles. These forms will be used to populate extra edit profile fields in backend.', 'wp-user-frontend' ); ?></strong>
494
  </p>
495
  <table class="form-table">
496
  <?php
501
  <th scrope="row"><?php echo $name; ?></th>
502
  <td>
503
  <select name="wpuf_profile[roles][<?php echo $role; ?>]">
504
+ <option value=""><?php _e( ' - select - ', 'wp-user-frontend' ); ?></option>
505
  <?php foreach ($forms as $form) { ?>
506
  <option value="<?php echo $form->ID; ?>"<?php selected( $current, $form->ID ); ?>><?php echo $form->post_title; ?></option>
507
  <?php } ?>
admin/subscribers.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  $option = 'per_page';
3
  $args = array(
4
- 'label' => __( 'Number of subscribers per page:', 'wpuf' ),
5
  'default' => 20,
6
  'option' => 'subscribers_per_page'
7
  );
@@ -15,7 +15,7 @@ if ( ! class_exists( 'WPUF_List_Table_Subscribers' ) ) {
15
  $this->subscribers_list_table_obj = new WPUF_List_Table_Subscribers();
16
  ?>
17
  <div class="wrap">
18
- <h2><?php _e( 'Subscribers', 'wpuf' ); ?></h2>
19
 
20
  <form method="post">
21
  <input type="hidden" name="page" value="subscribers">
1
  <?php
2
  $option = 'per_page';
3
  $args = array(
4
+ 'label' => __( 'Number of subscribers per page:', 'wp-user-frontend' ),
5
  'default' => 20,
6
  'option' => 'subscribers_per_page'
7
  );
15
  $this->subscribers_list_table_obj = new WPUF_List_Table_Subscribers();
16
  ?>
17
  <div class="wrap">
18
+ <h2><?php _e( 'Subscribers', 'wp-user-frontend' ); ?></h2>
19
 
20
  <form method="post">
21
  <input type="hidden" name="page" value="subscribers">
admin/template-post.php CHANGED
@@ -38,13 +38,13 @@ class WPUF_Admin_Template_Post extends WPUF_Admin_Template {
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 -->
@@ -90,7 +90,7 @@ class WPUF_Admin_Template_Post extends WPUF_Admin_Template {
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 ); ?>
@@ -102,7 +102,7 @@ class WPUF_Admin_Template_Post extends WPUF_Admin_Template {
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 ); ?>
@@ -151,69 +151,69 @@ class WPUF_Admin_Template_Post extends WPUF_Admin_Template {
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 -->
@@ -254,16 +254,16 @@ class WPUF_Admin_Template_Post extends WPUF_Admin_Template {
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>
38
  <?php self::common_textarea( $field_id, $values ); ?>
39
 
40
  <div class="wpuf-form-rows">
41
+ <label><?php _e( 'Enable Image Insertion', 'wp-user-frontend' ); ?></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', 'wp-user-frontend' ); ?>
48
  </label>
49
  </div>
50
  </div> <!-- .wpuf-form-rows -->
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', 'wp-user-frontend' ) );
94
  ?>
95
  <li class="featured_image">
96
  <?php self::legend( $label, $values, $field_id ); ?>
102
  <?php self::common( $field_id, 'featured_image', false, $values ); ?>
103
 
104
  <div class="wpuf-form-rows">
105
+ <label><?php _e( 'Max. file size', 'wp-user-frontend' ); ?></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 ); ?>
151
  <?php self::common( $field_id, $taxonomy, false, $values ); ?>
152
 
153
  <div class="wpuf-form-rows">
154
+ <label><?php _e( 'Type', 'wp-user-frontend' ); ?></label>
155
  <select name="<?php echo $type_name ?>">
156
+ <option value="select"<?php selected( $type_value, 'select' ); ?>><?php _e( 'Dropdown', 'wp-user-frontend' ); ?></option>
157
+ <option value="multiselect"<?php selected( $type_value, 'multiselect' ); ?>><?php _e( 'Multi Select', 'wp-user-frontend' ); ?></option>
158
+ <option value="checkbox"<?php selected( $type_value, 'checkbox' ); ?>><?php _e( 'Checkbox', 'wp-user-frontend' ); ?></option>
159
+ <option value="text"<?php selected( $type_value, 'text' ); ?>><?php _e( 'Text Input', 'wp-user-frontend' ); ?></option>
160
+ <option value="ajax"<?php selected( $type_value, 'ajax' ); ?>><?php _e( 'Ajax', 'wp-user-frontend' ); ?></option>
161
  </select>
162
  </div> <!-- .wpuf-form-rows -->
163
 
164
  <div class="wpuf-form-rows">
165
+ <label><?php _e( 'Order By', 'wp-user-frontend' ); ?></label>
166
  <select name="<?php echo $orderby_name ?>">
167
+ <option value="name"<?php selected( $orderby_value, 'name' ); ?>><?php _e( 'Name', 'wp-user-frontend' ); ?></option>
168
+ <option value="id"<?php selected( $orderby_value, 'id' ); ?>><?php _e( 'Term ID', 'wp-user-frontend' ); ?></option>
169
+ <option value="slug"<?php selected( $orderby_value, 'slug' ); ?>><?php _e( 'Slug', 'wp-user-frontend' ); ?></option>
170
+ <option value="count"<?php selected( $orderby_value, 'count' ); ?>><?php _e( 'Count', 'wp-user-frontend' ); ?></option>
171
+ <option value="term_group"<?php selected( $orderby_value, 'term_group' ); ?>><?php _e( 'Term Group', 'wp-user-frontend' ); ?></option>
172
  </select>
173
  </div> <!-- .wpuf-form-rows -->
174
 
175
  <div class="wpuf-form-rows">
176
+ <label><?php _e( 'Order', 'wp-user-frontend' ); ?></label>
177
  <select name="<?php echo $order_name ?>">
178
+ <option value="ASC"<?php selected( $order_value, 'ASC' ); ?>><?php _e( 'ASC', 'wp-user-frontend' ); ?></option>
179
+ <option value="DESC"<?php selected( $order_value, 'DESC' ); ?>><?php _e( 'DESC', 'wp-user-frontend' ); ?></option>
180
  </select>
181
  </div> <!-- .wpuf-form-rows -->
182
 
183
  <div class="wpuf-form-rows">
184
+ <label><?php _e( 'Selection Type', 'wp-user-frontend' ); ?></label>
185
  <select name="<?php echo $exclude_type_name ?>">
186
+ <option value="exclude"<?php selected( $exclude_type_value, 'exclude' ); ?>><?php _e( 'Exclude', 'wp-user-frontend' ); ?></option>
187
+ <option value="include"<?php selected( $exclude_type_value, 'include' ); ?>><?php _e( 'Include', 'wp-user-frontend' ); ?></option>
188
+ <option value="child_of"<?php selected( $exclude_type_value, 'child_of' ); ?>><?php _e( 'Child of', 'wp-user-frontend' ); ?></option>
189
  </select>
190
  </div> <!-- .wpuf-form-rows -->
191
 
192
  <div class="wpuf-form-rows">
193
+ <label><?php _e( 'Selection terms', 'wp-user-frontend' ); ?></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.', 'wp-user-frontend' ); ?>" value="<?php echo $exclude_value; ?>" />
195
  </div> <!-- .wpuf-form-rows -->
196
 
197
  <div class="wpuf-form-rows">
198
+ <label><?php _e( 'WooCommerce Attribute', 'wp-user-frontend' ); ?></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', 'wp-user-frontend' ); ?>
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', 'wp-user-frontend' ); ?></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', 'wp-user-frontend' ); ?>
217
  </label>
218
  </div>
219
  </div> <!-- .wpuf-form-rows -->
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','wp-user-frontend'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'all' )?'checked':'' ); ?> /><?php _e( 'Show All', 'wp-user-frontend' ); ?></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','wp-user-frontend'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'hide' )?'checked':'' ); ?> /><?php _e( 'Hide These Countries', 'wp-user-frontend' ); ?></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', 'wp-user-frontend' ); ?>"></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','wp-user-frontend'); ?>" <?php echo ( ( $param['option_to_chose']['value'] == 'show' )?'checked':'' ); ?> /><?php _e( 'Show These Countries', 'wp-user-frontend' ); ?></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', 'wp-user-frontend' ); ?>"></select>
267
  </div>
268
 
269
  <script>
admin/template.php CHANGED
@@ -22,12 +22,12 @@ class WPUF_Admin_Template {
22
  $field_label = $values ? ': <strong>' . $values['label'] . '</strong>' : '';
23
  $id = isset( $values['id'] ) ? $values['id'] : '';
24
  ?>
25
- <div class="wpuf-legend" title="<?php _e( 'Click and Drag to rearrange', 'wpuf' ); ?>">
26
  <input type="hidden" value="<?php echo $id; ?>" name="wpuf_input[<?php echo $field_id; ?>][id]">
27
  <div class="wpuf-label"><?php echo $title . $field_label; ?></div>
28
  <div class="wpuf-actions">
29
- <a href="#" class="wpuf-remove"><?php _e( 'Remove', 'wpuf' ); ?></a>
30
- <a href="#" class="wpuf-toggle"><?php _e( 'Toggle', 'wpuf' ); ?></a>
31
  </div>
32
  </div> <!-- .wpuf-legend -->
33
  <?php
@@ -64,23 +64,23 @@ class WPUF_Admin_Template {
64
  }
65
  ?>
66
  <div class="wpuf-form-rows required-field">
67
- <label><?php _e( 'Required', 'wpuf' ); ?></label>
68
 
69
  <div class="wpuf-form-sub-fields">
70
- <label><input type="radio" name="<?php echo $required_name; ?>" value="yes"<?php checked( $required, 'yes' ); ?>> <?php _e( 'Yes', 'wpuf' ); ?> </label>
71
- <label><input type="radio" name="<?php echo $required_name; ?>" value="no"<?php checked( $required, 'no' ); ?>> <?php _e( 'No', 'wpuf' ); ?> </label>
72
  </div>
73
  </div> <!-- .wpuf-form-rows -->
74
 
75
  <div class="wpuf-form-rows">
76
- <label><?php _e( 'Field Label', 'wpuf' ); ?></label>
77
- <input type="text" data-type="label" name="<?php echo $label_name; ?>" value="<?php echo $label_value; ?>" class="smallipopInput" title="<?php _e( 'Enter a title of this field', 'wpuf' ); ?>">
78
  </div> <!-- .wpuf-form-rows -->
79
 
80
  <?php if ( $custom_field ) { ?>
81
  <div class="wpuf-form-rows">
82
- <label><?php _e( 'Meta Key', 'wpuf' ); ?></label>
83
- <input type="text" data-type="name" name="<?php echo $field_name; ?>" value="<?php echo $field_name_value; ?>" class="smallipopInput" title="<?php _e( 'Name of the meta key this field will save to', 'wpuf' ); ?>">
84
  <input type="hidden" name="<?php echo $is_meta_name; ?>" value="yes">
85
  </div> <!-- .wpuf-form-rows -->
86
  <?php } else { ?>
@@ -91,13 +91,13 @@ class WPUF_Admin_Template {
91
  <?php } ?>
92
 
93
  <div class="wpuf-form-rows">
94
- <label><?php _e( 'Help text', 'wpuf' ); ?></label>
95
- <textarea name="<?php echo $help_name; ?>" class="smallipopInput" title="<?php _e( 'Give the user some information about this field', 'wpuf' ); ?>"><?php echo $help_value; ?></textarea>
96
  </div> <!-- .wpuf-form-rows -->
97
 
98
  <div class="wpuf-form-rows">
99
- <label><?php _e( 'CSS Class Name', 'wpuf' ); ?></label>
100
- <input type="text" name="<?php echo $css_name; ?>" value="<?php echo $css_value; ?>" class="smallipopInput" title="<?php _e( 'Add a CSS class name for this field', 'wpuf' ); ?>">
101
  </div> <!-- .wpuf-form-rows -->
102
 
103
  <?php
@@ -123,26 +123,26 @@ class WPUF_Admin_Template {
123
 
124
  ?>
125
  <div class="wpuf-form-rows">
126
- <label><?php _e( 'Placeholder text', 'wpuf' ); ?></label>
127
- <input type="text" class="smallipopInput" name="<?php echo $placeholder_name; ?>" title="<?php esc_attr_e( 'Text for HTML5 placeholder attribute', 'wpuf' ); ?>" value="<?php echo $placeholder_value; ?>" />
128
  </div> <!-- .wpuf-form-rows -->
129
 
130
  <div class="wpuf-form-rows">
131
- <label><?php _e( 'Default value', 'wpuf' ); ?></label>
132
- <input type="text" class="smallipopInput" name="<?php echo $default_name; ?>" title="<?php esc_attr_e( 'The default value this field will have', 'wpuf' ); ?>" value="<?php echo $default_value; ?>" />
133
  </div> <!-- .wpuf-form-rows -->
134
 
135
  <div class="wpuf-form-rows">
136
- <label><?php _e( 'Size', 'wpuf' ); ?></label>
137
- <input type="text" class="smallipopInput" name="<?php echo $size_name; ?>" title="<?php esc_attr_e( 'Size of this input field', 'wpuf' ); ?>" value="<?php echo $size_value; ?>" />
138
  </div> <!-- .wpuf-form-rows -->
139
 
140
  <div class="wpuf-form-rows">
141
- <label><?php _e( 'Word Restriction', 'wpuf' ); ?></label>
142
 
143
  <div class="wpuf-form-sub-fields">
144
  <label>
145
- <input type="text" class="smallipopInput" name="<?php echo $word_restriction_name ?>" value="<?php echo $word_restriction_value; ?>" title="<?php esc_attr_e( 'Numebr of words the author to be restricted in', 'wpuf' ); ?>" />
146
  </label>
147
  </div>
148
  </div> <!-- .wpuf-form-rows -->
@@ -173,41 +173,41 @@ class WPUF_Admin_Template {
173
 
174
  ?>
175
  <div class="wpuf-form-rows">
176
- <label><?php _e( 'Rows', 'wpuf' ); ?></label>
177
  <input type="text" class="smallipopInput" name="<?php echo $rows_name; ?>" title="Number of rows in textarea" value="<?php echo $rows_value; ?>" />
178
  </div> <!-- .wpuf-form-rows -->
179
 
180
  <div class="wpuf-form-rows">
181
- <label><?php _e( 'Columns', 'wpuf' ); ?></label>
182
  <input type="text" class="smallipopInput" name="<?php echo $cols_name; ?>" title="Number of columns in textarea" value="<?php echo $cols_value; ?>" />
183
  </div> <!-- .wpuf-form-rows -->
184
 
185
  <div class="wpuf-form-rows">
186
- <label><?php _e( 'Placeholder text', 'wpuf' ); ?></label>
187
  <input type="text" class="smallipopInput" name="<?php echo $placeholder_name; ?>" title="text for HTML5 placeholder attribute" value="<?php echo $placeholder_value; ?>" />
188
  </div> <!-- .wpuf-form-rows -->
189
 
190
  <div class="wpuf-form-rows">
191
- <label><?php _e( 'Default value', 'wpuf' ); ?></label>
192
  <input type="text" class="smallipopInput" name="<?php echo $default_name; ?>" title="the default value this field will have" value="<?php echo $default_value; ?>" />
193
  </div> <!-- .wpuf-form-rows -->
194
 
195
  <div class="wpuf-form-rows">
196
- <label><?php _e( 'Textarea', 'wpuf' ); ?></label>
197
 
198
  <div class="wpuf-form-sub-fields">
199
- <label><input type="radio" name="<?php echo $rich_name; ?>" value="no"<?php checked( $rich_value, 'no' ); ?>> <?php _e( 'Normal', 'wpuf' ); ?></label>
200
- <label><input type="radio" name="<?php echo $rich_name; ?>" value="yes"<?php checked( $rich_value, 'yes' ); ?>> <?php _e( 'Rich textarea', 'wpuf' ); ?></label>
201
- <label><input type="radio" name="<?php echo $rich_name; ?>" value="teeny"<?php checked( $rich_value, 'teeny' ); ?>> <?php _e( 'Teeny Rich textarea', 'wpuf' ); ?></label>
202
  </div>
203
  </div> <!-- .wpuf-form-rows -->
204
 
205
  <div class="wpuf-form-rows">
206
- <label><?php _e( 'Word Restriction', 'wpuf' ); ?></label>
207
 
208
  <div class="wpuf-form-sub-fields">
209
  <label>
210
- <input type="text" class="smallipopInput" name="<?php echo $word_restriction_name ?>" value="<?php echo $word_restriction_value; ?>" title="<?php esc_attr_e( 'Numebr of words the author to be restricted in', 'wpuf' ); ?>" />
211
  </label>
212
  </div>
213
  </div> <!-- .wpuf-form-rows -->
@@ -241,10 +241,10 @@ class WPUF_Admin_Template {
241
  ?>
242
 
243
  <label for="wpuf-<?php echo $name.'_'.$field_id; ?>" class="wpuf-show-field-value">
244
- <input type="checkbox" class="wpuf-value-handelar" id="wpuf-<?php echo $name . '_' . $field_id; ?>"><?php _e( 'Show values', 'wpuf' ); ?>
245
  </label>
246
 
247
- <div class="wpuf-option-label-value"><span><?php _e( 'Label', 'wpuf' ); ?></span><span class="wpuf-option-value" style="display: none;"><?php _e( 'Value', 'wpuf' ); ?></span></div>
248
  <?php
249
  if ( $values && $values['options'] > 0 ) {
250
  foreach ($values['options'] as $key => $value) {
@@ -301,8 +301,8 @@ class WPUF_Admin_Template {
301
  margin-right: 27%;
302
  }
303
  </style>
304
- <input type="checkbox" class="wpuf-value-handelar" id="<?php echo $name.'_'.$field_id; ?>"><label for="<?php echo $name.'_'.$field_id; ?>"><?php _e('show values', 'wpuf'); ?></label>
305
- <div class="wpuf-option-label-value"><span><?php _e( 'Label', 'wpuf' ); ?></span><span class="wpuf-option-value" style="display: none;"><?php _e( 'Value', 'wpuf' ); ?></span></div>
306
  <?php
307
  if ( $values && $values['options'] > 0 ) {
308
  foreach ($values['options'] as $key => $value) {
@@ -395,7 +395,7 @@ class WPUF_Admin_Template {
395
  <?php self::common( $field_id, '', true, $values ); ?>
396
 
397
  <div class="wpuf-form-rows">
398
- <label><?php _e( 'Options', 'wpuf' ); ?></label>
399
 
400
  <div class="wpuf-form-sub-fields wpuf-options">
401
  <?php self::radio_fields( $field_id, 'options', $values ); ?>
@@ -419,7 +419,7 @@ class WPUF_Admin_Template {
419
  <?php self::common( $field_id, '', true, $values ); ?>
420
 
421
  <div class="wpuf-form-rows">
422
- <label><?php _e( 'Options', 'wpuf' ); ?></label>
423
 
424
  <div class="wpuf-form-sub-fields wpuf-options">
425
  <?php self::common_checkbox( $field_id, 'options', $values ); ?>
@@ -435,7 +435,7 @@ class WPUF_Admin_Template {
435
  public static function dropdown_field( $field_id, $label, $values = array() ) {
436
  $first_name = sprintf( '%s[%d][first]', self::$input_name, $field_id );
437
  $first_value = $values ? $values['first'] : ' - select -';
438
- $help = esc_attr( __( 'First element of the select dropdown. Leave this empty if you don\'t want to show this field', 'wpuf' ) );
439
  ?>
440
  <li class="custom-field dropdown_field wpuf-conditional">
441
  <?php self::legend( $label, $values, $field_id ); ?>
@@ -446,12 +446,12 @@ class WPUF_Admin_Template {
446
  <?php self::common( $field_id, '', true, $values ); ?>
447
 
448
  <div class="wpuf-form-rows">
449
- <label><?php _e( 'Select Text', 'wpuf' ); ?></label>
450
  <input type="text" class="smallipopInput" name="<?php echo $first_name; ?>" value="<?php echo $first_value; ?>" title="<?php echo $help; ?>">
451
  </div> <!-- .wpuf-form-rows -->
452
 
453
  <div class="wpuf-form-rows">
454
- <label><?php _e( 'Options', 'wpuf' ); ?></label>
455
 
456
  <div class="wpuf-form-sub-fields wpuf-options">
457
  <?php self::radio_fields( $field_id, 'options', $values ); ?>
@@ -467,7 +467,7 @@ class WPUF_Admin_Template {
467
  public static function multiple_select( $field_id, $label, $values = array() ) {
468
  $first_name = sprintf( '%s[%d][first]', self::$input_name, $field_id );
469
  $first_value = $values ? $values['first'] : ' - select -';
470
- $help = esc_attr( __( 'First element of the select dropdown. Leave this empty if you don\'t want to show this field', 'wpuf' ) );
471
  ?>
472
  <li class="custom-field multiple_select">
473
  <?php self::legend( $label, $values, $field_id ); ?>
@@ -478,12 +478,12 @@ class WPUF_Admin_Template {
478
  <?php self::common( $field_id, '', true, $values ); ?>
479
 
480
  <div class="wpuf-form-rows">
481
- <label><?php _e( 'Select Text', 'wpuf' ); ?></label>
482
  <input type="text" class="smallipopInput" name="<?php echo $first_name; ?>" value="<?php echo $first_value; ?>" title="<?php echo $help; ?>">
483
  </div> <!-- .wpuf-form-rows -->
484
 
485
  <div class="wpuf-form-rows">
486
- <label><?php _e( 'Options', 'wpuf' ); ?></label>
487
 
488
  <div class="wpuf-form-sub-fields wpuf-options">
489
  <?php self::radio_fields( $field_id, 'options', $values ); ?>
@@ -541,12 +541,12 @@ class WPUF_Admin_Template {
541
 
542
  <div class="wpuf-form-holder">
543
  <div class="wpuf-form-rows">
544
- <label><?php _e( 'Title', 'wpuf' ); ?></label>
545
  <input type="text" class="smallipopInput" title="Title of the section" name="<?php echo $title_name; ?>" value="<?php echo esc_attr( $title_value ); ?>" />
546
  </div> <!-- .wpuf-form-rows -->
547
 
548
  <div class="wpuf-form-rows">
549
- <label><?php _e( 'HTML Codes', 'wpuf' ); ?></label>
550
  <textarea class="smallipopInput" title="Paste your HTML codes, WordPress shortcodes will also work here" name="<?php echo $html_name; ?>" rows="10"><?php echo esc_html( $html_value ); ?></textarea>
551
  </div>
552
 
@@ -572,15 +572,15 @@ class WPUF_Admin_Template {
572
 
573
  <div class="wpuf-form-holder">
574
  <div class="wpuf-form-rows">
575
- <label><?php _e( 'Meta Key', 'wpuf' ); ?></label>
576
- <input type="text" name="<?php echo $meta_name; ?>" value="<?php echo $meta_value; ?>" class="smallipopInput" title="<?php _e( 'Name of the meta key this field will save to', 'wpuf' ); ?>">
577
  <input type="hidden" name="<?php echo $is_meta_name; ?>" value="yes">
578
  <input type="hidden" name="<?php echo $label_name; ?>" value="">
579
  </div> <!-- .wpuf-form-rows -->
580
 
581
  <div class="wpuf-form-rows">
582
- <label><?php _e( 'Meta Value', 'wpuf' ); ?></label>
583
- <input type="text" class="smallipopInput" title="<?php esc_attr_e( 'Enter the meta value', 'wpuf' ); ?>" name="<?php echo $value_name; ?>" value="<?php echo $value_value; ?>">
584
  </div>
585
  </div> <!-- .wpuf-form-holder -->
586
  </li>
@@ -601,12 +601,12 @@ class WPUF_Admin_Template {
601
 
602
  <div class="wpuf-form-holder">
603
  <div class="wpuf-form-rows">
604
- <label><?php _e( 'Title', 'wpuf' ); ?></label>
605
  <input type="text" class="smallipopInput" title="Title of the section" name="<?php echo $title_name; ?>" value="<?php echo esc_attr( $title_value ); ?>" />
606
  </div> <!-- .wpuf-form-rows -->
607
 
608
  <div class="wpuf-form-rows">
609
- <label><?php _e( 'Description', 'wpuf' ); ?></label>
610
  <textarea class="smallipopInput" title="Some details text about the section" name="<?php echo $description_name; ?>" rows="3"><?php echo esc_html( $description_value ); ?></textarea>
611
  </div> <!-- .wpuf-form-rows -->
612
 
@@ -631,8 +631,8 @@ class WPUF_Admin_Template {
631
  $max_size_value = $values ? $values['max_size'] : '1024';
632
  $max_files_value = $values ? $values['count'] : '1';
633
 
634
- $help = esc_attr( __( 'Enter maximum upload size limit in KB', 'wpuf' ) );
635
- $count = esc_attr( __( 'Number of images can be uploaded', 'wpuf' ) );
636
  ?>
637
  <li class="custom-field image_upload">
638
  <?php self::legend( $label, $values, $field_id ); ?>
@@ -643,12 +643,12 @@ class WPUF_Admin_Template {
643
  <?php self::common( $field_id, '', true, $values ); ?>
644
 
645
  <div class="wpuf-form-rows">
646
- <label><?php _e( 'Max. file size', 'wpuf' ); ?></label>
647
  <input type="text" class="smallipopInput" name="<?php echo $max_size_name; ?>" value="<?php echo $max_size_value; ?>" title="<?php echo $help; ?>">
648
  </div> <!-- .wpuf-form-rows -->
649
 
650
  <div class="wpuf-form-rows">
651
- <label><?php _e( 'Max. files', 'wpuf' ); ?></label>
652
  <input type="text" class="smallipopInput" name="<?php echo $max_files_name; ?>" value="<?php echo $max_files_value; ?>" title="<?php echo $count; ?>">
653
  </div> <!-- .wpuf-form-rows -->
654
 
@@ -680,27 +680,27 @@ class WPUF_Admin_Template {
680
 
681
  <div class="wpuf-form-holder">
682
  <div class="wpuf-form-rows">
683
- <label><?php _e( 'Title', 'wpuf' ); ?></label>
684
 
685
  <div class="wpuf-form-sub-fields">
686
  <input type="text" class="smallipopInput" title="Title of the section" name="<?php echo $title_name; ?>" value="<?php echo esc_attr( $title_value ); ?>" />
687
 
688
  <div class="description" style="margin-top: 8px;">
689
- <?php printf( __( "Insert your public key and private key in <a href='%s'>plugin settings</a>. <a href='%s' target='_blank'>Register</a> first if you don't have any keys.", 'wpuf' ), admin_url( 'admin.php?page=wpuf-settings' ), 'https://www.google.com/recaptcha/' ); ?>
690
  </div>
691
  </div> <!-- .wpuf-form-rows -->
692
  </div>
693
 
694
  <div class="wpuf-form-rows">
695
- <label><?php _e( 'reCaptcha type', 'wpuf' ); ?></label>
696
 
697
  <div class="wpuf-form-sub-fields">
698
  <input type="radio" class="smallipopInput" title="reCaptcha type" name="<?php echo $recaptcha_type_name; ?>" value="invisible_recaptcha" <?php echo $recaptcha_type_value == 'invisible_recaptcha' ? 'checked':''; ?> />
699
- <?php _e( 'Enable Invisible reCaptcha', 'wpuf' );?>
700
  </div> <!-- .wpuf-form-rows -->
701
  <div class="wpuf-form-sub-fields">
702
  <input type="radio" class="smallipopInput" title="reCaptcha type" name="<?php echo $recaptcha_type_name; ?>" value="enable_no_captcha" <?php echo $recaptcha_type_value == 'enable_no_captcha' ? 'checked':''; ?> />
703
- <?php _e( 'Enable noCaptcha', 'wpuf' );?>
704
  </div> <!-- .wpuf-form-rows -->
705
  </div>
706
 
22
  $field_label = $values ? ': <strong>' . $values['label'] . '</strong>' : '';
23
  $id = isset( $values['id'] ) ? $values['id'] : '';
24
  ?>
25
+ <div class="wpuf-legend" title="<?php _e( 'Click and Drag to rearrange', 'wp-user-frontend' ); ?>">
26
  <input type="hidden" value="<?php echo $id; ?>" name="wpuf_input[<?php echo $field_id; ?>][id]">
27
  <div class="wpuf-label"><?php echo $title . $field_label; ?></div>
28
  <div class="wpuf-actions">
29
+ <a href="#" class="wpuf-remove"><?php _e( 'Remove', 'wp-user-frontend' ); ?></a>
30
+ <a href="#" class="wpuf-toggle"><?php _e( 'Toggle', 'wp-user-frontend' ); ?></a>
31
  </div>
32
  </div> <!-- .wpuf-legend -->
33
  <?php
64
  }
65
  ?>
66
  <div class="wpuf-form-rows required-field">
67
+ <label><?php _e( 'Required', 'wp-user-frontend' ); ?></label>
68
 
69
  <div class="wpuf-form-sub-fields">
70
+ <label><input type="radio" name="<?php echo $required_name; ?>" value="yes"<?php checked( $required, 'yes' ); ?>> <?php _e( 'Yes', 'wp-user-frontend' ); ?> </label>
71
+ <label><input type="radio" name="<?php echo $required_name; ?>" value="no"<?php checked( $required, 'no' ); ?>> <?php _e( 'No', 'wp-user-frontend' ); ?> </label>
72
  </div>
73
  </div> <!-- .wpuf-form-rows -->
74
 
75
  <div class="wpuf-form-rows">
76
+ <label><?php _e( 'Field Label', 'wp-user-frontend' ); ?></label>
77
+ <input type="text" data-type="label" name="<?php echo $label_name; ?>" value="<?php echo $label_value; ?>" class="smallipopInput" title="<?php _e( 'Enter a title of this field', 'wp-user-frontend' ); ?>">
78
  </div> <!-- .wpuf-form-rows -->
79
 
80
  <?php if ( $custom_field ) { ?>
81
  <div class="wpuf-form-rows">
82
+ <label><?php _e( 'Meta Key', 'wp-user-frontend' ); ?></label>
83
+ <input type="text" data-type="name" name="<?php echo $field_name; ?>" value="<?php echo $field_name_value; ?>" class="smallipopInput" title="<?php _e( 'Name of the meta key this field will save to', 'wp-user-frontend' ); ?>">
84
  <input type="hidden" name="<?php echo $is_meta_name; ?>" value="yes">
85
  </div> <!-- .wpuf-form-rows -->
86
  <?php } else { ?>
91
  <?php } ?>
92
 
93
  <div class="wpuf-form-rows">
94
+ <label><?php _e( 'Help text', 'wp-user-frontend' ); ?></label>
95
+ <textarea name="<?php echo $help_name; ?>" class="smallipopInput" title="<?php _e( 'Give the user some information about this field', 'wp-user-frontend' ); ?>"><?php echo $help_value; ?></textarea>
96
  </div> <!-- .wpuf-form-rows -->
97
 
98
  <div class="wpuf-form-rows">
99
+ <label><?php _e( 'CSS Class Name', 'wp-user-frontend' ); ?></label>
100
+ <input type="text" name="<?php echo $css_name; ?>" value="<?php echo $css_value; ?>" class="smallipopInput" title="<?php _e( 'Add a CSS class name for this field', 'wp-user-frontend' ); ?>">
101
  </div> <!-- .wpuf-form-rows -->
102
 
103
  <?php
123
 
124
  ?>
125
  <div class="wpuf-form-rows">
126
+ <label><?php _e( 'Placeholder text', 'wp-user-frontend' ); ?></label>
127
+ <input type="text" class="smallipopInput" name="<?php echo $placeholder_name; ?>" title="<?php esc_attr_e( 'Text for HTML5 placeholder attribute', 'wp-user-frontend' ); ?>" value="<?php echo $placeholder_value; ?>" />
128
  </div> <!-- .wpuf-form-rows -->
129
 
130
  <div class="wpuf-form-rows">
131
+ <label><?php _e( 'Default value', 'wp-user-frontend' ); ?></label>
132
+ <input type="text" class="smallipopInput" name="<?php echo $default_name; ?>" title="<?php esc_attr_e( 'The default value this field will have', 'wp-user-frontend' ); ?>" value="<?php echo $default_value; ?>" />
133
  </div> <!-- .wpuf-form-rows -->
134
 
135
  <div class="wpuf-form-rows">
136
+ <label><?php _e( 'Size', 'wp-user-frontend' ); ?></label>
137
+ <input type="text" class="smallipopInput" name="<?php echo $size_name; ?>" title="<?php esc_attr_e( 'Size of this input field', 'wp-user-frontend' ); ?>" value="<?php echo $size_value; ?>" />
138
  </div> <!-- .wpuf-form-rows -->
139
 
140
  <div class="wpuf-form-rows">
141
+ <label><?php _e( 'Word Restriction', 'wp-user-frontend' ); ?></label>
142
 
143
  <div class="wpuf-form-sub-fields">
144
  <label>
145
+ <input type="text" class="smallipopInput" name="<?php echo $word_restriction_name ?>" value="<?php echo $word_restriction_value; ?>" title="<?php esc_attr_e( 'Numebr of words the author to be restricted in', 'wp-user-frontend' ); ?>" />
146
  </label>
147
  </div>
148
  </div> <!-- .wpuf-form-rows -->
173
 
174
  ?>
175
  <div class="wpuf-form-rows">
176
+ <label><?php _e( 'Rows', 'wp-user-frontend' ); ?></label>
177
  <input type="text" class="smallipopInput" name="<?php echo $rows_name; ?>" title="Number of rows in textarea" value="<?php echo $rows_value; ?>" />
178
  </div> <!-- .wpuf-form-rows -->
179
 
180
  <div class="wpuf-form-rows">
181
+ <label><?php _e( 'Columns', 'wp-user-frontend' ); ?></label>
182
  <input type="text" class="smallipopInput" name="<?php echo $cols_name; ?>" title="Number of columns in textarea" value="<?php echo $cols_value; ?>" />
183
  </div> <!-- .wpuf-form-rows -->
184
 
185
  <div class="wpuf-form-rows">
186
+ <label><?php _e( 'Placeholder text', 'wp-user-frontend' ); ?></label>
187
  <input type="text" class="smallipopInput" name="<?php echo $placeholder_name; ?>" title="text for HTML5 placeholder attribute" value="<?php echo $placeholder_value; ?>" />
188
  </div> <!-- .wpuf-form-rows -->
189
 
190
  <div class="wpuf-form-rows">
191
+ <label><?php _e( 'Default value', 'wp-user-frontend' ); ?></label>
192
  <input type="text" class="smallipopInput" name="<?php echo $default_name; ?>" title="the default value this field will have" value="<?php echo $default_value; ?>" />
193
  </div> <!-- .wpuf-form-rows -->
194
 
195
  <div class="wpuf-form-rows">
196
+ <label><?php _e( 'Textarea', 'wp-user-frontend' ); ?></label>
197
 
198
  <div class="wpuf-form-sub-fields">
199
+ <label><input type="radio" name="<?php echo $rich_name; ?>" value="no"<?php checked( $rich_value, 'no' ); ?>> <?php _e( 'Normal', 'wp-user-frontend' ); ?></label>
200
+ <label><input type="radio" name="<?php echo $rich_name; ?>" value="yes"<?php checked( $rich_value, 'yes' ); ?>> <?php _e( 'Rich textarea', 'wp-user-frontend' ); ?></label>
201
+ <label><input type="radio" name="<?php echo $rich_name; ?>" value="teeny"<?php checked( $rich_value, 'teeny' ); ?>> <?php _e( 'Teeny Rich textarea', 'wp-user-frontend' ); ?></label>
202
  </div>
203
  </div> <!-- .wpuf-form-rows -->
204
 
205
  <div class="wpuf-form-rows">
206
+ <label><?php _e( 'Word Restriction', 'wp-user-frontend' ); ?></label>
207
 
208
  <div class="wpuf-form-sub-fields">
209
  <label>
210
+ <input type="text" class="smallipopInput" name="<?php echo $word_restriction_name ?>" value="<?php echo $word_restriction_value; ?>" title="<?php esc_attr_e( 'Numebr of words the author to be restricted in', 'wp-user-frontend' ); ?>" />
211
  </label>
212
  </div>
213
  </div> <!-- .wpuf-form-rows -->
241
  ?>
242
 
243
  <label for="wpuf-<?php echo $name.'_'.$field_id; ?>" class="wpuf-show-field-value">
244
+ <input type="checkbox" class="wpuf-value-handelar" id="wpuf-<?php echo $name . '_' . $field_id; ?>"><?php _e( 'Show values', 'wp-user-frontend' ); ?>
245
  </label>
246
 
247
+ <div class="wpuf-option-label-value"><span><?php _e( 'Label', 'wp-user-frontend' ); ?></span><span class="wpuf-option-value" style="display: none;"><?php _e( 'Value', 'wp-user-frontend' ); ?></span></div>
248
  <?php
249
  if ( $values && $values['options'] > 0 ) {
250
  foreach ($values['options'] as $key => $value) {
301
  margin-right: 27%;
302
  }
303
  </style>
304
+ <input type="checkbox" class="wpuf-value-handelar" id="<?php echo $name.'_'.$field_id; ?>"><label for="<?php echo $name.'_'.$field_id; ?>"><?php _e('show values', 'wp-user-frontend'); ?></label>
305
+ <div class="wpuf-option-label-value"><span><?php _e( 'Label', 'wp-user-frontend' ); ?></span><span class="wpuf-option-value" style="display: none;"><?php _e( 'Value', 'wp-user-frontend' ); ?></span></div>
306
  <?php
307
  if ( $values && $values['options'] > 0 ) {
308
  foreach ($values['options'] as $key => $value) {
395
  <?php self::common( $field_id, '', true, $values ); ?>
396
 
397
  <div class="wpuf-form-rows">
398
+ <label><?php _e( 'Options', 'wp-user-frontend' ); ?></label>
399
 
400
  <div class="wpuf-form-sub-fields wpuf-options">
401
  <?php self::radio_fields( $field_id, 'options', $values ); ?>
419
  <?php self::common( $field_id, '', true, $values ); ?>
420
 
421
  <div class="wpuf-form-rows">
422
+ <label><?php _e( 'Options', 'wp-user-frontend' ); ?></label>
423
 
424
  <div class="wpuf-form-sub-fields wpuf-options">
425
  <?php self::common_checkbox( $field_id, 'options', $values ); ?>
435
  public static function dropdown_field( $field_id, $label, $values = array() ) {
436
  $first_name = sprintf( '%s[%d][first]', self::$input_name, $field_id );
437
  $first_value = $values ? $values['first'] : ' - select -';
438
+ $help = esc_attr( __( 'First element of the select dropdown. Leave this empty if you don\'t want to show this field', 'wp-user-frontend' ) );
439
  ?>
440
  <li class="custom-field dropdown_field wpuf-conditional">
441
  <?php self::legend( $label, $values, $field_id ); ?>
446
  <?php self::common( $field_id, '', true, $values ); ?>
447
 
448
  <div class="wpuf-form-rows">
449
+ <label><?php _e( 'Select Text', 'wp-user-frontend' ); ?></label>
450
  <input type="text" class="smallipopInput" name="<?php echo $first_name; ?>" value="<?php echo $first_value; ?>" title="<?php echo $help; ?>">
451
  </div> <!-- .wpuf-form-rows -->
452
 
453
  <div class="wpuf-form-rows">
454
+ <label><?php _e( 'Options', 'wp-user-frontend' ); ?></label>
455
 
456
  <div class="wpuf-form-sub-fields wpuf-options">
457
  <?php self::radio_fields( $field_id, 'options', $values ); ?>
467
  public static function multiple_select( $field_id, $label, $values = array() ) {
468
  $first_name = sprintf( '%s[%d][first]', self::$input_name, $field_id );
469
  $first_value = $values ? $values['first'] : ' - select -';
470
+ $help = esc_attr( __( 'First element of the select dropdown. Leave this empty if you don\'t want to show this field', 'wp-user-frontend' ) );
471
  ?>
472
  <li class="custom-field multiple_select">
473
  <?php self::legend( $label, $values, $field_id ); ?>
478
  <?php self::common( $field_id, '', true, $values ); ?>
479
 
480
  <div class="wpuf-form-rows">
481
+ <label><?php _e( 'Select Text', 'wp-user-frontend' ); ?></label>
482
  <input type="text" class="smallipopInput" name="<?php echo $first_name; ?>" value="<?php echo $first_value; ?>" title="<?php echo $help; ?>">
483
  </div> <!-- .wpuf-form-rows -->
484
 
485
  <div class="wpuf-form-rows">
486
+ <label><?php _e( 'Options', 'wp-user-frontend' ); ?></label>
487
 
488
  <div class="wpuf-form-sub-fields wpuf-options">
489
  <?php self::radio_fields( $field_id, 'options', $values ); ?>
541
 
542
  <div class="wpuf-form-holder">
543
  <div class="wpuf-form-rows">
544
+ <label><?php _e( 'Title', 'wp-user-frontend' ); ?></label>
545
  <input type="text" class="smallipopInput" title="Title of the section" name="<?php echo $title_name; ?>" value="<?php echo esc_attr( $title_value ); ?>" />
546
  </div> <!-- .wpuf-form-rows -->
547
 
548
  <div class="wpuf-form-rows">
549
+ <label><?php _e( 'HTML Codes', 'wp-user-frontend' ); ?></label>
550
  <textarea class="smallipopInput" title="Paste your HTML codes, WordPress shortcodes will also work here" name="<?php echo $html_name; ?>" rows="10"><?php echo esc_html( $html_value ); ?></textarea>
551
  </div>
552
 
572
 
573
  <div class="wpuf-form-holder">
574
  <div class="wpuf-form-rows">
575
+ <label><?php _e( 'Meta Key', 'wp-user-frontend' ); ?></label>
576
+ <input type="text" name="<?php echo $meta_name; ?>" value="<?php echo $meta_value; ?>" class="smallipopInput" title="<?php _e( 'Name of the meta key this field will save to', 'wp-user-frontend' ); ?>">
577
  <input type="hidden" name="<?php echo $is_meta_name; ?>" value="yes">
578
  <input type="hidden" name="<?php echo $label_name; ?>" value="">
579
  </div> <!-- .wpuf-form-rows -->
580
 
581
  <div class="wpuf-form-rows">
582
+ <label><?php _e( 'Meta Value', 'wp-user-frontend' ); ?></label>
583
+ <input type="text" class="smallipopInput" title="<?php esc_attr_e( 'Enter the meta value', 'wp-user-frontend' ); ?>" name="<?php echo $value_name; ?>" value="<?php echo $value_value; ?>">
584
  </div>
585
  </div> <!-- .wpuf-form-holder -->
586
  </li>
601
 
602
  <div class="wpuf-form-holder">
603
  <div class="wpuf-form-rows">
604
+ <label><?php _e( 'Title', 'wp-user-frontend' ); ?></label>
605
  <input type="text" class="smallipopInput" title="Title of the section" name="<?php echo $title_name; ?>" value="<?php echo esc_attr( $title_value ); ?>" />
606
  </div> <!-- .wpuf-form-rows -->
607
 
608
  <div class="wpuf-form-rows">
609
+ <label><?php _e( 'Description', 'wp-user-frontend' ); ?></label>
610
  <textarea class="smallipopInput" title="Some details text about the section" name="<?php echo $description_name; ?>" rows="3"><?php echo esc_html( $description_value ); ?></textarea>
611
  </div> <!-- .wpuf-form-rows -->
612
 
631
  $max_size_value = $values ? $values['max_size'] : '1024';
632
  $max_files_value = $values ? $values['count'] : '1';
633
 
634
+ $help = esc_attr( __( 'Enter maximum upload size limit in KB', 'wp-user-frontend' ) );
635
+ $count = esc_attr( __( 'Number of images can be uploaded', 'wp-user-frontend' ) );
636
  ?>
637
  <li class="custom-field image_upload">
638
  <?php self::legend( $label, $values, $field_id ); ?>
643
  <?php self::common( $field_id, '', true, $values ); ?>
644
 
645
  <div class="wpuf-form-rows">
646
+ <label><?php _e( 'Max. file size', 'wp-user-frontend' ); ?></label>
647
  <input type="text" class="smallipopInput" name="<?php echo $max_size_name; ?>" value="<?php echo $max_size_value; ?>" title="<?php echo $help; ?>">
648
  </div> <!-- .wpuf-form-rows -->
649
 
650
  <div class="wpuf-form-rows">
651
+ <label><?php _e( 'Max. files', 'wp-user-frontend' ); ?></label>
652
  <input type="text" class="smallipopInput" name="<?php echo $max_files_name; ?>" value="<?php echo $max_files_value; ?>" title="<?php echo $count; ?>">
653
  </div> <!-- .wpuf-form-rows -->
654
 
680
 
681
  <div class="wpuf-form-holder">
682
  <div class="wpuf-form-rows">
683
+ <label><?php _e( 'Title', 'wp-user-frontend' ); ?></label>
684
 
685
  <div class="wpuf-form-sub-fields">
686
  <input type="text" class="smallipopInput" title="Title of the section" name="<?php echo $title_name; ?>" value="<?php echo esc_attr( $title_value ); ?>" />
687
 
688
  <div class="description" style="margin-top: 8px;">
689
+ <?php printf( __( "Insert your public key and private key in <a href='%s'>plugin settings</a>. <a href='%s' target='_blank'>Register</a> first if you don't have any keys.", 'wp-user-frontend' ), admin_url( 'admin.php?page=wpuf-settings' ), 'https://www.google.com/recaptcha/' ); ?>
690
  </div>
691
  </div> <!-- .wpuf-form-rows -->
692
  </div>
693
 
694
  <div class="wpuf-form-rows">
695
+ <label><?php _e( 'reCaptcha type', 'wp-user-frontend' ); ?></label>
696
 
697
  <div class="wpuf-form-sub-fields">
698
  <input type="radio" class="smallipopInput" title="reCaptcha type" name="<?php echo $recaptcha_type_name; ?>" value="invisible_recaptcha" <?php echo $recaptcha_type_value == 'invisible_recaptcha' ? 'checked':''; ?> />
699
+ <?php _e( 'Enable Invisible reCaptcha', 'wp-user-frontend' );?>
700
  </div> <!-- .wpuf-form-rows -->
701
  <div class="wpuf-form-sub-fields">
702
  <input type="radio" class="smallipopInput" title="reCaptcha type" name="<?php echo $recaptcha_type_name; ?>" value="enable_no_captcha" <?php echo $recaptcha_type_value == 'enable_no_captcha' ? 'checked':''; ?> />
703
+ <?php _e( 'Enable noCaptcha', 'wp-user-frontend' );?>
704
  </div> <!-- .wpuf-form-rows -->
705
  </div>
706
 
admin/tools.php CHANGED
@@ -10,9 +10,9 @@ $tools = new WPUF_Admin_Tools();
10
 
11
  <div class="wrap">
12
  <h2 class="nav-tab-wrapper">
13
- <a class="nav-tab <?php echo ( $tab == 'tools' ) ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array( 'page' => 'wpuf_tools', 'tab' => 'tools' ), admin_url( 'admin.php' ) ); ?>"><?php _e( 'Tools', 'wpuf' ); ?></a>
14
- <a class="nav-tab <?php echo ( $tab == 'import' ) ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array( 'page' => 'wpuf_tools', 'tab' => 'import' ), admin_url( 'admin.php' ) ); ?>"><?php _e( 'Import', 'wpuf' ); ?></a>
15
- <a class="nav-tab <?php echo ( $tab == 'export' ) ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array( 'page' => 'wpuf_tools', 'tab' => 'export' ), admin_url( 'admin.php' ) ); ?>"><?php _e( 'Export', 'wpuf' ); ?></a>
16
  </h2>
17
 
18
  <?php
10
 
11
  <div class="wrap">
12
  <h2 class="nav-tab-wrapper">
13
+ <a class="nav-tab <?php echo ( $tab == 'tools' ) ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array( 'page' => 'wpuf_tools', 'tab' => 'tools' ), admin_url( 'admin.php' ) ); ?>"><?php _e( 'Tools', 'wp-user-frontend' ); ?></a>
14
+ <a class="nav-tab <?php echo ( $tab == 'import' ) ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array( 'page' => 'wpuf_tools', 'tab' => 'import' ), admin_url( 'admin.php' ) ); ?>"><?php _e( 'Import', 'wp-user-frontend' ); ?></a>
15
+ <a class="nav-tab <?php echo ( $tab == 'export' ) ? 'nav-tab-active' : ''; ?>" href="<?php echo add_query_arg( array( 'page' => 'wpuf_tools', 'tab' => 'export' ), admin_url( 'admin.php' ) ); ?>"><?php _e( 'Export', 'wp-user-frontend' ); ?></a>
16
  </h2>
17
 
18
  <?php
admin/transactions.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="wrap">
2
- <h2><?php _e( 'Transactions', 'wpuf' ); ?></h2>
3
 
4
  <?php
5
  global $wpdb;
1
  <div class="wrap">
2
+ <h2><?php _e( 'Transactions', 'wp-user-frontend' ); ?></h2>
3
 
4
  <?php
5
  global $wpdb;
admin/weforms.php CHANGED
@@ -1,15 +1,15 @@
1
  <div class="wrap about-wrap">
2
- <h1><?php _e( 'weForms', 'wpuf' ); ?></h1>
3
 
4
- <p class="about-text"><?php _e( 'The Easiest &amp; Fastest Contact Form Plugin on WordPress', 'wpuf' ) ?></p>
5
 
6
  <hr>
7
- <p><?php _e( 'Quickly create rich contact forms to generate leads, taking feedbacks, onboarding visitors and flourishing <br /> your imagination! Comes with the best frontend post submission plugin for WordPress, WP User Frontend.', 'wpuf' ) ?>
8
 
9
 
10
  <div class="install" id="wpuf-weforms-installer-notice" style="padding: 1em 0; position: relative;">
11
  <p>
12
- <button id="wpuf-weforms-installer" class="button button-primary"><?php _e( 'Install Now', 'wpuf' ); ?></button>
13
  </p>
14
  </div>
15
 
1
  <div class="wrap about-wrap">
2
+ <h1><?php _e( 'weForms', 'wp-user-frontend' ); ?></h1>
3
 
4
+ <p class="about-text"><?php _e( 'The Easiest &amp; Fastest Contact Form Plugin on WordPress', 'wp-user-frontend' ) ?></p>
5
 
6
  <hr>
7
+ <p><?php _e( 'Quickly create rich contact forms to generate leads, taking feedbacks, onboarding visitors and flourishing <br /> your imagination! Comes with the best frontend post submission plugin for WordPress, WP User Frontend.', 'wp-user-frontend' ) ?>
8
 
9
 
10
  <div class="install" id="wpuf-weforms-installer-notice" style="padding: 1em 0; position: relative;">
11
  <p>
12
+ <button id="wpuf-weforms-installer" class="button button-primary"><?php _e( 'Install Now', 'wp-user-frontend' ); ?></button>
13
  </p>
14
  </div>
15
 
assets/css/admin.css CHANGED
File without changes
assets/css/frontend-forms.css CHANGED
@@ -327,6 +327,7 @@ ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li {
327
  border: 1px solid #eee;
328
  padding: 5px;
329
  width: 150px;
 
330
  margin-right: 5px;
331
  -webkit-border-radius: 5px;
332
  -moz-border-radius: 5px;
@@ -620,7 +621,6 @@ ul.wpuf-form:not(.form-label-left) .wpuf-submit .wpuf-label {
620
  border-bottom: 1px solid #eee;
621
  }
622
  .wpuf-coupon-info-wrap .wpuf-pack-info h3 a {
623
- float: right;
624
  text-decoration: none;
625
  background: #64C3DE;
626
  color: #fff;
@@ -1285,7 +1285,6 @@ table#wpuf-address-country-state td {
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 {
@@ -1303,3 +1302,14 @@ li.wpuf-image-wrap.thumbnail .caption {
1303
  li.wpuf-image-wrap.thumbnail:hover .caption {
1304
  display: block;
1305
  }
 
 
 
 
 
 
 
 
 
 
 
327
  border: 1px solid #eee;
328
  padding: 5px;
329
  width: 150px;
330
+ height: 150px;
331
  margin-right: 5px;
332
  -webkit-border-radius: 5px;
333
  -moz-border-radius: 5px;
621
  border-bottom: 1px solid #eee;
622
  }
623
  .wpuf-coupon-info-wrap .wpuf-pack-info h3 a {
 
624
  text-decoration: none;
625
  background: #64C3DE;
626
  color: #fff;
1285
  .wpuf-image-wrap :not(.attachment-name img) {
1286
  position: absolute;
1287
  width: 100%;
 
1288
  transition: .3s;
1289
  }
1290
  li.wpuf-image-wrap.thumbnail {
1302
  li.wpuf-image-wrap.thumbnail:hover .caption {
1303
  display: block;
1304
  }
1305
+ @media (min-width: 480px) {
1306
+ .row {
1307
+ width: 100%;
1308
+ display: table;
1309
+ table-layout: auto;
1310
+ }
1311
+ .col {
1312
+ width: 50%;
1313
+ display: table-cell;
1314
+ }
1315
+ }
assets/css/wpuf-form-builder.css CHANGED
@@ -593,7 +593,7 @@
593
  }
594
  .wpuf-form-builder-field-options .option-field-section-fields {
595
  margin-top: 15px;
596
- max-height: 150vh;
597
  opacity: 1;
598
  }
599
  .wpuf-form-builder-field-options .panel-field-opt {
593
  }
594
  .wpuf-form-builder-field-options .option-field-section-fields {
595
  margin-top: 15px;
596
+ height: auto;
597
  opacity: 1;
598
  }
599
  .wpuf-form-builder-field-options .panel-field-opt {
assets/images/completed.png CHANGED
File without changes
assets/images/help/bugs.svg CHANGED
File without changes
assets/images/help/customization.svg CHANGED
File without changes
assets/images/help/docs.svg CHANGED
File without changes
assets/images/help/like.svg CHANGED
File without changes
assets/images/help/support.svg CHANGED
File without changes
assets/images/icon-128x128.png CHANGED
File without changes
assets/images/processing.png CHANGED
File without changes
assets/js/billing-address.js CHANGED
@@ -1,5 +1,9 @@
1
  jQuery(function($){
2
 
 
 
 
 
3
  $('#wpuf-ajax-address-form').submit(function (e) {
4
  e.preventDefault();
5
  $.post(ajax_object.ajaxurl, {
@@ -32,6 +36,23 @@ jQuery(function($){
32
  });
33
 
34
  var ajax_tax_count = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  function wpuf_calculate_tax() {
36
 
37
  var $wpuf_cc_address = jQuery('#wpuf-address-country-state');
1
  jQuery(function($){
2
 
3
+ $('#wpuf-payment-gateway').submit(function (e) {
4
+ wpuf_validate_address(e);
5
+ });
6
+
7
  $('#wpuf-ajax-address-form').submit(function (e) {
8
  e.preventDefault();
9
  $.post(ajax_object.ajaxurl, {
36
  });
37
 
38
  var ajax_tax_count = 0;
39
+
40
+ function wpuf_validate_address(e) {
41
+ var country = $("td.bill_required").find('.wpuf_biiling_country, .input');
42
+ var state = $("td.bill_required").find('.wpuf_biiling_state, .input');
43
+ var add_1 = $("#wpuf_biiling_add_line_1");
44
+ var add_2 = $("#wpuf_biiling_add_line_2");
45
+ var city = $("#wpuf_biiling_city");
46
+ var zip = $("#wpuf_biiling_zip_code");
47
+
48
+ if ( ( country.val() === '' || state.val() === '' ) || ( add_1.hasClass('bill_required') && add_1.val() === "" ) ||
49
+ ( add_1.hasClass('bill_required') && add_1.val() === "" ) || ( add_2.hasClass('bill_required') && add_2.val() === "" ) ||
50
+ ( city.hasClass('bill_required') && city.val() === "" ) || ( zip.hasClass('bill_required') && zip.val() === "" ) ) {
51
+ alert( ajax_object.fill_notice );
52
+ e.preventDefault();
53
+ }
54
+ }
55
+
56
  function wpuf_calculate_tax() {
57
 
58
  var $wpuf_cc_address = jQuery('#wpuf-address-country-state');
assets/js/subscriptions.js CHANGED
@@ -31,7 +31,7 @@
31
  },
32
 
33
  packAlert : function () {
34
- alert( 'Please Cancel Your Currently Active Pack first ! ' );
35
  },
36
 
37
  showPackDropdown: function(e) {
@@ -291,4 +291,4 @@
291
 
292
  subscription.init();
293
 
294
- })(jQuery);
31
  },
32
 
33
  packAlert : function () {
34
+ alert( wpuf_subscription.pack_notice );
35
  },
36
 
37
  showPackDropdown: function(e) {
291
 
292
  subscription.init();
293
 
294
+ })(jQuery);
assets/js/upload.js CHANGED
@@ -9,7 +9,7 @@
9
  * @param string {type}
10
  */
11
  window.WPUF_Uploader = function (browse_button, container, max, type, allowed_type, max_file_size) {
12
- this.removed_files = [],
13
  this.container = container;
14
  this.browse_button = browse_button;
15
  this.max = max || 1;
@@ -170,12 +170,14 @@
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
 
9
  * @param string {type}
10
  */
11
  window.WPUF_Uploader = function (browse_button, container, max, type, allowed_type, max_file_size) {
12
+ this.removed_files = [];
13
  this.container = container;
14
  this.browse_button = browse_button;
15
  this.max = max || 1;
170
  this.count -= 1;
171
  this.showHide();
172
  }
173
+
174
  var uploaded = this.perFileCount;
175
  var FileProgress = up.files.length;
176
+ var imageCount = $('ul.wpuf-attachment-list li').length;
177
 
178
+ if ( FileProgress === uploaded || imageCount >= this.max ) {
179
+ $(".wpuf-submit-button").removeAttr("disabled");
180
+ $('#' + this.container).find('.file-selector').hide();
181
  }
182
  },
183
 
assets/less/admin.less DELETED
@@ -1,661 +0,0 @@
1
- .wpuf-admin {
2
-
3
- fieldset {
4
- border: 1px solid #E3E3E3;
5
- margin: 20px 0 0px 0;
6
- padding-bottom: 20px;
7
- -moz-border-radius: 5px;
8
- -webkit-border-radius: 5px;
9
- background: #fff;
10
- -moz-box-shadow: inset 0 0 5px #ccc;
11
- -webkit-box-shadow: inset 0 0 5px #ccc;
12
- box-shadow: inset 0 0 5px #ccc;
13
- }
14
-
15
- legend {
16
- -moz-border-radius: 5px 5px 5px 5px;
17
- -webkit-border-radius: 5px;
18
- background: #FFFFFF;
19
- border: 1px solid #E3E3E3;
20
- color: #2481C6;
21
- font-size: 15px;
22
- font-weight: bold;
23
- margin-left: 20px;
24
- padding: 5px 10px;
25
- text-transform: capitalize;
26
- -moz-box-shadow: inset 0 0 5px #ccc;
27
- -webkit-box-shadow: inset 0 0 5px #ccc;
28
- box-shadow: inset 0 0 5px #ccc;
29
- }
30
-
31
- .widefat {
32
- td {
33
- padding: 7px 12px;
34
- vertical-align: top;
35
- }
36
- }
37
-
38
- .meta {
39
- td {
40
- &.label {
41
- width: 140px;
42
- font-size: 12px;
43
- }
44
- }
45
- .description {
46
- font-size: 11px;
47
- }
48
- }
49
-
50
- td {
51
- &.label {
52
- font-size: 12px;
53
- }
54
- }
55
-
56
- .options {
57
- td {
58
- &:nth-child(odd) {
59
- background-color: F9F9F9;
60
- }
61
- }
62
- }
63
-
64
- .nav-tab {
65
- font-size: 15px;
66
- margin: 0 0px -1px 0;
67
- }
68
- }
69
-
70
- .wpuf_admin {
71
-
72
- ul {
73
- margin: 10px;
74
- }
75
-
76
- li {
77
- padding: 0 0 10px;
78
- margin: 0 0 10px;
79
- border-bottom: 1px solid #E7E7E7;
80
- line-height: 20px;
81
-
82
- &:last-child {
83
- border-bottom: none;
84
- }
85
- }
86
-
87
- span {
88
- &.label {
89
- float: left;
90
- height: 20px;
91
- line-height: 20px;
92
- width: 200px;
93
- }
94
- }
95
- }
96
-
97
- span {
98
- &.wpuf_help {
99
- height: 16px;
100
- width: 16px;
101
- background: url('../images/help.png') no-repeat;
102
- cursor: pointer;
103
- float: right;
104
- display: none;
105
- }
106
- }
107
-
108
- #option-saved {
109
- -moz-border-radius: 5px 5px 5px 5px;
110
- background: none repeat scroll 0 0 orange;
111
- border: 1px solid #CCCCCC;
112
- color: #FFFFFF;
113
- display: none;
114
- font-size: 30px;
115
- padding: 50px;
116
- position: absolute;
117
- left: 50%;
118
- z-index: 99;
119
- -moz-box-shadow: 0 0 8px rgba(82,168,236,.5);
120
- -webkit-box-shadow: 0 0 8px rgba(82,168,236,.5);
121
- }
122
-
123
- .wpuf_loading {
124
- height: 16px;
125
- width: 16px;
126
- background: url('../images/wpspin_light.gif') no-repeat;
127
- padding: 0 0 0 20px;
128
- margin-bottom: 10px;
129
- }
130
-
131
- .wpuf-status-completed {
132
- background: url(../images/completed.png);
133
- background-size: cover;
134
- width: 18px;
135
- height: 18px;
136
- display: block;
137
- }
138
-
139
- .wpuf-status-processing {
140
- background: url(../images/processing.png);
141
- background-size: cover;
142
- width: 18px;
143
- height: 18px;
144
- display: block;
145
- }
146
-
147
- .wpuf-footer-help {
148
- box-sizing: border-box;
149
- width: auto;
150
- margin: 2rem 0.8rem;
151
- text-align: center;
152
- .wpuf-footer-help-content {
153
- border: 1px solid #ddd;
154
- border-radius: 30px;
155
- padding: 15px 25px;
156
- font-size: 15px;
157
- }
158
- }
159
-
160
- .wpuf-footer-help-content {
161
- .dashicons {
162
- color: #47c1bf;
163
- font-size: 30px;
164
- height: 30px;
165
- width: 30px;
166
- margin-top: -5px;
167
- }
168
- }
169
-
170
- .wpuf-settings-wrap {
171
- display: flex;
172
- background: #fff;
173
- box-shadow: 0 0 0 1px #c8d7e1, 0 1px 2px #e9eff3;
174
-
175
- h2.nav-tab-wrapper {
176
- flex: 1;
177
- border-bottom: none;
178
- padding: 0;
179
- background-color: #f1f1f1;
180
- border-right: 1px solid #c8d7e1;
181
-
182
- a.nav-tab {
183
- float: none;
184
- display: block;
185
- margin: 0;
186
- border: none;
187
- padding: 14px;
188
- border-bottom: 1px solid #c8d7e1;
189
- font-weight: 500;
190
- font-size: 13px;
191
- border-right: 1px solid #c8d7e1;
192
- color: #444;
193
- text-decoration: none;
194
- margin-right: -1px;
195
- background-color: #f1f1f1;
196
-
197
- &.nav-tab-active {
198
- background: #fff;
199
- border-right: 1px solid #fff;
200
- }
201
-
202
- .dashicons {
203
- margin-right: 10px;
204
- }
205
-
206
- &#wpuf_general-tab .dashicons {
207
- color: #9b59b6;
208
- }
209
-
210
- &#wpuf_dashboard-tab .dashicons {
211
- color: #6c75ff;
212
- }
213
-
214
- &#wpuf_profile-tab .dashicons {
215
- color: #00aeff;
216
- }
217
-
218
- &#wpuf_frontend_posting-tab .dashicons {
219
- color: #AD1457;
220
- }
221
-
222
- &#wpuf_my_account-tab .dashicons {
223
- color: #64DD17;
224
- }
225
-
226
- &#wpuf_payment-tab .dashicons {
227
- color: #e67e22;
228
- }
229
-
230
- &#wpuf_mails-tab .dashicons {
231
- color: #115da7;
232
- }
233
-
234
- &#wpuf_sms-tab .dashicons {
235
- color: #00aeff;
236
- }
237
-
238
- &#wpuf_payment_invoices-tab .dashicons {
239
- color: #1abc9d;
240
- }
241
-
242
- &#user_directory-tab .dashicons {
243
- color: #e74c3c;
244
- }
245
- }
246
- }
247
-
248
- .metabox-holder {
249
- flex: 3;
250
- margin-left: 30px;
251
- margin-bottom: 30px;
252
-
253
- h2 {
254
- border-bottom: 1px solid #c8d7e1;
255
- padding-bottom: 15px;
256
- margin-top: 14px;
257
- }
258
-
259
- .form-table th {
260
- padding-left: 0;
261
- }
262
-
263
- p.submit {
264
- margin-left: -10px;
265
- border-top: 1px solid #f1f1f1;
266
- padding-top: 20px;
267
- text-align: right;
268
- padding-right: 34px;
269
-
270
- .button-primary {
271
- font-size: 15px;
272
- height: 45px;
273
- line-height: 100%;
274
- padding: 0px 20px;
275
- font-weight: normal;
276
- }
277
- }
278
- }
279
- }
280
-
281
- /**
282
- * Profile Edit Page
283
- */
284
- #profile-page {
285
-
286
- .wpuf-user-subscription {
287
- background-color: #fff;
288
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
289
- border: 1px solid #e5e5e5;
290
- margin-top: 15px;
291
-
292
- h3 {
293
- border-bottom: 1px solid #eee;
294
- padding: 12px 15px;
295
- font-size: 16px;
296
- margin: 0;
297
- }
298
-
299
- .wpuf-user-sub-info {
300
- // padding: 10px 15px;
301
- }
302
-
303
- .wpuf-pack-dropdown {
304
-
305
- th {
306
- padding-left: 15px;
307
- }
308
- }
309
-
310
- .wpuf-sub-actions {
311
- padding: 10px;
312
- border-top: 1px solid #ddd;
313
- background: #f5f5f5;
314
- overflow: hidden;
315
- display: block;
316
-
317
- .wpuf-delete-pack-btn {
318
- float: right;
319
- }
320
- }
321
-
322
- .wpuf-sub-summary {
323
- background: #f8f8f8;
324
- border-bottom: 1px solid #eee;
325
- margin-bottom: 10px;
326
- display: flex;
327
- flex-wrap: wrap;
328
-
329
- * {
330
- box-sizing: border-box;
331
- }
332
-
333
- .sub-name,
334
- .sub-price {
335
- width: 50%;
336
- padding: 10px 15px;
337
-
338
- span {
339
- display: block;
340
-
341
- &.label {
342
- font-weight: bold;
343
- }
344
- }
345
- }
346
-
347
- .sub-name {
348
- border-right: 1px solid #eee;
349
- }
350
-
351
- .info {
352
- flex-basis: 100%;
353
- padding: 0 15px;
354
- background: #fef5be;
355
- border-top: 1px solid #ffe98d;
356
- }
357
- }
358
-
359
- .wpuf-sub-section {
360
- padding: 0 15px;
361
- border-bottom: 1px solid #eee;
362
-
363
- h4 {
364
- font-size: 15px;
365
- }
366
-
367
- &:last-child {
368
- border-bottom: none;
369
- padding-bottom: 15px;
370
- }
371
- }
372
- }
373
-
374
- }
375
-
376
- .wpuf-premium {
377
-
378
- .wp-badge {
379
- background: #40ce65 url(../images/wpuf-pro.png) no-repeat;
380
- background-size: 100px 90px;
381
- background-position: 35px 5px;
382
- }
383
-
384
- .wpuf-upgrade-sticky-footer {
385
- position: fixed;
386
- bottom: 0;
387
- background: #fff;
388
- width: ~"calc(100% - 195px)";
389
- z-index: 9;
390
- margin-left: -25px;
391
- text-align: center;
392
- border: 1px solid #dfdfdf;
393
- padding: 20px 0 10px 0;
394
- border-bottom: none;
395
- display: flex;
396
- border-top: 3px solid #FF9800;
397
-
398
- .text-left {
399
- width: 70%;
400
-
401
- h3 {
402
- margin: 0;
403
- }
404
- }
405
-
406
- .text-right {
407
- width: 30%;
408
- padding-top: 15px;
409
-
410
- .button-primary {
411
- background: #00aadc;
412
- border-color: #0087be;
413
- text-shadow: none;
414
- padding: 5px 20px;
415
- height: auto;
416
- margin: 0.3125rem 0;
417
- font-size: 16px;
418
-
419
- &:hover {
420
- border-color: #005082;
421
- }
422
- }
423
- }
424
- }
425
-
426
- .four-col .col {
427
- -webkit-align-self: flex-start;
428
- -ms-flex-item-align: start;
429
- align-self: flex-start;
430
- min-width: 23%;
431
- max-width: 23%;
432
- }
433
-
434
- .feature-section {
435
-
436
- .feature-wrap {
437
- background-color: #fafafa;
438
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
439
- border: 1px solid #e5e5e5;
440
-
441
- .feature-details {
442
- padding: 0 20px 10px 20px;
443
-
444
- h3 a {
445
- text-decoration: none;
446
- }
447
-
448
- ul {
449
- -moz-column-count: 4;
450
- -moz-column-gap: 10px;
451
- -webkit-column-count: 4;
452
- -webkit-column-gap: 10px;
453
- column-count: 4;
454
- column-gap: 10px;
455
- padding: 0;
456
- margin: 0;
457
- font-size: 14px;
458
-
459
- li {
460
- padding-left: 1em;
461
- text-indent: -.7em;
462
- }
463
-
464
- li::before {
465
- content: "• ";
466
- color: red; /* or whatever color you prefer */
467
- }
468
- }
469
- }
470
-
471
- .feature-image {
472
- border-bottom: 1px solid #e5e5e5;
473
- margin-bottom: 15px;
474
-
475
- img {
476
- max-width: 100%;
477
- width: 100%;
478
- height: auto;
479
- margin-bottom: 0;
480
- }
481
- }
482
- }
483
- }
484
-
485
- .module-wrap {
486
- height: 122px;
487
- display: flex;
488
- flex-wrap: wrap;
489
- background-color: #fafafa;
490
- margin-bottom: 20px;
491
- box-shadow: 0 0 5px 0 #ccc;
492
-
493
- .module-image {
494
- width: 25%;
495
- margin-right: 4%;
496
-
497
- img {
498
- width: 100%;
499
- }
500
- }
501
-
502
- .module-details {
503
- margin: 0;
504
- width: 70%;
505
-
506
- h3 {
507
- margin: 10px 0 0 0;
508
-
509
- a {
510
- text-decoration: none;
511
- }
512
- }
513
- }
514
- }
515
- }
516
-
517
- #wpuf_mails{
518
- table{
519
- tbody{
520
- tr{
521
-
522
- &.hide{
523
- display: none;
524
- }
525
-
526
- &.heading{
527
- cursor: pointer;
528
- background-color: #f1f1f1;
529
- border: 1px solid #c8d7e1;
530
-
531
- label{
532
- font-size: 13px;
533
- color: #444;
534
- font-weight: 500;
535
-
536
- span{
537
- color: #0073aa;
538
- padding-right: 6px;
539
-
540
- &.dashicons-admin-generic{
541
- color: #9b59b6;
542
- }
543
-
544
- &.dashicons-universal-access-alt{
545
- color: #AD1457;
546
- }
547
-
548
- &.dashicons-unlock{
549
- color: #9b59b6;
550
- }
551
-
552
- &.dashicons-email-alt{
553
- color: #6c75ff;
554
- }
555
-
556
- &.dashicons-money{
557
- color: #64DD17;
558
- }
559
-
560
- &.dashicons-admin-users{
561
- color: #00aeff;
562
- }
563
-
564
- &.dashicons-groups{
565
- color: #e67e22;
566
- }
567
-
568
- &.dashicons-dismiss{
569
- color: #115da7;
570
- }
571
-
572
- &.dashicons-smiley{
573
- color: #e74c3c;
574
- }
575
- }
576
- }
577
-
578
- th{
579
- padding: 16px 10px 16px 30px;
580
- }
581
- }
582
-
583
- th{
584
- padding-left: 30px;
585
- }
586
-
587
- }
588
- }
589
-
590
- }
591
- }
592
-
593
- tr.wpuf-form-layouts{
594
- ul{
595
- margin: 0;
596
- overflow: hidden;
597
-
598
- li{
599
- margin: 0;
600
- padding: 0 15px 15px 0;
601
- position: relative;
602
- width: 50%;
603
- float: left;
604
-
605
- input[type="radio"]{
606
- display: none;
607
- }
608
-
609
- img{
610
- max-width: 100%;
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;
628
- right: 15px;
629
- width: 40px;
630
- height: 40px;
631
- font-family: dashicons;
632
- font-size: 40px;
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 DELETED
@@ -1,1538 +0,0 @@
1
- @borderColor: #eee;
2
- @mainColor: #64C3DE;
3
-
4
- /* DivTable.com */
5
- .wpufTable{
6
- display: table;
7
- width: 100%;
8
- }
9
- .wpufTableRow {
10
- display: table-row;
11
- }
12
- .wpufTableRow:nth-child(even) {
13
- background-color: #f5f5f5;
14
- }
15
- .wpufTableHeading {
16
- background-color: @borderColor;
17
- display: table-header-group;
18
- font-weight: bold;
19
- }
20
- .wpufTableCell, .wpufTableHead {
21
- border: none;
22
- display: table-cell;
23
- padding: 3px 10px;
24
- }
25
- .wpufTableFoot {
26
- background-color: @borderColor;
27
- display: table-footer-group;
28
- font-weight: bold;
29
- }
30
- .wpufTableBody {
31
- display: table-row-group;
32
- }
33
-
34
- .clearfix() {
35
- &:after {
36
- clear: both;
37
- content: "";
38
- display: table;
39
- }
40
- }
41
-
42
- .border-radius(@radius) {
43
- -webkit-border-radius: @radius;
44
- -moz-border-radius: @radius;
45
- border-radius: @radius;
46
- }
47
-
48
- .core-button() {
49
- background: #0085ba;
50
- border-color: #0073aa #006799 #006799;
51
- -webkit-box-shadow: 0 1px 0 #006799;
52
- box-shadow: 0 1px 0 #006799;
53
- color: #fff;
54
- text-decoration: none;
55
- text-shadow: 0 -1px 1px #006799,
56
- 1px 0 1px #006799,
57
- 0 1px 1px #006799,
58
- -1px 0 1px #006799;
59
- }
60
-
61
- .core-button-hover() {
62
- background: #008ec2;
63
- border-color: #006799;
64
- color: #fff;
65
- }
66
-
67
- .wpuf-loading {
68
- width: 16px;
69
- height: 16px;
70
- background: url('../images/wpspin_light.gif') no-repeat;
71
- display: inline-block;
72
-
73
- &.hide {
74
- display: none;
75
- }
76
- }
77
-
78
- .wpuf-button {
79
- color: #555;
80
- border-color: #cccccc;
81
- background: #f7f7f7;
82
- -webkit-box-shadow: 0 1px 0 #cccccc;
83
- box-shadow: 0 1px 0 #cccccc;
84
- vertical-align: top;
85
-
86
- &:hover, &:focus {
87
- background: #fafafa;
88
- border-color: #999;
89
- color: #23282d;
90
- }
91
- }
92
-
93
- .wpuf-success {
94
- background-color: #dff0d8;
95
- border: 1px solid #d6e9c6;
96
- color: #3c763d;
97
- padding: 10px;
98
- margin: 10px 0 20px 0;
99
- }
100
-
101
- .wpuf-error {
102
- background-color: #f2dede;
103
- color: #a94442;
104
- border: 1px solid #ebccd1;
105
- margin: 10px 0 20px 0;
106
- padding: 10px;
107
- .border-radius(3px);
108
- font-size: 13px;
109
- }
110
-
111
- .wpuf-message {
112
- background: #fcf8e3;
113
- border: 1px solid #faebcc;
114
- color: #8a6d3b;
115
- margin: 10px 0 20px 0;
116
- padding: 10px;
117
- .border-radius(3px);
118
- font-size: 13px;
119
- }
120
-
121
- .wpuf-info {
122
- background-color: #fef5be;
123
- border: 2px solid #fdd425;
124
- border-radius: 5px;
125
- -moz-border-radius: 5px;
126
- -webkit-border-radius: 5px;
127
- padding: 5px 10px;
128
- margin: 0 0 10px 0;
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;
163
- padding: 0 !important;
164
- width: 100%;
165
-
166
- li {
167
- .clearfix();
168
- margin-left: 0;
169
- margin-bottom: 10px;
170
- padding: 10px;
171
-
172
- &.has-error {
173
- background: #FFE4E4;
174
- }
175
-
176
- .wp-editor-wrap {
177
- border: 1px solid @borderColor;
178
- }
179
-
180
- &.wpuf_hidden_field {
181
- display: none;
182
- }
183
-
184
- .wpuf-label {
185
- float: left;
186
- width: 30%;
187
- min-height: 1px;
188
- font-weight: bold;
189
-
190
- .required {
191
- color: red;
192
- }
193
- }
194
- &.field-size-large {
195
- .wpuf-fields {
196
- float: left;
197
- width: 70%;
198
- }
199
- }
200
- &.field-size-medium {
201
- .wpuf-fields {
202
- float: left;
203
- width: 50%;
204
- }
205
- }
206
- &.field-size-small {
207
- .wpuf-fields {
208
- float: left;
209
- width: 30%;
210
- }
211
- }
212
-
213
- .wpuf-fields {
214
- float: left;
215
- width: 70%;
216
-
217
- input[type=text],
218
- input[type=password],
219
- input[type=email],
220
- input[type=url],
221
- input[type=number],
222
- textarea {
223
- background: #fafafa;
224
- -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
225
- -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
226
- box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
227
- border: 1px solid #ddd;
228
- color: #888;
229
- width: 95%;
230
- }
231
-
232
- input[type=text]:focus,
233
- input[type=password]:focus,
234
- input[type=email]:focus,
235
- input[type=url]:focus,
236
- input[type=number]:focus,
237
- textarea:focus {
238
- color: #373737;
239
- }
240
- textarea {
241
- padding-left: 3px;
242
- width: 95%;
243
- }
244
- input[type=text],
245
- input[type=password],
246
- input[type=email],
247
- input[type=url],
248
- input[type=number] {
249
- padding: 5px;
250
- }
251
-
252
- select {
253
- border: 1px solid @borderColor;
254
- padding: 2px;
255
- height: 2em;
256
- .border-radius(3px);
257
- min-width: 150px;
258
- max-width: 100%;
259
- }
260
-
261
- select[multiple] {
262
- height: auto;
263
- }
264
-
265
- .wpuf-radio-inline,
266
- .wpuf-checkbox-inline{
267
- display: inline-block;
268
- margin-right: 10px;
269
- }
270
-
271
- .wpuf-radio-block,
272
- .wpuf-checkbox-block{
273
- display: block;
274
- margin-bottom: 6px;
275
- }
276
-
277
- a.file-selector {
278
- display: inline;
279
- text-decoration: none;
280
- padding: 5px 12px;
281
- margin: 0;
282
- height: 30px;
283
- line-height: 28px;
284
- border: 1px solid #ccc;
285
- .border-radius(3px);
286
- background: #fafafa;
287
- color: #23282d;
288
- box-shadow: 0 1px 0 #cccccc;
289
- vertical-align: top;
290
- cursor: pointer;
291
- -webkit-appearance: none;
292
- white-space: nowrap;
293
-
294
- &:hover,
295
- &:focus {
296
- background: #fafafa;
297
- border-color: #999;
298
- color: #23282d;
299
- }
300
- }
301
-
302
- .google-map {
303
- img {
304
- max-width: none !important;
305
- }
306
- }
307
-
308
- .wpuf-product-qty {
309
- float: left;
310
- width: 10%;
311
- }
312
-
313
- .wpuf-name-field-wrap {
314
- .clearfix();
315
- margin-bottom: 8px;
316
-
317
- &.format-first-last {
318
- .wpuf-name-field-first-name {
319
- float: left;
320
- width: 48%;
321
- }
322
-
323
- .wpuf-name-field-middle-name {
324
- display: none;
325
- }
326
-
327
- .wpuf-name-field-last-name {
328
- float: right;
329
- width: 48%;
330
- }
331
- }
332
-
333
- &.format-first-middle-last {
334
- .wpuf-name-field-first-name {
335
- float: left;
336
- width: 37%;
337
- margin-right: 3%;
338
- }
339
-
340
- .wpuf-name-field-middle-name {
341
- float: left;
342
- width: 20%;
343
- }
344
-
345
- .wpuf-name-field-last-name {
346
- float: right;
347
- width: 37%;
348
- }
349
- }
350
- }
351
-
352
- .wpuf-help {
353
- color: #666;
354
- margin: 2px 0 5px 0;
355
- font-size: 12px;
356
- font-style: italic;
357
- font-family: sans-serif;
358
- display: block;
359
-
360
- .text-danger{
361
- color: red;
362
- }
363
-
364
- .text-success{
365
- color: green;
366
- }
367
-
368
- #url-alart,
369
- #url-alart-mgs{
370
- font-style: normal;
371
- font-size: 16px;
372
- }
373
- }
374
-
375
- table, td {
376
- border: none;
377
- margin: 0;
378
- }
379
-
380
- table {
381
- width: 100%;
382
- }
383
-
384
- img.wpuf-clone-field,
385
- img.wpuf-remove-field {
386
- cursor: pointer;
387
- margin: 0 3px;
388
- box-shadow: none;
389
- border: none;
390
- }
391
-
392
- ul.wpuf-attachment-list {
393
- list-style: none;
394
- margin: 5px 0 0 0;
395
- padding: 0;
396
-
397
- li {
398
- display: inline-block;
399
- border: 1px solid @borderColor;
400
- padding: 5px;
401
- width: 150px;
402
- margin-right: 5px;
403
- .border-radius(5px);
404
-
405
- .wpuf-file-input-wrap {
406
- margin: 10px 0;
407
-
408
- input, textarea {
409
- border: 1px solid @borderColor;
410
- width: 93%;
411
- }
412
- }
413
-
414
- .attachment-name {
415
- text-align: center;
416
- }
417
- }
418
- }
419
-
420
- .progress {
421
- background: -moz-linear-gradient(center bottom , #FFFFFF 0%, #F7F7F7 100%) repeat scroll 0 0 #FFFFFF;
422
- border: 1px solid #D1D1D1;
423
- border-radius: 3px 3px 3px 3px;
424
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.1) inset;
425
- float: right;
426
- height: 22px;
427
- line-height: 2em;
428
- margin: 0;
429
- overflow: hidden;
430
- padding: 0;
431
- width: 200px;
432
- }
433
-
434
- .bar {
435
- background-color: #83B4D8;
436
- background-image: -moz-linear-gradient(center bottom , #72A7CF 0%, #90C5EE 100%);
437
- border-radius: 3px 3px 3px 3px;
438
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
439
- height: 100%;
440
- // margin-top: -26px;
441
- width: 0;
442
- z-index: 9;
443
- }
444
-
445
- .progress .percent {
446
- color: rgba(0, 0, 0, 0.6);
447
- padding: 0 8px;
448
- position: relative;
449
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
450
- width: 200px;
451
- z-index: 10;
452
- }
453
-
454
- ul.wpuf-category-checklist {
455
- list-style: none;
456
- margin: 0;
457
- padding: 0;
458
-
459
- li {
460
- margin-bottom: 5px;
461
- padding: 0;
462
- }
463
-
464
- ul.children {
465
- list-style: none;
466
- margin-left: 25px;
467
- }
468
- }
469
-
470
- #wpuf-insert-image-container {
471
- .clearfix();
472
- margin-bottom: 3px;
473
-
474
- a.wpuf-insert-image {
475
- text-decoration: none;
476
- // float: left;
477
- border: 1px solid #DFDFDF;
478
- font-size: 11px;
479
- .border-radius(3px);
480
- padding: 4px 6px;
481
- margin-right: 10px;
482
-
483
- .wpuf-media-icon {
484
- // background: url('../images/photo.png') no-repeat;
485
- height: 12px;
486
- width: 12px;
487
- // display: inline-block;
488
- }
489
- }
490
- }
491
-
492
- .wpuf-fields-list {
493
- box-sizing: border-box;
494
- margin: 0;
495
- padding: 0;
496
- list-style: none;
497
-
498
- li {
499
- padding: 0;
500
- margin: 0 0 6px;
501
- }
502
-
503
- &.wpuf-list-inline {
504
- margin-left: -5px;
505
-
506
- li {
507
- display: inline-block;
508
- padding-left: 5px;
509
- padding-right: 5px;
510
- }
511
- }
512
- }
513
-
514
- table.wpuf-repeatable-field {
515
- border-collapse: collapse;
516
-
517
- & * {
518
- box-sizing: border-box;
519
- }
520
-
521
- input {
522
- width: 100%;
523
- }
524
-
525
- .wpuf-repeater-buttons {
526
- width: 75px;
527
- padding-left: 12px;
528
-
529
- img {
530
- width: 100%;
531
- height: auto;
532
- }
533
-
534
- i {
535
- display: inline-block;
536
- width: 15px;
537
- height: 15px;
538
- margin: 2px 4px 0 0;
539
- }
540
- }
541
- }
542
- }
543
-
544
- label.wpuf-form-sub-label {
545
- font-size: 12px;
546
- display: inline-block;
547
- padding-top: 5px;
548
- }
549
-
550
- .wpuf-address-field {
551
- .clearfix();
552
- width: 100%;
553
- margin-bottom: 10px;
554
-
555
- &.city_name,
556
- &.state,
557
- &.zip,
558
- &.country_select {
559
- float: left;
560
- width: 47%;
561
- }
562
-
563
- &.city_name,
564
- &.zip {
565
- margin-right: 4%;
566
- }
567
-
568
- &.zip {
569
- clear: both;
570
- }
571
- }
572
-
573
- .wpuf-section-wrap {
574
- border-bottom: 1px solid #ccc;
575
- margin: 15px 0;
576
-
577
- h2.wpuf-section-title {
578
- margin: 0;
579
- }
580
-
581
- .wpuf-section-details {
582
- padding: 4px 0 8px;
583
- font-size: 12px;
584
- }
585
- }
586
- }
587
-
588
- &.form-label-above li {
589
- .wpuf-label,
590
- .wpuf-fields {
591
- display: block;
592
- float: none;
593
- width: 100%;
594
- }
595
- &.field-size-large {
596
- .wpuf-fields {
597
- display: block;
598
- float: none;
599
- width: 100%;
600
- }
601
- }
602
- &.field-size-medium {
603
- .wpuf-fields {
604
- display: block;
605
- float: none;
606
- width: 65%;
607
- }
608
- }
609
- &.field-size-small {
610
- .wpuf-fields {
611
- display: block;
612
- float: none;
613
- width: 30%;
614
- }
615
- }
616
-
617
- .wpuf-label {
618
- margin-bottom: 10px;
619
- }
620
- }
621
-
622
- &.form-label-right li {
623
- .wpuf-label {
624
- float: right;
625
- }
626
- }
627
-
628
- &.form-label-hidden li {
629
- .wpuf-label {
630
- display: none;
631
- }
632
-
633
- &.field-size-large {
634
- .wpuf-fields {
635
- display: block;
636
- float: none;
637
- width: 100%;
638
- }
639
- }
640
- &.field-size-medium {
641
- .wpuf-fields {
642
- display: block;
643
- float: none;
644
- width: 65%;
645
- }
646
- }
647
- &.field-size-small {
648
- .wpuf-fields {
649
- display: block;
650
- float: none;
651
- width: 30%;
652
- }
653
- }
654
-
655
- .wpuf-fields {
656
- display: block;
657
- float: none;
658
- width: 100%;
659
- }
660
- }
661
-
662
- .wpuf-submit {
663
-
664
- .button-primary-disabled {
665
- color: #94cde7 !important;
666
- background: #298cba !important;
667
- border-color: #1b607f !important;
668
- -webkit-box-shadow: none !important;
669
- box-shadow: none !important;
670
- text-shadow: 0 -1px 0 rgba(0,0,0,0.1) !important;
671
- cursor: default;
672
- }
673
-
674
- .wpuf-errors {
675
- background: #FFE4E4;
676
- border: 1px solid darken(#FFE4E4, 10%);
677
- margin: 10px 0;
678
- padding: 10px;
679
- .border-radius(3px);
680
- font-size: 13px;
681
- }
682
- }
683
-
684
- &:not(.form-label-left) .wpuf-submit .wpuf-label {
685
- display: none !important;
686
- }
687
- }
688
-
689
- #wpuf-login-form {
690
- label {
691
- display: block;
692
- }
693
-
694
- .forgetmenot label {
695
- display: inline-block;
696
- }
697
- }
698
-
699
- .wpuf_sub_info {
700
- padding: 0;
701
- margin: 10px 5px;
702
- border: 1px solid @borderColor;
703
- border-radius: 3px;
704
-
705
- h3 {
706
- background-color: #f1f1f1;
707
- padding: 10px;
708
- margin: 0 0 5px 0 !important;
709
- font-weight: 300 !important;
710
- }
711
-
712
- .wpuf-text{
713
- padding: 5px 10px;
714
- }
715
-
716
- .wpuf-expire {
717
- border-top: 1px solid @borderColor;
718
- padding-top: 5px;
719
- margin-top: 5px;
720
- }
721
- }
722
-
723
- .wpuf-coupon-info-wrap {
724
- border: 1px solid @borderColor;
725
- padding: 15px;
726
- margin-bottom: 20px;
727
-
728
- .wpuf-coupon-field-spinner {
729
- background: url( '../images/wpspin_light.gif' ) no-repeat right scroll rgba(0, 0, 0, 0);
730
- }
731
- .wpuf-copon-show {
732
- background: #EEEEEE;
733
- border-radius: 3px;
734
- border-width: 1px;
735
- box-shadow: 0 1px 0 rgba(217, 217, 217, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
736
- color: #5C5A5A;
737
- cursor: pointer;
738
- display: inline-block;
739
- font-size: 14px;
740
- padding: 5px 12px;
741
- text-decoration: none;
742
- width: 175px;
743
- margin-bottom: 8px;
744
- }
745
-
746
- .wpuf-copon-wrap {
747
- margin: 15px 0;
748
- }
749
-
750
- .wpuf-pack-info {
751
- margin-bottom: 20px;
752
-
753
- h3 {
754
- margin: 0 0 10px 0;
755
- padding: 0 0 10px 0;
756
- border-bottom: 1px solid @borderColor;
757
-
758
- a {
759
- float: right;
760
- text-decoration: none;
761
- background: @mainColor;
762
- color: #fff;
763
- padding: 3px 8px;
764
- font-size: 14px;
765
- }
766
- }
767
-
768
- wpuf-subscription-error {
769
- color: #D8000C;
770
- }
771
- }
772
-
773
- .wpuf-copon-show:hover {
774
- background: none repeat scroll 0 0 #1E8CBE;
775
- border-color: #0074A2;
776
- box-shadow: 0 1px 0 rgba(120, 200, 230, 0.6) inset;
777
- color: #FFFFFF;
778
- }
779
-
780
- a.wpuf-apply-coupon {
781
- text-decoration: none;
782
- font-size: 11px;
783
- margin-top: 10px;
784
- margin-right: 10px;
785
- background: #21759b;
786
- color: #fff;
787
- padding: 5px 10px;
788
- display: inline-block;
789
- .border-radius(3px);
790
- }
791
-
792
- .wpuf-copon-cancel {
793
- text-decoration: none;
794
- font-size: 11px;
795
- }
796
- }
797
-
798
- .entry-content ul.wpuf_packs,
799
- ul.wpuf_packs {
800
- overflow: hidden;
801
- margin: 15px;
802
-
803
- > li {
804
- background: #fff;
805
- display: inline-block;
806
- vertical-align: top;
807
- border: 1px solid #DDD;
808
- border-radius: 5px 5px 5px 5px;
809
- list-style: none outside none;
810
- margin: 5px 25px 25px 0;
811
- position: relative;
812
- width: 200px;
813
- box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
814
-
815
- &:first-child {
816
- margin-left: 5px;
817
- }
818
- }
819
-
820
- h3 {
821
- background: #52B5D5;
822
- color: #fff;
823
- font-size: 18px;
824
- font-weight: normal;
825
- margin: 0;
826
- padding: 10px !important;
827
- text-align: center;
828
- border-bottom: 1px solid darken(#52B5D5, 5%);
829
- }
830
-
831
- .wpuf-pricing-wrap {
832
- background: @mainColor;
833
-
834
- .wpuf-sub-amount {
835
- position: relative;
836
- text-align: center;
837
- color: #FFF;
838
- border-bottom: 1px solid darken(@mainColor, 5%);
839
- padding: 10px 0;
840
-
841
- .wpuf-sub-symbol {
842
- font-size: 19px;
843
- position: absolute;
844
- top: 25px;
845
- line-height: 10px;
846
- }
847
-
848
- .wpuf-sub-cost {
849
- font-size: 40px;
850
- margin-left: 10px;
851
- line-height: 50px;
852
- }
853
-
854
- .wpuf-pack-cycle {
855
- font-size: 13px;
856
- padding-bottom: 5px;
857
- }
858
- }
859
- }
860
-
861
- .wpuf-sub-body {
862
- margin: 0;
863
- padding: 8px 0 0 8px;
864
- background: #fff;
865
- font-size: 11px;
866
- color: #999;
867
- }
868
-
869
- .wpuf-sub-button {
870
- text-align: center;
871
- margin-bottom: 20px;
872
- margin-top: 20px;
873
- overflow: hidden;
874
-
875
- a {
876
- // .core-button();
877
- background: @mainColor;
878
- color: #fff;
879
- text-decoration: none;
880
- padding: 5px 10px;
881
- .border-radius(3px);
882
- display: inline-block;
883
-
884
- &:hover {
885
- background: darken(@mainColor, 10%);
886
- }
887
- }
888
-
889
- a:hover {
890
- background: none repeat scroll 0 0 #1E8CBE;
891
- border-color: #0074A2;
892
- box-shadow: 0 1px 0 rgba(120, 200, 230, 0.6) inset;
893
- color: #FFFFFF;
894
- }
895
- }
896
-
897
- .wpuf-sub-desciption {
898
- margin-top: 15px;
899
-
900
- ul, li {
901
- margin: 0;
902
- padding: 0;
903
- list-style: none;
904
- }
905
-
906
- li {
907
- text-align: center;
908
- border-top: 1px solid #eee;
909
- padding: 7px 0;
910
-
911
- &:last-child {
912
- border-bottom: 1px solid #eee;
913
- }
914
-
915
- &:first-child {
916
- border-top: none;
917
- }
918
- }
919
-
920
- p {
921
- padding: 0 10px;
922
- margin-bottom: 15px;
923
- }
924
- }
925
-
926
- .button {
927
- background: none repeat scroll 0 0 #2EA2CC;
928
- border-color: #0074A2;
929
- box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
930
- color: #FFFFFF;
931
- text-decoration: none;
932
- padding: 0 12px 2px;
933
- color: #fff;
934
- }
935
-
936
- .cost {
937
- background: red;
938
- border-radius: 30px 30px 30px 30px;
939
- color: #FFFFFF;
940
- margin: -16px -12px 0 0;
941
- padding: 10px 8px 8px;
942
- position: absolute;
943
- right: 0;
944
- top: 0;
945
- }
946
- }
947
-
948
- /* css for timepicker */
949
- .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
950
- .ui-timepicker-div dl { text-align: left; }
951
- .ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
952
- .ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
953
- .ui-timepicker-div td { font-size: 90%; }
954
- .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
955
-
956
- .ui-timepicker-rtl{ direction: rtl; }
957
- .ui-timepicker-rtl dl { text-align: right; }
958
- .ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }
959
-
960
- // Password Strength
961
- #pass-strength-result {
962
- border-style: solid;
963
- border-width: 1px;
964
- float: left;
965
- margin: 0;
966
- padding: 3px 5px;
967
- text-align: center;
968
- width: 200px;
969
- display: none;
970
- background-color: #eee;
971
- border-color: #ddd !important;
972
-
973
- &.bad {
974
- background-color: #ffb78c;
975
- border-color: #ff853c !important;
976
- }
977
-
978
- &.good {
979
- background-color: #ffec8b;
980
- border-color: #fc0 !important;
981
- }
982
-
983
- &.short {
984
- background-color: #ffa0a0;
985
- border-color: #f04040 !important;
986
- }
987
-
988
- &.strong {
989
- background-color: #c3ff88;
990
- border-color: #8dff1c !important;
991
- }
992
- }
993
-
994
- .password[type="text"]{
995
- display: none;
996
- }
997
-
998
- table.wpuf-table {
999
- border: 1px solid #E7E7E7;
1000
- margin: 0 0px 10px 0;
1001
- text-align: left;
1002
- width: 100%;
1003
-
1004
- thead th, th {
1005
- color: #888888;
1006
- font-size: 12px;
1007
- font-weight: bold;
1008
- line-height: 18px;
1009
- padding: 9px 24px;
1010
- }
1011
-
1012
- td {
1013
- border-top: 1px solid #E7E7E7;
1014
- padding: 6px 24px;
1015
- }
1016
- }
1017
-
1018
- #wpuf-payment-gateway {
1019
- ul.wpuf-payment-gateways {
1020
- list-style: none;
1021
- margin: 10px 0;
1022
-
1023
- li {
1024
- margin: 0;
1025
-
1026
- .wpuf-payment-instruction {
1027
- padding: 8px 10px;
1028
- margin: 0 10px;
1029
- }
1030
-
1031
- .wpuf-instruction {
1032
- padding: 8px 10px;
1033
- margin-bottom: 10px;
1034
- background: #ebe8eb;
1035
- font-size: 13px;
1036
- .border-radius(2px);
1037
- }
1038
- }
1039
- }
1040
- }
1041
-
1042
- .wpuf-pagination {
1043
- div.pagination{
1044
- text-align:center;
1045
- padding:7px;
1046
- margin:3px;
1047
- }
1048
-
1049
- .page-numbers{
1050
- padding:2px 8px;
1051
- margin:2px;
1052
- border:1px solid #4A5154;
1053
- text-decoration:none;
1054
- color:#4A5154;
1055
- background: #fff;
1056
- border-radius: 5px;
1057
- -moz-border-radius: 5px;
1058
-
1059
- &:hover,
1060
- &:active{
1061
- border:1px solid #4A5154;
1062
- background-color:#4A5154;
1063
- color:#fff;
1064
- border-radius: 5px;
1065
- -moz-border-radius: 5px;
1066
- }
1067
-
1068
- &.current{
1069
- padding:2px 8px;
1070
- margin:2px;
1071
- border:1px solid #4A5154;
1072
- font-weight:bold;
1073
- background-color:#4A5154;
1074
- color:#FFF;
1075
- border-radius: 5px;
1076
- -moz-border-radius: 5px;
1077
- }
1078
- }
1079
- }
1080
-
1081
- /** author info **/
1082
- .wpuf-author {
1083
- .clearfix();
1084
- margin: 20px 0;
1085
-
1086
- h3{
1087
- margin: 0 !important;
1088
- background: #CFCFCF;
1089
- text-align: left;
1090
- padding: 3px 10px;
1091
- }
1092
-
1093
- .wpuf-author-inside {
1094
- background: none repeat scroll 0 0 #F0F0F0;
1095
- border-bottom: 2px solid #DDDDDD;
1096
- height: auto;
1097
- padding-left: 10px;
1098
- padding-top: 15px;
1099
- margin-bottom: 15px;
1100
- .clearfix();
1101
-
1102
- .wpuf-user-image {
1103
- float: left;
1104
- padding-right: 15px;
1105
- }
1106
-
1107
- p {
1108
- margin-bottom: 10px !important;
1109
- }
1110
-
1111
- p.wpuf-author-info {
1112
- padding-top: 8px;
1113
- word-wrap: break-word;
1114
- }
1115
-
1116
- p.wpuf-user-name a {
1117
- color: #335160;
1118
- font-size: 1.2em;
1119
- font-weight: bold;
1120
- }
1121
- }
1122
- }
1123
-
1124
- /** jQuery Suggest **/
1125
-
1126
- .ac_results {
1127
- padding: 0;
1128
- margin: 0;
1129
- list-style: none;
1130
- position: absolute;
1131
- z-index: 10000;
1132
- display: none;
1133
- border: 1px solid #ccc;
1134
-
1135
- li {
1136
- padding: 2px 5px;
1137
- white-space: nowrap;
1138
- text-align: left;
1139
- }
1140
- }
1141
-
1142
- .ac_over {
1143
- cursor: pointer;
1144
- }
1145
-
1146
- .ac_match {
1147
- text-decoration: underline;
1148
- }
1149
-
1150
- /*------------------------------------
1151
- * Multistep form
1152
- *-----------------------------------*/
1153
- fieldset.wpuf-multistep-fieldset {
1154
- position: relative;
1155
- padding-bottom: 50px;
1156
- border: none;
1157
- display: none;
1158
-
1159
- &.field-active {
1160
- display: block;
1161
- }
1162
-
1163
- .wpuf-multistep-prev-btn,
1164
- .wpuf-multistep-next-btn {
1165
- position: absolute;
1166
- bottom: 5px;
1167
- }
1168
- .wpuf-multistep-prev-btn {
1169
- left: 10px;
1170
- }
1171
- .wpuf-multistep-next-btn {
1172
- right: 10px;
1173
- }
1174
- }
1175
-
1176
- .wpuf-multistep-progressbar {
1177
- overflow: hidden;
1178
- }
1179
-
1180
- .wpuf-form .wpuf-multistep-progressbar {
1181
-
1182
- @stepBackground: #00a0d2;
1183
-
1184
- ul.wpuf-step-wizard {
1185
- margin: 20px 0 40px 0;
1186
- padding: 0;
1187
- list-style: none;
1188
-
1189
- * {
1190
- box-sizing: border-box;
1191
- }
1192
-
1193
- li {
1194
- background-color: #E4E4E4;
1195
- border-radius: 5px;
1196
- display: inline-block;
1197
- padding: 10px 30px 10px 40px;
1198
- margin-right: -7px;
1199
- width: auto;
1200
- margin: 0;
1201
- position: relative;
1202
- text-align: center;
1203
-
1204
- &::before,
1205
- &::after {
1206
- border: solid transparent;
1207
- content: " ";
1208
- height: 0;
1209
- width: 0;
1210
- position: absolute;
1211
- border-color: transparent;
1212
- border-left-color: #fff;
1213
- border-radius: 10px;
1214
- }
1215
-
1216
- &::before {
1217
- border-width: 26px;
1218
- margin-top: -14px;
1219
- right: -52px;
1220
- z-index: 98;
1221
- }
1222
-
1223
- &::after {
1224
- border-left-color: #E4E4E4;
1225
- border-width: 25px;
1226
- margin-top: -37px;
1227
- right: -44px;
1228
- z-index: 99;
1229
- }
1230
-
1231
- &.active-step {
1232
- background-color: @stepBackground;
1233
- color: #fff;
1234
-
1235
- &::after {
1236
- border-left-color: @stepBackground;
1237
- }
1238
- }
1239
-
1240
- &:last-child::after {
1241
- border-left-color: transparent;
1242
- }
1243
- }
1244
- }
1245
-
1246
- .ui-widget-header {
1247
- background: @stepBackground;
1248
- }
1249
-
1250
- &.ui-progressbar {
1251
- margin-bottom: 30px;
1252
- height: 25px;
1253
- border: 1px solid @borderColor;
1254
- position: relative;
1255
-
1256
- .wpuf-progress-percentage {
1257
- position: absolute;
1258
- left: 50%;
1259
- font-size: 12px;
1260
- font-weight: bold;
1261
- text-shadow: 1px 1px 0 #fff;
1262
- top: 20%;
1263
- }
1264
- }
1265
- }
1266
- input.wpuf-btn {
1267
- text-decoration: none !important;
1268
- font-size: 15px !important;
1269
- margin-top: 10px;
1270
- margin-right: 10px;
1271
- background: #21759b !important;
1272
- color: #fff !important;
1273
- padding: 5px 10px;
1274
- display: inline-block;
1275
- -webkit-border-radius: 3px !important;
1276
- -moz-border-radius: 3px !important;
1277
- border-radius: 3px !important;
1278
- border: none !important;
1279
- }
1280
- /*rtl*/
1281
- body.rtl{
1282
- ul.wpuf-form li .wpuf-label{
1283
- float: right;
1284
- }
1285
- }
1286
-
1287
- // landscape phones and smaller
1288
- @media (max-width: 480px) {
1289
- ul.wpuf-form {
1290
- li {
1291
- .wpuf-label, .wpuf-fields {
1292
- float: none;
1293
- width: 100%;
1294
- }
1295
- &.field-size-large {
1296
- .wpuf-fields {
1297
- float: none;
1298
- width: 100%;
1299
- }
1300
- }
1301
- &.field-size-medium {
1302
- .wpuf-fields {
1303
- float: none;
1304
- width: 65%;
1305
- }
1306
- }
1307
- &.field-size-small {
1308
- .wpuf-fields {
1309
- float: none;
1310
- width: 30%;
1311
- }
1312
- }
1313
- }
1314
- }
1315
- }
1316
-
1317
- .wpuf-form {
1318
- .required {
1319
- color: red;
1320
- font-weight: 700;
1321
- border: 0;
1322
- }
1323
- }
1324
- .wpuf-dashboard-container {
1325
- .wpuf-dashboard-navigation {
1326
- width: 30%;
1327
- float: left;
1328
-
1329
- a {
1330
- text-decoration: none;
1331
- box-shadow: none;
1332
- }
1333
-
1334
- ul {
1335
- list-style: none;
1336
- li {
1337
- padding-bottom: 2px;
1338
- }
1339
- }
1340
- }
1341
-
1342
- .wpuf-dashboard-content {
1343
- width: 68%;
1344
- float: right;
1345
- }
1346
-
1347
- table.items-table {
1348
- a {
1349
- text-decoration: none;
1350
- box-shadow: none;
1351
- }
1352
-
1353
- border: 0;
1354
-
1355
- th, td {
1356
- border: 0;
1357
- padding: 10px;
1358
- }
1359
-
1360
- tr {
1361
- outline: 1px solid #f1f1f1;
1362
- }
1363
-
1364
- .items-list-header {
1365
- background-color: #f1f1f1;
1366
- }
1367
- }
1368
-
1369
- .wpuf-update-profile-form {
1370
- .form-row-first {
1371
- float: left;
1372
- width: 47%;
1373
- overflow: visible;
1374
- }
1375
-
1376
- .form-row-last {
1377
- float: right;
1378
- width: 43%;
1379
- overflow: visible;
1380
- }
1381
- }
1382
- }
1383
-
1384
- .wpuf-toc-container {
1385
- .wpuf-fields {
1386
- position: relative;
1387
-
1388
- .wpuf-toc-checkbox {
1389
- position: absolute;
1390
- top: 0;
1391
- left: 0;
1392
- }
1393
-
1394
- &.has-toc-checkbox {
1395
-
1396
- .wpuf-toc-description {
1397
- margin-left: 25px;
1398
- }
1399
- }
1400
- }
1401
- }
1402
-
1403
- // Google Map
1404
- // --------------------------------------------------
1405
- .wpuf-field-google-map {
1406
- height: 300px;
1407
- width: 100%;
1408
- }
1409
-
1410
- .wpuf-form-google-map {
1411
- height: 300px;
1412
- width: 100%;
1413
- }
1414
-
1415
- input[type="text"].wpuf-google-map-search {
1416
- margin-top: 10px !important;
1417
- border: 1px solid transparent !important;
1418
- border-radius: 2px 0 0 2px !important;
1419
- box-sizing: border-box !important;
1420
- -moz-box-sizing: border-box !important;
1421
- height: 32px !important;
1422
- outline: none !important;
1423
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
1424
- background-color: #fff !important;
1425
- text-overflow: ellipsis !important;
1426
- width: 170px !important;
1427
- font-family: Roboto !important;
1428
- font-size: 15px !important;
1429
- font-weight: 300 !important;
1430
- padding: 0 11px 0 13px !important;
1431
- display: none;
1432
-
1433
- .gm-style & {
1434
- display: block;
1435
- }
1436
- }
1437
-
1438
- .wpuf-form-google-map-container {
1439
-
1440
- input[type="text"].wpuf-google-map-search {
1441
- width: 230px !important;
1442
- }
1443
-
1444
- &.hide-search-box {
1445
-
1446
- .gm-style input[type="text"].wpuf-google-map-search {
1447
- display: none;
1448
- }
1449
- }
1450
- }
1451
-
1452
- .dokan-dashboard-content{
1453
- &.dokan-wpuf-dashboard{
1454
- h2.page-head{
1455
- display: none;
1456
- }
1457
-
1458
- .wpuf-author{
1459
- display: none;
1460
- }
1461
-
1462
- .wpuf-form-add{
1463
- .wpuf-form{
1464
- li{
1465
- &.wpuf-el{
1466
- margin-bottom: 15px;
1467
- }
1468
- }
1469
- }
1470
- }
1471
- }
1472
- }
1473
-
1474
- @color_add: #6d6d6d;
1475
-
1476
- table#wpuf-address-country-state {
1477
- input {
1478
- width: 100%;
1479
- padding: 0 10px;
1480
- border: 1px solid #f5f5f5;
1481
- color: @color_add;
1482
- font-size: 14px;
1483
- line-height: 36px;
1484
- height: 36px;
1485
- box-shadow: none;
1486
- }
1487
- select {
1488
- width: 100%;
1489
- padding: 0 10px;
1490
- border: 1px solid #f5f5f5;
1491
- color: @color_add;
1492
- font-size: 14px;
1493
- line-height: 36px;
1494
- height: 36px;
1495
- box-shadow: none;
1496
- }
1497
- input.wpuf-btn {
1498
- width: inherit;
1499
- }
1500
- td {
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
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/less/help.less DELETED
@@ -1,278 +0,0 @@
1
- .wpuf-help-tabbed {
2
- display: flex;
3
- width: 100%;
4
- margin-top: 20px;
5
- box-shadow: 0 0 0 1px rgba(200, 215, 225, 1), 0 1px 2px #e9eff3;
6
-
7
- nav {
8
- order: 1;
9
- background-color: #f1f1f1;
10
- flex-basis: auto;
11
- padding: 0;
12
- min-height: 405px;
13
- border-right: 1px solid #c8d7e1;
14
- min-width: 250px;
15
-
16
- ul,
17
- li {
18
- margin: 0;
19
- }
20
-
21
- a {
22
- display: block;
23
- border: none;
24
- padding: 0.5rem;
25
- border-bottom: 1px solid #c8d7e1;
26
- border-right: 1px solid #c8d7e1;
27
- // border-left: 3px solid #f1f1f1;
28
- background-color: #f1f1f1;
29
- color: #444;
30
- text-decoration: none;
31
- margin-right: -1px;
32
- font-weight: 500;
33
-
34
- label {
35
- padding: 0.5rem;
36
- display: inline-block;
37
- }
38
- }
39
-
40
- a:focus,
41
- a:active {
42
- outline: 0;
43
- box-shadow: none;
44
- }
45
-
46
- .dashicons {
47
- padding: 8px 0 0 5px;
48
-
49
- &.dashicons-admin-home {
50
- color: #9b59b6;
51
- }
52
-
53
- &.dashicons-media-text {
54
- color: #6c75ff;
55
- }
56
-
57
- &.dashicons-dashboard {
58
- color: #00aeff;
59
- }
60
-
61
- &.dashicons-admin-users {
62
- color: #e67e22;
63
- }
64
-
65
- &.dashicons-lock {
66
- color: #3d566e;
67
- }
68
-
69
- &.dashicons-edit {
70
- color: #1abc9d;
71
- }
72
-
73
- &.dashicons-cart {
74
- color: #e74c3c;
75
- }
76
-
77
- &.dashicons-unlock {
78
- color: #00aeff;
79
- }
80
- }
81
-
82
- .tab-current {
83
- a {
84
- // border-left: 3px solid #0073aa;
85
- border-right: 1px solid #fff;
86
- background: #fff;
87
- color: #2e4453;
88
- }
89
- }
90
- }
91
-
92
- .nav-content {
93
- order: 1;
94
- background-color: #fff;
95
- padding: 2rem;
96
- width: 100%;
97
-
98
- h2 {
99
- margin-top: 30px;
100
- color: #23282d;
101
- line-height: 1.6;
102
- margin-bottom: 0;
103
- padding-bottom: 0;
104
-
105
- &:first-child {
106
- margin-top: 0;
107
- }
108
- }
109
-
110
- section {
111
- display: none;
112
- color: #444;
113
- font-size: 0.875rem;
114
-
115
- p {
116
- font-size: 0.875rem;
117
- }
118
-
119
- &.content-current {
120
- display: block;
121
- }
122
-
123
- ul {
124
- list-style-type: disc;
125
- padding-left: 40px;
126
- }
127
-
128
- ul.related-articles {
129
- list-style: none;
130
- padding-left: 10px;
131
- }
132
-
133
- .button-primary {
134
- background: #00aadc;
135
- border-color: #0087be;
136
- text-shadow: none;
137
- padding: 3px 20px;
138
- height: auto;
139
- margin: 0.3125rem 0;
140
-
141
- &:hover {
142
- border-color: #005082;
143
- }
144
- }
145
- }
146
- }
147
-
148
- }
149
-
150
- .wpuf-help-page {
151
-
152
- .wpuf-subscribe-box {
153
- display: flex;
154
- border: 1px solid #e5e5e5;
155
- background: #fff;
156
- box-shadow: 0 1px 1px rgba(0,0,0,.04);
157
- margin-top: 15px;
158
-
159
- .text-wrap {
160
- width: ~"calc(100% - 530px)";
161
- padding: 10px 15px;
162
-
163
- h3 {
164
- color: #ff5722;
165
- margin: 4px 0 0 0;
166
- }
167
-
168
- p {
169
- margin-bottom: 5px;
170
- }
171
- }
172
-
173
- .form-wrap {
174
- width: 530px;
175
- display: flex;
176
- padding: 10px 0;
177
- background: #f7f7f7;
178
- padding-left: 20px;
179
- border-left: 1px solid #eee;
180
-
181
- .thank-you {
182
- font-size: 16px;
183
- color: green;
184
- padding-top: 20px;
185
- text-align: center;
186
- width: 100%;
187
- }
188
-
189
- label {
190
- color: #666;
191
- }
192
-
193
- input {
194
- max-width: 100%;
195
- overflow: hidden;
196
- }
197
-
198
- input[type="text"],
199
- input[type="email"] {
200
- padding: 5px 8px;
201
- }
202
-
203
- .fname {
204
- width: 35%;
205
- margin-right: 10px;
206
- }
207
-
208
- .email {
209
- width: 40%;
210
- margin-right: 10px;
211
- }
212
-
213
- .submit-btn {
214
- width: 20%;
215
- padding-top: 22px;
216
- }
217
- }
218
- }
219
-
220
- .help-blocks {
221
- display: flex;
222
- flex-wrap: wrap;
223
- align-items: center;
224
- margin-top: 30px;
225
-
226
- .help-block {
227
- flex: 1;
228
- align-self: flex-start;
229
- min-width: 25%;
230
- max-width: 30%;
231
- border: 1px solid #ddd;
232
- margin-right: 2%;
233
- margin-bottom: 25px;
234
- border-radius: 3px;
235
- padding: 25px 15px;
236
- text-align: center;
237
- background: #fff;
238
-
239
- img {
240
- max-height: 44px;
241
- }
242
- }
243
- }
244
-
245
- .wpuf-help-questions {
246
- ul {
247
- margin: 5px 0;
248
- }
249
-
250
- li {
251
- padding: 10px 5px;
252
- margin: 0;
253
- display: block;
254
- border-bottom: 1px solid #eee;
255
-
256
- &:hover {
257
- background-color: #F5F5F5;
258
- }
259
-
260
- &:last-child {
261
- border-bottom: none;
262
- }
263
-
264
- .dashicons {
265
- color: #ccc;
266
- margin-top: -3px;
267
- }
268
-
269
- .dashicons-media-text {
270
- padding-left: 8px;
271
- }
272
-
273
- .dashicons-arrow-right-alt2 {
274
- float: right;
275
- }
276
- }
277
- }
278
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/less/metabox-tabs.less DELETED
@@ -1,76 +0,0 @@
1
- #wpuf_subs_metabox .inside {
2
- margin: 0;
3
- padding: 0;
4
- }
5
-
6
- .wpuf-subscription-pack-settings {
7
- display: flex;
8
-
9
- nav {
10
- background-color: #f1f1f1;
11
- min-width: 200px;
12
- border-right: 1px solid #e5e5e5;
13
-
14
- ul,
15
- li {
16
- margin: 0;
17
- }
18
-
19
- a {
20
- display: block;
21
- border: none;
22
- padding: 12px 5px 12px 15px;
23
- border-bottom: 1px solid #e5e5e5;
24
- border-right: 1px solid #e5e5e5;
25
- background-color: #f1f1f1;
26
- text-decoration: none;
27
- margin-right: -1px;
28
- font-weight: 500;
29
-
30
- label {
31
- padding: 0.5rem;
32
- display: inline-block;
33
- }
34
- }
35
-
36
- a:focus,
37
- a:active {
38
- outline: 0;
39
- box-shadow: none;
40
- }
41
-
42
- .tab-current {
43
- a {
44
- // border-left: 3px solid #0073aa;
45
- border-right: 1px solid #fff;
46
- background: #fff;
47
- color: #2e4453;
48
- }
49
- }
50
- }
51
-
52
- .subscription-nav-content {
53
- padding: 15px 25px;
54
- width: 100%;
55
-
56
- section {
57
- display: none;
58
-
59
- &.content-current {
60
- display: block;
61
- }
62
-
63
- .form-table {
64
- th {
65
- width: 150px;
66
- min-width: 150px;
67
- }
68
-
69
- td {
70
- padding: 15px 0;
71
- }
72
- }
73
- }
74
- }
75
-
76
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/less/whats-new.less DELETED
@@ -1,116 +0,0 @@
1
- .notice.wpuf-whats-new-notice {
2
- display: flex;
3
- position: relative;
4
- padding: 0;
5
- height: 65px;
6
-
7
- .wpuf-whats-new-icon {
8
- width: 75px;
9
- height: 65px;
10
- overflow: hidden;
11
-
12
- img {
13
- max-width: 65px;
14
- }
15
- }
16
-
17
- .wpuf-whats-new-text {
18
- width: ~"calc(100% - 240px)";
19
- }
20
-
21
- .wpuf-whats-new-actions {
22
- width: 165px;
23
-
24
- a {
25
- display: inline-block;
26
- margin-top: 20px;
27
- }
28
- }
29
- }
30
-
31
- .wpuf-whats-new {
32
-
33
- .error, .udpated, .info, .notice {
34
- display: none;
35
- }
36
-
37
- h1 {
38
- text-align: center;
39
- margin-top: 20px;
40
- font-size: 30px;
41
- }
42
-
43
- .wedevs-changelog {
44
- display: flex;
45
- max-width: 920px;
46
- border: 1px solid #e5e5e5;
47
- padding: 12px 20px 20px 20px;
48
- margin: 20px auto;
49
- background: #fff;
50
- box-shadow: 0 1px 1px rgba(0,0,0,0.04);
51
-
52
- .wedevs-changelog-version {
53
- width: 360px;
54
-
55
- .released {
56
- font-style: italic;
57
- }
58
- }
59
-
60
- .wedevs-changelog-history {
61
- width: 100%;
62
- font-size: 14px;
63
-
64
- li {
65
- margin-bottom: 30px;
66
- }
67
-
68
- h4 {
69
- margin: 0 0 10px 0;
70
- font-size: 1.3em;
71
- line-height: 26px;
72
- }
73
-
74
- p {
75
- font-size: 14px;
76
- line-height: 1.5;
77
- }
78
-
79
- img {
80
- margin-top: 30px;
81
- max-width: 100%;
82
- }
83
-
84
- span.label {
85
- margin-left: 10px;
86
- position: relative;
87
- color: #fff;
88
- border-radius: 20px;
89
- padding: 0 8px;
90
- font-size: 12px;
91
- height: 20px;
92
- line-height: 19px;
93
- -webkit-appearance: none;
94
- -moz-appearance: none;
95
- appearance: none;
96
- font-weight: normal;
97
-
98
- &.new {
99
- background: #3778ff;
100
- border: 1px solid #3778ff;
101
- }
102
-
103
- &.improvement {
104
- background: #3aaa55;
105
- border: 1px solid #3aaa
106
- }
107
-
108
- &.fix {
109
- background: #ff4772;
110
- border: 1px solid #ff4772;
111
- }
112
-
113
- }
114
- }
115
- }
116
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/vendor/sweetalert2/package.json DELETED
@@ -1,178 +0,0 @@
1
- {
2
- "_args": [
3
- [
4
- {
5
- "raw": "sweetalert2",
6
- "scope": null,
7
- "escapedName": "sweetalert2",
8
- "name": "sweetalert2",
9
- "rawSpec": "",
10
- "spec": "latest",
11
- "type": "tag"
12
- },
13
- "/Applications/MAMP/htdocs/wpuf/wp-content/plugins/WP-User-Frontend"
14
- ]
15
- ],
16
- "_from": "sweetalert2@latest",
17
- "_id": "sweetalert2@6.6.4",
18
- "_inCache": true,
19
- "_location": "/sweetalert2",
20
- "_nodeVersion": "7.10.0",
21
- "_npmOperationalInternal": {
22
- "host": "s3://npm-registry-packages",
23
- "tmp": "tmp/sweetalert2-6.6.4.tgz_1495375135182_0.1165739013813436"
24
- },
25
- "_npmUser": {
26
- "name": "limonte",
27
- "email": "limon.monte@gmail.com"
28
- },
29
- "_npmVersion": "4.2.0",
30
- "_phantomChildren": {},
31
- "_requested": {
32
- "raw": "sweetalert2",
33
- "scope": null,
34
- "escapedName": "sweetalert2",
35
- "name": "sweetalert2",
36
- "rawSpec": "",
37
- "spec": "latest",
38
- "type": "tag"
39
- },
40
- "_requiredBy": [
41
- "#USER"
42
- ],
43
- "_resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-6.6.4.tgz",
44
- "_shasum": "7799100c4dba878de2a9581b3f42d29f3dd1d9e0",
45
- "_shrinkwrap": null,
46
- "_spec": "sweetalert2",
47
- "_where": "/Applications/MAMP/htdocs/wpuf/wp-content/plugins/WP-User-Frontend",
48
- "author": {
49
- "name": "Limon Monte",
50
- "email": "limon.monte@gmail.com",
51
- "url": "https://limonte.github.io"
52
- },
53
- "bugs": {
54
- "url": "https://github.com/limonte/sweetalert2/issues"
55
- },
56
- "contributors": [
57
- {
58
- "name": "Johan Fagerberg",
59
- "url": "https://github.com/birjolaxew"
60
- },
61
- {
62
- "name": "Morgan Touverey-Quilling",
63
- "email": "mtouverey@alembic-dev.com",
64
- "url": "https://github.com/toverux"
65
- },
66
- {
67
- "name": "Sam Turrell",
68
- "email": "sam@samturrell.co.uk",
69
- "url": "http://samturrell.co.uk"
70
- },
71
- {
72
- "name": "Tristan Edwards",
73
- "email": "tristan.edwards@me.com",
74
- "url": "http://tristanedwards.me"
75
- },
76
- {
77
- "name": "Leo Correa",
78
- "email": "lcorr005@gmail.com",
79
- "url": "https://leonardocorrea.com/"
80
- },
81
- {
82
- "name": "Joseph Schultz",
83
- "url": "https://github.com/acupajoe"
84
- }
85
- ],
86
- "dependencies": {},
87
- "description": "A beautiful, responsive, customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes, supported fork of sweetalert",
88
- "devDependencies": {
89
- "babel-plugin-external-helpers": "latest",
90
- "babel-plugin-transform-object-assign": "latest",
91
- "babel-preset-es2015": "latest",
92
- "gemini": "latest",
93
- "gemini-sauce": "latest",
94
- "gulp": "latest",
95
- "gulp-autoprefixer": "latest",
96
- "gulp-clean-css": "latest",
97
- "gulp-rename": "latest",
98
- "gulp-rollup": "latest",
99
- "gulp-sass": "latest",
100
- "gulp-sass-lint": "latest",
101
- "gulp-standard": "^8.0.0",
102
- "gulp-uglify": "latest",
103
- "rollup": "latest",
104
- "rollup-plugin-babel": "latest",
105
- "standard": "^8.0.0",
106
- "testem": "latest",
107
- "uglify-js": "latest"
108
- },
109
- "directories": {},
110
- "dist": {
111
- "shasum": "7799100c4dba878de2a9581b3f42d29f3dd1d9e0",
112
- "tarball": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-6.6.4.tgz"
113
- },
114
- "engines": {
115
- "node": ">=0.10.0"
116
- },
117
- "files": [
118
- "dist",
119
- "src",
120
- "sweetalert2.d.ts"
121
- ],
122
- "gitHead": "a3c915077db4c4bbdf53d0c6b74bbe5383306686",
123
- "homepage": "https://limonte.github.io/sweetalert2/",
124
- "jsnext:main": "src/sweetalert2.js",
125
- "keywords": [
126
- "sweetalert",
127
- "sweetalert2",
128
- "alert",
129
- "prompt"
130
- ],
131
- "license": "MIT",
132
- "main": "dist/sweetalert2.js",
133
- "maintainers": [
134
- {
135
- "name": "birjolaxew",
136
- "email": "johanringmann@gmail.com"
137
- },
138
- {
139
- "name": "jdcrensh",
140
- "email": "jdcrensh@gmail.com"
141
- },
142
- {
143
- "name": "limonte",
144
- "email": "limon.monte@gmail.com"
145
- },
146
- {
147
- "name": "samturrell",
148
- "email": "sam@samturrell.co.uk"
149
- },
150
- {
151
- "name": "toverux",
152
- "email": "mtouverey@methodinthemadness.eu"
153
- }
154
- ],
155
- "name": "sweetalert2",
156
- "optionalDependencies": {},
157
- "readme": "ERROR: No README data found!",
158
- "repository": {
159
- "type": "git",
160
- "url": "git+https://github.com/limonte/sweetalert2.git"
161
- },
162
- "scripts": {
163
- "assume-dist-unchanged": "git ls-files dist | tr '\\n' ' ' | xargs git update-index --assume-unchanged",
164
- "no-assume-dist-unchanged": "git ls-files dist | tr '\\n' ' ' | xargs git update-index --no-assume-unchanged",
165
- "test": "testem ci"
166
- },
167
- "standard": {
168
- "ignore": [
169
- "dist/"
170
- ],
171
- "global": [
172
- "gemini",
173
- "MutationObserver"
174
- ]
175
- },
176
- "types": "sweetalert2.d.ts",
177
- "version": "6.6.4"
178
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/vendor/vue/vue.js CHANGED
File without changes
assets/vendor/vue/vue.min.js CHANGED
File without changes
assets/vendor/vuex/vuex.js CHANGED
File without changes
assets/vendor/vuex/vuex.min.js CHANGED
File without changes
class/asset-loader.php CHANGED
@@ -28,9 +28,9 @@ class WPUF_Assets {
28
  ?>
29
  <script type="text/javascript" id="wpuf-language-script">
30
  var error_str_obj = {
31
- 'required' : '<?php esc_attr_e( 'is required', 'wpuf' ); ?>',
32
- 'mismatch' : '<?php esc_attr_e( 'does not match', 'wpuf' ); ?>',
33
- 'validation' : '<?php esc_attr_e( 'is not valid', 'wpuf' ); ?>'
34
  }
35
  </script>
36
  <?php
@@ -42,24 +42,24 @@ class WPUF_Assets {
42
 
43
  wp_localize_script( 'wpuf-form', 'wpuf_frontend', array(
44
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
45
- 'error_message' => __( 'Please fix the errors to proceed', 'wpuf' ),
46
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
47
- 'word_limit' => __( 'Word limit reached', 'wpuf' )
48
  ) );
49
 
50
  wp_localize_script( 'wpuf-upload', 'wpuf_frontend_upload', array(
51
- 'confirmMsg' => __( 'Are you sure?', 'wpuf' ),
52
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
53
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
54
  'plupload' => array(
55
  'url' => admin_url( 'admin-ajax.php' ) . '?nonce=' . wp_create_nonce( 'wpuf-upload-nonce' ),
56
  'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
57
- 'filters' => array(array('title' => __( 'Allowed Files', 'wpuf' ), 'extensions' => '*')),
58
  'multipart' => true,
59
  'urlstream_upload' => true,
60
- 'warning' => __( 'Maximum number of files reached!', 'wpuf' ),
61
- 'size_error' => __( 'The file you have uploaded exceeds the file size limit. Please try again.', 'wpuf' ),
62
- 'type_error' => __( 'You have uploaded an incorrect file type. Please try again.', 'wpuf' )
63
  )
64
  ));
65
 
28
  ?>
29
  <script type="text/javascript" id="wpuf-language-script">
30
  var error_str_obj = {
31
+ 'required' : '<?php esc_attr_e( 'is required', 'wp-user-frontend' ); ?>',
32
+ 'mismatch' : '<?php esc_attr_e( 'does not match', 'wp-user-frontend' ); ?>',
33
+ 'validation' : '<?php esc_attr_e( 'is not valid', 'wp-user-frontend' ); ?>'
34
  }
35
  </script>
36
  <?php
42
 
43
  wp_localize_script( 'wpuf-form', 'wpuf_frontend', array(
44
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
45
+ 'error_message' => __( 'Please fix the errors to proceed', 'wp-user-frontend' ),
46
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
47
+ 'word_limit' => __( 'Word limit reached', 'wp-user-frontend' )
48
  ) );
49
 
50
  wp_localize_script( 'wpuf-upload', 'wpuf_frontend_upload', array(
51
+ 'confirmMsg' => __( 'Are you sure?', 'wp-user-frontend' ),
52
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
53
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
54
  'plupload' => array(
55
  'url' => admin_url( 'admin-ajax.php' ) . '?nonce=' . wp_create_nonce( 'wpuf-upload-nonce' ),
56
  'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
57
+ 'filters' => array(array('title' => __( 'Allowed Files', 'wp-user-frontend' ), 'extensions' => '*')),
58
  'multipart' => true,
59
  'urlstream_upload' => true,
60
+ 'warning' => __( 'Maximum number of files reached!', 'wp-user-frontend' ),
61
+ 'size_error' => __( 'The file you have uploaded exceeds the file size limit. Please try again.', 'wp-user-frontend' ),
62
+ 'type_error' => __( 'You have uploaded an incorrect file type. Please try again.', 'wp-user-frontend' )
63
  )
64
  ));
65
 
class/frontend-account.php CHANGED
@@ -110,7 +110,7 @@ class WPUF_Frontend_Account {
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 );
@@ -123,10 +123,10 @@ class WPUF_Frontend_Account {
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(
@@ -184,7 +184,7 @@ class WPUF_Frontend_Account {
184
  */
185
  public function update_profile() {
186
  if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-account-update-profile' ) ) {
187
- wp_send_json_error( __( 'Nonce failure', 'wpuf' ) );
188
  }
189
 
190
  global $current_user;
@@ -198,15 +198,15 @@ class WPUF_Frontend_Account {
198
  $save_pass = true;
199
 
200
  if ( empty( $first_name ) ) {
201
- wp_send_json_error( __( 'First Name is a required field.', 'wpuf' ) );
202
  }
203
 
204
  if ( empty( $last_name ) ) {
205
- wp_send_json_error( __( 'Last Name is a required field.', 'wpuf' ) );
206
  }
207
 
208
  if ( empty( $email ) ) {
209
- wp_send_json_error( __( 'Email is a required field.', 'wpuf' ) );
210
  }
211
 
212
  $user = new stdClass();
@@ -217,27 +217,27 @@ class WPUF_Frontend_Account {
217
  if ( $email ) {
218
  $email = sanitize_email( $email );
219
  if ( ! is_email( $email ) ) {
220
- wp_send_json_error( __( 'Please provide a valid email address.', 'wpuf' ) );
221
  } elseif ( email_exists( $email ) && $email !== $current_user->user_email ) {
222
- wp_send_json_error( __( 'This email address is already registered.', 'wpuf' ) );
223
  }
224
  $user->user_email = $email;
225
  }
226
 
227
  if ( ! empty( $current_password ) && empty( $pass1 ) && empty( $pass2 ) ) {
228
- wp_send_json_error( __( 'Please fill out all password fields.', 'wpuf' ) );
229
  $save_pass = false;
230
  } elseif ( ! empty( $pass1 ) && empty( $current_password ) ) {
231
- wp_send_json_error( __( 'Please enter your current password.', 'wpuf' ) );
232
  $save_pass = false;
233
  } elseif ( ! empty( $pass1 ) && empty( $pass2 ) ) {
234
- wp_send_json_error( __( 'Please re-enter your password.', 'wpuf' ) );
235
  $save_pass = false;
236
  } elseif ( ( ! empty( $pass1 ) || ! empty( $pass2 ) ) && $pass1 !== $pass2 ) {
237
- wp_send_json_error( __( 'New passwords do not match.', 'wpuf' ) );
238
  $save_pass = false;
239
  } elseif ( ! empty( $pass1 ) && ! wp_check_password( $current_password, $current_user->user_pass, $current_user->ID ) ) {
240
- wp_send_json_error( __( 'Your current password is incorrect.', 'wpuf' ) );
241
  $save_pass = false;
242
  }
243
 
@@ -248,7 +248,7 @@ class WPUF_Frontend_Account {
248
  $result = wp_update_user( $user );
249
 
250
  if ( is_wp_error( $result ) ) {
251
- wp_send_json_error( __( 'Your current password is incorrect.', 'wpuf' ) );
252
  }
253
 
254
  wp_send_json_success();
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>", 'wp-user-frontend' );
114
  return;
115
  }
116
  $user_subscription = new WPUF_User_Subscription( $wpuf_user );
123
 
124
  $recurring_des = '';
125
 
126
+ $billing_amount = ( intval( $pack->meta_value['billing_amount'] ) > 0 ) ? $details_meta['symbol'] . $pack->meta_value['billing_amount'] : __( 'Free', 'wp-user-frontend' );
127
  if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
128
+ $recurring_des = sprintf( __( 'For each %s %s', 'wp-user-frontend' ), $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', 'wp-user-frontend' ), $pack->meta_value['billing_limit'] ) : '';
130
  }
131
 
132
  wpuf_load_template(
184
  */
185
  public function update_profile() {
186
  if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-account-update-profile' ) ) {
187
+ wp_send_json_error( __( 'Nonce failure', 'wp-user-frontend' ) );
188
  }
189
 
190
  global $current_user;
198
  $save_pass = true;
199
 
200
  if ( empty( $first_name ) ) {
201
+ wp_send_json_error( __( 'First Name is a required field.', 'wp-user-frontend' ) );
202
  }
203
 
204
  if ( empty( $last_name ) ) {
205
+ wp_send_json_error( __( 'Last Name is a required field.', 'wp-user-frontend' ) );
206
  }
207
 
208
  if ( empty( $email ) ) {
209
+ wp_send_json_error( __( 'Email is a required field.', 'wp-user-frontend' ) );
210
  }
211
 
212
  $user = new stdClass();
217
  if ( $email ) {
218
  $email = sanitize_email( $email );
219
  if ( ! is_email( $email ) ) {
220
+ wp_send_json_error( __( 'Please provide a valid email address.', 'wp-user-frontend' ) );
221
  } elseif ( email_exists( $email ) && $email !== $current_user->user_email ) {
222
+ wp_send_json_error( __( 'This email address is already registered.', 'wp-user-frontend' ) );
223
  }
224
  $user->user_email = $email;
225
  }
226
 
227
  if ( ! empty( $current_password ) && empty( $pass1 ) && empty( $pass2 ) ) {
228
+ wp_send_json_error( __( 'Please fill out all password fields.', 'wp-user-frontend' ) );
229
  $save_pass = false;
230
  } elseif ( ! empty( $pass1 ) && empty( $current_password ) ) {
231
+ wp_send_json_error( __( 'Please enter your current password.', 'wp-user-frontend' ) );
232
  $save_pass = false;
233
  } elseif ( ! empty( $pass1 ) && empty( $pass2 ) ) {
234
+ wp_send_json_error( __( 'Please re-enter your password.', 'wp-user-frontend' ) );
235
  $save_pass = false;
236
  } elseif ( ( ! empty( $pass1 ) || ! empty( $pass2 ) ) && $pass1 !== $pass2 ) {
237
+ wp_send_json_error( __( 'New passwords do not match.', 'wp-user-frontend' ) );
238
  $save_pass = false;
239
  } elseif ( ! empty( $pass1 ) && ! wp_check_password( $current_password, $current_user->user_pass, $current_user->ID ) ) {
240
+ wp_send_json_error( __( 'Your current password is incorrect.', 'wp-user-frontend' ) );
241
  $save_pass = false;
242
  }
243
 
248
  $result = wp_update_user( $user );
249
 
250
  if ( is_wp_error( $result ) ) {
251
+ wp_send_json_error( __( 'Your current password is incorrect.', 'wp-user-frontend' ) );
252
  }
253
 
254
  wp_send_json_success();
class/frontend-dashboard.php CHANGED
@@ -62,7 +62,7 @@ class WPUF_Frontend_Dashboard {
62
 
63
  //show delete success message
64
  if ( isset( $_GET['msg'] ) && $_GET['msg'] == 'deleted' ) {
65
- echo '<div class="success">' . __( 'Post Deleted', 'wpuf' ) . '</div>';
66
  }
67
  $post_type = explode( ",", $post_type );
68
  $args = array(
@@ -109,11 +109,11 @@ class WPUF_Frontend_Dashboard {
109
  if ( wpuf_get_option( 'show_user_bio', 'wpuf_dashboard', 'on' ) == 'on' ) {
110
  ?>
111
  <div class="wpuf-author">
112
- <h3><?php _e( 'Author Info', 'wpuf' ); ?></h3>
113
  <div class="wpuf-author-inside odd">
114
  <div class="wpuf-user-image"><?php echo get_avatar( $userdata->user_email, 80 ); ?></div>
115
  <div class="wpuf-author-body">
116
- <p class="wpuf-user-name"><a href="<?php echo get_author_posts_url( $userdata->ID ); ?>"><?php printf( esc_attr__( '%s', 'wpuf' ), $userdata->display_name ); ?></a></p>
117
  <p class="wpuf-author-info"><?php echo $userdata->description; ?></p>
118
  </div>
119
  </div>
@@ -145,7 +145,7 @@ class WPUF_Frontend_Dashboard {
145
  $redirect = add_query_arg( array('msg' => 'deleted'), get_permalink() );
146
  wp_redirect( $redirect );
147
  } else {
148
- echo '<div class="error">' . __( 'You are not the post author. Cheeting huh!', 'wpuf' ) . '</div>';
149
  }
150
  }
151
 
62
 
63
  //show delete success message
64
  if ( isset( $_GET['msg'] ) && $_GET['msg'] == 'deleted' ) {
65
+ echo '<div class="success">' . __( 'Post Deleted', 'wp-user-frontend' ) . '</div>';
66
  }
67
  $post_type = explode( ",", $post_type );
68
  $args = array(
109
  if ( wpuf_get_option( 'show_user_bio', 'wpuf_dashboard', 'on' ) == 'on' ) {
110
  ?>
111
  <div class="wpuf-author">
112
+ <h3><?php _e( 'Author Info', 'wp-user-frontend' ); ?></h3>
113
  <div class="wpuf-author-inside odd">
114
  <div class="wpuf-user-image"><?php echo get_avatar( $userdata->user_email, 80 ); ?></div>
115
  <div class="wpuf-author-body">
116
+ <p class="wpuf-user-name"><a href="<?php echo get_author_posts_url( $userdata->ID ); ?>"><?php printf( esc_attr__( '%s', 'wp-user-frontend' ), $userdata->display_name ); ?></a></p>
117
  <p class="wpuf-author-info"><?php echo $userdata->description; ?></p>
118
  </div>
119
  </div>
145
  $redirect = add_query_arg( array('msg' => 'deleted'), get_permalink() );
146
  wp_redirect( $redirect );
147
  } else {
148
+ echo '<div class="error">' . __( 'You are not the post author. Cheeting huh!', 'wp-user-frontend' ) . '</div>';
149
  }
150
  }
151
 
class/frontend-form-post.php CHANGED
@@ -79,7 +79,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
79
  // echo '<div class="wpuf-info">' . apply_filters( 'wpuf_ppp_notice', $info, $id, $form_settings ) . '</div>';
80
  } else {
81
  $user_can_post = 'no';
82
- $info = sprintf( __( 'Payment type not selected for this form. Please contact admin.', 'wpuf' ));
83
  }
84
  } else {
85
  $user_can_post = 'yes';
@@ -118,14 +118,14 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
118
  } elseif ( !$pay_per_post && !$current_user->subscription()->has_post_count( $form_settings['post_type'] ) ) {
119
 
120
  $user_can_post = 'no';
121
- $info = sprintf( __( 'Payment type not selected for this form. Please contact admin.', 'wpuf' ));
122
 
123
  } else {
124
  $user_can_post = 'no';
125
  if ( !is_user_logged_in() ) {
126
  $info = $form_settings['message_restrict'];
127
  } else {
128
- $info = sprintf( __( 'Payment type not selected for this form. Please contact admin.', 'wpuf' ));
129
  }
130
 
131
  }
@@ -168,7 +168,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
168
  ob_start();
169
 
170
  if ( !is_user_logged_in() ) {
171
- echo '<div class="wpuf-message">' . __( 'You are not logged in', 'wpuf' ) . '</div>';
172
  wp_login_form();
173
  return;
174
  }
@@ -176,23 +176,23 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
176
  $post_id = isset( $_GET['pid'] ) ? intval( $_GET['pid'] ) : 0;
177
 
178
  if ( !$post_id ) {
179
- return '<div class="wpuf-info">' . __( 'Invalid post', 'wpuf' ) . '</div>';
180
  }
181
 
182
  //is editing enabled?
183
  if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) != 'yes' ) {
184
- return '<div class="wpuf-info">' . __( 'Post Editing is disabled', 'wpuf' ) . '</div>';
185
  }
186
 
187
  $curpost = get_post( $post_id );
188
 
189
  if ( !$curpost ) {
190
- return '<div class="wpuf-info">' . __( 'Invalid post', 'wpuf' );
191
  }
192
 
193
  // has permission?
194
  if ( !current_user_can( 'delete_others_posts' ) && ( $userdata->ID != $curpost->post_author ) ) {
195
- return '<div class="wpuf-info">' . __( 'You are not allowed to edit', 'wpuf' ) . '</div>';
196
  }
197
 
198
  $form_id = get_post_meta( $post_id, self::$config_id, true );
@@ -204,13 +204,13 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
204
  }
205
 
206
  if ( !$form_id ) {
207
- return '<div class="wpuf-info">' . __( "I don't know how to edit this post, I don't have the form ID", 'wpuf' ) . '</div>';
208
  }
209
 
210
  $disable_pending_edit = wpuf_get_option( 'disable_pending_edit', 'wpuf_dashboard', 'on' );
211
 
212
  if ( $curpost->post_status == 'pending' && $disable_pending_edit == 'on' ) {
213
- return '<div class="wpuf-info">' . __( 'You can\'t edit a post while in pending mode.', 'wpuf' );
214
  }
215
 
216
  if ( isset( $_GET['msg'] ) && $_GET['msg'] == 'post_updated' ) {
@@ -283,7 +283,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
283
 
284
  if ( isset ( $_POST["g-recaptcha-response"] ) ) {
285
  if ( empty( $_POST['g-recaptcha-response'] ) && $check_recaptcha[0]['recaptcha_type'] !== 'invisible_recaptcha') {
286
- $this->send_error( __( 'Empty reCaptcha Field', 'wpuf' ) );
287
  }
288
 
289
  if ( $recaptcha_type == 'enable_no_captcha' ) {
@@ -314,7 +314,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
314
 
315
  // is valid email?
316
  if ( !is_email( $guest_email ) ) {
317
- $this->send_error( __( 'Invalid email address.', 'wpuf' ) );
318
  }
319
 
320
  // check if the user email already exists
@@ -323,7 +323,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
323
  // $post_author = $user->ID;
324
  wp_send_json( array(
325
  'success' => false,
326
- 'error' => __( "You already have an account in our site. Please login to continue.\n\nClicking 'OK' will redirect you to the login page and you will lose the form data.\nClick 'Cancel' to stay at this page.", 'wpuf' ),
327
  'type' => 'login',
328
  'redirect_to' => wp_login_url( get_permalink( $_POST['page_id'] ) )
329
  ) );
@@ -372,7 +372,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
372
  $current_user = wp_get_current_user();
373
 
374
  if ( !in_array( $current_user->roles[0], $form_settings['roles'] ) ) {
375
- $this->send_error( __( 'You do not have sufficient permissions to access this form.', 'wpuf' ) );
376
  }
377
 
378
  } else {
@@ -510,7 +510,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
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() ) {
@@ -748,7 +748,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
748
 
749
  }
750
 
751
- $this->send_error( __( 'Something went wrong', 'wpuf' ) );
752
  }
753
 
754
  /**
@@ -1105,7 +1105,7 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
1105
  'ID' => $post_id,
1106
  'post_status' => isset( $form_settings['post_status'] ) ? $form_settings['post_status'] : 'publish'
1107
  ));
1108
- echo "<div class='wpuf-success' style='text-align:center'>" . __( 'Email successfully verified. Please Login.', 'wpuf' ) ."</div>";
1109
  }
1110
 
1111
  }
79
  // echo '<div class="wpuf-info">' . apply_filters( 'wpuf_ppp_notice', $info, $id, $form_settings ) . '</div>';
80
  } else {
81
  $user_can_post = 'no';
82
+ $info = sprintf( __( 'Payment type not selected for this form. Please contact admin.', 'wp-user-frontend' ));
83
  }
84
  } else {
85
  $user_can_post = 'yes';
118
  } elseif ( !$pay_per_post && !$current_user->subscription()->has_post_count( $form_settings['post_type'] ) ) {
119
 
120
  $user_can_post = 'no';
121
+ $info = sprintf( __( 'Payment type not selected for this form. Please contact admin.', 'wp-user-frontend' ));
122
 
123
  } else {
124
  $user_can_post = 'no';
125
  if ( !is_user_logged_in() ) {
126
  $info = $form_settings['message_restrict'];
127
  } else {
128
+ $info = sprintf( __( 'Payment type not selected for this form. Please contact admin.', 'wp-user-frontend' ));
129
  }
130
 
131
  }
168
  ob_start();
169
 
170
  if ( !is_user_logged_in() ) {
171
+ echo '<div class="wpuf-message">' . __( 'You are not logged in', 'wp-user-frontend' ) . '</div>';
172
  wp_login_form();
173
  return;
174
  }
176
  $post_id = isset( $_GET['pid'] ) ? intval( $_GET['pid'] ) : 0;
177
 
178
  if ( !$post_id ) {
179
+ return '<div class="wpuf-info">' . __( 'Invalid post', 'wp-user-frontend' ) . '</div>';
180
  }
181
 
182
  //is editing enabled?
183
  if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) != 'yes' ) {
184
+ return '<div class="wpuf-info">' . __( 'Post Editing is disabled', 'wp-user-frontend' ) . '</div>';
185
  }
186
 
187
  $curpost = get_post( $post_id );
188
 
189
  if ( !$curpost ) {
190
+ return '<div class="wpuf-info">' . __( 'Invalid post', 'wp-user-frontend' );
191
  }
192
 
193
  // has permission?
194
  if ( !current_user_can( 'delete_others_posts' ) && ( $userdata->ID != $curpost->post_author ) ) {
195
+ return '<div class="wpuf-info">' . __( 'You are not allowed to edit', 'wp-user-frontend' ) . '</div>';
196
  }
197
 
198
  $form_id = get_post_meta( $post_id, self::$config_id, true );
204
  }
205
 
206
  if ( !$form_id ) {
207
+ return '<div class="wpuf-info">' . __( "I don't know how to edit this post, I don't have the form ID", 'wp-user-frontend' ) . '</div>';
208
  }
209
 
210
  $disable_pending_edit = wpuf_get_option( 'disable_pending_edit', 'wpuf_dashboard', 'on' );
211
 
212
  if ( $curpost->post_status == 'pending' && $disable_pending_edit == 'on' ) {
213
+ return '<div class="wpuf-info">' . __( 'You can\'t edit a post while in pending mode.', 'wp-user-frontend' );
214
  }
215
 
216
  if ( isset( $_GET['msg'] ) && $_GET['msg'] == 'post_updated' ) {
283
 
284
  if ( isset ( $_POST["g-recaptcha-response"] ) ) {
285
  if ( empty( $_POST['g-recaptcha-response'] ) && $check_recaptcha[0]['recaptcha_type'] !== 'invisible_recaptcha') {
286
+ $this->send_error( __( 'Empty reCaptcha Field', 'wp-user-frontend' ) );
287
  }
288
 
289
  if ( $recaptcha_type == 'enable_no_captcha' ) {
314
 
315
  // is valid email?
316
  if ( !is_email( $guest_email ) ) {
317
+ $this->send_error( __( 'Invalid email address.', 'wp-user-frontend' ) );
318
  }
319
 
320
  // check if the user email already exists
323
  // $post_author = $user->ID;
324
  wp_send_json( array(
325
  'success' => false,
326
+ 'error' => __( "You already have an account in our site. Please login to continue.\n\nClicking 'OK' will redirect you to the login page and you will lose the form data.\nClick 'Cancel' to stay at this page.", 'wp-user-frontend' ),
327
  'type' => 'login',
328
  'redirect_to' => wp_login_url( get_permalink( $_POST['page_id'] ) )
329
  ) );
372
  $current_user = wp_get_current_user();
373
 
374
  if ( !in_array( $current_user->roles[0], $form_settings['roles'] ) ) {
375
+ $this->send_error( __( 'You do not have sufficient permissions to access this form.', 'wp-user-frontend' ) );
376
  }
377
 
378
  } else {
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_wpuf_subscription_pack['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() ) {
748
 
749
  }
750
 
751
+ $this->send_error( __( 'Something went wrong', 'wp-user-frontend' ) );
752
  }
753
 
754
  /**
1105
  'ID' => $post_id,
1106
  'post_status' => isset( $form_settings['post_status'] ) ? $form_settings['post_status'] : 'publish'
1107
  ));
1108
+ echo "<div class='wpuf-success' style='text-align:center'>" . __( 'Email successfully verified. Please Login.', 'wp-user-frontend' ) ."</div>";
1109
  }
1110
 
1111
  }
class/payment.php CHANGED
@@ -20,13 +20,13 @@ class WPUF_Payment {
20
  // default, built-in gateways
21
  $gateways = array(
22
  'paypal' => array(
23
- 'admin_label' => __( 'PayPal', 'wpuf' ),
24
- 'checkout_label' => __( 'PayPal', 'wpuf' ),
25
  'icon' => apply_filters( 'wpuf_paypal_checkout_icon', WPUF_ASSET_URI . '/images/paypal.png' )
26
  ),
27
  'bank' => array(
28
- 'admin_label' => __( 'Bank Payment', 'wpuf' ),
29
- 'checkout_label' => __( 'Bank Payment', 'wpuf' ),
30
  )
31
  );
32
 
@@ -68,7 +68,7 @@ class WPUF_Payment {
68
  $billing_amount = 0;
69
 
70
  if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'wpuf_pay' && $pay_page == 0 ) {
71
- _e('Please select your payment page from admin panel', 'wpuf' );
72
  return;
73
  }
74
 
@@ -116,9 +116,9 @@ class WPUF_Payment {
116
  wpuf_get_user( $current_user->ID )->subscription()->add_pack( $pack_id, null, false, 'free' );
117
  $wpuf_user->subscription()->add_free_pack( $current_user->ID, $pack_id );
118
 
119
- $message = apply_filters( 'wpuf_fp_activated_msg', __( 'Your free package has been activated. Enjoy!', 'wpuf' ), 'wpuf' );
120
  } else {
121
- $message = apply_filters( 'wpuf_fp_activated_error', __( 'You already have activated a free package previously.', 'wpuf' ), 'wpuf' );
122
  }
123
  ?>
124
  <div class="wpuf-info"><?php echo $message; ?></div>
@@ -127,19 +127,26 @@ class WPUF_Payment {
127
  ?>
128
  <?php if ( count( $gateways ) ) {
129
  ?>
130
- <div class="wpuf-payment-page-wrap">
131
- <div class="wpuf-bill-addr-wrap" style="width: 40%; display: inline-block;">
132
- <div class="wpuf-bill-addr-info">
133
- <h3> <?php _e( 'Billing Address', 'wpuf' ); ?> </h3>
134
- <div class="wpuf-bill_addr-inner">
135
- <?php
136
- $add_form = new WPUF_Ajax_Address_Form( '100' );
137
- $add_form->wpuf_ajax_address_form();
138
- ?>
 
 
 
 
 
 
 
139
  </div>
140
- </div>
141
  </div>
142
- <div class="wpuf-payment-gateway-wrap" style="width: 40%; vertical-align:top; margin-left: 20px; display: inline-block;">
143
  <form id="wpuf-payment-gateway" action="" method="POST">
144
 
145
  <?php if ( $pack_id ) {
@@ -151,13 +158,13 @@ class WPUF_Payment {
151
  <input type="hidden" name="user_id" value="<?php echo $current_user->ID; ?>">
152
  <?php } ?>
153
 
154
- <div class="wpuf-coupon-info-wrap">
155
  <div class="wpuf-coupon-info">
156
  <div class="wpuf-pack-info">
157
- <h3>
158
- <?php _e( 'Pricing & Plans', 'wpuf' ); ?>
159
 
160
- <a href="<?php echo wpuf_get_subscription_page_url(); ?>"><?php _e( 'Change Pack', 'wpuf' ); ?></a>
161
  </h3>
162
  <div class="wpuf-subscription-error"></div>
163
 
@@ -171,12 +178,12 @@ class WPUF_Payment {
171
  ?>
172
  <div id="wpuf_type" style="display: none"><?php echo 'pack'; ?></div>
173
  <div id="wpuf_id" style="display: none"><?php echo $pack_id; ?></div>
174
- <div><?php _e( 'Selected Pack ', 'wpuf' ); ?>: <strong><?php echo $pack->post_title; ?></strong></div>
175
- <div><?php _e( 'Pack Price ', 'wpuf' ); ?>: <strong><span id="wpuf_pay_page_cost"><?php echo wpuf_format_price( $pack_cost ); ?></strong></span></div>
176
 
177
  <?php do_action( 'wpuf_before_pack_payment_total' ); ?>
178
 
179
- <div><?php _e( 'Total', 'wpuf' ); ?>: <strong><span id="wpuf_pay_page_total"><?php echo wpuf_format_price( $billing_amount ); ?></strong></span></div>
180
  <?php } ?>
181
  </div>
182
  </div>
@@ -188,11 +195,11 @@ class WPUF_Payment {
188
  <input type="text" name="coupon_code" size="20" class="wpuf-coupon-field">
189
  <input type="hidden" name="coupon_id" size="20" class="wpuf-coupon-id-field">
190
  <div>
191
- <a href="#" data-pack_id="<?php echo $pack_id; ?>" class="wpuf-apply-coupon"><?php _e( 'Apply Coupon', 'wpuf' ); ?></a>
192
- <a href="#" data-pack_id="<?php echo $pack_id; ?>" class="wpuf-copon-cancel"><?php _e( 'Cancel', 'wpuf' ); ?></a>
193
  </div>
194
  </div>
195
- <a href="#" class="wpuf-copon-show"><?php _e( 'Have a discount code?', 'wpuf' ); ?></a>
196
 
197
  <?php } // coupon ?>
198
  </div>
@@ -218,18 +225,18 @@ class WPUF_Payment {
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>
221
- <div><?php _e( 'Post cost', 'wpuf' ); ?>: <strong><span id="wpuf_pay_page_cost"><?php echo wpuf_format_price( $post_cost ); ?></strong></span></div>
222
 
223
  <?php do_action( 'wpuf_before_pack_payment_total' ); ?>
224
 
225
- <div><?php _e( 'Total', 'wpuf' ); ?>: <strong><span id="wpuf_pay_page_total"><?php echo wpuf_format_price( $billing_amount ); ?></strong></span></div>
226
  <?php } ?>
227
  <?php wp_nonce_field( 'wpuf_payment_gateway' ) ?>
228
 
229
  <?php do_action( 'wpuf_before_payment_gateway' ); ?>
230
 
231
  <p>
232
- <label for="wpuf-payment-method"><?php _e( 'Choose Your Payment Method', 'wpuf' ); ?></label><br />
233
 
234
  <ul class="wpuf-payment-gateways">
235
  <?php foreach ($gateways as $gateway_id => $gateway) { ?>
@@ -265,13 +272,13 @@ class WPUF_Payment {
265
  <?php if ( $pack_id ) { ?>
266
  <input type="hidden" name="pack_id" value="<?php echo $pack_id; ?>" />
267
  <?php } ?>
268
- <input type="submit" name="wpuf_payment_submit" class="wpuf-btn" value="<?php _e( 'Proceed', 'wpuf' ); ?>"/>
269
  </p>
270
  </form>
271
  </div>
272
  </div>
273
  <?php } else { ?>
274
- <?php _e( 'No Payment gateway found', 'wpuf' ); ?>
275
  <?php } ?>
276
 
277
  <?php
@@ -411,9 +418,8 @@ class WPUF_Payment {
411
  $data['tax'] = $data['cost'] - $data['subtotal'];
412
  }
413
 
414
- if ( metadata_exists( 'user', $user_id, 'wpuf_address_fields') ) {
415
- $address_fields = get_user_meta( $user_id, 'wpuf_address_fields', true );
416
- $data['payer_address'] = serialize( $address_fields );
417
  }
418
 
419
  if ( !$result ) {
@@ -436,8 +442,8 @@ class WPUF_Payment {
436
  */
437
  function payment_notify_admin( $info ) {
438
  $headers = "From: " . get_bloginfo( 'name' ) . " <" . get_bloginfo( 'admin_email' ) . ">" . "\r\n\\";
439
- $subject = sprintf( __( '[%s] Payment Received', 'wpuf' ), get_bloginfo( 'name' ) );
440
- $msg = sprintf( __( 'New payment received at %s', 'wpuf' ), get_bloginfo( 'name' ) );
441
 
442
  $receiver = get_bloginfo( 'admin_email' );
443
  wp_mail( $receiver, $subject, $msg, $headers );
20
  // default, built-in gateways
21
  $gateways = array(
22
  'paypal' => array(
23
+ 'admin_label' => __( 'PayPal', 'wp-user-frontend' ),
24
+ 'checkout_label' => __( 'PayPal', 'wp-user-frontend' ),
25
  'icon' => apply_filters( 'wpuf_paypal_checkout_icon', WPUF_ASSET_URI . '/images/paypal.png' )
26
  ),
27
  'bank' => array(
28
+ 'admin_label' => __( 'Bank Payment', 'wp-user-frontend' ),
29
+ 'checkout_label' => __( 'Bank Payment', 'wp-user-frontend' ),
30
  )
31
  );
32
 
68
  $billing_amount = 0;
69
 
70
  if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'wpuf_pay' && $pay_page == 0 ) {
71
+ _e('Please select your payment page from admin panel', 'wp-user-frontend' );
72
  return;
73
  }
74
 
116
  wpuf_get_user( $current_user->ID )->subscription()->add_pack( $pack_id, null, false, 'free' );
117
  $wpuf_user->subscription()->add_free_pack( $current_user->ID, $pack_id );
118
 
119
+ $message = apply_filters( 'wpuf_fp_activated_msg', __( 'Your free package has been activated. Enjoy!', 'wp-user-frontend' ), 'wpuf' );
120
  } else {
121
+ $message = apply_filters( 'wpuf_fp_activated_error', __( 'You already have activated a free package previously.', 'wp-user-frontend' ), 'wpuf' );
122
  }
123
  ?>
124
  <div class="wpuf-info"><?php echo $message; ?></div>
127
  ?>
128
  <?php if ( count( $gateways ) ) {
129
  ?>
130
+ <div class="wpuf-payment-page-wrap row">
131
+ <?php
132
+ $pay_page_style = "";
133
+ ?>
134
+ <div class="wpuf-bill-addr-wrap col">
135
+ <?php if ( wpuf_get_option( 'show_address', 'wpuf_address_options', false ) ) {
136
+ $pay_page_style = "vertical-align:top; margin-left: 20px; display: inline-block;";
137
+ ?>
138
+ <div class="wpuf-bill-addr-info">
139
+ <h3> <?php _e( 'Billing Address', 'wp-user-frontend' ); ?> </h3>
140
+ <div class="wpuf-bill_addr-inner">
141
+ <?php
142
+ $add_form = new WPUF_Ajax_Address_Form();
143
+ $add_form->wpuf_ajax_address_form();
144
+ ?>
145
+ </div>
146
  </div>
147
+ <?php } ?>
148
  </div>
149
+ <div class="wpuf-payment-gateway-wrap" style="<?php echo $pay_page_style; ?>">
150
  <form id="wpuf-payment-gateway" action="" method="POST">
151
 
152
  <?php if ( $pack_id ) {
158
  <input type="hidden" name="user_id" value="<?php echo $current_user->ID; ?>">
159
  <?php } ?>
160
 
161
+ <div class="wpuf-coupon-info-wrap col">
162
  <div class="wpuf-coupon-info">
163
  <div class="wpuf-pack-info">
164
+ <h3 class="col">
165
+ <?php _e( 'Pricing & Plans', 'wp-user-frontend' ); ?>
166
 
167
+ <a style="white-space: nowrap" href="<?php echo wpuf_get_subscription_page_url(); ?>"><?php _e( 'Change Pack', 'wp-user-frontend' ); ?></a>
168
  </h3>
169
  <div class="wpuf-subscription-error"></div>
170
 
178
  ?>
179
  <div id="wpuf_type" style="display: none"><?php echo 'pack'; ?></div>
180
  <div id="wpuf_id" style="display: none"><?php echo $pack_id; ?></div>
181
+ <div><?php _e( 'Selected Pack ', 'wp-user-frontend' ); ?>: <strong><?php echo $pack->post_title; ?></strong></div>
182
+ <div><?php _e( 'Pack Price ', 'wp-user-frontend' ); ?>: <strong><span id="wpuf_pay_page_cost"><?php echo wpuf_format_price( $pack_cost ); ?></strong></span></div>
183
 
184
  <?php do_action( 'wpuf_before_pack_payment_total' ); ?>
185
 
186
+ <div><?php _e( 'Total', 'wp-user-frontend' ); ?>: <strong><span id="wpuf_pay_page_total"><?php echo wpuf_format_price( $billing_amount ); ?></strong></span></div>
187
  <?php } ?>
188
  </div>
189
  </div>
195
  <input type="text" name="coupon_code" size="20" class="wpuf-coupon-field">
196
  <input type="hidden" name="coupon_id" size="20" class="wpuf-coupon-id-field">
197
  <div>
198
+ <a href="#" data-pack_id="<?php echo $pack_id; ?>" class="wpuf-apply-coupon"><?php _e( 'Apply Coupon', 'wp-user-frontend' ); ?></a>
199
+ <a href="#" data-pack_id="<?php echo $pack_id; ?>" class="wpuf-copon-cancel"><?php _e( 'Cancel', 'wp-user-frontend' ); ?></a>
200
  </div>
201
  </div>
202
+ <a href="#" class="wpuf-copon-show"><?php _e( 'Have a discount code?', 'wp-user-frontend' ); ?></a>
203
 
204
  <?php } // coupon ?>
205
  </div>
225
  ?>
226
  <div id="wpuf_type" style="display: none"><?php echo 'post'; ?></div>
227
  <div id="wpuf_id" style="display: none"><?php echo $post_id; ?></div>
228
+ <div><?php _e( 'Post cost', 'wp-user-frontend' ); ?>: <strong><span id="wpuf_pay_page_cost"><?php echo wpuf_format_price( $post_cost ); ?></strong></span></div>
229
 
230
  <?php do_action( 'wpuf_before_pack_payment_total' ); ?>
231
 
232
+ <div><?php _e( 'Total', 'wp-user-frontend' ); ?>: <strong><span id="wpuf_pay_page_total"><?php echo wpuf_format_price( $billing_amount ); ?></strong></span></div>
233
  <?php } ?>
234
  <?php wp_nonce_field( 'wpuf_payment_gateway' ) ?>
235
 
236
  <?php do_action( 'wpuf_before_payment_gateway' ); ?>
237
 
238
  <p>
239
+ <label for="wpuf-payment-method"><?php _e( 'Choose Your Payment Method', 'wp-user-frontend' ); ?></label><br />
240
 
241
  <ul class="wpuf-payment-gateways">
242
  <?php foreach ($gateways as $gateway_id => $gateway) { ?>
272
  <?php if ( $pack_id ) { ?>
273
  <input type="hidden" name="pack_id" value="<?php echo $pack_id; ?>" />
274
  <?php } ?>
275
+ <input type="submit" name="wpuf_payment_submit" class="wpuf-btn" value="<?php _e( 'Proceed', 'wp-user-frontend' ); ?>"/>
276
  </p>
277
  </form>
278
  </div>
279
  </div>
280
  <?php } else { ?>
281
+ <?php _e( 'No Payment gateway found', 'wp-user-frontend' ); ?>
282
  <?php } ?>
283
 
284
  <?php
418
  $data['tax'] = $data['cost'] - $data['subtotal'];
419
  }
420
 
421
+ if ( wpuf_get_option( 'show_address', 'wpuf_address_options', false ) ) {
422
+ $data['payer_address'] = wpuf_get_user_address();
 
423
  }
424
 
425
  if ( !$result ) {
442
  */
443
  function payment_notify_admin( $info ) {
444
  $headers = "From: " . get_bloginfo( 'name' ) . " <" . get_bloginfo( 'admin_email' ) . ">" . "\r\n\\";
445
+ $subject = sprintf( __( '[%s] Payment Received', 'wp-user-frontend' ), get_bloginfo( 'name' ) );
446
+ $msg = sprintf( __( 'New payment received at %s', 'wp-user-frontend' ), get_bloginfo( 'name' ) );
447
 
448
  $receiver = get_bloginfo( 'admin_email' );
449
  wp_mail( $receiver, $subject, $msg, $headers );
class/post-form-templates/post.php CHANGED
@@ -9,20 +9,20 @@ class WPUF_Post_Form_Template_Post extends WPUF_Post_Form_Template {
9
  parent::__construct();
10
 
11
  $this->enabled = true;
12
- $this->title = __( 'Post Form', 'wpuf' );
13
- $this->description = __( 'Form for creating a blog post.', 'wpuf' );
14
  $this->image = WPUF_ASSET_URI . '/images/templates/post.png';
15
  $this->form_fields = array(
16
  array(
17
  'input_type' => 'text',
18
  'template' => 'post_title',
19
  'required' => 'yes',
20
- 'label' => 'Post Title',
21
  'name' => 'post_title',
22
  'is_meta' => 'no',
23
  'help' => '',
24
  'css' => '',
25
- 'placeholder' => 'Please enter your post name',
26
  'default' => '',
27
  'size' => '40',
28
  'wpuf_cond' => $this->conditionals
@@ -31,10 +31,10 @@ class WPUF_Post_Form_Template_Post extends WPUF_Post_Form_Template {
31
  'input_type' => 'taxonomy',
32
  'template' => 'taxonomy',
33
  'required' => 'yes',
34
- 'label' => 'Category',
35
  'name' => 'category',
36
  'is_meta' => 'no',
37
- 'help' => 'Select a category for your post',
38
  'css' => '',
39
  'type' => 'select',
40
  'orderby' => 'name',
@@ -50,10 +50,10 @@ class WPUF_Post_Form_Template_Post extends WPUF_Post_Form_Template {
50
  'input_type' => 'textarea',
51
  'template' => 'post_content',
52
  'required' => 'yes',
53
- 'label' => 'Post description',
54
  'name' => 'post_content',
55
  'is_meta' => 'no',
56
- 'help' => 'Write the full description of your Post',
57
  'css' => '',
58
  'rows' => '5',
59
  'cols' => '25',
@@ -65,26 +65,27 @@ class WPUF_Post_Form_Template_Post extends WPUF_Post_Form_Template {
65
  'wpuf_cond' => $this->conditionals
66
  ),
67
  array(
68
- 'input_type' => 'image_upload',
69
- 'template' => 'featured_image',
70
- 'count' => '1',
71
- 'required' => 'yes',
72
- 'label' => 'Featured Image',
73
- 'name' => 'featured_image',
74
- 'is_meta' => 'no',
75
- 'help' => 'Upload the main image of your post',
76
- 'css' => '',
77
- 'max_size' => '1024',
78
- 'wpuf_cond' => $this->conditionals
 
79
  ),
80
  array(
81
  'input_type' => 'textarea',
82
  'template' => 'post_excerpt',
83
  'required' => 'no',
84
- 'label' => 'Excerpt',
85
  'name' => 'post_excerpt',
86
  'is_meta' => 'no',
87
- 'help' => 'Provide a short description of this post (optional)',
88
  'css' => '',
89
  'rows' => '5',
90
  'cols' => '25',
@@ -97,10 +98,10 @@ class WPUF_Post_Form_Template_Post extends WPUF_Post_Form_Template {
97
  'input_type' => 'text',
98
  'template' => 'post_tags',
99
  'required' => 'no',
100
- 'label' => 'Tags',
101
  'name' => 'tags',
102
  'is_meta' => 'no',
103
- 'help' => 'Separate tags with commas.',
104
  'css' => '',
105
  'placeholder' => '',
106
  'default' => '',
@@ -114,15 +115,15 @@ class WPUF_Post_Form_Template_Post extends WPUF_Post_Form_Template {
114
  'post_status' => 'publish',
115
  'default_cat' => '-1',
116
  'guest_post' => 'false',
117
- 'message_restrict' => 'This page is restricted. Please Log in / Register to view this page.',
118
  'redirect_to' => 'post',
119
  'comment_status' => 'open',
120
- 'submit_text' => 'Create Post',
121
  'edit_post_status' => 'publish',
122
  'edit_redirect_to' => 'same',
123
- 'update_message' => 'Post has been updated successfully. <a target="_blank" href="%link%">View post</a>',
124
  'edit_url' => '',
125
- 'update_text' => 'Update Post',
126
  'form_template' => __CLASS__,
127
  'notification' => array(
128
  'new' => 'on',
@@ -154,4 +155,4 @@ Edit URL: %editlink%',
154
  ),
155
  );
156
  }
157
- }
9
  parent::__construct();
10
 
11
  $this->enabled = true;
12
+ $this->title = __( 'Post Form', 'wp-user-frontend' );
13
+ $this->description = __( 'Form for creating a blog post.', 'wp-user-frontend' );
14
  $this->image = WPUF_ASSET_URI . '/images/templates/post.png';
15
  $this->form_fields = array(
16
  array(
17
  'input_type' => 'text',
18
  'template' => 'post_title',
19
  'required' => 'yes',
20
+ 'label' => __( 'Post Title', 'wp-user-frontend' ),
21
  'name' => 'post_title',
22
  'is_meta' => 'no',
23
  'help' => '',
24
  'css' => '',
25
+ 'placeholder' => __( 'Please enter your post name', 'wp-user-frontend' ),
26
  'default' => '',
27
  'size' => '40',
28
  'wpuf_cond' => $this->conditionals
31
  'input_type' => 'taxonomy',
32
  'template' => 'taxonomy',
33
  'required' => 'yes',
34
+ 'label' => __( 'Category', 'wp-user-frontend' ),
35
  'name' => 'category',
36
  'is_meta' => 'no',
37
+ 'help' => __( 'Select a category for your post', 'wp-user-frontend' ) ,
38
  'css' => '',
39
  'type' => 'select',
40
  'orderby' => 'name',
50
  'input_type' => 'textarea',
51
  'template' => 'post_content',
52
  'required' => 'yes',
53
+ 'label' => __( 'Post description', 'wp-user-frontend' ),
54
  'name' => 'post_content',
55
  'is_meta' => 'no',
56
+ 'help' => __( 'Write the full description of your Post', 'wp-user-frontend' ),
57
  'css' => '',
58
  'rows' => '5',
59
  'cols' => '25',
65
  'wpuf_cond' => $this->conditionals
66
  ),
67
  array(
68
+ 'input_type' => 'image_upload',
69
+ 'template' => 'featured_image',
70
+ 'count' => '1',
71
+ 'required' => 'yes',
72
+ 'label' => __( 'Featured Image', 'wp-user-frontend' ),
73
+ 'button_label' => __( 'Featured Image', 'wp-user-frontend' ),
74
+ 'name' => 'featured_image',
75
+ 'is_meta' => 'no',
76
+ 'help' => __( 'Upload the main image of your post', 'wp-user-frontend' ),
77
+ 'css' => '',
78
+ 'max_size' => '1024',
79
+ 'wpuf_cond' => $this->conditionals
80
  ),
81
  array(
82
  'input_type' => 'textarea',
83
  'template' => 'post_excerpt',
84
  'required' => 'no',
85
+ 'label' => __( 'Excerpt', 'wp-user-frontend' ),
86
  'name' => 'post_excerpt',
87
  'is_meta' => 'no',
88
+ 'help' => __( 'Provide a short description of this post (optional)', 'wp-user-frontend' ),
89
  'css' => '',
90
  'rows' => '5',
91
  'cols' => '25',
98
  'input_type' => 'text',
99
  'template' => 'post_tags',
100
  'required' => 'no',
101
+ 'label' => __( 'Tags', 'wp-user-frontend' ),
102
  'name' => 'tags',
103
  'is_meta' => 'no',
104
+ 'help' => __( 'Separate tags with commas.', 'wp-user-frontend' ),
105
  'css' => '',
106
  'placeholder' => '',
107
  'default' => '',
115
  'post_status' => 'publish',
116
  'default_cat' => '-1',
117
  'guest_post' => 'false',
118
+ 'message_restrict' => __( 'This page is restricted. Please Log in / Register to view this page.', 'wp-user-frontend' ),
119
  'redirect_to' => 'post',
120
  'comment_status' => 'open',
121
+ 'submit_text' => __( 'Create Post', 'wp-user-frontend' ),
122
  'edit_post_status' => 'publish',
123
  'edit_redirect_to' => 'same',
124
+ 'update_message' => __( 'Post has been updated successfully. <a target="_blank" href="%link%">View post</a>', 'wp-user-frontend' ),
125
  'edit_url' => '',
126
+ 'update_text' => __( 'Update Post', 'wp-user-frontend' ),
127
  'form_template' => __CLASS__,
128
  'notification' => array(
129
  'new' => 'on',
155
  ),
156
  );
157
  }
158
+ }
class/render-form.php CHANGED
@@ -73,7 +73,7 @@ class WPUF_Render_Form {
73
 
74
  if ( !$captcha_instance->check( $rs_captcha_file, $rs_captcha_input ) ) {
75
 
76
- $this->send_error( __( 'Really Simple Captcha validation failed', 'wpuf' ) );
77
  } else {
78
  // validation success, remove the files
79
  $captcha_instance->remove( $rs_captcha_file );
@@ -102,7 +102,7 @@ class WPUF_Render_Form {
102
  );
103
 
104
  if ( !$resp->success ) {
105
- $this->send_error( __( 'noCaptcha reCAPTCHA validation failed', 'wpuf' ) );
106
  }
107
 
108
  } elseif ( $no_captcha == 0 && 0 == $invisible ) {
@@ -113,7 +113,7 @@ class WPUF_Render_Form {
113
  $resp = recaptcha_check_answer( $private_key, $_SERVER["REMOTE_ADDR"], $recap_challenge, $recap_response );
114
 
115
  if ( !$resp->is_valid ) {
116
- $this->send_error( __( 'reCAPTCHA validation failed', 'wpuf' ) );
117
  }
118
 
119
  } elseif ( $no_captcha == 0 && 1 == $invisible ) {
@@ -125,7 +125,7 @@ class WPUF_Render_Form {
125
  $response = $object->verifyResponse( $recaptcha );
126
 
127
  if ( isset( $response['success'] ) and $response['success'] != true) {
128
- $this->send_error( __( 'Invisible reCAPTCHA validation failed', 'wpuf' ) );
129
  }
130
  }
131
 
@@ -340,12 +340,12 @@ class WPUF_Render_Form {
340
  $form_status = get_post_status( $form_id );
341
 
342
  if ( ! $form_status ) {
343
- echo '<div class="wpuf-message">' . __( 'Your selected form is no longer available.', 'wpuf' ) . '</div>';
344
  return;
345
  }
346
 
347
  if ( $form_status != 'publish' ) {
348
- echo '<div class="wpuf-message">' . __( "Please make sure you've published your form.", 'wpuf' ) . '</div>';
349
  return;
350
  }
351
 
@@ -749,7 +749,7 @@ class WPUF_Render_Form {
749
  <?php } ?>
750
 
751
  <?php if ( isset( $form_settings['draft_post'] ) && $form_settings['draft_post'] == 'true' ) { ?>
752
- <a href="#" class="btn" id="wpuf-post-draft"><?php _e( 'Save Draft', 'wpuf' ); ?></a>
753
  <?php } ?>
754
  </li>
755
  <?php
@@ -1045,7 +1045,7 @@ class WPUF_Render_Form {
1045
  <div id="wpuf-insert-image-container">
1046
  <a class="wpuf-button wpuf-insert-image" id="wpuf-insert-image_<?php echo $form_id; ?>" href="#" data-form_id="<?php echo $form_id; ?>">
1047
  <span class="wpuf-media-icon"></span>
1048
- <?php _e( 'Insert Photo', 'wpuf' ); ?>
1049
  </a>
1050
  </div>
1051
 
@@ -1351,7 +1351,7 @@ class WPUF_Render_Form {
1351
  </div>
1352
 
1353
  <div class="wpuf-fields">
1354
- <div id="pass-strength-result" style="display: block"><?php _e( 'Strength indicator', 'wpuf' ); ?></div>
1355
  </div>
1356
 
1357
  <script type="text/javascript">
@@ -1416,7 +1416,7 @@ class WPUF_Render_Form {
1416
  }
1417
 
1418
  $tax_args = array(
1419
- 'show_option_none' => __( '-- Select --', 'wpuf' ),
1420
  'hierarchical' => 1,
1421
  'hide_empty' => 0,
1422
  'orderby' => isset( $attr['orderby'] ) ? $attr['orderby'] : 'name',
@@ -1481,7 +1481,7 @@ class WPUF_Render_Form {
1481
  }
1482
 
1483
  if ( ! taxonomy_exists( $taxonomy ) ) {
1484
- echo '<br><div class="wpuf-message">' . __( 'This field is no longer available.', 'wpuf' ) . '</div>';
1485
  return;
1486
  }
1487
 
@@ -1665,7 +1665,7 @@ class WPUF_Render_Form {
1665
  }
1666
  }
1667
  }
1668
- $button_label = empty( $attr['button_label'] ) ? __( 'Select Image', 'wpuf' ) : $attr['button_label'];
1669
  ?>
1670
 
1671
  <div class="wpuf-fields">
@@ -1683,7 +1683,7 @@ class WPUF_Render_Form {
1683
  $avatar = get_user_meta( $post_id, 'user_avatar', true );
1684
  if ( $avatar ) {
1685
  echo '<li>'.$featured_image;
1686
- printf( '<br><a href="#" data-confirm="%s" class="btn btn-danger btn-small wpuf-button button wpuf-delete-avatar">%s</a>', __( 'Are you sure?', 'wpuf' ), __( 'Delete', 'wpuf' ) );
1687
  echo '</li>';
1688
  }
1689
  }
73
 
74
  if ( !$captcha_instance->check( $rs_captcha_file, $rs_captcha_input ) ) {
75
 
76
+ $this->send_error( __( 'Really Simple Captcha validation failed', 'wp-user-frontend' ) );
77
  } else {
78
  // validation success, remove the files
79
  $captcha_instance->remove( $rs_captcha_file );
102
  );
103
 
104
  if ( !$resp->success ) {
105
+ $this->send_error( __( 'noCaptcha reCAPTCHA validation failed', 'wp-user-frontend' ) );
106
  }
107
 
108
  } elseif ( $no_captcha == 0 && 0 == $invisible ) {
113
  $resp = recaptcha_check_answer( $private_key, $_SERVER["REMOTE_ADDR"], $recap_challenge, $recap_response );
114
 
115
  if ( !$resp->is_valid ) {
116
+ $this->send_error( __( 'reCAPTCHA validation failed', 'wp-user-frontend' ) );
117
  }
118
 
119
  } elseif ( $no_captcha == 0 && 1 == $invisible ) {
125
  $response = $object->verifyResponse( $recaptcha );
126
 
127
  if ( isset( $response['success'] ) and $response['success'] != true) {
128
+ $this->send_error( __( 'Invisible reCAPTCHA validation failed', 'wp-user-frontend' ) );
129
  }
130
  }
131
 
340
  $form_status = get_post_status( $form_id );
341
 
342
  if ( ! $form_status ) {
343
+ echo '<div class="wpuf-message">' . __( 'Your selected form is no longer available.', 'wp-user-frontend' ) . '</div>';
344
  return;
345
  }
346
 
347
  if ( $form_status != 'publish' ) {
348
+ echo '<div class="wpuf-message">' . __( "Please make sure you've published your form.", 'wp-user-frontend' ) . '</div>';
349
  return;
350
  }
351
 
749
  <?php } ?>
750
 
751
  <?php if ( isset( $form_settings['draft_post'] ) && $form_settings['draft_post'] == 'true' ) { ?>
752
+ <a href="#" class="btn" id="wpuf-post-draft"><?php _e( 'Save Draft', 'wp-user-frontend' ); ?></a>
753
  <?php } ?>
754
  </li>
755
  <?php
1045
  <div id="wpuf-insert-image-container">
1046
  <a class="wpuf-button wpuf-insert-image" id="wpuf-insert-image_<?php echo $form_id; ?>" href="#" data-form_id="<?php echo $form_id; ?>">
1047
  <span class="wpuf-media-icon"></span>
1048
+ <?php _e( 'Insert Photo', 'wp-user-frontend' ); ?>
1049
  </a>
1050
  </div>
1051
 
1351
  </div>
1352
 
1353
  <div class="wpuf-fields">
1354
+ <div id="pass-strength-result" style="display: block"><?php _e( 'Strength indicator', 'wp-user-frontend' ); ?></div>
1355
  </div>
1356
 
1357
  <script type="text/javascript">
1416
  }
1417
 
1418
  $tax_args = array(
1419
+ 'show_option_none' => __( '-- Select --', 'wp-user-frontend' ),
1420
  'hierarchical' => 1,
1421
  'hide_empty' => 0,
1422
  'orderby' => isset( $attr['orderby'] ) ? $attr['orderby'] : 'name',
1481
  }
1482
 
1483
  if ( ! taxonomy_exists( $taxonomy ) ) {
1484
+ echo '<br><div class="wpuf-message">' . __( 'This field is no longer available.', 'wp-user-frontend' ) . '</div>';
1485
  return;
1486
  }
1487
 
1665
  }
1666
  }
1667
  }
1668
+ $button_label = empty( $attr['button_label'] ) ? __( 'Select Image', 'wp-user-frontend' ) : $attr['button_label'];
1669
  ?>
1670
 
1671
  <div class="wpuf-fields">
1683
  $avatar = get_user_meta( $post_id, 'user_avatar', true );
1684
  if ( $avatar ) {
1685
  echo '<li>'.$featured_image;
1686
+ printf( '<br><a href="#" data-confirm="%s" class="btn btn-danger btn-small wpuf-button button wpuf-delete-avatar">%s</a>', __( 'Are you sure?', 'wp-user-frontend' ), __( 'Delete', 'wp-user-frontend' ) );
1687
  echo '</li>';
1688
  }
1689
  }
class/subscription.php CHANGED
@@ -70,7 +70,7 @@ class WPUF_Subscription {
70
  if ( isset( $_POST['wpuf_cancel_subscription'] ) ) {
71
 
72
  if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-sub-cancel' ) ) {
73
- wp_die( __( 'Nonce failure', 'wpuf' ) );
74
  }
75
 
76
  $current_pack = self::get_user_pack( $_POST['user_id'] );
@@ -294,7 +294,7 @@ class WPUF_Subscription {
294
  $screen = get_current_screen();
295
 
296
  if ( 'wpuf_subscription' == $screen->post_type ) {
297
- $title = __( 'Pack Name', 'wpuf' );
298
  }
299
 
300
  return $title;
@@ -353,7 +353,7 @@ class WPUF_Subscription {
353
  $capability = wpuf_admin_role();
354
 
355
  register_post_type( 'wpuf_subscription', array(
356
- 'label' => __( 'Subscription', 'wpuf' ),
357
  'public' => false,
358
  'show_ui' => true,
359
  'show_in_menu' => false,
@@ -373,20 +373,20 @@ class WPUF_Subscription {
373
  'read_post' => $capability,
374
  ),
375
  'labels' => array(
376
- 'name' => __( 'Subscription', 'wpuf' ),
377
- 'singular_name' => __( 'Subscription', 'wpuf' ),
378
- 'menu_name' => __( 'Subscription', 'wpuf' ),
379
- 'add_new' => __( 'Add Subscription', 'wpuf' ),
380
- 'add_new_item' => __( 'Add New Subscription', 'wpuf' ),
381
- 'edit' => __( 'Edit', 'wpuf' ),
382
- 'edit_item' => __( 'Edit Subscription', 'wpuf' ),
383
- 'new_item' => __( 'New Subscription', 'wpuf' ),
384
- 'view' => __( 'View Subscription', 'wpuf' ),
385
- 'view_item' => __( 'View Subscription', 'wpuf' ),
386
- 'search_items' => __( 'Search Subscription', 'wpuf' ),
387
- 'not_found' => __( 'No Subscription Found', 'wpuf' ),
388
- 'not_found_in_trash' => __( 'No Subscription Found in Trash', 'wpuf' ),
389
- 'parent' => __( 'Parent Subscription', 'wpuf' ),
390
  ),
391
  ) );
392
  }
@@ -443,17 +443,18 @@ class WPUF_Subscription {
443
 
444
  $form = new WPUF_Form( $form_id );
445
  $payment_options = $form->is_charging_enabled();
 
446
  $pay_per_post = $form->is_enabled_pay_per_post();
447
  $fallback_cost = $form->is_enabled_fallback_cost();
448
  $current_user = wpuf_get_user();
449
  $current_pack = $current_user->subscription()->current_pack();
450
  $has_post = $current_user->subscription()->has_post_count( $form_settings['post_type'] );
451
 
452
- if ( is_wp_error( $current_pack ) && $fallback_cost && !$has_post ) {
453
  $postdata['post_status'] = 'pending';
454
  }
455
 
456
- if ( $payment_options && ( $pay_per_post || ( $fallback_cost && !$has_post ))) {
457
  $postdata['post_status'] = 'pending';
458
  }
459
 
@@ -468,8 +469,8 @@ class WPUF_Subscription {
468
  * @param int $post_id
469
  */
470
  function monitor_new_post( $post_id, $form_id, $form_settings ) {
471
-
472
  global $wpdb, $userdata;
 
473
 
474
  // bail out if charging is not enabled
475
  $form = new WPUF_Form( $form_id );
@@ -509,7 +510,7 @@ class WPUF_Subscription {
509
  update_post_meta( $post_id, 'wpuf_post_status', 'published' );
510
 
511
 
512
- } elseif ( $pay_per_post || ($fallback_cost && !$has_post )) {
513
  //there is some error and it needs payment
514
  //add a uniqid to track the post easily
515
  $order_id = uniqid( rand( 10, 1000 ), false );
@@ -718,7 +719,7 @@ class WPUF_Subscription {
718
  * from admin Panel
719
  */
720
  function subscription_packs( $atts = null ) {
721
- $cost_per_post = isset( $form_settings['pay_per_post_cost'] ) ? $form_settings['pay_per_post_cost'] : 0;
722
 
723
  $defaults = array(
724
  'include' => '',
@@ -743,15 +744,15 @@ class WPUF_Subscription {
743
  ob_start();
744
 
745
  if ( isset( $_GET['action'] ) && $_GET['action'] == 'wpuf_paypal_success' ) {
746
- printf( '<h1>%1$s</h1><p>%2$s</p>', __( 'Payment is complete', 'wpuf' ), __( 'Congratulations, your payment has been completed!', 'wpuf' ) );
747
  }
748
 
749
  if ( isset( $_GET['pack_msg'] ) && $_GET['pack_msg'] == 'buy_pack' ) {
750
- _e('Please buy a subscription pack to post', 'wpuf' );
751
  }
752
 
753
  if ( isset( $_GET['ppp_msg'] ) && $_GET['ppp_msg'] == 'pay_per_post' ) {
754
- _e('Please buy a subscription pack to post', 'wpuf' );
755
  }
756
 
757
  $current_pack = self::get_user_pack( get_current_user_id() );
@@ -765,16 +766,16 @@ class WPUF_Subscription {
765
  $payment_gateway = strtolower( $payment_gateway );
766
  ?>
767
 
768
- <?php _e( '<p><i>You have a subscription pack activated. </i></p>', 'wpuf' ); ?>
769
- <?php echo sprintf( __( "<p><i>Pack name: %s </i></p>", "wpuf" ), get_the_title( $current_pack['pack_id'] ) ); ?>
770
 
771
- <?php _e( '<p><i>To cancel the pack, press the following cancel button</i></p>', 'wpuf' ); ?>
772
 
773
  <form action="" method="post">
774
  <?php wp_nonce_field( 'wpuf-sub-cancel' ); ?>
775
  <input type="hidden" name="user_id" value="<?php echo get_current_user_id(); ?>">
776
  <input type="hidden" name="gateway" value="<?php echo $payment_gateway; ?>">
777
- <input type="submit" name="wpuf_cancel_subscription" class="btn btn-sm btn-danger" value="<?php _e( 'Cancel', 'wpuf' ); ?>">
778
  </form>
779
  <?php
780
  }
@@ -818,32 +819,32 @@ class WPUF_Subscription {
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);
825
  }
826
 
827
  if ( $billing_amount && $pack->meta_value['recurring_pay'] == 'yes' ) {
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(
@@ -903,7 +904,7 @@ class WPUF_Subscription {
903
  $pay_per_post_cost = apply_filters( 'wpuf_payment_amount', $pay_per_post_cost );
904
  }
905
 
906
- $text = sprintf( __( 'There is a <strong>%s</strong> charge to add a new post.', 'wpuf' ), wpuf_format_price( $pay_per_post_cost ));
907
 
908
  echo apply_filters( 'wpuf_ppp_notice', $text, $form_id, $form_settings );
909
  ?>
@@ -920,7 +921,7 @@ class WPUF_Subscription {
920
  $fallback_cost = apply_filters( 'wpuf_payment_amount', $fallback_cost );
921
  }
922
 
923
- $text = sprintf( __( 'Your Subscription pack exhausted. There is a <strong>%s</strong> charge to add a new post.', 'wpuf' ), wpuf_format_price( $fallback_cost ));
924
 
925
  echo apply_filters( 'wpuf_ppp_notice', $text, $form_id, $form_settings );
926
  ?>
@@ -965,7 +966,7 @@ class WPUF_Subscription {
965
  if ( $force_pack && self::has_user_error($form_settings) ) {
966
  $pack_page = get_permalink( wpuf_get_option( 'subscription_page', 'wpuf_payment' ) );
967
 
968
- $text = sprintf( __( 'You must <a href="%s">purchase a pack</a> before posting', 'wpuf' ), $pack_page );
969
  }
970
 
971
  return apply_filters( 'wpuf_pack_notice', $text, $id, $form_settings );
70
  if ( isset( $_POST['wpuf_cancel_subscription'] ) ) {
71
 
72
  if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-sub-cancel' ) ) {
73
+ wp_die( __( 'Nonce failure', 'wp-user-frontend' ) );
74
  }
75
 
76
  $current_pack = self::get_user_pack( $_POST['user_id'] );
294
  $screen = get_current_screen();
295
 
296
  if ( 'wpuf_subscription' == $screen->post_type ) {
297
+ $title = __( 'Pack Name', 'wp-user-frontend' );
298
  }
299
 
300
  return $title;
353
  $capability = wpuf_admin_role();
354
 
355
  register_post_type( 'wpuf_subscription', array(
356
+ 'label' => __( 'Subscription', 'wp-user-frontend' ),
357
  'public' => false,
358
  'show_ui' => true,
359
  'show_in_menu' => false,
373
  'read_post' => $capability,
374
  ),
375
  'labels' => array(
376
+ 'name' => __( 'Subscription', 'wp-user-frontend' ),
377
+ 'singular_name' => __( 'Subscription', 'wp-user-frontend' ),
378
+ 'menu_name' => __( 'Subscription', 'wp-user-frontend' ),
379
+ 'add_new' => __( 'Add Subscription', 'wp-user-frontend' ),
380
+ 'add_new_item' => __( 'Add New Subscription', 'wp-user-frontend' ),
381
+ 'edit' => __( 'Edit', 'wp-user-frontend' ),
382
+ 'edit_item' => __( 'Edit Subscription', 'wp-user-frontend' ),
383
+ 'new_item' => __( 'New Subscription', 'wp-user-frontend' ),
384
+ 'view' => __( 'View Subscription', 'wp-user-frontend' ),
385
+ 'view_item' => __( 'View Subscription', 'wp-user-frontend' ),
386
+ 'search_items' => __( 'Search Subscription', 'wp-user-frontend' ),
387
+ 'not_found' => __( 'No Subscription Found', 'wp-user-frontend' ),
388
+ 'not_found_in_trash' => __( 'No Subscription Found in Trash', 'wp-user-frontend' ),
389
+ 'parent' => __( 'Parent Subscription', 'wp-user-frontend' ),
390
  ),
391
  ) );
392
  }
443
 
444
  $form = new WPUF_Form( $form_id );
445
  $payment_options = $form->is_charging_enabled();
446
+ $force_pack = $form->is_enabled_force_pack();
447
  $pay_per_post = $form->is_enabled_pay_per_post();
448
  $fallback_cost = $form->is_enabled_fallback_cost();
449
  $current_user = wpuf_get_user();
450
  $current_pack = $current_user->subscription()->current_pack();
451
  $has_post = $current_user->subscription()->has_post_count( $form_settings['post_type'] );
452
 
453
+ if ( $payment_options && $force_pack && is_wp_error( $current_pack ) && $fallback_cost && !$has_post ) {
454
  $postdata['post_status'] = 'pending';
455
  }
456
 
457
+ if ( $payment_options && !$force_pack && ( $pay_per_post || ( $fallback_cost && !$has_post ))) {
458
  $postdata['post_status'] = 'pending';
459
  }
460
 
469
  * @param int $post_id
470
  */
471
  function monitor_new_post( $post_id, $form_id, $form_settings ) {
 
472
  global $wpdb, $userdata;
473
+ $post = get_post( $post_id );
474
 
475
  // bail out if charging is not enabled
476
  $form = new WPUF_Form( $form_id );
510
  update_post_meta( $post_id, 'wpuf_post_status', 'published' );
511
 
512
 
513
+ } elseif ( !$force_pack && ( $pay_per_post || ( $fallback_cost && !$has_post ) ) ) {
514
  //there is some error and it needs payment
515
  //add a uniqid to track the post easily
516
  $order_id = uniqid( rand( 10, 1000 ), false );
719
  * from admin Panel
720
  */
721
  function subscription_packs( $atts = null ) {
722
+ //$cost_per_post = isset( $form_settings['pay_per_post_cost'] ) ? $form_settings['pay_per_post_cost'] : 0;
723
 
724
  $defaults = array(
725
  'include' => '',
744
  ob_start();
745
 
746
  if ( isset( $_GET['action'] ) && $_GET['action'] == 'wpuf_paypal_success' ) {
747
+ printf( '<h1>%1$s</h1><p>%2$s</p>', __( 'Payment is complete', 'wp-user-frontend' ), __( 'Congratulations, your payment has been completed!', 'wp-user-frontend' ) );
748
  }
749
 
750
  if ( isset( $_GET['pack_msg'] ) && $_GET['pack_msg'] == 'buy_pack' ) {
751
+ _e('Please buy a subscription pack to post', 'wp-user-frontend' );
752
  }
753
 
754
  if ( isset( $_GET['ppp_msg'] ) && $_GET['ppp_msg'] == 'pay_per_post' ) {
755
+ _e('Please buy a subscription pack to post', 'wp-user-frontend' );
756
  }
757
 
758
  $current_pack = self::get_user_pack( get_current_user_id() );
766
  $payment_gateway = strtolower( $payment_gateway );
767
  ?>
768
 
769
+ <?php _e( '<p><i>You have a subscription pack activated. </i></p>', 'wp-user-frontend' ); ?>
770
+ <?php echo sprintf( __( "<p><i>Pack name: %s </i></p>", "wp-user-frontend" ), get_the_title( $current_pack['pack_id'] ) ); ?>
771
 
772
+ <?php _e( '<p><i>To cancel the pack, press the following cancel button</i></p>', 'wp-user-frontend' ); ?>
773
 
774
  <form action="" method="post">
775
  <?php wp_nonce_field( 'wpuf-sub-cancel' ); ?>
776
  <input type="hidden" name="user_id" value="<?php echo get_current_user_id(); ?>">
777
  <input type="hidden" name="gateway" value="<?php echo $payment_gateway; ?>">
778
+ <input type="submit" name="wpuf_cancel_subscription" class="btn btn-sm btn-danger" value="<?php _e( 'Cancel', 'wp-user-frontend' ); ?>">
779
  </form>
780
  <?php
781
  }
819
 
820
  $billing_amount = ( $pack->meta_value['billing_amount'] >= 0 && !empty( $pack->meta_value['billing_amount'] ) ) ? $pack->meta_value['billing_amount'] : '0.00';
821
  $trial_des = '';
822
+ $recurring_des = '<div class="wpuf-pack-cycle wpuf-nullamount-hide">' . __( 'One time payment', 'wp-user-frontend' ) . '</div>';
823
 
824
  if ( isset( $price_with_tax ) && $price_with_tax ) {
825
  $billing_amount = apply_filters( 'wpuf_payment_amount', $billing_amount);
826
  }
827
 
828
  if ( $billing_amount && $pack->meta_value['recurring_pay'] == 'yes' ) {
829
+ $recurring_des = sprintf( __('Every', 'wp-user-frontend').' %s %s', $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
830
+ $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? __( sprintf( ', '.__('for', 'wp-user-frontend').' %s '.__( 'installments', 'wp-user-frontend' ), $pack->meta_value['billing_limit'] ), 'wpuf' ) : '';
831
  $recurring_des = '<div class="wpuf-pack-cycle wpuf-nullamount-hide">'.$recurring_des.'</div>';
832
  }
833
 
834
  if ( $billing_amount && $pack->meta_value['recurring_pay'] == 'yes' && $pack->meta_value['trial_status'] == 'yes' ) {
835
+ $duration = _n( $pack->meta_value['trial_duration_type'], $pack->meta_value['trial_duration_type'].'s', $pack->meta_value['trial_duration'], 'wp-user-frontend' );
836
+ $trial_des = sprintf( __( 'Trial available for first %s %s','wp-user-frontend' ), $pack->meta_value['trial_duration'], $duration );
837
  }
838
 
839
+ $label = wpuf_get_option( 'logged_in_label','wpuf_subscription_settings', false );
840
+ $button_name = $label ? $label : __('Buy Now', 'wp-user-frontend');
841
 
842
  if ( ! is_user_logged_in() ) {
843
+ $label = wpuf_get_option( 'logged_out_label','wpuf_subscription_settings', false );
844
+ $button_name = $label ? $label : __( 'Sign Up', 'wp-user-frontend' );
845
  } else if ( $billing_amount == '0.00' ) {
846
+ $label = wpuf_get_option( 'free_label','wpuf_subscription_settings', false );
847
+ $button_name = $label ? $label : __( 'Free', 'wp-user-frontend' );
848
  }
849
 
850
  $query_args = array(
904
  $pay_per_post_cost = apply_filters( 'wpuf_payment_amount', $pay_per_post_cost );
905
  }
906
 
907
+ $text = sprintf( __( 'There is a <strong>%s</strong> charge to add a new post.', 'wp-user-frontend' ), wpuf_format_price( $pay_per_post_cost ));
908
 
909
  echo apply_filters( 'wpuf_ppp_notice', $text, $form_id, $form_settings );
910
  ?>
921
  $fallback_cost = apply_filters( 'wpuf_payment_amount', $fallback_cost );
922
  }
923
 
924
+ $text = sprintf( __( 'Your Subscription pack exhausted. There is a <strong>%s</strong> charge to add a new post.', 'wp-user-frontend' ), wpuf_format_price( $fallback_cost ));
925
 
926
  echo apply_filters( 'wpuf_ppp_notice', $text, $form_id, $form_settings );
927
  ?>
966
  if ( $force_pack && self::has_user_error($form_settings) ) {
967
  $pack_page = get_permalink( wpuf_get_option( 'subscription_page', 'wpuf_payment' ) );
968
 
969
+ $text = sprintf( __( 'You must <a href="%s">purchase a pack</a> before posting', 'wp-user-frontend' ), $pack_page );
970
  }
971
 
972
  return apply_filters( 'wpuf_pack_notice', $text, $id, $form_settings );
class/transactions-list-table.php CHANGED
@@ -10,8 +10,8 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
10
  */
11
  public function __construct() {
12
  parent::__construct( array(
13
- 'singular' => __( 'transaction', 'wpuf' ),
14
- 'plural' => __( 'transactions', 'wpuf' ),
15
  'ajax' => false
16
  ) );
17
  }
@@ -37,18 +37,18 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
37
  public function get_columns() {
38
  $columns = array(
39
  'cb' => '<input type="checkbox" />',
40
- 'id' => __( 'ID', 'wpuf' ),
41
- 'status' => __( 'Status', 'wpuf' ),
42
- 'user' => __( 'User', 'wpuf' ),
43
- 'cost' => __( 'Cost', 'wpuf' ),
44
- 'tax' => __( 'Tax', 'wpuf' ),
45
- 'post_id' => __( 'Post ID', 'wpuf' ),
46
- 'pack_id' => __( 'Pack ID', 'wpuf' ),
47
- 'payment_type' => __( 'Gateway', 'wpuf' ),
48
- 'payer' => __( 'Payer', 'wpuf' ),
49
- 'payer_email' => __( 'Email', 'wpuf' ),
50
- 'transaction_id' => __( 'Trans ID', 'wpuf' ),
51
- 'created' => __( 'Date', 'wpuf' ),
52
  );
53
 
54
  return $columns;
@@ -83,8 +83,8 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
83
 
84
  $status = isset( $_REQUEST['status'] ) ? sanitize_text_field( $_REQUEST['status'] ) : 'all';
85
 
86
- $status_links['all'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'all' ), $base_link ), ( $status == 'all' ) ? 'current' : '', __( 'All', 'wpuf' ), $transactions_count );
87
- $status_links['pending'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'pending' ), $base_link ), ( $status == 'pending' ) ? 'current' : '', __( 'Pending', 'wpuf' ), $transactions_pending_count );
88
 
89
  return $status_links;
90
  }
@@ -107,12 +107,12 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
107
  $reject_nonce = wp_create_nonce( 'wpuf-reject-transaction' );
108
 
109
  $actions = array(
110
- 'accept' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'accept', absint( $id ), $accept_nonce, __( 'Accept', 'wpuf' ) ),
111
- 'reject' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'reject', absint( $id ), $reject_nonce, __( 'Reject', 'wpuf' ) )
112
  );
113
  } else {
114
  $actions = array(
115
- 'delete' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'delete', absint( $id ), $delete_nonce, __( 'Delete', 'wpuf' ) )
116
  );
117
  }
118
 
@@ -161,7 +161,7 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
161
  * @return void
162
  */
163
  public function no_items() {
164
- _e( 'No transactions found.', 'wpuf' );
165
  }
166
 
167
  /**
@@ -173,12 +173,12 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
173
 
174
  if ( isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'pending' ) {
175
  $actions = array(
176
- 'bulk-accept' => __( 'Accept', 'wpuf' ),
177
- 'bulk-reject' => __( 'Reject', 'wpuf' ),
178
  );
179
  } else {
180
  $actions = array(
181
- 'bulk-delete' => __( 'Delete', 'wpuf' ),
182
  );
183
  }
184
 
@@ -324,8 +324,8 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
324
  }
325
 
326
  // Accept Transaction
327
- if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'accept' )
328
- || ( isset( $_REQUEST['action2'] ) && $_REQUEST['action2'] == 'accept' )
329
  ) {
330
  if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-accept-transaction' ) ) {
331
  return false;
@@ -351,7 +351,10 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
351
  break;
352
  }
353
 
354
- $payer_address = wpuf_get_user_address();
 
 
 
355
 
356
  $transaction = array(
357
  'user_id' => $info['user_info']['id'],
@@ -392,8 +395,8 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
392
  }
393
 
394
  // Bulk Accept Transaction
395
- if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'bulk-accept' )
396
- || ( isset( $_REQUEST['action2'] ) && $_REQUEST['action2'] == 'bulk-accept' )
397
  ) {
398
  if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'bulk-transactions' ) ) {
399
  return false;
@@ -427,7 +430,7 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
427
  'user_id' => $info['user_info']['id'],
428
  'status' => 'completed',
429
  'subtotal' => $info['subtotal'],
430
- 'tax' => $info['tax'],
431
  'cost' => $info['price'],
432
  'post_id' => $post_id,
433
  'pack_id' => $pack_id,
@@ -445,7 +448,7 @@ class WPUF_Transactions_List_Table extends WP_List_Table {
445
  wp_delete_post( $id, true );
446
  }
447
  }
448
-
449
  wp_redirect( $page_url );
450
  exit;
451
  }
10
  */
11
  public function __construct() {
12
  parent::__construct( array(
13
+ 'singular' => __( 'transaction', 'wp-user-frontend' ),
14
+ 'plural' => __( 'transactions', 'wp-user-frontend' ),
15
  'ajax' => false
16
  ) );
17
  }
37
  public function get_columns() {
38
  $columns = array(
39
  'cb' => '<input type="checkbox" />',
40
+ 'id' => __( 'ID', 'wp-user-frontend' ),
41
+ 'status' => __( 'Status', 'wp-user-frontend' ),
42
+ 'user' => __( 'User', 'wp-user-frontend' ),
43
+ 'cost' => __( 'Cost', 'wp-user-frontend' ),
44
+ 'tax' => __( 'Tax', 'wp-user-frontend' ),
45
+ 'post_id' => __( 'Post ID', 'wp-user-frontend' ),
46
+ 'pack_id' => __( 'Pack ID', 'wp-user-frontend' ),
47
+ 'payment_type' => __( 'Gateway', 'wp-user-frontend' ),
48
+ 'payer' => __( 'Payer', 'wp-user-frontend' ),
49
+ 'payer_email' => __( 'Email', 'wp-user-frontend' ),
50
+ 'transaction_id' => __( 'Trans ID', 'wp-user-frontend' ),
51
+ 'created' => __( 'Date', 'wp-user-frontend' ),
52
  );
53
 
54
  return $columns;
83
 
84
  $status = isset( $_REQUEST['status'] ) ? sanitize_text_field( $_REQUEST['status'] ) : 'all';
85
 
86
+ $status_links['all'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'all' ), $base_link ), ( $status == 'all' ) ? 'current' : '', __( 'All', 'wp-user-frontend' ), $transactions_count );
87
+ $status_links['pending'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'pending' ), $base_link ), ( $status == 'pending' ) ? 'current' : '', __( 'Pending', 'wp-user-frontend' ), $transactions_pending_count );
88
 
89
  return $status_links;
90
  }
107
  $reject_nonce = wp_create_nonce( 'wpuf-reject-transaction' );
108
 
109
  $actions = array(
110
+ 'accept' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'accept', absint( $id ), $accept_nonce, __( 'Accept', 'wp-user-frontend' ) ),
111
+ 'reject' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'reject', absint( $id ), $reject_nonce, __( 'Reject', 'wp-user-frontend' ) )
112
  );
113
  } else {
114
  $actions = array(
115
+ 'delete' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'delete', absint( $id ), $delete_nonce, __( 'Delete', 'wp-user-frontend' ) )
116
  );
117
  }
118
 
161
  * @return void
162
  */
163
  public function no_items() {
164
+ _e( 'No transactions found.', 'wp-user-frontend' );
165
  }
166
 
167
  /**
173
 
174
  if ( isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'pending' ) {
175
  $actions = array(
176
+ 'bulk-accept' => __( 'Accept', 'wp-user-frontend' ),
177
+ 'bulk-reject' => __( 'Reject', 'wp-user-frontend' ),
178
  );
179
  } else {
180
  $actions = array(
181
+ 'bulk-delete' => __( 'Delete', 'wp-user-frontend' ),
182
  );
183
  }
184
 
324
  }
325
 
326
  // Accept Transaction
327
+ if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'accept' )
328
+ || ( isset( $_REQUEST['action2'] ) && $_REQUEST['action2'] == 'accept' )
329
  ) {
330
  if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-accept-transaction' ) ) {
331
  return false;
351
  break;
352
  }
353
 
354
+ $payer_address = '';
355
+ if ( wpuf_get_option( 'show_address', 'wpuf_address_options', false ) ) {
356
+ $payer_address = wpuf_get_user_address();
357
+ }
358
 
359
  $transaction = array(
360
  'user_id' => $info['user_info']['id'],
395
  }
396
 
397
  // Bulk Accept Transaction
398
+ if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'bulk-accept' )
399
+ || ( isset( $_REQUEST['action2'] ) && $_REQUEST['action2'] == 'bulk-accept' )
400
  ) {
401
  if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'bulk-transactions' ) ) {
402
  return false;
430
  'user_id' => $info['user_info']['id'],
431
  'status' => 'completed',
432
  'subtotal' => $info['subtotal'],
433
+ 'tax' => $info['tax'],
434
  'cost' => $info['price'],
435
  'post_id' => $post_id,
436
  'pack_id' => $pack_id,
448
  wp_delete_post( $id, true );
449
  }
450
  }
451
+
452
  wp_redirect( $page_url );
453
  exit;
454
  }
class/upload.php CHANGED
@@ -96,7 +96,7 @@ class WPUF_Upload {
96
 
97
  echo $response['html'];
98
  } else {
99
- echo 'error';
100
  }
101
 
102
 
@@ -161,9 +161,9 @@ class WPUF_Upload {
161
 
162
  if ( wpuf_get_option( 'image_caption', 'wpuf_frontend_posting', 'off' ) == 'on' ) {
163
  $html .= '<div class="wpuf-file-input-wrap">';
164
- $html .= sprintf( '<input type="text" name="wpuf_files_data[%d][title]" value="%s" placeholder="%s">', $attach_id, esc_attr( $attachment->post_title ), __( 'Title', 'wpuf' ) );
165
- $html .= sprintf( '<textarea name="wpuf_files_data[%d][caption]" placeholder="%s">%s</textarea>', $attach_id, __( 'Caption', 'wpuf' ), esc_textarea( $attachment->post_excerpt ) );
166
- $html .= sprintf( '<textarea name="wpuf_files_data[%d][desc]" placeholder="%s">%s</textarea>', $attach_id, __( 'Description', 'wpuf' ), esc_textarea( $attachment->post_content ) );
167
  $html .= '</div>';
168
  }
169
 
96
 
97
  echo $response['html'];
98
  } else {
99
+ echo $attach['error'];
100
  }
101
 
102
 
161
 
162
  if ( wpuf_get_option( 'image_caption', 'wpuf_frontend_posting', 'off' ) == 'on' ) {
163
  $html .= '<div class="wpuf-file-input-wrap">';
164
+ $html .= sprintf( '<input type="text" name="wpuf_files_data[%d][title]" value="%s" placeholder="%s">', $attach_id, esc_attr( $attachment->post_title ), __( 'Title', 'wp-user-frontend' ) );
165
+ $html .= sprintf( '<textarea name="wpuf_files_data[%d][caption]" placeholder="%s">%s</textarea>', $attach_id, __( 'Caption', 'wp-user-frontend' ), esc_textarea( $attachment->post_excerpt ) );
166
+ $html .= sprintf( '<textarea name="wpuf_files_data[%d][desc]" placeholder="%s">%s</textarea>', $attach_id, __( 'Description', 'wp-user-frontend' ), esc_textarea( $attachment->post_content ) );
167
  $html .= '</div>';
168
  }
169
 
includes/class-acf.php CHANGED
@@ -165,15 +165,15 @@ class WPUF_ACF_Compatibility {
165
 
166
  ?>
167
  <div class="notice notice-info">
168
- <p><strong><?php printf( __( '%s Detected', 'wpuf' ), $this->title ); ?></strong></p>
169
- <p><?php printf( __( 'Hey, looks like you have <strong>%s</strong> installed. What do you want to do with WPUF?', 'wpuf' ), $this->title ); ?></p>
170
- <p><i><strong style="color:#46b450;">Compatible: </strong><?php printf( __( 'It will update compatibility option only, so existing custom fields data format will not change.', 'wpuf' ) ); ?></i></p>
171
- <p><i><strong style="color:#46b450;">Compatible & Migrate: </strong><?php printf( __( 'It will update existing custom fields data to ACF format and update compatibility option too.', 'wpuf' ) ); ?></i></p>
172
 
173
  <p>
174
- <a href="#" class="button button-primary" id="wpuf-compatible-<?php echo $this->id ;?>"><?php _e( 'Compatible', 'wpuf' ); ?></a>
175
- <a href="#" class="button button-primary" id="wpuf-migrate-<?php echo $this->id ;?>"><?php _e( 'Compatible & Migrate', 'wpuf' ); ?></a>
176
- <a href="#" class="button" id="wpuf-dismiss-<?php echo $this->id ;?>"><?php _e( 'No Thanks', 'wpuf' ); ?></a>
177
  </p>
178
  </div>
179
 
165
 
166
  ?>
167
  <div class="notice notice-info">
168
+ <p><strong><?php printf( __( '%s Detected', 'wp-user-frontend' ), $this->title ); ?></strong></p>
169
+ <p><?php printf( __( 'Hey, looks like you have <strong>%s</strong> installed. What do you want to do with WPUF?', 'wp-user-frontend' ), $this->title ); ?></p>
170
+ <p><i><strong style="color:#46b450;">Compatible: </strong><?php printf( __( 'It will update compatibility option only, so existing custom fields data format will not change.', 'wp-user-frontend' ) ); ?></i></p>
171
+ <p><i><strong style="color:#46b450;">Compatible & Migrate: </strong><?php printf( __( 'It will update existing custom fields data to ACF format and update compatibility option too.', 'wp-user-frontend' ) ); ?></i></p>
172
 
173
  <p>
174
+ <a href="#" class="button button-primary" id="wpuf-compatible-<?php echo $this->id ;?>"><?php _e( 'Compatible', 'wp-user-frontend' ); ?></a>
175
+ <a href="#" class="button button-primary" id="wpuf-migrate-<?php echo $this->id ;?>"><?php _e( 'Compatible & Migrate', 'wp-user-frontend' ); ?></a>
176
+ <a href="#" class="button" id="wpuf-dismiss-<?php echo $this->id ;?>"><?php _e( 'No Thanks', 'wp-user-frontend' ); ?></a>
177
  </p>
178
  </div>
179
 
includes/class-billing-address.php CHANGED
@@ -16,100 +16,200 @@ class WPUF_Ajax_Address_Form {
16
  * Enqueue scripts
17
  */
18
  public function register_plugin_scripts() {
19
- wp_enqueue_script( 'wpuf-ajax-script', plugins_url( 'assets/js/billing-address.js', dirname( __FILE__ ) ), array('jquery'), false );
20
- wp_localize_script( 'wpuf-ajax-script', 'ajax_object', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) )) ;
 
 
 
 
 
 
21
  }
22
 
 
 
 
 
 
 
 
23
 
24
  /**
25
  * Address Form
26
  */
27
  public static function wpuf_ajax_address_form() {
28
  $address_fields = wpuf_get_user_address();
29
- ?>
30
-
31
- <form class="wpuf-form form-label-above" id="wpuf-ajax-address-form" action="" method="post">
32
- <table id="wpuf-address-country-state" class="wp-list-table widefat">
33
- <tr>
34
- <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;">
35
- <label>Country<span class="required">*</span></label>
36
- <br>
37
- <?php
38
- if ( function_exists( 'wpuf_get_tax_rates' ) ) {
39
- $rates = wpuf_get_tax_rates();
40
- }
41
- $cs = new CountryState();
42
- $states = array(); $selected = array();
43
- $base_addr = get_option( 'wpuf_base_country_state', false );
44
-
45
- $selected['country'] = !( empty( $address_fields['country'] ) ) ? $address_fields['country'] : $base_addr['country'];
46
-
47
- echo wpuf_select( array(
48
- 'options' => $cs->countries(),
49
- 'name' => 'wpuf_biiling_country',
50
- 'selected' => $selected['country'],
51
- 'show_option_all' => false,
52
- 'show_option_none' => false,
53
- 'id' => 'wpuf_biiling_country',
54
- 'class' => 'wpuf_biiling_country',
55
- 'chosen' => false,
56
- 'placeholder' => __( 'Choose a country', 'wpuf' )
57
- ) );
58
- ?>
59
- </td>
60
- <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;">
61
- <label>State/Province/Region<span class="required">*</span></label>
62
- <br>
63
- <?php
64
- $states = $cs->getStates( $selected['country'] );
65
- $selected['state'] = ! ( empty( $address_fields['state'] ) ) ? $address_fields['state'] : $base_addr['state'];
66
- echo wpuf_select( array(
67
- 'options' => $states,
68
- 'name' => 'wpuf_biiling_state',
69
- 'selected' => $selected['state'],
70
- 'show_option_all' => false,
71
- 'show_option_none' => false,
72
- 'id' => 'wpuf_biiling_state',
73
- 'class' => 'wpuf_biiling_state',
74
- 'chosen' => false,
75
- 'placeholder' => __( 'Choose a state', 'wpuf' )
76
- ) );
77
- ?>
78
- </td>
79
- <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;">
80
- <div class="wpuf-label"><?php _e( 'Address Line 1 ', 'wpuf' ); ?></div>
81
- <div class="wpuf-fields">
82
- <input type="text" class="input" name="wpuf_biiling_add_line_1" id="wpuf_biiling_add_line_1" value="<?php echo $address_fields['add_line_1']; ?>" />
83
- </div>
84
- </td>
85
- <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;">
86
- <div class="wpuf-label"><?php _e( 'Address Line 2 ', 'wpuf' ); ?></div>
87
- <div class="wpuf-fields">
88
- <input type="text" class="input" name="wpuf_biiling_add_line_2" id="wpuf_biiling_add_line_2" value="<?php echo $address_fields['add_line_2']; ?>" />
89
- </div>
90
- </td>
91
- <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;">
92
- <div class="wpuf-label"><?php _e( 'City', 'wpuf' ); ?></div>
93
- <div class="wpuf-fields">
94
- <input type="text" class="input" name="wpuf_biiling_city" id="wpuf_biiling_city" value="<?php echo $address_fields['city']; ?>" />
95
- </div>
96
- </td>
97
- <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;">
98
- <div class="wpuf-label"><?php _e( 'Postal Code/ZIP', 'wpuf' ); ?></div>
99
- <div class="wpuf-fields">
100
- <input type="text" class="input" name="wpuf_biiling_zip_code" id="wpuf_biiling_zip_code" value="<?php echo $address_fields['zip_code']; ?>" />
101
- </div>
102
- </td>
103
- <td class="wpuf-submit" style="display:none;">
104
- <input type="submit" class="wpuf-btn" name="submit" id="wpuf-account-update-billing_address" value="<?php _e( 'Update Billing Address', 'wpuf' ); ?>" />
105
- </td>
106
- </tr>
107
-
108
- </table>
109
- <div class="clear"></div>
110
- </form>
111
-
112
- <?php }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
 
114
 
115
  /**
@@ -137,7 +237,7 @@ class WPUF_Ajax_Address_Form {
137
  'country' => $_POST['wpuf_biiling_country']
138
  );
139
  update_user_meta( $user_id, 'wpuf_address_fields', $address_fields );
140
- $msg = '<div class="wpuf-success">' . __( 'Billing address is updated.', 'wpuf' ) . '</div>';
141
 
142
  echo $msg;
143
  exit();
16
  * Enqueue scripts
17
  */
18
  public function register_plugin_scripts() {
19
+ global $post;
20
+ $pay_page = intval( wpuf_get_option( 'payment_page', 'wpuf_payment' ) );
21
+
22
+ if ( wpuf_get_option( 'load_script', 'wpuf_general', 'on' ) == 'on' ) {
23
+ $this->plugin_scripts();
24
+ } elseif ( isset( $post->ID ) && ( $pay_page == $post->ID ) ) {
25
+ $this->plugin_scripts();
26
+ }
27
  }
28
 
29
+ /**
30
+ * Load billing scripts
31
+ */
32
+ public function plugin_scripts() {
33
+ wp_enqueue_script( 'wpuf-ajax-script', plugins_url( 'assets/js/billing-address.js', dirname( __FILE__ ) ), array('jquery'), false );
34
+ wp_localize_script( 'wpuf-ajax-script', 'ajax_object', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'fill_notice' => __( 'Some Required Fields are not filled!', 'wp-user-frontend' ) ) ) ;
35
+ }
36
 
37
  /**
38
  * Address Form
39
  */
40
  public static function wpuf_ajax_address_form() {
41
  $address_fields = wpuf_get_user_address();
42
+ $show_address = wpuf_get_option( 'show_address', 'wpuf_address_options', false );
43
+ $show_country = wpuf_get_option( 'country', 'wpuf_address_options', false );
44
+ $show_state = wpuf_get_option( 'state', 'wpuf_address_options', false );
45
+ $show_add1 = wpuf_get_option( 'address_1', 'wpuf_address_options', false );
46
+ $show_add2 = wpuf_get_option( 'address_2', 'wpuf_address_options', false );
47
+ $show_city = wpuf_get_option( 'city', 'wpuf_address_options', false );
48
+ $show_zip = wpuf_get_option( 'zip', 'wpuf_address_options', false );
49
+
50
+ $country_req = ''; $country_hide = ''; $state_req = ''; $state_hide = ''; $add1_req = ''; $add1_hide = '';
51
+ $add2_req = ''; $add2_hide = ''; $city_req = ''; $city_hide = ''; $zip_req = ''; $zip_hide = ''; $required = '';
52
+
53
+ if ( $show_country == 'hidden' ) {
54
+ $show_state = 'hidden';
55
+ }
56
+
57
+ switch ( $show_country ) {
58
+ case 'required':
59
+ $country_req = '<span class="required">*</span>';
60
+ $required = 'bill_required';
61
+ break;
62
+ case 'hidden':
63
+ $country_hide = 'display: none;';
64
+ default:
65
+ break;
66
+ }
67
+ switch ( $show_state ) {
68
+ case 'required':
69
+ $state_req = '<span class="required">*</span>';
70
+ $required = 'bill_required';
71
+ break;
72
+ case 'hidden':
73
+ $state_hide = 'display: none;';
74
+ default:
75
+ break;
76
+ }
77
+ switch ( $show_add1 ) {
78
+ case 'required':
79
+ $add1_req = '<span class="required">*</span>';
80
+ $required = 'bill_required';
81
+ break;
82
+ case 'hidden':
83
+ $add1_hide = 'display: none;';
84
+ default:
85
+ break;
86
+ }
87
+ switch ( $show_add2 ) {
88
+ case 'required':
89
+ $add2_req = '<span class="required">*</span>';
90
+ $required = 'bill_required';
91
+ break;
92
+ case 'hidden':
93
+ $add2_hide = 'display: none;';
94
+ default:
95
+ break;
96
+ }
97
+ switch ( $show_city ) {
98
+ case 'required':
99
+ $city_req = '<span class="required">*</span>';
100
+ $required = 'bill_required';
101
+ break;
102
+ case 'hidden':
103
+ $city_hide = 'display: none;';
104
+ default:
105
+ break;
106
+ }
107
+ switch ( $show_zip ) {
108
+ case 'required':
109
+ $zip_req = '<span class="required">*</span>';
110
+ $required = 'bill_required';
111
+ break;
112
+ case 'hidden':
113
+ $zip_hide = 'display: none;';
114
+ default:
115
+ break;
116
+ }
117
+
118
+ if ( $show_address ) {
119
+ ?>
120
+
121
+ <form class="wpuf-form form-label-above" id="wpuf-ajax-address-form" action="" method="post">
122
+ <table id="wpuf-address-country-state" class="wp-list-table widefat">
123
+ <tr>
124
+ <td class="<?php echo $required; ?>" style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $country_hide; ?>">
125
+ <label>Country<?php echo $country_req ?></label>
126
+ <br>
127
+ <?php
128
+ if (function_exists('wpuf_get_tax_rates')) {
129
+ $rates = wpuf_get_tax_rates();
130
+ }
131
+ $cs = new CountryState();
132
+ $states = array();
133
+ $selected = array();
134
+ $base_addr = get_option('wpuf_base_country_state', false);
135
+
136
+ $selected['country'] = !(empty($address_fields['country'])) ? $address_fields['country'] : $base_addr['country'];
137
+
138
+ echo wpuf_select(array(
139
+ 'options' => $cs->countries(),
140
+ 'name' => 'wpuf_biiling_country',
141
+ 'selected' => $selected['country'],
142
+ 'show_option_all' => false,
143
+ 'show_option_none' => false,
144
+ 'id' => 'wpuf_biiling_country',
145
+ 'class' => 'wpuf_biiling_country',
146
+ 'chosen' => false,
147
+ 'placeholder' => __('Choose a country', 'wp-user-frontend')
148
+ ));
149
+ ?>
150
+ </td>
151
+ <td class="<?php echo $required; ?>" style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $state_hide;?>">
152
+ <label>State/Province/Region<?php echo $state_req; ?></label>
153
+ <br>
154
+ <?php
155
+ $states = $cs->getStates($selected['country']);
156
+ $selected['state'] = !(empty($address_fields['state'])) ? $address_fields['state'] : $base_addr['state'];
157
+ echo wpuf_select(array(
158
+ 'options' => $states,
159
+ 'name' => 'wpuf_biiling_state',
160
+ 'selected' => $selected['state'],
161
+ 'show_option_all' => false,
162
+ 'show_option_none' => false,
163
+ 'id' => 'wpuf_biiling_state',
164
+ 'class' => 'wpuf_biiling_state',
165
+ 'chosen' => false,
166
+ 'placeholder' => __('Choose a state', 'wp-user-frontend')
167
+ ));
168
+ ?>
169
+ </td>
170
+ <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $add1_hide;?>">
171
+ <div class="wpuf-label"><?php _e('Address Line 1 ', 'wp-user-frontend'); ?><?php echo $add1_req; ?></div>
172
+ <div class="wpuf-fields">
173
+ <input type="text" class="input <?php echo $required; ?>" name="wpuf_biiling_add_line_1"
174
+ id="wpuf_biiling_add_line_1"
175
+ value="<?php echo $address_fields['add_line_1']; ?>"/>
176
+ </div>
177
+ </td>
178
+ <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $add2_hide;?>">
179
+ <div class="wpuf-label"><?php _e('Address Line 2 ', 'wp-user-frontend'); ?><?php echo $add2_req; ?></div>
180
+ <div class="wpuf-fields">
181
+ <input type="text" class="input <?php echo $required; ?>" name="wpuf_biiling_add_line_2"
182
+ id="wpuf_biiling_add_line_2"
183
+ value="<?php echo $address_fields['add_line_2']; ?>"/>
184
+ </div>
185
+ </td>
186
+ <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $city_hide; ?>">
187
+ <div class="wpuf-label"><?php _e('City', 'wp-user-frontend'); ?><?php echo $city_req ?></div>
188
+ <div class="wpuf-fields">
189
+ <input type="text" class="input <?php echo $required; ?>" name="wpuf_biiling_city" id="wpuf_biiling_city"
190
+ value="<?php echo $address_fields['city']; ?>"/>
191
+ </div>
192
+ </td>
193
+ <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $zip_hide; ?>">
194
+ <div class="wpuf-label"><?php _e('Postal Code/ZIP', 'wp-user-frontend'); ?><?php echo $zip_req ?></div>
195
+ <div class="wpuf-fields">
196
+ <input type="text" class="input <?php echo $required; ?>" name="wpuf_biiling_zip_code" id="wpuf_biiling_zip_code"
197
+ value="<?php echo $address_fields['zip_code']; ?>"/>
198
+ </div>
199
+ </td>
200
+ <td class="<?php echo $required; ?>" class="wpuf-submit" style="display:none;">
201
+ <input type="submit" class="wpuf-btn" name="submit" id="wpuf-account-update-billing_address"
202
+ value="<?php _e('Update Billing Address', 'wp-user-frontend'); ?>"/>
203
+ </td>
204
+ </tr>
205
+
206
+ </table>
207
+ <div class="clear"></div>
208
+ </form>
209
+
210
+ <?php
211
+ }
212
+ }
213
 
214
 
215
  /**
237
  'country' => $_POST['wpuf_biiling_country']
238
  );
239
  update_user_meta( $user_id, 'wpuf_address_fields', $address_fields );
240
+ $msg = '<div class="wpuf-success">' . __( 'Billing address is updated.', 'wp-user-frontend' ) . '</div>';
241
 
242
  echo $msg;
243
  exit();
includes/class-customizer.php ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * WPUF_Customizer_Options class
4
+ *
5
+ * @since 2.8.9
6
+ *
7
+ */
8
+
9
+ class WPUF_Customizer_Options{
10
+
11
+ /**
12
+ * Class constructor
13
+ */
14
+ public function __construct() {
15
+ add_action( 'customize_register', array( $this, 'customizer_options' ) );
16
+ add_action( 'wp_head', array( $this, 'save_customizer_options' ) );
17
+ }
18
+
19
+ public function save_customizer_options() {
20
+ $address_options = array();
21
+
22
+ $fields = array(
23
+ 'show_address' => __( 'Show Billing Address', 'wp-user-frontend' ),
24
+ 'country' => __( 'Country', 'wp-user-frontend' ),
25
+ 'state' => __( 'State/Province/Region', 'wp-user-frontend' ),
26
+ 'address_1' => __( 'Address line 1', 'wp-user-frontend' ),
27
+ 'address_2' => __( 'Address line 2', 'wp-user-frontend' ),
28
+ 'city' => __( 'City', 'wp-user-frontend' ),
29
+ 'zip' => __( 'Postal Code/ZIP', 'wp-user-frontend' ),
30
+ );
31
+ foreach ( $fields as $field => $label ) {
32
+ $settings_name = 'wpuf_address_' . $field . '_settings';
33
+ $address_options[$field] = get_theme_mod( $settings_name );
34
+ }
35
+
36
+ update_option( 'wpuf_address_options', $address_options );
37
+
38
+ ?>
39
+ <style>
40
+
41
+ </style>
42
+ <?php
43
+ }
44
+
45
+ public function customizer_options( $wp_customize ) {
46
+
47
+ /* Add WPUF Panel to Customizer */
48
+
49
+ $wp_customize->add_panel( 'wpuf_panel', array(
50
+ 'title' => __( 'WP User Frontend', 'wp-user-frontend' ),
51
+ 'description' => __( 'Customize WPUF Settings', 'wp-user-frontend' ),
52
+ 'priority' => 25,
53
+ ) );
54
+
55
+ /* WPUF Billing Address Customizer */
56
+ $wp_customize->add_section(
57
+ 'wpuf_billing_address',
58
+ array(
59
+ 'title' => __( 'Billing Address', 'wp-user-frontend' ),
60
+ 'priority' => 20,
61
+ 'panel' => 'wpuf_panel',
62
+ 'description' => __( 'These options let you change the appearance of the billing address.', 'wp-user-frontend' ),
63
+ )
64
+ );
65
+
66
+ // Billing Address field controls.
67
+ $fields = array(
68
+ 'show_address' => __( 'Show Billing Address', 'wp-user-frontend' ),
69
+ 'country' => __( 'Country', 'wp-user-frontend' ),
70
+ 'state' => __( 'State/Province/Region', 'wp-user-frontend' ),
71
+ 'address_1' => __( 'Address line 1', 'wp-user-frontend' ),
72
+ 'address_2' => __( 'Address line 2', 'wp-user-frontend' ),
73
+ 'city' => __( 'City', 'wp-user-frontend' ),
74
+ 'zip' => __( 'Postal Code/ZIP', 'wp-user-frontend' ),
75
+ );
76
+ foreach ( $fields as $field => $label ) {
77
+ $wp_customize->add_setting(
78
+ 'wpuf_address_' . $field . '_settings',
79
+ array(
80
+ 'type' => 'theme_mod',
81
+ 'section' => 'wpuf_billing_address',
82
+ )
83
+ );
84
+ if ( $field == 'show_address' ) {
85
+ $wp_customize->add_control(
86
+ 'wpuf_address_' . $field . '_control',
87
+ array(
88
+ /* Translators: %s field name. */
89
+ 'label' => sprintf( __( '%s field', 'wp-user-frontend' ), $label ),
90
+ 'section' => 'wpuf_billing_address',
91
+ 'settings' => 'wpuf_address_' . $field . '_settings',
92
+ 'type' => 'checkbox',
93
+ )
94
+ );
95
+ } else {
96
+ $wp_customize->add_control(
97
+ 'wpuf_address_' . $field . '_control',
98
+ array(
99
+ /* Translators: %s field name. */
100
+ 'label' => sprintf( __( '%s field', 'wp-user-frontend' ), $label ),
101
+ 'section' => 'wpuf_billing_address',
102
+ 'settings' => 'wpuf_address_' . $field . '_settings',
103
+ 'type' => 'select',
104
+ 'choices' => array(
105
+ 'hidden' => __( 'Hidden', 'wp-user-frontend' ),
106
+ 'optional' => __( 'Optional', 'wp-user-frontend' ),
107
+ 'required' => __( 'Required', 'wp-user-frontend' ),
108
+ ),
109
+ )
110
+ );
111
+ }
112
+ }
113
+
114
+ }
115
+ }
includes/class-dokan-integration.php CHANGED
@@ -34,7 +34,7 @@ class WPUF_Dokan_Integration{
34
 
35
  if ( $access == 'on' ) {
36
  $urls['posts'] = array(
37
- 'title' => __( 'Posts', 'wpuf'),
38
  'icon' => '<i class="fa fa-wordpress"></i>',
39
  'url' => dokan_get_navigation_url( 'posts' ),
40
  'pos' => 56
@@ -89,16 +89,16 @@ class WPUF_Dokan_Integration{
89
 
90
  $settings_fields['dokan_general']['allow_wpuf_post'] = array(
91
  'name' => 'allow_wpuf_post',
92
- 'label' => __( 'Allow Post', 'wpuf' ),
93
- 'desc' => __( 'Allow Vendors to submit post from dashboard area', 'wpuf' ),
94
  'type' => 'checkbox',
95
  'default' => 'off'
96
  );
97
 
98
  $settings_fields['dokan_general']['wpuf_post_forms'] = array(
99
  'name' => 'wpuf_post_forms',
100
- 'label' => __( 'Select Post Form', 'wpuf' ),
101
- 'desc' => __( 'Select a post form that will show on the vendor dashboard.', 'wpuf' ),
102
  'type' => 'select',
103
  'options' => $this->get_post_forms(),
104
  'default' => 'seller'
34
 
35
  if ( $access == 'on' ) {
36
  $urls['posts'] = array(
37
+ 'title' => __( 'Posts', 'wp-user-frontend'),
38
  'icon' => '<i class="fa fa-wordpress"></i>',
39
  'url' => dokan_get_navigation_url( 'posts' ),
40
  'pos' => 56
89
 
90
  $settings_fields['dokan_general']['allow_wpuf_post'] = array(
91
  'name' => 'allow_wpuf_post',
92
+ 'label' => __( 'Allow Post', 'wp-user-frontend' ),
93
+ 'desc' => __( 'Allow Vendors to submit post from dashboard area', 'wp-user-frontend' ),
94
  'type' => 'checkbox',
95
  'default' => 'off'
96
  );
97
 
98
  $settings_fields['dokan_general']['wpuf_post_forms'] = array(
99
  'name' => 'wpuf_post_forms',
100
+ 'label' => __( 'Select Post Form', 'wp-user-frontend' ),
101
+ 'desc' => __( 'Select a post form that will show on the vendor dashboard.', 'wp-user-frontend' ),
102
  'type' => 'select',
103
  'options' => $this->get_post_forms(),
104
  'default' => 'seller'
includes/class-form-preview.php CHANGED
@@ -82,13 +82,13 @@ class WPUF_Form_Preview {
82
  if ( $this->is_preview ) {
83
 
84
  if ( ! is_user_logged_in() ) {
85
- return __( 'You must be logged in to preview this form.', 'wpuf' );
86
  }
87
 
88
  $viewing_capability = apply_filters( 'wpuf_preview_form_cap', 'edit_posts' ); // at least has to be contributor
89
 
90
  if ( ! current_user_can( $viewing_capability ) ) {
91
- return __( 'Sorry, you are not eligible to preview this form.', 'wpuf' );
92
  }
93
  }
94
 
82
  if ( $this->is_preview ) {
83
 
84
  if ( ! is_user_logged_in() ) {
85
+ return __( 'You must be logged in to preview this form.', 'wp-user-frontend' );
86
  }
87
 
88
  $viewing_capability = apply_filters( 'wpuf_preview_form_cap', 'edit_posts' ); // at least has to be contributor
89
 
90
  if ( ! current_user_can( $viewing_capability ) ) {
91
+ return __( 'Sorry, you are not eligible to preview this form.', 'wp-user-frontend' );
92
  }
93
  }
94
 
includes/class-gutenblock.php CHANGED
@@ -41,7 +41,7 @@ class WPUF_Form_Block {
41
  $forms = array();
42
  $forms[] = array (
43
  'value' => '',
44
- 'label' => __('-- Select a Form --', 'wpuf' ),
45
  );
46
 
47
  $all_forms = wpuf()->forms->get_forms( array( 'post_status' => 'publish' ) );
41
  $forms = array();
42
  $forms[] = array (
43
  'value' => '',
44
+ 'label' => __('-- Select a Form --', 'wp-user-frontend' ),
45
  );
46
 
47
  $all_forms = wpuf()->forms->get_forms( array( 'post_status' => 'publish' ) );
includes/class-list-table-subscribers.php CHANGED
@@ -27,7 +27,7 @@ class WPUF_List_Table_Subscribers extends \WP_List_Table {
27
  * @return void
28
  */
29
  function no_items() {
30
- _e( 'No subscribers found', 'wpuf' );
31
  }
32
 
33
  /**
@@ -38,14 +38,14 @@ class WPUF_List_Table_Subscribers extends \WP_List_Table {
38
  function get_columns() {
39
  $columns = array(
40
  'cb' => '<input type="checkbox" />',
41
- 'id' => __( 'User ID', 'wpuf' ),
42
- 'name' => __( 'User Name', 'wpuf' ),
43
- 'subscription_id' => __( 'Subscription ID', 'wpuf' ),
44
- 'status' => __( 'Status', 'wpuf' ),
45
- 'gateway' => __( 'Gateway', 'wpuf' ),
46
- 'transaction_id' => __( 'Transaction ID', 'wpuf' ),
47
- 'starts_from' => __( 'Starts from', 'wpuf' ),
48
- 'expire' => __( 'Expire date', 'wpuf' ),
49
  );
50
  return $columns;
51
  }
@@ -123,9 +123,9 @@ class WPUF_List_Table_Subscribers extends \WP_List_Table {
123
 
124
  $status = isset( $_REQUEST['status'] ) ? sanitize_text_field( $_REQUEST['status'] ) : 'all';
125
 
126
- $status_links['all'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'all' ), $base_link ), ( $status == 'all' ) ? 'current' : '', __( 'All', 'wpuf' ), $subscribers_count );
127
- $status_links['Completed'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'Completed' ), $base_link ), ( $status == 'pending' ) ? 'current' : '', __( 'Completed', 'wpuf' ), $subscriptions_active_count );
128
- $status_links['Cancel'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'Cancel' ), $base_link ), ( $status == 'Cancel' ) ? 'current' : '', __( 'Cancel', 'wpuf' ), $subscriptions_cancle_count );
129
 
130
  return $status_links;
131
  }
27
  * @return void
28
  */
29
  function no_items() {
30
+ _e( 'No subscribers found', 'wp-user-frontend' );
31
  }
32
 
33
  /**
38
  function get_columns() {
39
  $columns = array(
40
  'cb' => '<input type="checkbox" />',
41
+ 'id' => __( 'User ID', 'wp-user-frontend' ),
42
+ 'name' => __( 'User Name', 'wp-user-frontend' ),
43
+ 'subscription_id' => __( 'Subscription ID', 'wp-user-frontend' ),
44
+ 'status' => __( 'Status', 'wp-user-frontend' ),
45
+ 'gateway' => __( 'Gateway', 'wp-user-frontend' ),
46
+ 'transaction_id' => __( 'Transaction ID', 'wp-user-frontend' ),
47
+ 'starts_from' => __( 'Starts from', 'wp-user-frontend' ),
48
+ 'expire' => __( 'Expire date', 'wp-user-frontend' ),
49
  );
50
  return $columns;
51
  }
123
 
124
  $status = isset( $_REQUEST['status'] ) ? sanitize_text_field( $_REQUEST['status'] ) : 'all';
125
 
126
+ $status_links['all'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'all' ), $base_link ), ( $status == 'all' ) ? 'current' : '', __( 'All', 'wp-user-frontend' ), $subscribers_count );
127
+ $status_links['Completed'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'Completed' ), $base_link ), ( $status == 'pending' ) ? 'current' : '', __( 'Completed', 'wp-user-frontend' ), $subscriptions_active_count );
128
+ $status_links['Cancel'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'Cancel' ), $base_link ), ( $status == 'Cancel' ) ? 'current' : '', __( 'Cancel', 'wp-user-frontend' ), $subscriptions_cancle_count );
129
 
130
  return $status_links;
131
  }
includes/class-login-widget.php CHANGED
@@ -12,8 +12,8 @@ class WPUF_Login_Widget extends WP_Widget {
12
 
13
  parent::__construct(
14
  'WPUF_Login_Widget',
15
- __('WPUF Ajax Login', 'wpuf'),
16
- array( 'description' => __( 'Ajax Login widget for WP User Frontend', 'wpuf' ), )
17
  );
18
 
19
  add_action( 'wp_ajax_nopriv_wpuf_ajax_login', array( $this, 'ajax_login' ) );
@@ -33,14 +33,14 @@ class WPUF_Login_Widget extends WP_Widget {
33
  $rememberme = $_POST['rememberme'];
34
 
35
  if ( empty( $user_login ) || empty( $user_pass ) ) {
36
- wp_send_json_error( array( 'message'=> __( 'Please fill all form fields', 'wpuf') ) );
37
  } else {
38
  $user = wp_signon( array('user_login' => $user_login, 'user_password' => $user_pass), false );
39
 
40
  if ( is_wp_error($user) ) {
41
  wp_send_json_error( array( 'message'=> $user->get_error_message() ) );
42
  } else {
43
- wp_send_json_success( array( 'message'=> __( 'Login successful!', 'wpuf' ) ) );
44
  }
45
  }
46
  wp_set_auth_cookie( $user->ID, $rememberme, $secure_cookie );
@@ -54,7 +54,7 @@ class WPUF_Login_Widget extends WP_Widget {
54
  public function ajax_logout() {
55
 
56
  wp_logout();
57
- wp_send_json_success( array( 'message'=> __( 'Logout successful!', 'wpuf' ) ) );
58
  }
59
 
60
  /**
@@ -68,7 +68,7 @@ class WPUF_Login_Widget extends WP_Widget {
68
 
69
  // Check if input variables are empty
70
  if ( empty( $username_or_email ) ) {
71
- wp_send_json_error( array( 'error' => true, 'message'=> __( 'Please fill all form fields', 'wpuf' ) ) );
72
  } else {
73
  $username = is_email( $username_or_email ) ? sanitize_email( $username_or_email ) : sanitize_user( $username_or_email );
74
 
@@ -84,7 +84,7 @@ class WPUF_Login_Widget extends WP_Widget {
84
 
85
  wp_send_json_error( array( 'message' => $display_errors ) );
86
  } else {
87
- wp_send_json_success( array( 'message' => __( 'Password has been reset. Please check your email.', 'wpuf' ) ) );
88
  }
89
  }
90
  }
@@ -100,11 +100,11 @@ class WPUF_Login_Widget extends WP_Widget {
100
  $errors = new WP_Error();
101
 
102
  if ( empty( $user_input ) ) {
103
- $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or email address.', 'wpuf'));
104
  } elseif ( strpos( $user_input, '@' ) ) {
105
  $user_data = get_user_by( 'email', trim( $user_input ) );
106
  if ( empty( $user_data ) )
107
- $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.', 'wpuf'));
108
  } else {
109
  $login = trim($user_input);
110
  $user_data = get_user_by('login', $login);
@@ -119,7 +119,7 @@ class WPUF_Login_Widget extends WP_Widget {
119
  return $errors;
120
 
121
  if ( !$user_data ) {
122
- $errors->add( 'invalidcombo', __( '<strong>ERROR</strong>: Invalid username or email.', 'wpuf' ) );
123
  return $errors;
124
  }
125
 
@@ -132,23 +132,23 @@ class WPUF_Login_Widget extends WP_Widget {
132
  return $key;
133
  }
134
 
135
- $message = __('Someone has requested a password reset for the following account:', 'wpuf') . "\r\n\r\n";
136
  $message .= network_home_url( '/' ) . "\r\n\r\n";
137
- $message .= sprintf(__('Username: %s', 'wpuf'), $user_login) . "\r\n\r\n";
138
- $message .= __('If this was a mistake, just ignore this email and nothing will happen.', 'wpuf') . "\r\n\r\n";
139
- $message .= __('To reset your password, visit the following address:', 'wpuf') . "\r\n\r\n";
140
  $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
141
 
142
  $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
143
 
144
- $title = sprintf( __('[%s] Password Reset', 'wpuf'), $blogname );
145
 
146
  $title = apply_filters( 'retrieve_password_title', $title, $user_login, $user_data );
147
 
148
  $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );
149
 
150
  if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) )
151
- $errors->add('mailfailed', __('<strong>ERROR</strong>: The email could not be sent.Possible reason: your host may have disabled the mail() function.', 'wpuf'));
152
 
153
  return true;
154
  }
@@ -203,11 +203,11 @@ class WPUF_Login_Widget extends WP_Widget {
203
  <?php
204
  wp_login_form( $login_args );
205
  if ( get_option( 'users_can_register' ) ) {
206
- $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'wpuf' ) );
207
  echo $registration_url;
208
  echo apply_filters( 'login_link_separator', ' | ' );
209
  }?>
210
- <a href="#wpuf-ajax-lost-pw-url" id="wpuf-ajax-lost-pw-url"><?php _e( 'Lost your password?', 'wpuf' ); ?></a>
211
  </div>
212
 
213
  <!-- Lost Password form -->
@@ -215,7 +215,7 @@ class WPUF_Login_Widget extends WP_Widget {
215
  <form id="wpuf_ajax_reset_pass_form" action="<?php echo home_url( '/' ); ?>" method="POST">
216
  <div class="wpuf-ajax-message"> <?php echo $pwd_reset_header; ?></div>
217
  <p>
218
- <label for="wpuf-user_login"><?php _e( 'Username or E-mail:', 'wpuf' ); ?></label>
219
  <input type="text" name="user_login" id="wpuf-user_login" class="input" value="" size="20" />
220
  </p>
221
 
@@ -231,11 +231,11 @@ class WPUF_Login_Widget extends WP_Widget {
231
  </p>
232
  </form>
233
  <div id="ajax-lp-section">
234
- <a href="#wpuf-ajax-login-url" id="wpuf-ajax-login-url"> <?php _e( 'Login', 'wpuf' ); ?> </a>
235
  <?php
236
  if ( get_option( 'users_can_register' ) ) {
237
  echo apply_filters( 'login_link_separator', ' | ' );
238
- $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'wpuf' ) );
239
  echo $registration_url;
240
  }
241
  ?>
@@ -243,7 +243,7 @@ class WPUF_Login_Widget extends WP_Widget {
243
  </div>
244
  <?php } else { ?>
245
  <div class="wpuf-ajax-logout">
246
- <a id="logout-url" href="#logout"><?php echo __('Log out', 'wpuf') ?></a>
247
  </div>
248
  <?php } ?>
249
  </div>
@@ -259,45 +259,45 @@ class WPUF_Login_Widget extends WP_Widget {
259
  */
260
  public function form( $instance ) {
261
 
262
- $title = isset( $instance[ 'title' ] ) ? $instance[ 'title' ] : __( 'WPUF Login Widget', 'wpuf' );
263
- $log_in_header = isset( $instance[ 'log_in_header' ] ) ? $instance[ 'log_in_header' ] : __( 'Username or Email Address', 'wpuf' );
264
- $pwd_reset_header = isset( $instance[ 'pwd_reset_header' ] ) ? $instance[ 'pwd_reset_header' ] : __( 'Please enter your username or email address. You will receive a link to create a new password via email', 'wpuf' );
265
- $uname_label = isset( $instance[ 'uname_label' ] ) ? $instance[ 'uname_label' ] : __( 'Username', 'wpuf' );
266
- $pwd_label = isset( $instance[ 'pwd_label' ] ) ? $instance[ 'pwd_label' ] : __( 'Password', 'wpuf' );
267
- $remember_label = isset( $instance[ 'remember_label' ] ) ? $instance[ 'remember_label' ] : __( 'Remember Me', 'wpuf' );
268
- $log_in_label = isset( $instance[ 'log_in_label' ] ) ? $instance[ 'log_in_label' ] : __( 'Log In', 'wpuf' );
269
- $pass_reset_label = isset( $instance[ 'pass_reset_label' ] ) ? $instance[ 'pass_reset_label' ] : __( 'Reset Password', 'wpuf' );
270
  ?>
271
 
272
  <p>
273
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'wpuf' ); ?></label>
274
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
275
  </p>
276
  <p>
277
- <label for="<?php echo $this->get_field_id( 'log_in_header' ); ?>"><?php _e( 'Log-in Text:', 'wpuf' ); ?></label>
278
  <input class="widefat" id="<?php echo $this->get_field_id( 'log_in_header' ); ?>" name="<?php echo $this->get_field_name( 'log_in_header' ); ?>" type="textarea" value="<?php echo esc_attr( $log_in_header ); ?>" />
279
  </p>
280
  <p>
281
- <label for="<?php echo $this->get_field_id( 'uname_label' ); ?>"><?php _e( 'Username Label:', 'wpuf' ); ?></label>
282
  <input class="widefat" id="<?php echo $this->get_field_id( 'uname_label' ); ?>" name="<?php echo $this->get_field_name( 'uname_label' ); ?>" type="text" value="<?php echo esc_attr( $uname_label ); ?>" />
283
  </p>
284
  <p>
285
- <label for="<?php echo $this->get_field_id( 'pwd_label' ); ?>"><?php _e( 'Password Label:', 'wpuf' ); ?></label>
286
  <input class="widefat" id="<?php echo $this->get_field_id( 'pwd_label' ); ?>" name="<?php echo $this->get_field_name( 'pwd_label' ); ?>" type="text" value="<?php echo esc_attr( $pwd_label ); ?>" />
287
  </p>
288
  <p>
289
- <label for="<?php echo $this->get_field_id( 'remember_label' ); ?>"><?php _e( 'Remember Me Label:', 'wpuf' ); ?></label>
290
  <input class="widefat" id="<?php echo $this->get_field_id( 'remember_label' ); ?>" name="<?php echo $this->get_field_name( 'remember_label' ); ?>" type="text" value="<?php echo esc_attr( $remember_label ); ?>" />
291
  </p>
292
- <label for="<?php echo $this->get_field_id( 'log_in_label' ); ?>"><?php _e( 'Log In Label:', 'wpuf' ); ?></label>
293
  <input class="widefat" id="<?php echo $this->get_field_id( 'log_in_label' ); ?>" name="<?php echo $this->get_field_name( 'log_in_label' ); ?>" type="text" value="<?php echo esc_attr( $log_in_label ); ?>" />
294
  </p>
295
  <p>
296
- <label for="<?php echo $this->get_field_id( 'pwd_reset_header' ); ?>"><?php _e( 'Password Reset Text:', 'wpuf' ); ?></label>
297
  <input class="widefat" id="<?php echo $this->get_field_id( 'pwd_reset_header' ); ?>" name="<?php echo $this->get_field_name( 'pwd_reset_header' ); ?>" type="textarea" value="<?php echo esc_attr( $pwd_reset_header ); ?>" />
298
  </p>
299
  <p>
300
- <label for="<?php echo $this->get_field_id( 'pass_reset_label' ); ?>"><?php _e( 'Password Reset Label:', 'wpuf' ); ?></label>
301
  <input class="widefat" id="<?php echo $this->get_field_id( 'pass_reset_label' ); ?>" name="<?php echo $this->get_field_name( 'pass_reset_label' ); ?>" type="text" value="<?php echo esc_attr( $pass_reset_label ); ?>" />
302
  </p>
303
  <?php
12
 
13
  parent::__construct(
14
  'WPUF_Login_Widget',
15
+ __('WPUF Ajax Login', 'wp-user-frontend'),
16
+ array( 'description' => __( 'Ajax Login widget for WP User Frontend', 'wp-user-frontend' ), )
17
  );
18
 
19
  add_action( 'wp_ajax_nopriv_wpuf_ajax_login', array( $this, 'ajax_login' ) );
33
  $rememberme = $_POST['rememberme'];
34
 
35
  if ( empty( $user_login ) || empty( $user_pass ) ) {
36
+ wp_send_json_error( array( 'message'=> __( 'Please fill all form fields', 'wp-user-frontend') ) );
37
  } else {
38
  $user = wp_signon( array('user_login' => $user_login, 'user_password' => $user_pass), false );
39
 
40
  if ( is_wp_error($user) ) {
41
  wp_send_json_error( array( 'message'=> $user->get_error_message() ) );
42
  } else {
43
+ wp_send_json_success( array( 'message'=> __( 'Login successful!', 'wp-user-frontend' ) ) );
44
  }
45
  }
46
  wp_set_auth_cookie( $user->ID, $rememberme, $secure_cookie );
54
  public function ajax_logout() {
55
 
56
  wp_logout();
57
+ wp_send_json_success( array( 'message'=> __( 'Logout successful!', 'wp-user-frontend' ) ) );
58
  }
59
 
60
  /**
68
 
69
  // Check if input variables are empty
70
  if ( empty( $username_or_email ) ) {
71
+ wp_send_json_error( array( 'error' => true, 'message'=> __( 'Please fill all form fields', 'wp-user-frontend' ) ) );
72
  } else {
73
  $username = is_email( $username_or_email ) ? sanitize_email( $username_or_email ) : sanitize_user( $username_or_email );
74
 
84
 
85
  wp_send_json_error( array( 'message' => $display_errors ) );
86
  } else {
87
+ wp_send_json_success( array( 'message' => __( 'Password has been reset. Please check your email.', 'wp-user-frontend' ) ) );
88
  }
89
  }
90
  }
100
  $errors = new WP_Error();
101
 
102
  if ( empty( $user_input ) ) {
103
+ $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or email address.', 'wp-user-frontend'));
104
  } elseif ( strpos( $user_input, '@' ) ) {
105
  $user_data = get_user_by( 'email', trim( $user_input ) );
106
  if ( empty( $user_data ) )
107
+ $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.', 'wp-user-frontend'));
108
  } else {
109
  $login = trim($user_input);
110
  $user_data = get_user_by('login', $login);
119
  return $errors;
120
 
121
  if ( !$user_data ) {
122
+ $errors->add( 'invalidcombo', __( '<strong>ERROR</strong>: Invalid username or email.', 'wp-user-frontend' ) );
123
  return $errors;
124
  }
125
 
132
  return $key;
133
  }
134
 
135
+ $message = __('Someone has requested a password reset for the following account:', 'wp-user-frontend') . "\r\n\r\n";
136
  $message .= network_home_url( '/' ) . "\r\n\r\n";
137
+ $message .= sprintf(__('Username: %s', 'wp-user-frontend'), $user_login) . "\r\n\r\n";
138
+ $message .= __('If this was a mistake, just ignore this email and nothing will happen.', 'wp-user-frontend') . "\r\n\r\n";
139
+ $message .= __('To reset your password, visit the following address:', 'wp-user-frontend') . "\r\n\r\n";
140
  $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
141
 
142
  $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
143
 
144
+ $title = sprintf( __('[%s] Password Reset', 'wp-user-frontend'), $blogname );
145
 
146
  $title = apply_filters( 'retrieve_password_title', $title, $user_login, $user_data );
147
 
148
  $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );
149
 
150
  if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) )
151
+ $errors->add('mailfailed', __('<strong>ERROR</strong>: The email could not be sent.Possible reason: your host may have disabled the mail() function.', 'wp-user-frontend'));
152
 
153
  return true;
154
  }
203
  <?php
204
  wp_login_form( $login_args );
205
  if ( get_option( 'users_can_register' ) ) {
206
+ $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'wp-user-frontend' ) );
207
  echo $registration_url;
208
  echo apply_filters( 'login_link_separator', ' | ' );
209
  }?>
210
+ <a href="#wpuf-ajax-lost-pw-url" id="wpuf-ajax-lost-pw-url"><?php _e( 'Lost your password?', 'wp-user-frontend' ); ?></a>
211
  </div>
212
 
213
  <!-- Lost Password form -->
215
  <form id="wpuf_ajax_reset_pass_form" action="<?php echo home_url( '/' ); ?>" method="POST">
216
  <div class="wpuf-ajax-message"> <?php echo $pwd_reset_header; ?></div>
217
  <p>
218
+ <label for="wpuf-user_login"><?php _e( 'Username or E-mail:', 'wp-user-frontend' ); ?></label>
219
  <input type="text" name="user_login" id="wpuf-user_login" class="input" value="" size="20" />
220
  </p>
221
 
231
  </p>
232
  </form>
233
  <div id="ajax-lp-section">
234
+ <a href="#wpuf-ajax-login-url" id="wpuf-ajax-login-url"> <?php _e( 'Login', 'wp-user-frontend' ); ?> </a>
235
  <?php
236
  if ( get_option( 'users_can_register' ) ) {
237
  echo apply_filters( 'login_link_separator', ' | ' );
238
+ $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'wp-user-frontend' ) );
239
  echo $registration_url;
240
  }
241
  ?>
243
  </div>
244
  <?php } else { ?>
245
  <div class="wpuf-ajax-logout">
246
+ <a id="logout-url" href="#logout"><?php echo __('Log out', 'wp-user-frontend') ?></a>
247
  </div>
248
  <?php } ?>
249
  </div>
259
  */
260
  public function form( $instance ) {
261
 
262
+ $title = isset( $instance[ 'title' ] ) ? $instance[ 'title' ] : __( 'WPUF Login Widget', 'wp-user-frontend' );
263
+ $log_in_header = isset( $instance[ 'log_in_header' ] ) ? $instance[ 'log_in_header' ] : __( 'Username or Email Address', 'wp-user-frontend' );
264
+ $pwd_reset_header = isset( $instance[ 'pwd_reset_header' ] ) ? $instance[ 'pwd_reset_header' ] : __( 'Please enter your username or email address. You will receive a link to create a new password via email', 'wp-user-frontend' );
265
+ $uname_label = isset( $instance[ 'uname_label' ] ) ? $instance[ 'uname_label' ] : __( 'Username', 'wp-user-frontend' );
266
+ $pwd_label = isset( $instance[ 'pwd_label' ] ) ? $instance[ 'pwd_label' ] : __( 'Password', 'wp-user-frontend' );
267
+ $remember_label = isset( $instance[ 'remember_label' ] ) ? $instance[ 'remember_label' ] : __( 'Remember Me', 'wp-user-frontend' );
268
+ $log_in_label = isset( $instance[ 'log_in_label' ] ) ? $instance[ 'log_in_label' ] : __( 'Log In', 'wp-user-frontend' );
269
+ $pass_reset_label = isset( $instance[ 'pass_reset_label' ] ) ? $instance[ 'pass_reset_label' ] : __( 'Reset Password', 'wp-user-frontend' );
270
  ?>
271
 
272
  <p>
273
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'wp-user-frontend' ); ?></label>
274
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
275
  </p>
276
  <p>
277
+ <label for="<?php echo $this->get_field_id( 'log_in_header' ); ?>"><?php _e( 'Log-in Text:', 'wp-user-frontend' ); ?></label>
278
  <input class="widefat" id="<?php echo $this->get_field_id( 'log_in_header' ); ?>" name="<?php echo $this->get_field_name( 'log_in_header' ); ?>" type="textarea" value="<?php echo esc_attr( $log_in_header ); ?>" />
279
  </p>
280
  <p>
281
+ <label for="<?php echo $this->get_field_id( 'uname_label' ); ?>"><?php _e( 'Username Label:', 'wp-user-frontend' ); ?></label>
282
  <input class="widefat" id="<?php echo $this->get_field_id( 'uname_label' ); ?>" name="<?php echo $this->get_field_name( 'uname_label' ); ?>" type="text" value="<?php echo esc_attr( $uname_label ); ?>" />
283
  </p>
284
  <p>
285
+ <label for="<?php echo $this->get_field_id( 'pwd_label' ); ?>"><?php _e( 'Password Label:', 'wp-user-frontend' ); ?></label>
286
  <input class="widefat" id="<?php echo $this->get_field_id( 'pwd_label' ); ?>" name="<?php echo $this->get_field_name( 'pwd_label' ); ?>" type="text" value="<?php echo esc_attr( $pwd_label ); ?>" />
287
  </p>
288
  <p>
289
+ <label for="<?php echo $this->get_field_id( 'remember_label' ); ?>"><?php _e( 'Remember Me Label:', 'wp-user-frontend' ); ?></label>
290
  <input class="widefat" id="<?php echo $this->get_field_id( 'remember_label' ); ?>" name="<?php echo $this->get_field_name( 'remember_label' ); ?>" type="text" value="<?php echo esc_attr( $remember_label ); ?>" />
291
  </p>
292
+ <label for="<?php echo $this->get_field_id( 'log_in_label' ); ?>"><?php _e( 'Log In Label:', 'wp-user-frontend' ); ?></label>
293
  <input class="widefat" id="<?php echo $this->get_field_id( 'log_in_label' ); ?>" name="<?php echo $this->get_field_name( 'log_in_label' ); ?>" type="text" value="<?php echo esc_attr( $log_in_label ); ?>" />
294
  </p>
295
  <p>
296
+ <label for="<?php echo $this->get_field_id( 'pwd_reset_header' ); ?>"><?php _e( 'Password Reset Text:', 'wp-user-frontend' ); ?></label>
297
  <input class="widefat" id="<?php echo $this->get_field_id( 'pwd_reset_header' ); ?>" name="<?php echo $this->get_field_name( 'pwd_reset_header' ); ?>" type="textarea" value="<?php echo esc_attr( $pwd_reset_header ); ?>" />
298
  </p>
299
  <p>
300
+ <label for="<?php echo $this->get_field_id( 'pass_reset_label' ); ?>"><?php _e( 'Password Reset Label:', 'wp-user-frontend' ); ?></label>
301
  <input class="widefat" id="<?php echo $this->get_field_id( 'pass_reset_label' ); ?>" name="<?php echo $this->get_field_name( 'pass_reset_label' ); ?>" type="text" value="<?php echo esc_attr( $pass_reset_label ); ?>" />
302
  </p>
303
  <?php
includes/class-privacy.php ADDED
@@ -0,0 +1,562 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Class WPUF_Privacy
4
+ *
5
+ * Add Exporters and Erasers to WP data exporter
6
+ *
7
+ * @since 2.8.9
8
+ */
9
+ Class WPUF_Privacy {
10
+
11
+ private $name = "WP User Frontend";
12
+
13
+ public function __construct(){
14
+ add_action( 'admin_init', array( $this, 'add_privacy_message' ) );
15
+ add_filter( 'wp_privacy_personal_data_exporters', array( $this, 'register_exporters' ), 10 );
16
+ add_filter( 'wp_privacy_personal_data_erasers', array( $this, 'register_erasers' ), 10 );
17
+
18
+ add_filter( 'wpuf_privacy_user_data', array( $this, 'export_billing_address' ), 5, 3 );
19
+ }
20
+
21
+ function add_privacy_message(){
22
+ if ( function_exists( 'wp_add_privacy_policy_content' ) ) {
23
+ $content = $this->get_privacy_message();
24
+ wp_add_privacy_policy_content( $this->name, $content );
25
+ }
26
+ }
27
+
28
+ /**
29
+ * Add privacy policy content for the privacy policy page.
30
+ */
31
+ function get_privacy_message() {
32
+ $content = '
33
+ <div contenteditable="false">' .
34
+ '<p class="wp-policy-help">' .
35
+ __( 'This sample policy includes the basics around what personal data you may be collecting, storing and sharing, as well as who may have access to that data. Depending on what settings are enabled and which additional plugins are used, the specific information shared by your form will vary. We recommend consulting with a lawyer when deciding what information to disclose on your privacy policy.', 'wp-user-frontend' ) .
36
+ '</p>' .
37
+ '</div>' .
38
+ '<p>' . __( 'We collect information about you during the form submission process on our WordPress website.', 'wp-user-frontend' ) . '</p>' .
39
+ '<h2>' . __( 'What we collect and store', 'wp-user-frontend' ) . '</h2>' .
40
+ '<p>' . __( 'While you visit our , we’ll track:', 'wp-user-frontend' ) . '</p>' .
41
+ '<ul>' .
42
+ '<li>' . __( 'Form Fields Data: Forms Fields data includes the available field types when creating a form. We’ll use this to, for example, collect informations like Name, Email and other available fields.', 'wp-user-frontend' ) . '</li>' .
43
+ '<li>' . __( 'Location, IP address and browser type: we’ll use this for purposes like estimating taxes and shipping. Also, for reducing fraudulent activities and prevent identity theft while placing orders', 'wp-user-frontend' ) . '</li>' .
44
+ '<li>' . __( 'Transaction Details: we’ll ask you to enter this so we can, for instance, provide & regulate subscription packs that you bought and keep track of your payment details for subscription packs!', 'wp-user-frontend' ) . '</li>' .
45
+ '</ul>' .
46
+ '<p>' . __( 'We’ll also use cookies to keep track of form elements while you’re browsing our site.', 'wp-user-frontend' ) . '</p>' .
47
+ '<div contenteditable="false">' .
48
+ '<p class="wp-policy-help">' . __( 'Note: you may want to further detail your cookie policy, and link to that section from here.', 'wp-user-frontend' ) . '</p>' .
49
+ '</div>' .
50
+ '<p>' . __( 'When you fill up a form, we’ll ask you to provide information including your name, billing address, shipping address, email address, phone number, credit card/payment details and optional account information like username and password and any other form fields found in the form building options. We’ll use this information for purposes, such as, to:', 'wp-user-frontend' ) . '</p>' .
51
+ '<ul>' .
52
+ '<li>' . __( 'Send you information about your account and order', 'wp-user-frontend' ) . '</li>' .
53
+ '<li>' . __( 'Respond to your requests, including transaction details and complaints', 'wp-user-frontend' ) . '</li>' .
54
+ '<li>' . __( 'Process payments and prevent fraud', 'wp-user-frontend' ) . '</li>' .
55
+ '<li>' . __( 'Set up your account', 'wp-user-frontend' ) . '</li>' .
56
+ '<li>' . __( 'Comply with any legal obligations we have, such as calculating taxes', 'wp-user-frontend' ) . '</li>' .
57
+ '<li>' . __( 'Improve our form offerings', 'wp-user-frontend' ) . '</li>' .
58
+ '<li>' . __( 'Send you marketing messages, if you choose to receive them', 'wp-user-frontend' ) . '</li>' .
59
+ '</ul>' .
60
+ '<p>' . __( 'If you create an account, we will store your name, address, email and phone number, which will be used to populate the form fields for future submissions.', 'wp-user-frontend' ) . '</p>' .
61
+ '<p>' . __( 'We generally store information about you for as long as we need the information for the purposes for which we collect and use it, and we are not legally required to continue keeping it. For example, we will store form submission information for XXX years for tax, accounting and marketing purposes. This includes your name, email address and billing and shipping addresses.', 'wp-user-frontend' ) . '</p>' .
62
+ '<h2>' . __( 'Who on our team has access', 'wp-user-frontend' ) . '</h2>' .
63
+ '<p>' . __( 'Members of our team have access to the information you provide us. For example, Administrators and Editors and any body else who has permission can access:', 'wp-user-frontend' ) . '</p>' .
64
+ '<ul>' .
65
+ '<li>' . __( 'Form submission information and other details related to it', 'wp-user-frontend' ) . '</li>' .
66
+ '<li>' . __( 'Customer information like your name, email address, and billing and shipping information.', 'wp-user-frontend' ) . '</li>' .
67
+ '</ul>' .
68
+ '<p>' . __( 'Our team members have access to this information to help fulfill transactions and support you.', 'wp-user-frontend' ) . '</p>' .
69
+ '<h2>' . __( 'What we share with others', 'wp-user-frontend' ) . '</h2>' .
70
+ '<div contenteditable="false">' .
71
+ '<p class="wp-policy-help">' . __( 'In this section you should list who you’re sharing data with, and for what purpose. This could include, but may not be limited to, analytics, marketing, payment gateways, shipping providers, and third party embeds.', 'wp-user-frontend' ) . '</p>' .
72
+ '</div>' .
73
+ '<p>' . __( 'We share information with third parties who help us provide our orders and store services to you; for example --', 'wp-user-frontend' ) . '</p>' .
74
+ '<h3>' . __( 'Payments', 'wp-user-frontend' ) . '</h3>' .
75
+ '<div contenteditable="false">' .
76
+ '<p class="wp-policy-help">' . __( 'In this subsection you should list which third party payment processors you’re using to take payments on your site since these may handle customer data. We’ve included PayPal as an example, but you should remove this if you’re not using PayPal.', 'wp-user-frontend' ) . '</p>' .
77
+ '</div>' .
78
+ '<p>' . __( 'We accept payments through PayPal. When processing payments, some of your data will be passed to PayPal, including information required to process or support the payment, such as the purchase total and billing information.', 'wp-user-frontend' ) . '</p>' .
79
+ '<p>' . __( 'Please see the <a href="https://www.paypal.com/us/webapps/mpp/ua/privacy-full">PayPal Privacy Policy</a> for more details.', 'wp-user-frontend' ) . '</p>'.
80
+ '<p>' . __( 'Also, we accept payments through Stripe. When processing payments, some of your data will be passed to Stripe, including information required to process or support the payment, such as the purchase total and billing information.', 'wp-user-frontend' ) . '</p>' .
81
+ '<p>' . __( 'Please see the <a href="https://stripe.com/us/privacy">Stripe Privacy Policy</a> for more details.', 'wp-user-frontend' ) . '</p>'.
82
+ '<h3>' . __( 'Available Modules', 'wp-user-frontend' ) . '</h3>' .
83
+ '<p>' . __( 'In this subsection you should list which third party modules you’re using to increase the functionality of your created forms using WP User Frontend since these may handle customer data.', 'wp-user-frontend' ) . '</p>' .
84
+ '<p>' . __( 'WP User Frontend Pro comes with support for modules like MailChimp, ConvertKit, Stipe, Paid Membership Pro, MailPoet, Zapier, GetResponse, MailPoet 3, Campaign Monitor, Social Login, BuddyPress. Please note any future modules that will be added will have some data transferred to their own platform which falls in their own data policy. ', 'wp-user-frontend' ) . '</p>' .
85
+ '<p>' . __( 'As an example while using MailChimp for your marketing email automation service by integrating it with WP User Frontend, some of your data will be passed to MailChimp, including information required to process or support the email marketing services, such as name, email address and any other information that you intend to pass or collect including all collected information through subscription. ', 'wp-user-frontend' ) . '</p>' .
86
+ '<p>' . __( 'Please see the <a href="https://mailchimp.com/legal/privacy/">MailChimp Privacy Policy</a> for more details.', 'wp-user-frontend' ) . '</p>';
87
+
88
+ return apply_filters( 'wpuf_privacy_policy_content', $content );
89
+ }
90
+
91
+ /**
92
+ * Register WPUF Exporter to export data
93
+ *
94
+ * @param $exporters
95
+ *
96
+ * @return array
97
+ */
98
+ function register_exporters( $exporters ) {
99
+ $exporters['wpuf-personal-data-export'] = array(
100
+ 'exporter_friendly_name' => __( 'WPUF User Data', 'wp-user-frontend' ),
101
+ 'callback' => array( 'WPUF_Privacy', 'export_user_data'),
102
+ );
103
+
104
+ $exporters['wpuf-subscription-data-export'] = array(
105
+ 'exporter_friendly_name' => __( 'WPUF Subscription Data', 'wp-user-frontend' ),
106
+ 'callback' => array( 'WPUF_Privacy', 'export_subscription_data'),
107
+ );
108
+
109
+ $exporters['wpuf-transaction-data-export'] = array(
110
+ 'exporter_friendly_name' => __( 'WPUF Transaction Data', 'wp-user-frontend' ),
111
+ 'callback' => array( 'WPUF_Privacy', 'export_transaction_data'),
112
+ );
113
+
114
+ $exporters['wpuf-post-data-export'] = array(
115
+ 'exporter_friendly_name' => __( 'WPUF Post Data', 'wp-user-frontend' ),
116
+ 'callback' => array( 'WPUF_Privacy', 'export_post_data'),
117
+ );
118
+
119
+ return apply_filters( 'wpuf_privacy_register_exporters', $exporters );
120
+ }
121
+
122
+ /**
123
+ * Register WPUF Eraser to delete data
124
+ *
125
+ * @param $erasers
126
+ *
127
+ * @return array
128
+ */
129
+ function register_erasers( $erasers ) {
130
+ $erasers['wpuf-personal-data-erase'] = array(
131
+ 'eraser_friendly_name' => __( 'WPUF User Data', 'wp-user-frontend' ),
132
+ 'callback' => array( 'WPUF_Privacy', 'erase_user_data'),
133
+ );
134
+
135
+ return apply_filters( 'wpuf_privacy_register_erasers', $erasers );
136
+ }
137
+
138
+ /**
139
+ * Get WP_User for given $email address
140
+ *
141
+ * @param string $email
142
+ *
143
+ * @return WP_User | String
144
+ */
145
+ public static function get_user( $email ) {
146
+ $user = get_user_by( 'email', $email );
147
+
148
+ if ( $user ) {
149
+ $wpuf_user = new WPUF_User( $user );
150
+ return $wpuf_user;
151
+ }
152
+
153
+ return $email;
154
+ }
155
+ /**
156
+ * Finds and exports customer data by email address.
157
+ *
158
+ * @param string $email_address The user email address.
159
+ * @param int $page Page.
160
+ *
161
+ * @return array An array of data in name value pairs
162
+ */
163
+ public static function export_user_data( $email_address, $page ){
164
+
165
+ $data_to_export = array();
166
+ $wpuf_user = self::get_user( $email_address );
167
+
168
+ $data_to_export[] = array(
169
+ 'group_id' => 'wpuf-user-data',
170
+ 'group_label' => __( 'WPUF User Data', 'wp-user-frontend' ),
171
+ 'item_id' => "wpuf-user",
172
+ 'data' => apply_filters( 'wpuf_privacy_user_data', array(), $wpuf_user, $page ),
173
+ );
174
+
175
+ /**
176
+ * Filters the export data array
177
+ *
178
+ * @param array
179
+ */
180
+ $data_to_export = apply_filters( 'wpuf_privacy_export_data', $data_to_export, $wpuf_user, $page );
181
+
182
+ return array(
183
+ 'data' => $data_to_export,
184
+ 'done' => true
185
+ );
186
+ }
187
+
188
+ /**
189
+ * Erases personal data associated with an email address from the WPUF user data
190
+ *
191
+ * @param string $email_address
192
+ *
193
+ * @param int $page
194
+ *
195
+ * @return array
196
+ */
197
+ public static function erase_user_data( $email_address, $page = 1 ){
198
+
199
+ if ( empty( $email_address ) ) {
200
+ return array(
201
+ 'items_removed' => false,
202
+ 'items_retained' => false,
203
+ 'messages' => array(),
204
+ 'done' => true,
205
+ );
206
+ }
207
+
208
+ $posts = self::get_post_data( $email_address, $page );
209
+ $post_ids = wp_list_pluck( $posts, 'id' );
210
+
211
+ global $wpdb;
212
+ $ids = sprintf( '(%s)', implode(',', $post_ids) );
213
+ $query = "Update `$wpdb->posts` Set `post_author` = 0 WHERE `ID` in $ids";
214
+ $wpdb->query( $query );
215
+
216
+ $erased = apply_filters( 'wpuf_erase_user_data', array(
217
+ 'items_removed' => true,
218
+ 'items_retained' => false,
219
+ 'messages' => array(),
220
+ 'done' => true,
221
+ ), $email_address, $page
222
+ );
223
+
224
+ return $erased;
225
+
226
+ }
227
+
228
+ /**
229
+ * Add Billing address data to export
230
+ *
231
+ * @param $data
232
+ *
233
+ * @param $wpuf_user
234
+ *
235
+ * @param $page
236
+ *
237
+ * @return array
238
+ */
239
+ public function export_billing_address( $data, $wpuf_user, $page ) {
240
+
241
+ if ( ! ( $wpuf_user instanceof WPUF_User ) ) {
242
+ return $data;
243
+ }
244
+
245
+ $address = $wpuf_user->get_billing_address( true );
246
+
247
+ /**
248
+ * @var array $countries
249
+ */
250
+ include_once WPUF_ROOT . '/includes/countries.php';
251
+
252
+ if ( !empty( $address ) ) {
253
+ $address_data = array(
254
+ array(
255
+ 'name' => __( 'Billing Address 1', 'wp-user-frontend' ),
256
+ 'value' => $address['add_line_1']
257
+ ),
258
+ array(
259
+ 'name' => __( 'Billing Address 2', 'wp-user-frontend' ),
260
+ 'value' => $address['add_line_2']
261
+ ),
262
+ array(
263
+ 'name' => __( 'City', 'wp-user-frontend' ),
264
+ 'value' => $address['city']
265
+ ),
266
+ array(
267
+ 'name' => __( 'State', 'wp-user-frontend' ),
268
+ 'value' => $address['state']
269
+ ),
270
+ array(
271
+ 'name' => __( 'Zip', 'wp-user-frontend' ),
272
+ 'value' => $address['zip_code']
273
+ ),
274
+ array(
275
+ 'name' => __( 'Country', 'wp-user-frontend' ),
276
+ 'value' => $countries[$address['country']]
277
+ ),
278
+ );
279
+
280
+ return array_merge( $data, $address_data );
281
+ }
282
+
283
+ return $data;
284
+
285
+ }
286
+
287
+ /**
288
+ * Export Subscription Data for User
289
+ *
290
+ * @param $email_address
291
+ *
292
+ * @param $page
293
+ *
294
+ * @return array
295
+ */
296
+ public static function export_subscription_data( $email_address, $page ) {
297
+
298
+ $data_to_export[] = array(
299
+ 'group_id' => 'wpuf-subscription-data',
300
+ 'group_label' => __( 'WPUF Subscription Data', 'wp-user-frontend' ),
301
+ 'item_id' => "wpuf-subscription",
302
+ 'data' => self::get_subscription_data( $email_address, $page )
303
+ );
304
+
305
+ $response = array(
306
+ 'data' => $data_to_export,
307
+ 'done' => true
308
+ );
309
+
310
+ return $response;
311
+ }
312
+
313
+ /**
314
+ * Export transaction Data for User
315
+ *
316
+ * @param $email_address
317
+ *
318
+ * @param $page
319
+ *
320
+ * @return array
321
+ */
322
+ public static function export_transaction_data( $email_address, $page ) {
323
+
324
+ $transaction_data = self::get_transaction_data( $email_address, $page );
325
+ foreach ( $transaction_data as $txn_data ) {
326
+
327
+ $data_to_export[] = array(
328
+ 'group_id' => 'wpuf-transaction-data',
329
+ 'group_label' => __('WPUF Transaction Data', 'wp-user-frontend'),
330
+ 'item_id' => "wpuf-transaction" . $txn_data['transaction_id'],
331
+ 'data' => array(
332
+ array(
333
+ 'name' => __('Transaction ID', 'wp-user-frontend'),
334
+ 'value' => $txn_data['transaction_id']
335
+ ),
336
+ array(
337
+ 'name' => __('Payment Status', 'wp-user-frontend'),
338
+ 'value' => $txn_data['status']
339
+ ),
340
+ array(
341
+ 'name' => __('Subtotal', 'wp-user-frontend'),
342
+ 'value' => $txn_data['subtotal']
343
+ ),
344
+ array(
345
+ 'name' => __('Tax', 'wp-user-frontend'),
346
+ 'value' => $txn_data['tax']
347
+ ),
348
+ array(
349
+ 'name' => __('Total', 'wp-user-frontend'),
350
+ 'value' => $txn_data['cost']
351
+ ),
352
+ array(
353
+ 'name' => __('Post ID', 'wp-user-frontend'),
354
+ 'value' => $txn_data['post_id']
355
+ ),
356
+ array(
357
+ 'name' => __('Pack ID', 'wp-user-frontend'),
358
+ 'value' => $txn_data['post_id']
359
+ ),
360
+ array(
361
+ 'name' => __('First Name', 'wp-user-frontend'),
362
+ 'value' => $txn_data['payer_first_name']
363
+ ),
364
+ array(
365
+ 'name' => __('Last Name', 'wp-user-frontend'),
366
+ 'value' => $txn_data['payer_last_name']
367
+ ),
368
+ array(
369
+ 'name' => __('Email', 'wp-user-frontend'),
370
+ 'value' => $txn_data['payer_email']
371
+ ),
372
+ array(
373
+ 'name' => __('Payment Type', 'wp-user-frontend'),
374
+ 'value' => $txn_data['payment_type']
375
+ ),
376
+ array(
377
+ 'name' => __('payer_address', 'wp-user-frontend'),
378
+ 'value' => implode(', ', array_map(
379
+ function ($v, $k) { return sprintf("%s='%s'", $k, $v); },
380
+ maybe_unserialize( $txn_data['payer_address'] ),
381
+ array_keys( maybe_unserialize( $txn_data['payer_address'] ) )
382
+ ) ),
383
+ ),
384
+ array(
385
+ 'name' => __('Transaction Date', 'wp-user-frontend'),
386
+ 'value' => $txn_data['created']
387
+ ),
388
+ ),
389
+ );
390
+ }
391
+ $response = array(
392
+ 'data' => $data_to_export,
393
+ 'done' => true
394
+ );
395
+
396
+ return $response;
397
+ }
398
+
399
+ /**
400
+ * Export Post Data for User
401
+ *
402
+ * @param $email_address
403
+ *
404
+ * @param $page
405
+ *
406
+ * @return array
407
+ */
408
+ public static function export_post_data( $email_address, $page ) {
409
+
410
+ $post_data = self::get_post_data( $email_address, $page );
411
+ $data_to_export = array();
412
+ foreach ( $post_data as $data ) {
413
+ $data_to_export[] = array(
414
+ 'group_id' => 'wpuf-post-data',
415
+ 'group_label' => __( 'WPUF Post Data', 'wp-user-frontend' ),
416
+ 'item_id' => "wpuf-posts-" . $data['id'],
417
+ 'data' => array(
418
+ array(
419
+ 'name' => __('Post ID', 'wp-user-frontend'),
420
+ 'value' => $data['id']
421
+ ),
422
+ array(
423
+ 'name' => __('Post Title', 'wp-user-frontend'),
424
+ 'value' => $data['title']
425
+ ),
426
+ array(
427
+ 'name' => __('Post URL', 'wp-user-frontend'),
428
+ 'value' => $data['url']
429
+ ),
430
+ array(
431
+ 'name' => __('Post Date', 'wp-user-frontend'),
432
+ 'value' => $data['date']
433
+ ),
434
+ ),
435
+ );
436
+ }
437
+
438
+ $response = array(
439
+ 'data' => $data_to_export,
440
+ 'done' => true
441
+ );
442
+
443
+ return $response;
444
+ }
445
+
446
+ /**
447
+ * Generate Subscription data to export
448
+ *
449
+ * @param $email_address
450
+ *
451
+ * @param $page
452
+ *
453
+ * @return array
454
+ */
455
+ public static function get_subscription_data( $email_address, $page ) {
456
+
457
+ $wpuf_user = self::get_user( $email_address );
458
+
459
+ if ( ! ( $wpuf_user instanceof WPUF_User ) ) {
460
+ return array();
461
+ }
462
+
463
+ $sub_id = $wpuf_user->subscription()->current_pack_id();
464
+
465
+ if ( !$sub_id ) {
466
+ return array();
467
+ }
468
+
469
+ $pack = $wpuf_user->subscription()->current_pack();
470
+
471
+ $subscription_data = array(
472
+ array(
473
+ 'name' => __( 'Pack ID', 'wp-user-frontend' ),
474
+ 'value' => $pack['pack_id']
475
+ ),
476
+ array(
477
+ 'name' => __( 'Pack Title', 'wp-user-frontend' ),
478
+ 'value' => get_the_title( $pack['pack_id'] ),
479
+ ),
480
+ array(
481
+ 'name' => __( 'Expiry', 'wp-user-frontend' ),
482
+ 'value' => $pack['expire']
483
+ ),
484
+ array(
485
+ 'name' => __( 'Recurring', 'wp-user-frontend' ),
486
+ 'value' => $pack['recurring']
487
+ ),
488
+ );
489
+
490
+ return apply_filters( 'wpuf_privacy_subscription_export_data', $subscription_data, $email_address, $page );
491
+ }
492
+
493
+ /**
494
+ * Generate Transaction data to export
495
+ *
496
+ * @param $wpuf_user
497
+ *
498
+ * @param $page
499
+ *
500
+ * @return array
501
+ */
502
+ public static function get_transaction_data( $email_address, $page ) {
503
+
504
+ $wpuf_user = self::get_user( $email_address );
505
+
506
+ if ( ! ( $wpuf_user instanceof WPUF_User ) ) {
507
+ return array();
508
+ }
509
+
510
+ $txn_data = $wpuf_user->get_transaction_data( true );
511
+
512
+ if ( !empty( $txn_data ) ) {
513
+
514
+ return $txn_data;
515
+ }
516
+
517
+ }
518
+
519
+ /**
520
+ * Generate Post data to export
521
+ *
522
+ * @param $email_address
523
+ *
524
+ * @param $page
525
+ *
526
+ * @return array
527
+ */
528
+ public static function get_post_data( $email_address, $page ) {
529
+
530
+ $wpuf_user = self::get_user( $email_address );
531
+
532
+ if ( ! ( $wpuf_user instanceof WPUF_User ) ) {
533
+ return array();
534
+ }
535
+
536
+ $post_data = array();
537
+ $allowed_posts = wpuf_get_option( 'export_post_types', 'wpuf_privacy', 'post' );
538
+
539
+ if ( !empty( $allowed_posts ) ) {
540
+ $posts = get_posts( apply_filters( 'wpuf_privacy_post_export_query_args', array(
541
+ 'author' => $wpuf_user->id,
542
+ 'post_type' => $allowed_posts,
543
+ 'numberposts' => '-1',
544
+ 'order' => 'ASC',
545
+ ), $email_address, $page ) );
546
+
547
+ foreach ( $posts as $post ) {
548
+ $data = array();
549
+ $data['id'] = $post->ID;
550
+ $data['title'] = $post->post_title;
551
+ $data['url'] = $post->guid;
552
+ $data['date'] = $post->post_date;
553
+
554
+ $post_data[] = $data;
555
+ }
556
+ }
557
+
558
+ return apply_filters( 'wpuf_privacy_export_post_data', $post_data, $email_address, $page );
559
+
560
+ }
561
+
562
+ }
includes/class-user-subscription.php CHANGED
@@ -55,12 +55,12 @@ class WPUF_User_Subscription {
55
  if ( ! isset( $this->pack['pack_id'] ) ) {
56
  $pack_page = get_permalink( wpuf_get_option( 'subscription_page', 'wpuf_payment' ) );
57
 
58
- return new WP_Error( 'no-pack', sprintf( __( 'You must <a href="%s">purchase a pack</a> before posting', 'wpuf'), $pack_page ) );
59
  }
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;
@@ -304,7 +304,7 @@ class WPUF_User_Subscription {
304
 
305
  $details_meta = WPUF_Subscription::init()->get_details_meta_value();
306
 
307
- $billing_amount = ( intval( $pack->meta_value['billing_amount'] ) > 0 ) ? $details_meta['symbol'] . $pack->meta_value['billing_amount'] : __( 'Free', 'wpuf' );
308
  if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
309
  $recurring_des = sprintf( 'For each %s %s', $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
310
  $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? sprintf( ', for %s installments', $pack->meta_value['billing_limit'] ) : '';
@@ -315,11 +315,11 @@ class WPUF_User_Subscription {
315
 
316
  ?>
317
  <div class="wpuf_sub_info">
318
- <h3><?php _e( 'Subscription Details', 'wpuf' ); ?></h3>
319
  <div class="wpuf-text">
320
- <div><strong><?php _e( 'Subcription Name: ','wpuf' ); ?></strong><?php echo $pack->post_title; ?></div>
321
  <div>
322
- <strong><?php _e( 'Package & billing details: ', 'wpuf'); ?></strong>
323
 
324
  <div class="wpuf-pricing-wrap">
325
  <div class="wpuf-sub-amount">
@@ -330,7 +330,7 @@ class WPUF_User_Subscription {
330
 
331
  </div>
332
  <div>
333
- <strong><?php _e( 'Remaining post: ', 'wpuf'); ?></strong>
334
  <?php
335
  foreach ($this->pack['posts'] as $key => $value) {
336
  $value = intval( $value );
@@ -343,7 +343,7 @@ class WPUF_User_Subscription {
343
  if ( ! $post_type_obj ) {
344
  continue;
345
  }
346
- $value = ( $value == '-1' ) ? __( 'Unlimited', 'wpuf' ) : $value;
347
  ?>
348
  <div><?php echo $post_type_obj->labels->name . ': ' . $value; ?></div>
349
  <?php
@@ -358,7 +358,7 @@ class WPUF_User_Subscription {
358
 
359
  ?>
360
  <div class="wpuf-expire">
361
- <strong><?php echo _e( 'Expire date:', 'wpuf' ); ?></strong> <?php echo wpuf_get_date( $expire ); ?>
362
  </div>
363
  <?php
364
  }
@@ -377,7 +377,7 @@ class WPUF_User_Subscription {
377
  <input type="submit" name="wpuf_payment_cancel_submit" value="cancel">
378
  </form>
379
  <?php $subscription_page = wpuf_get_option( 'subscription_page','wpuf_payment' ); ?>
380
- <a href="<?php echo get_permalink( $subscription_page ); ?>"><? _e( 'Change', 'wpuf'); ?></a>
381
  <?php
382
  }
383
  echo '</div>';
55
  if ( ! isset( $this->pack['pack_id'] ) ) {
56
  $pack_page = get_permalink( wpuf_get_option( 'subscription_page', 'wpuf_payment' ) );
57
 
58
+ return new WP_Error( 'no-pack', sprintf( __( 'You must <a href="%s">purchase a subscription package</a> before posting', 'wp-user-frontend'), $pack_page ) );
59
  }
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.', 'wp-user-frontend' ) );
64
  }
65
 
66
  return $pack;
304
 
305
  $details_meta = WPUF_Subscription::init()->get_details_meta_value();
306
 
307
+ $billing_amount = ( intval( $pack->meta_value['billing_amount'] ) > 0 ) ? $details_meta['symbol'] . $pack->meta_value['billing_amount'] : __( 'Free', 'wp-user-frontend' );
308
  if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
309
  $recurring_des = sprintf( 'For each %s %s', $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
310
  $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? sprintf( ', for %s installments', $pack->meta_value['billing_limit'] ) : '';
315
 
316
  ?>
317
  <div class="wpuf_sub_info">
318
+ <h3><?php _e( 'Subscription Details', 'wp-user-frontend' ); ?></h3>
319
  <div class="wpuf-text">
320
+ <div><strong><?php _e( 'Subcription Name: ','wp-user-frontend' ); ?></strong><?php echo $pack->post_title; ?></div>
321
  <div>
322
+ <strong><?php _e( 'Package & billing details: ', 'wp-user-frontend'); ?></strong>
323
 
324
  <div class="wpuf-pricing-wrap">
325
  <div class="wpuf-sub-amount">
330
 
331
  </div>
332
  <div>
333
+ <strong><?php _e( 'Remaining post: ', 'wp-user-frontend'); ?></strong>
334
  <?php
335
  foreach ($this->pack['posts'] as $key => $value) {
336
  $value = intval( $value );
343
  if ( ! $post_type_obj ) {
344
  continue;
345
  }
346
+ $value = ( $value == '-1' ) ? __( 'Unlimited', 'wp-user-frontend' ) : $value;
347
  ?>
348
  <div><?php echo $post_type_obj->labels->name . ': ' . $value; ?></div>
349
  <?php
358
 
359
  ?>
360
  <div class="wpuf-expire">
361
+ <strong><?php echo _e( 'Expire date:', 'wp-user-frontend' ); ?></strong> <?php echo wpuf_get_date( $expire ); ?>
362
  </div>
363
  <?php
364
  }
377
  <input type="submit" name="wpuf_payment_cancel_submit" value="cancel">
378
  </form>
379
  <?php $subscription_page = wpuf_get_option( 'subscription_page','wpuf_payment' ); ?>
380
+ <a href="<?php echo get_permalink( $subscription_page ); ?>"><? _e( 'Change', 'wp-user-frontend'); ?></a>
381
  <?php
382
  }
383
  echo '</div>';
includes/class-user.php CHANGED
@@ -78,7 +78,13 @@ class WPUF_User {
78
  * @return bool
79
  */
80
  public function is_verified() {
81
- return 0 !== get_user_meta( $this->id, '_wpuf_user_active', true );
 
 
 
 
 
 
82
  }
83
 
84
  /**
@@ -136,4 +142,43 @@ class WPUF_User {
136
  delete_user_meta( $this->id, '_wpuf_activation_key' );
137
  }
138
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
78
  * @return bool
79
  */
80
  public function is_verified() {
81
+ if ( !metadata_exists( 'user', $this->id, '_wpuf_user_active' ) ) {
82
+ return true;
83
+ }
84
+ if ( intval( get_user_meta( $this->id, '_wpuf_user_active', true ) ) == 1 ) {
85
+ return true;
86
+ }
87
+ return false;
88
  }
89
 
90
  /**
142
  delete_user_meta( $this->id, '_wpuf_activation_key' );
143
  }
144
 
145
+ /**
146
+ *
147
+ * @since 2.8.9
148
+ *
149
+ * @param bool $array
150
+ *
151
+ * @return mixed|string
152
+ */
153
+ public function get_billing_address( $array = false ) {
154
+
155
+ $address = get_user_meta( $this->id, 'wpuf_address_fields', true );
156
+ if ( $array ) {
157
+ return $address;
158
+ }
159
+
160
+ if ( !empty( $address ) ) {
161
+ return implode( " ,", $address );
162
+ }
163
+
164
+ return "";
165
+ }
166
+
167
+ /**
168
+ *
169
+ * @since 2.8.9
170
+ *
171
+ * @param bool $array
172
+ *
173
+ * @return mixed|string
174
+ */
175
+ public function get_transaction_data( $array = false ) {
176
+ global $wpdb;
177
+
178
+ $sql = "SELECT * FROM {$wpdb->prefix}wpuf_transaction WHERE user_id = $this->id";
179
+ $txn_data = $wpdb->get_results( $sql, ARRAY_A );
180
+
181
+ return apply_filters( 'wpuf_privacy_transaction_export_data', $txn_data );
182
+ }
183
+
184
  }
includes/class-whats-new.php CHANGED
@@ -64,7 +64,7 @@ class WPUF_Whats_New {
64
  * @return void
65
  */
66
  public function register_menu() {
67
- add_submenu_page( null, __( 'Whats New', 'wpuf' ), __( 'Whats New', 'wpuf' ), 'manage_options', 'whats-new-wpuf', array( $this, 'menu_page' ) );
68
  }
69
 
70
  /**
@@ -97,13 +97,13 @@ class WPUF_Whats_New {
97
  </div>
98
 
99
  <div class="wpuf-whats-new-text">
100
- <p><strong><?php printf( __( 'WP User Frontend - Version %s', 'wpuf' ), WPUF_VERSION ); ?></strong></p>
101
- <p><?php printf( __( 'Welcome to the new version of WP User Frontend. See what\'s been changed in the <strong>%s</strong> version.', 'wpuf' ), WPUF_VERSION ); ?></strong></p>
102
  </div>
103
 
104
  <div class="wpuf-whats-new-actions">
105
- <a href="<?php echo admin_url( 'index.php?page=whats-new-wpuf' ); ?>" class="button button-primary"><?php _e( 'What\'s New?', 'wpuf' ); ?></a>
106
- <button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'wpuf' ); ?></span></button>
107
  </div>
108
  </div>
109
 
64
  * @return void
65
  */
66
  public function register_menu() {
67
+ add_submenu_page( null, __( 'Whats New', 'wp-user-frontend' ), __( 'Whats New', 'wp-user-frontend' ), 'manage_options', 'whats-new-wpuf', array( $this, 'menu_page' ) );
68
  }
69
 
70
  /**
97
  </div>
98
 
99
  <div class="wpuf-whats-new-text">
100
+ <p><strong><?php printf( __( 'WP User Frontend - Version %s', 'wp-user-frontend' ), WPUF_VERSION ); ?></strong></p>
101
+ <p><?php printf( __( 'Welcome to the new version of WP User Frontend. See what\'s been changed in the <strong>%s</strong> version.', 'wp-user-frontend' ), WPUF_VERSION ); ?></strong></p>
102
  </div>
103
 
104
  <div class="wpuf-whats-new-actions">
105
+ <a href="<?php echo admin_url( 'index.php?page=whats-new-wpuf' ); ?>" class="button button-primary"><?php _e( 'What\'s New?', 'wp-user-frontend' ); ?></a>
106
+ <button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'wp-user-frontend' ); ?></span></button>
107
  </div>
108
  </div>
109
 
includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php CHANGED
@@ -43,7 +43,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
43
  public static function get_field_wpuf_cond() {
44
  return array(
45
  'name' => 'wpuf_cond',
46
- 'title' => __( 'Conditional Logic', 'wpuf' ),
47
  'type' => 'option-pro-feature-alert',
48
  'section' => 'advanced',
49
  'priority' => 30,
@@ -62,7 +62,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
62
  public static function repeat_field() {
63
  return array(
64
  'template' => 'repeat_field',
65
- 'title' => __( 'Repeat Field', 'wpuf' ),
66
  'icon' => 'clone',
67
  'pro_feature' => true,
68
  );
@@ -78,7 +78,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
78
  public static function date_field() {
79
  return array(
80
  'template' => 'date_field',
81
- 'title' => __( 'Date / Time', 'wpuf' ),
82
  'icon' => 'calendar-o',
83
  'pro_feature' => true
84
  );
@@ -94,7 +94,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
94
  public static function file_upload() {
95
  return array(
96
  'template' => 'file_upload',
97
- 'title' => __( 'File Upload', 'wpuf' ),
98
  'icon' => 'upload',
99
  'pro_feature' => true
100
  );
@@ -110,7 +110,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
110
  public static function country_list_field() {
111
  return array(
112
  'template' => 'country_list_field',
113
- 'title' => __( 'Country List', 'wpuf' ),
114
  'icon' => 'globe',
115
  'pro_feature' => true
116
  );
@@ -126,7 +126,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
126
  public static function numeric_text_field() {
127
  return array(
128
  'template' => 'numeric_text_field',
129
- 'title' => __( 'Numeric Field', 'wpuf' ),
130
  'icon' => 'hashtag',
131
  'pro_feature' => true
132
  );
@@ -142,7 +142,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
142
  public static function address_field() {
143
  return array(
144
  'template' => 'address_field',
145
- 'title' => __( 'Address Field', 'wpuf' ),
146
  'icon' => 'address-card-o',
147
  'pro_feature' => true,
148
  );
@@ -158,7 +158,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
158
  public static function step_start() {
159
  return array(
160
  'template' => 'step_start',
161
- 'title' => __( 'Step Start', 'wpuf' ),
162
  'icon' => 'step-forward',
163
  'pro_feature' => true,
164
  'is_full_width' => true,
@@ -176,7 +176,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
176
  public static function google_map() {
177
  return array(
178
  'template' => 'google_map',
179
- 'title' => __( 'Google Map', 'wpuf' ),
180
  'icon' => 'map-marker',
181
  'pro_feature' => true,
182
  );
@@ -192,7 +192,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
192
  public static function shortcode() {
193
  return array(
194
  'template' => 'shortcode',
195
- 'title' => __( 'Shortcode', 'wpuf' ),
196
  'pro_feature' => true,
197
  );
198
  }
@@ -207,7 +207,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
207
  public static function really_simple_captcha() {
208
  return array(
209
  'template' => 'really_simple_captcha',
210
- 'title' => __( 'Really Simple Captcha', 'wpuf' ),
211
  'pro_feature' => true,
212
  );
213
  }
@@ -222,7 +222,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
222
  public static function action_hook() {
223
  return array(
224
  'template' => 'action_hook',
225
- 'title' => __( 'Action Hook', 'wpuf' ),
226
  'pro_feature' => true,
227
  );
228
  }
@@ -237,7 +237,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
237
  public static function toc() {
238
  return array(
239
  'template' => 'toc',
240
- 'title' => __( 'Term & Conditions', 'wpuf' ),
241
  'pro_feature' => true,
242
  );
243
  }
@@ -252,7 +252,7 @@ class WPUF_Form_Builder_Field_Settings_Free extends WPUF_Form_Builder_Field_Sett
252
  public static function ratings() {
253
  return array(
254
  'template' => 'ratings',
255
- 'title' => __( 'Ratings', 'wpuf' ),
256
  'pro_feature' => true,
257
  );
258
  }
43
  public static function get_field_wpuf_cond() {
44
  return array(
45
  'name' => 'wpuf_cond',
46
+ 'title' => __( 'Conditional Logic', 'wp-user-frontend' ),
47
  'type' => 'option-pro-feature-alert',
48
  'section' => 'advanced',
49
  'priority' => 30,
62
  public static function repeat_field() {
63
  return array(
64
  'template' => 'repeat_field',
65
+ 'title' => __( 'Repeat Field', 'wp-user-frontend' ),
66
  'icon' => 'clone',
67
  'pro_feature' => true,
68
  );
78
  public static function date_field() {
79
  return array(
80
  'template' => 'date_field',
81
+ 'title' => __( 'Date / Time', 'wp-user-frontend' ),
82
  'icon' => 'calendar-o',
83
  'pro_feature' => true
84
  );
94
  public static function file_upload() {
95
  return array(
96
  'template' => 'file_upload',
97
+ 'title' => __( 'File Upload', 'wp-user-frontend' ),
98
  'icon' => 'upload',
99
  'pro_feature' => true
100
  );
110
  public static function country_list_field() {
111
  return array(
112
  'template' => 'country_list_field',
113
+ 'title' => __( 'Country List', 'wp-user-frontend' ),
114
  'icon' => 'globe',
115
  'pro_feature' => true
116
  );
126
  public static function numeric_text_field() {
127
  return array(
128
  'template' => 'numeric_text_field',
129
+ 'title' => __( 'Numeric Field', 'wp-user-frontend' ),
130
  'icon' => 'hashtag',
131
  'pro_feature' => true
132
  );
142
  public static function address_field() {
143
  return array(
144
  'template' => 'address_field',
145
+ 'title' => __( 'Address Field', 'wp-user-frontend' ),
146
  'icon' => 'address-card-o',
147
  'pro_feature' => true,
148
  );
158
  public static function step_start() {
159
  return array(
160
  'template' => 'step_start',
161
+ 'title' => __( 'Step Start', 'wp-user-frontend' ),
162
  'icon' => 'step-forward',
163
  'pro_feature' => true,
164
  'is_full_width' => true,
176
  public static function google_map() {
177
  return array(
178
  'template' => 'google_map',
179
+ 'title' => __( 'Google Map', 'wp-user-frontend' ),
180
  'icon' => 'map-marker',
181
  'pro_feature' => true,
182
  );
192
  public static function shortcode() {
193
  return array(
194
  'template' => 'shortcode',
195
+ 'title' => __( 'Shortcode', 'wp-user-frontend' ),
196
  'pro_feature' => true,
197
  );
198
  }
207
  public static function really_simple_captcha() {
208
  return array(
209
  'template' => 'really_simple_captcha',
210
+ 'title' => __( 'Really Simple Captcha', 'wp-user-frontend' ),
211
  'pro_feature' => true,
212
  );
213
  }
222
  public static function action_hook() {
223
  return array(
224
  'template' => 'action_hook',
225
+ 'title' => __( 'Action Hook', 'wp-user-frontend' ),
226
  'pro_feature' => true,
227
  );
228
  }
237
  public static function toc() {
238
  return array(
239
  'template' => 'toc',
240
+ 'title' => __( 'Term & Conditions', 'wp-user-frontend' ),
241
  'pro_feature' => true,
242
  );
243
  }
252
  public static function ratings() {
253
  return array(
254
  'template' => 'ratings',
255
+ 'title' => __( 'Ratings', 'wp-user-frontend' ),
256
  'pro_feature' => true,
257
  );
258
  }
includes/free/admin/shortcode-builder.php CHANGED
@@ -2,15 +2,15 @@
2
 
3
  <div class="wpuf-popup-container">
4
 
5
- <h3><?php _e( 'Select a form to insert', 'wpuf' ); ?></h3>
6
 
7
  <?php $form_types = apply_filters( 'wpuf_shortcode_dialog_form_type', array(
8
- 'post' => __( 'Post Form', 'wpuf' ),
9
- 'registration' => __( 'Registration Form', 'wpuf' ),
10
  ) ); ?>
11
 
12
  <div class="wpuf-div">
13
- <label for="wpuf-form-type" class="label"><?php _e( 'Form Type', 'wpuf' ); ?></label>
14
  <select id="wpuf-form-type">
15
 
16
  <?php foreach ( $form_types as $key => $form_type ) { ?>
@@ -65,8 +65,8 @@
65
  do_action( 'wpuf_shortcode_dialog_content', $form_types ); ?>
66
 
67
  <div class="submit-button wpuf-div">
68
- <button id="wpuf-form-insert" class="button-primary"><?php _e( 'Insert Form', 'wpuf' ); ?></button>
69
- <button id="wpuf-form-close" class="button-secondary" style="margin-left: 5px;" onClick="tb_remove();"><?php _e( 'Close', 'wpuf' ); ?></a>
70
  </div>
71
 
72
  </div>
2
 
3
  <div class="wpuf-popup-container">
4
 
5
+ <h3><?php _e( 'Select a form to insert', 'wp-user-frontend' ); ?></h3>
6
 
7
  <?php $form_types = apply_filters( 'wpuf_shortcode_dialog_form_type', array(
8
+ 'post' => __( 'Post Form', 'wp-user-frontend' ),
9
+ 'registration' => __( 'Registration Form', 'wp-user-frontend' ),
10
  ) ); ?>
11
 
12
  <div class="wpuf-div">
13
+ <label for="wpuf-form-type" class="label"><?php _e( 'Form Type', 'wp-user-frontend' ); ?></label>
14
  <select id="wpuf-form-type">
15
 
16
  <?php foreach ( $form_types as $key => $form_type ) { ?>
65
  do_action( 'wpuf_shortcode_dialog_content', $form_types ); ?>
66
 
67
  <div class="submit-button wpuf-div">
68
+ <button id="wpuf-form-insert" class="button-primary"><?php _e( 'Insert Form', 'wp-user-frontend' ); ?></button>
69
+ <button id="wpuf-form-close" class="button-secondary" style="margin-left: 5px;" onClick="tb_remove();"><?php _e( 'Close', 'wp-user-frontend' ); ?></a>
70
  </div>
71
 
72
  </div>
includes/free/admin/shortcode-button.php CHANGED
@@ -47,8 +47,8 @@ class WPUF_Shortcodes_Button {
47
  */
48
  function add_media_button( $editor_id ) {
49
  ?>
50
- <a href="#TB_inline?width=480&amp;inlineId=wpuf-media-dialog" class="button thickbox insert-form" data-editor="<?php echo esc_attr( $editor_id ); ?>" title="<?php _e( 'Add a Form', 'wpuf' ); ?>">
51
- <?php echo '<span class="wp-media-buttons-icon dashicons dashicons-welcome-widgets-menus"></span>' . __( ' Add Form', 'wpuf' ); ?>
52
  </a>
53
  <?php
54
 
@@ -79,27 +79,27 @@ class WPUF_Shortcodes_Button {
79
 
80
  $shortcodes = apply_filters( 'wpuf_page_shortcodes', array(
81
  'wpuf-dashboard'=> array(
82
- 'title' => __( 'Dashboard', 'wpuf' ),
83
  'content' => '[wpuf_dashboard]'
84
  ),
85
  'wpuf-account' => array(
86
- 'title' => __( 'Account', 'wpuf' ),
87
  'content' => '[wpuf_account]'
88
  ),
89
  'wpuf-edit' => array(
90
- 'title' => __( 'Edit', 'wpuf' ),
91
  'content' => '[wpuf_edit]'
92
  ),
93
  'wpuf-login' => array(
94
- 'title' => __( 'Login', 'wpuf' ),
95
  'content' => '[wpuf-login]'
96
  ),
97
  'wpuf-registration' => array(
98
- 'title' => __( 'Registration', 'wpuf' ),
99
  'content' => '[wpuf-registration]'
100
  ),
101
  'wpuf-sub-pack' => array(
102
- 'title' => __( 'Subscription', 'wpuf' ),
103
  'content' => '[wpuf_sub_pack]'
104
  )
105
  ) );
47
  */
48
  function add_media_button( $editor_id ) {
49
  ?>
50
+ <a href="#TB_inline?width=480&amp;inlineId=wpuf-media-dialog" class="button thickbox insert-form" data-editor="<?php echo esc_attr( $editor_id ); ?>" title="<?php _e( 'Add a Form', 'wp-user-frontend' ); ?>">
51
+ <?php echo '<span class="wp-media-buttons-icon dashicons dashicons-welcome-widgets-menus"></span>' . __( ' Add Form', 'wp-user-frontend' ); ?>
52
  </a>
53
  <?php
54
 
79
 
80
  $shortcodes = apply_filters( 'wpuf_page_shortcodes', array(
81
  'wpuf-dashboard'=> array(
82
+ 'title' => __( 'Dashboard', 'wp-user-frontend' ),
83
  'content' => '[wpuf_dashboard]'
84
  ),
85
  'wpuf-account' => array(
86
+ 'title' => __( 'Account', 'wp-user-frontend' ),
87
  'content' => '[wpuf_account]'
88
  ),
89
  'wpuf-edit' => array(
90
+ 'title' => __( 'Edit', 'wp-user-frontend' ),
91
  'content' => '[wpuf_edit]'
92
  ),
93
  'wpuf-login' => array(
94
+ 'title' => __( 'Login', 'wp-user-frontend' ),
95
  'content' => '[wpuf-login]'
96
  ),
97
  'wpuf-registration' => array(
98
+ 'title' => __( 'Registration', 'wp-user-frontend' ),
99
  'content' => '[wpuf-registration]'
100
  ),
101
  'wpuf-sub-pack' => array(
102
+ 'title' => __( 'Subscription', 'wp-user-frontend' ),
103
  'content' => '[wpuf_sub_pack]'
104
  )
105
  ) );
includes/free/class-login.php CHANGED
@@ -204,15 +204,15 @@ class WPUF_Simple_Login {
204
  $links = array();
205
 
206
  if ( $args['login'] ) {
207
- $links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'login' ), __( 'Log In', 'wpuf' ) );
208
  }
209
 
210
  if ( $args['register'] ) {
211
- $links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'register' ), __( 'Register', 'wpuf' ) );
212
  }
213
 
214
  if ( $args['lostpassword'] ) {
215
- $links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'lostpassword' ), __( 'Lost Password', 'wpuf' ) );
216
  }
217
 
218
  return implode( ' | ', $links );
@@ -250,7 +250,7 @@ class WPUF_Simple_Login {
250
  switch ($action) {
251
  case 'lostpassword':
252
 
253
- $this->messages[] = __( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wpuf' );
254
 
255
  wpuf_load_template( 'lost-pass-form.php', $args );
256
  break;
@@ -260,11 +260,11 @@ class WPUF_Simple_Login {
260
 
261
  if ( isset( $_GET['reset'] ) && $_GET['reset'] == 'true' ) {
262
 
263
- printf( '<div class="wpuf-message">' . __( 'Your password has been reset. %s', 'wpuf' ) . '</div>', sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'login' ), __( 'Log In', 'wpuf' ) ) );
264
  return;
265
  } else {
266
 
267
- $this->messages[] = __( 'Enter your new password below..', 'wpuf' );
268
 
269
  wpuf_load_template( 'reset-pass-form.php', $args );
270
  }
@@ -274,11 +274,11 @@ class WPUF_Simple_Login {
274
  default:
275
 
276
  if ( isset( $_GET['checkemail'] ) && $_GET['checkemail'] == 'confirm' ) {
277
- $this->messages[] = __( 'Check your e-mail for the confirmation link.', 'wpuf' );
278
  }
279
 
280
  if ( isset( $_GET['loggedout'] ) && $_GET['loggedout'] == 'true' ) {
281
- $this->messages[] = __( 'You are now logged out.', 'wpuf' );
282
  }
283
 
284
  wpuf_load_template( 'login-form.php', $args );
@@ -307,17 +307,17 @@ class WPUF_Simple_Login {
307
  $validation_error = apply_filters( 'wpuf_process_login_errors', $validation_error, $_POST['log'], $_POST['pwd'] );
308
 
309
  if ( $validation_error->get_error_code() ) {
310
- $this->login_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . $validation_error->get_error_message();
311
  return;
312
  }
313
 
314
  if ( empty( $_POST['log'] ) ) {
315
- $this->login_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'Username is required.', 'wpuf' );
316
  return;
317
  }
318
 
319
  if ( empty( $_POST['pwd'] ) ) {
320
- $this->login_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'Password is required.', 'wpuf' );
321
  return;
322
  }
323
 
@@ -327,7 +327,7 @@ class WPUF_Simple_Login {
327
  if ( isset( $user->user_login ) ) {
328
  $creds['user_login'] = $user->user_login;
329
  } else {
330
- $this->login_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'A user could not be found with this email address.', 'wpuf' );
331
  return;
332
  }
333
  } else {
@@ -448,12 +448,12 @@ class WPUF_Simple_Login {
448
  wp_verify_nonce( $_POST['_wpnonce'], 'wpuf_reset_pass' );
449
 
450
  if ( empty( $_POST['pass1'] ) || empty( $_POST['pass2'] ) ) {
451
- $this->login_errors[] = __( 'Please enter your password.', 'wpuf' );
452
  return;
453
  }
454
 
455
  if ( $_POST[ 'pass1' ] !== $_POST[ 'pass2' ] ) {
456
- $this->login_errors[] = __( 'Passwords do not match.', 'wpuf' );
457
  return;
458
  }
459
 
@@ -496,7 +496,7 @@ class WPUF_Simple_Login {
496
 
497
  if ( empty( $_POST['user_login'] ) ) {
498
 
499
- $this->login_errors[] = __( 'Enter a username or e-mail address.', 'wpuf' );
500
  return;
501
 
502
  } elseif ( strpos( $_POST['user_login'], '@' ) && apply_filters( 'wpuf_get_username_from_email', true ) ) {
@@ -504,7 +504,7 @@ class WPUF_Simple_Login {
504
  $user_data = get_user_by( 'email', trim( $_POST['user_login'] ) );
505
 
506
  if ( empty( $user_data ) ) {
507
- $this->login_errors[] = __( 'There is no user registered with that email address.', 'wpuf' );
508
  return;
509
  }
510
 
@@ -522,7 +522,7 @@ class WPUF_Simple_Login {
522
  }
523
 
524
  if ( ! $user_data ) {
525
- $this->login_errors[] = __( 'Invalid username or e-mail.', 'wpuf' );
526
  return false;
527
  }
528
 
@@ -536,7 +536,7 @@ class WPUF_Simple_Login {
536
 
537
  if ( ! $allow ) {
538
 
539
- $this->login_errors[] = __( 'Password reset is not allowed for this user', 'wpuf' );
540
  return false;
541
 
542
  } elseif ( is_wp_error( $allow ) ) {
@@ -590,19 +590,19 @@ class WPUF_Simple_Login {
590
  }
591
 
592
  if ( empty( $key ) || ! is_string( $key ) ) {
593
- $this->login_errors[] = __( 'Invalid key', 'wpuf' );
594
  return false;
595
  }
596
 
597
  if ( empty( $login ) || ! is_string( $login ) ) {
598
- $this->login_errors[] = __( 'Invalid Login', 'wpuf' );
599
  return false;
600
  }
601
 
602
  $user = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->users WHERE user_activation_key = %s AND user_login = %s", $key, $login ) );
603
 
604
  if ( empty( $user ) ) {
605
- $this->login_errors[] = __( 'Invalid key', 'wpuf' );
606
  return false;
607
  }
608
 
@@ -626,7 +626,7 @@ class WPUF_Simple_Login {
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
  }
@@ -674,7 +674,15 @@ class WPUF_Simple_Login {
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' ) );
@@ -690,7 +698,7 @@ class WPUF_Simple_Login {
690
  * @return \WP_Error
691
  */
692
  function user_activation_message() {
693
- return new WP_Error( 'user-activated', __( 'Your account has been activated', 'wpuf' ), 'message' );
694
  }
695
 
696
  function wp_login_page_redirect() {
@@ -734,11 +742,11 @@ class WPUF_Simple_Login {
734
  function email_reset_pass( $user_login, $user_email, $key ) {
735
  $reset_url = add_query_arg( array( 'action' => 'rp', 'key' => $key, 'login' => urlencode( $user_login ) ), $this->get_login_url() );
736
 
737
- $message = __('Someone requested that the password be reset for the following account:', 'wpuf') . "\r\n\r\n";
738
  $message .= network_home_url( '/' ) . "\r\n\r\n";
739
- $message .= sprintf(__('Username: %s', 'wpuf' ), $user_login) . "\r\n\r\n";
740
- $message .= __('If this was a mistake, just ignore this email and nothing will happen.', 'wpuf') . "\r\n\r\n";
741
- $message .= __('To reset your password, visit the following address:', 'wpuf') . "\r\n\r\n";
742
  $message .= ' ' . $reset_url . " \r\n";
743
 
744
  $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
@@ -747,13 +755,13 @@ class WPUF_Simple_Login {
747
  $blogname = $GLOBALS['current_site']->site_name;
748
  }
749
 
750
- $title = sprintf( __('[%s] Password Reset', 'wpuf' ), $blogname );
751
  $title = apply_filters( 'retrieve_password_title', $title );
752
 
753
  $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login );
754
 
755
  if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) {
756
- wp_die( __('The e-mail could not be sent.', 'wpuf') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.', 'wpuf') );
757
  }
758
  }
759
 
@@ -787,7 +795,7 @@ class WPUF_Simple_Login {
787
  if ( $this->login_errors ) {
788
  foreach ($this->login_errors as $error) {
789
  echo '<div class="wpuf-error">';
790
- _e( $error,'wpuf' );
791
  echo '</div>';
792
  }
793
  }
204
  $links = array();
205
 
206
  if ( $args['login'] ) {
207
+ $links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'login' ), __( 'Log In', 'wp-user-frontend' ) );
208
  }
209
 
210
  if ( $args['register'] ) {
211
+ $links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'register' ), __( 'Register', 'wp-user-frontend' ) );
212
  }
213
 
214
  if ( $args['lostpassword'] ) {
215
+ $links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'lostpassword' ), __( 'Lost Password', 'wp-user-frontend' ) );
216
  }
217
 
218
  return implode( ' | ', $links );
250
  switch ($action) {
251
  case 'lostpassword':
252
 
253
+ $this->messages[] = __( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wp-user-frontend' );
254
 
255
  wpuf_load_template( 'lost-pass-form.php', $args );
256
  break;
260
 
261
  if ( isset( $_GET['reset'] ) && $_GET['reset'] == 'true' ) {
262
 
263
+ printf( '<div class="wpuf-message">' . __( 'Your password has been reset. %s', 'wp-user-frontend' ) . '</div>', sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'login' ), __( 'Log In', 'wp-user-frontend' ) ) );
264
  return;
265
  } else {
266
 
267
+ $this->messages[] = __( 'Enter your new password below..', 'wp-user-frontend' );
268
 
269
  wpuf_load_template( 'reset-pass-form.php', $args );
270
  }
274
  default:
275
 
276
  if ( isset( $_GET['checkemail'] ) && $_GET['checkemail'] == 'confirm' ) {
277
+ $this->messages[] = __( 'Check your e-mail for the confirmation link.', 'wp-user-frontend' );
278
  }
279
 
280
  if ( isset( $_GET['loggedout'] ) && $_GET['loggedout'] == 'true' ) {
281
+ $this->messages[] = __( 'You are now logged out.', 'wp-user-frontend' );
282
  }
283
 
284
  wpuf_load_template( 'login-form.php', $args );
307
  $validation_error = apply_filters( 'wpuf_process_login_errors', $validation_error, $_POST['log'], $_POST['pwd'] );
308
 
309
  if ( $validation_error->get_error_code() ) {
310
+ $this->login_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . $validation_error->get_error_message();
311
  return;
312
  }
313
 
314
  if ( empty( $_POST['log'] ) ) {
315
+ $this->login_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'Username is required.', 'wp-user-frontend' );
316
  return;
317
  }
318
 
319
  if ( empty( $_POST['pwd'] ) ) {
320
+ $this->login_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'Password is required.', 'wp-user-frontend' );
321
  return;
322
  }
323
 
327
  if ( isset( $user->user_login ) ) {
328
  $creds['user_login'] = $user->user_login;
329
  } else {
330
+ $this->login_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'A user could not be found with this email address.', 'wp-user-frontend' );
331
  return;
332
  }
333
  } else {
448
  wp_verify_nonce( $_POST['_wpnonce'], 'wpuf_reset_pass' );
449
 
450
  if ( empty( $_POST['pass1'] ) || empty( $_POST['pass2'] ) ) {
451
+ $this->login_errors[] = __( 'Please enter your password.', 'wp-user-frontend' );
452
  return;
453
  }
454
 
455
  if ( $_POST[ 'pass1' ] !== $_POST[ 'pass2' ] ) {
456
+ $this->login_errors[] = __( 'Passwords do not match.', 'wp-user-frontend' );
457
  return;
458
  }
459
 
496
 
497
  if ( empty( $_POST['user_login'] ) ) {
498
 
499
+ $this->login_errors[] = __( 'Enter a username or e-mail address.', 'wp-user-frontend' );
500
  return;
501
 
502
  } elseif ( strpos( $_POST['user_login'], '@' ) && apply_filters( 'wpuf_get_username_from_email', true ) ) {
504
  $user_data = get_user_by( 'email', trim( $_POST['user_login'] ) );
505
 
506
  if ( empty( $user_data ) ) {
507
+ $this->login_errors[] = __( 'There is no user registered with that email address.', 'wp-user-frontend' );
508
  return;
509
  }
510
 
522
  }
523
 
524
  if ( ! $user_data ) {
525
+ $this->login_errors[] = __( 'Invalid username or e-mail.', 'wp-user-frontend' );
526
  return false;
527
  }
528
 
536
 
537
  if ( ! $allow ) {
538
 
539
+ $this->login_errors[] = __( 'Password reset is not allowed for this user', 'wp-user-frontend' );
540
  return false;
541
 
542
  } elseif ( is_wp_error( $allow ) ) {
590
  }
591
 
592
  if ( empty( $key ) || ! is_string( $key ) ) {
593
+ $this->login_errors[] = __( 'Invalid key', 'wp-user-frontend' );
594
  return false;
595
  }
596
 
597
  if ( empty( $login ) || ! is_string( $login ) ) {
598
+ $this->login_errors[] = __( 'Invalid Login', 'wp-user-frontend' );
599
  return false;
600
  }
601
 
602
  $user = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->users WHERE user_activation_key = %s AND user_login = %s", $key, $login ) );
603
 
604
  if ( empty( $user ) ) {
605
+ $this->login_errors[] = __( 'Invalid key', 'wp-user-frontend' );
606
  return false;
607
  }
608
 
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', 'wp-user-frontend' ), $resend_link ) );
630
  return $error;
631
  }
632
  }
674
  $user->mark_verified();
675
  $user->remove_activation_key();
676
 
677
+ $register_link_override = wpuf_get_option( 'register_link_override', 'wpuf_profile', false );
678
+
679
+ if ( $register_link_override == 'on' ) {
680
+ wp_clear_auth_cookie();
681
+ wp_set_current_user( $user_id );
682
+ wp_set_auth_cookie( $user_id );
683
+ }
684
+
685
+ wpuf()->login->add_message( __( 'Your account has been activated' , 'wp-user-frontend') );
686
 
687
  // show activation message
688
  add_filter( 'wp_login_errors', array( $this, 'user_activation_message' ) );
698
  * @return \WP_Error
699
  */
700
  function user_activation_message() {
701
+ return new WP_Error( 'user-activated', __( 'Your account has been activated', 'wp-user-frontend' ), 'message' );
702
  }
703
 
704
  function wp_login_page_redirect() {
742
  function email_reset_pass( $user_login, $user_email, $key ) {
743
  $reset_url = add_query_arg( array( 'action' => 'rp', 'key' => $key, 'login' => urlencode( $user_login ) ), $this->get_login_url() );
744
 
745
+ $message = __('Someone requested that the password be reset for the following account:', 'wp-user-frontend') . "\r\n\r\n";
746
  $message .= network_home_url( '/' ) . "\r\n\r\n";
747
+ $message .= sprintf(__('Username: %s', 'wp-user-frontend' ), $user_login) . "\r\n\r\n";
748
+ $message .= __('If this was a mistake, just ignore this email and nothing will happen.', 'wp-user-frontend') . "\r\n\r\n";
749
+ $message .= __('To reset your password, visit the following address:', 'wp-user-frontend') . "\r\n\r\n";
750
  $message .= ' ' . $reset_url . " \r\n";
751
 
752
  $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
755
  $blogname = $GLOBALS['current_site']->site_name;
756
  }
757
 
758
+ $title = sprintf( __('[%s] Password Reset', 'wp-user-frontend' ), $blogname );
759
  $title = apply_filters( 'retrieve_password_title', $title );
760
 
761
  $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login );
762
 
763
  if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) {
764
+ wp_die( __('The e-mail could not be sent.', 'wp-user-frontend') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.', 'wp-user-frontend') );
765
  }
766
  }
767
 
795
  if ( $this->login_errors ) {
796
  foreach ($this->login_errors as $error) {
797
  echo '<div class="wpuf-error">';
798
+ _e( $error,'wp-user-frontend' );
799
  echo '</div>';
800
  }
801
  }
includes/free/class-registration.php CHANGED
@@ -121,7 +121,7 @@ class WPUF_Registration {
121
  $links = array();
122
 
123
  if ( $args['register'] ) {
124
- $links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'register' ), __( 'Register', 'wpuf' ) );
125
  }
126
 
127
  return implode( ' | ', $links );
@@ -189,47 +189,47 @@ class WPUF_Registration {
189
  $validation_error = apply_filters( 'wpuf_process_registration_errors', $validation_error, $_POST['reg_fname'], $_POST['reg_lname'], $_POST['reg_email'], $_POST['log'], $_POST['pwd1'], $_POST['pwd2'] );
190
 
191
  if ( $validation_error->get_error_code() ) {
192
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . $validation_error->get_error_message();
193
  return;
194
  }
195
 
196
  if ( empty( $_POST['reg_fname'] ) ) {
197
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'First name is required.', 'wpuf' );
198
  return;
199
  }
200
 
201
  if ( empty( $_POST['reg_lname'] ) ) {
202
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'Last name is required.', 'wpuf' );
203
  return;
204
  }
205
 
206
  if ( empty( $_POST['reg_email'] ) ) {
207
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'Email is required.', 'wpuf' );
208
  return;
209
  }
210
 
211
  if ( empty( $_POST['log'] ) ) {
212
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'Username is required.', 'wpuf' );
213
  return;
214
  }
215
 
216
  if ( empty( $_POST['pwd1'] ) ) {
217
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'Password is required.', 'wpuf' );
218
  return;
219
  }
220
 
221
  if ( empty( $_POST['pwd2'] ) ) {
222
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'Confirm Password is required.', 'wpuf' );
223
  return;
224
  }
225
 
226
  if ( $_POST['pwd1'] != $_POST['pwd2'] ) {
227
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'Passwords are not same.', 'wpuf' );
228
  return;
229
  }
230
 
231
  if ( get_user_by( 'login', $_POST['log'] ) === $_POST['log'] ) {
232
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'A user with same username already exists.', 'wpuf' );
233
  return;
234
  }
235
 
@@ -239,7 +239,7 @@ class WPUF_Registration {
239
  if ( isset( $user->user_login ) ) {
240
  $userdata['user_login'] = $user->user_login;
241
  } else {
242
- $this->registration_errors[] = '<strong>' . __( 'Error', 'wpuf' ) . ':</strong> ' . __( 'A user could not be found with this email address.', 'wpuf' );
243
  return;
244
  }
245
  } else {
@@ -312,7 +312,7 @@ class WPUF_Registration {
312
  if ( $this->registration_errors ) {
313
  foreach ($this->registration_errors as $error) {
314
  echo '<div class="wpuf-error">';
315
- _e( $error,'wpuf' );
316
  echo '</div>';
317
  }
318
  }
121
  $links = array();
122
 
123
  if ( $args['register'] ) {
124
+ $links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'register' ), __( 'Register', 'wp-user-frontend' ) );
125
  }
126
 
127
  return implode( ' | ', $links );
189
  $validation_error = apply_filters( 'wpuf_process_registration_errors', $validation_error, $_POST['reg_fname'], $_POST['reg_lname'], $_POST['reg_email'], $_POST['log'], $_POST['pwd1'], $_POST['pwd2'] );
190
 
191
  if ( $validation_error->get_error_code() ) {
192
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . $validation_error->get_error_message();
193
  return;
194
  }
195
 
196
  if ( empty( $_POST['reg_fname'] ) ) {
197
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'First name is required.', 'wp-user-frontend' );
198
  return;
199
  }
200
 
201
  if ( empty( $_POST['reg_lname'] ) ) {
202
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'Last name is required.', 'wp-user-frontend' );
203
  return;
204
  }
205
 
206
  if ( empty( $_POST['reg_email'] ) ) {
207
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'Email is required.', 'wp-user-frontend' );
208
  return;
209
  }
210
 
211
  if ( empty( $_POST['log'] ) ) {
212
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'Username is required.', 'wp-user-frontend' );
213
  return;
214
  }
215
 
216
  if ( empty( $_POST['pwd1'] ) ) {
217
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'Password is required.', 'wp-user-frontend' );
218
  return;
219
  }
220
 
221
  if ( empty( $_POST['pwd2'] ) ) {
222
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'Confirm Password is required.', 'wp-user-frontend' );
223
  return;
224
  }
225
 
226
  if ( $_POST['pwd1'] != $_POST['pwd2'] ) {
227
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'Passwords are not same.', 'wp-user-frontend' );
228
  return;
229
  }
230
 
231
  if ( get_user_by( 'login', $_POST['log'] ) === $_POST['log'] ) {
232
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'A user with same username already exists.', 'wp-user-frontend' );
233
  return;
234
  }
235
 
239
  if ( isset( $user->user_login ) ) {
240
  $userdata['user_login'] = $user->user_login;
241
  } else {
242
+ $this->registration_errors[] = '<strong>' . __( 'Error', 'wp-user-frontend' ) . ':</strong> ' . __( 'A user could not be found with this email address.', 'wp-user-frontend' );
243
  return;
244
  }
245
  } else {
312
  if ( $this->registration_errors ) {
313
  foreach ($this->registration_errors as $error) {
314
  echo '<div class="wpuf-error">';
315
+ _e( $error,'wp-user-frontend' );
316
  echo '</div>';
317
  }
318
  }
includes/free/edit-profile.php CHANGED
@@ -29,7 +29,7 @@ class WPUF_Edit_Profile {
29
  if ( is_user_logged_in() ) {
30
  $this->show_form();
31
  } else {
32
- printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( '', false ) );
33
  }
34
 
35
  $content = ob_get_contents();
@@ -68,7 +68,7 @@ class WPUF_Edit_Profile {
68
  $message = $errors->get_error_message();
69
  $style = 'error';
70
  } else {
71
- $message = __( '<strong>Success</strong>: Profile updated', 'wpuf' );
72
  $style = 'success';
73
  do_action( 'personal_options_update', $user_id );
74
  }
@@ -94,30 +94,30 @@ class WPUF_Edit_Profile {
94
  <?php do_action( 'profile_personal_options', $profileuser ); ?>
95
 
96
  <fieldset>
97
- <legend><?php _e( 'Name', 'wpuf' ) ?></legend>
98
 
99
  <table class="wpuf-table">
100
  <tr>
101
- <th><label for="user_login1"><?php _e( 'Username', 'wpuf' ); ?></label></th>
102
- <td><input type="text" name="user_login" id="user_login1" value="<?php echo esc_attr( $profileuser->user_login ); ?>" disabled="disabled" class="regular-text" /><br /><em><span class="description"><?php _e( 'Usernames cannot be changed.', 'wpuf' ); ?></span></em></td>
103
  </tr>
104
  <tr>
105
- <th><label for="first_name"><?php _e( 'First Name', 'wpuf' ) ?></label></th>
106
  <td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr( $profileuser->first_name ) ?>" class="regular-text" /></td>
107
  </tr>
108
 
109
  <tr>
110
- <th><label for="last_name"><?php _e( 'Last Name', 'wpuf' ) ?></label></th>
111
  <td><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr( $profileuser->last_name ) ?>" class="regular-text" /></td>
112
  </tr>
113
 
114
  <tr>
115
- <th><label for="nickname"><?php _e( 'Nickname', 'wpuf' ); ?> <span class="description"><?php _e( '(required)', 'wpuf' ); ?></span></label></th>
116
  <td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr( $profileuser->nickname ) ?>" class="regular-text" /></td>
117
  </tr>
118
 
119
  <tr>
120
- <th><label for="display_name"><?php _e( 'Display to Public as', 'wpuf' ) ?></label></th>
121
  <td>
122
  <select name="display_name" id="display_name">
123
  <?php
@@ -149,16 +149,16 @@ class WPUF_Edit_Profile {
149
  </fieldset>
150
 
151
  <fieldset>
152
- <legend><?php _e( 'Contact Info', 'wpuf' ) ?></legend>
153
 
154
  <table class="wpuf-table">
155
  <tr>
156
- <th><label for="email"><?php _e( 'E-mail', 'wpuf' ); ?> <span class="description"><?php _e( '(required)', 'wpuf' ); ?></span></label></th>
157
  <td><input type="text" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ) ?>" class="regular-text" /> </td>
158
  </tr>
159
 
160
  <tr>
161
- <th><label for="url"><?php _e( 'Website', 'wpuf' ) ?></label></th>
162
  <td><input type="text" name="url" id="url" value="<?php echo esc_attr( $profileuser->user_url ) ?>" class="regular-text code" /></td>
163
  </tr>
164
 
@@ -176,31 +176,31 @@ class WPUF_Edit_Profile {
176
  </fieldset>
177
 
178
  <fieldset>
179
- <legend><?php _e( 'About Yourself', 'wpuf' ); ?></legend>
180
 
181
  <table class="wpuf-table">
182
  <tr>
183
- <th><label for="description"><?php _e( 'Biographical Info', 'wpuf' ); ?></label></th>
184
  <td><textarea name="description" id="description" rows="5" cols="30"><?php echo esc_html( $profileuser->description ); ?></textarea><br />
185
- <span class="description"><?php _e( 'Share a little biographical information to fill out your profile. This may be shown publicly.', 'wpuf' ); ?></span></td>
186
  </tr>
187
  <tr id="password">
188
- <th><label for="pass1"><?php _e( 'New Password', 'wpuf' ); ?></label></th>
189
  <td>
190
  <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /><br /><br />
191
  </td>
192
  </tr>
193
  <tr>
194
- <th><label><?php _e( 'Confirm Password', 'wpuf' ); ?></label></th>
195
  <td>
196
- <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" />&nbsp;<em><span class="description"><?php _e( "Type your new password again.", 'wpuf' ); ?></span></em>
197
  </td>
198
  </tr>
199
  <tr>
200
 
201
- <th><label><?php _e( 'Password Strength', 'wpuf' ); ?></label></th>
202
  <td>
203
- <div id="pass-strength-result"><?php _e( 'Strength indicator', 'wpuf' ); ?></div>
204
  <script src="<?php echo site_url(); ?>/wp-includes/js/zxcvbn.min.js"></script>
205
  <script src="<?php echo admin_url(); ?>/js/password-strength-meter.js"></script>
206
  <script type="text/javascript">
@@ -224,7 +224,7 @@ class WPUF_Edit_Profile {
224
  <p class="submit">
225
  <input type="hidden" name="action" value="update" />
226
  <input type="hidden" name="user_id" id="user_id" value="<?php echo esc_attr( $user_id ); ?>" />
227
- <input type="submit" class="wpuf-submit" value="<?php _e( 'Update Profile', 'wpuf' ); ?>" name="submit" />
228
  </p>
229
  </form>
230
  </div>
@@ -246,21 +246,21 @@ class WPUF_Edit_Profile {
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>
29
  if ( is_user_logged_in() ) {
30
  $this->show_form();
31
  } else {
32
+ printf( __( "This page is restricted. Please %s to view this page.", 'wp-user-frontend' ), wp_loginout( '', false ) );
33
  }
34
 
35
  $content = ob_get_contents();
68
  $message = $errors->get_error_message();
69
  $style = 'error';
70
  } else {
71
+ $message = __( '<strong>Success</strong>: Profile updated', 'wp-user-frontend' );
72
  $style = 'success';
73
  do_action( 'personal_options_update', $user_id );
74
  }
94
  <?php do_action( 'profile_personal_options', $profileuser ); ?>
95
 
96
  <fieldset>
97
+ <legend><?php _e( 'Name', 'wp-user-frontend' ) ?></legend>
98
 
99
  <table class="wpuf-table">
100
  <tr>
101
+ <th><label for="user_login1"><?php _e( 'Username', 'wp-user-frontend' ); ?></label></th>
102
+ <td><input type="text" name="user_login" id="user_login1" value="<?php echo esc_attr( $profileuser->user_login ); ?>" disabled="disabled" class="regular-text" /><br /><em><span class="description"><?php _e( 'Usernames cannot be changed.', 'wp-user-frontend' ); ?></span></em></td>
103
  </tr>
104
  <tr>
105
+ <th><label for="first_name"><?php _e( 'First Name', 'wp-user-frontend' ) ?></label></th>
106
  <td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr( $profileuser->first_name ) ?>" class="regular-text" /></td>
107
  </tr>
108
 
109
  <tr>
110
+ <th><label for="last_name"><?php _e( 'Last Name', 'wp-user-frontend' ) ?></label></th>
111
  <td><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr( $profileuser->last_name ) ?>" class="regular-text" /></td>
112
  </tr>
113
 
114
  <tr>
115
+ <th><label for="nickname"><?php _e( 'Nickname', 'wp-user-frontend' ); ?> <span class="description"><?php _e( '(required)', 'wp-user-frontend' ); ?></span></label></th>
116
  <td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr( $profileuser->nickname ) ?>" class="regular-text" /></td>
117
  </tr>
118
 
119
  <tr>
120
+ <th><label for="display_name"><?php _e( 'Display to Public as', 'wp-user-frontend' ) ?></label></th>
121
  <td>
122
  <select name="display_name" id="display_name">
123
  <?php
149
  </fieldset>
150
 
151
  <fieldset>
152
+ <legend><?php _e( 'Contact Info', 'wp-user-frontend' ) ?></legend>
153
 
154
  <table class="wpuf-table">
155
  <tr>
156
+ <th><label for="email"><?php _e( 'E-mail', 'wp-user-frontend' ); ?> <span class="description"><?php _e( '(required)', 'wp-user-frontend' ); ?></span></label></th>
157
  <td><input type="text" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ) ?>" class="regular-text" /> </td>
158
  </tr>
159
 
160
  <tr>
161
+ <th><label for="url"><?php _e( 'Website', 'wp-user-frontend' ) ?></label></th>
162
  <td><input type="text" name="url" id="url" value="<?php echo esc_attr( $profileuser->user_url ) ?>" class="regular-text code" /></td>
163
  </tr>
164
 
176
  </fieldset>
177
 
178
  <fieldset>
179
+ <legend><?php _e( 'About Yourself', 'wp-user-frontend' ); ?></legend>
180
 
181
  <table class="wpuf-table">
182
  <tr>
183
+ <th><label for="description"><?php _e( 'Biographical Info', 'wp-user-frontend' ); ?></label></th>
184
  <td><textarea name="description" id="description" rows="5" cols="30"><?php echo esc_html( $profileuser->description ); ?></textarea><br />
185
+ <span class="description"><?php _e( 'Share a little biographical information to fill out your profile. This may be shown publicly.', 'wp-user-frontend' ); ?></span></td>
186
  </tr>
187
  <tr id="password">
188
+ <th><label for="pass1"><?php _e( 'New Password', 'wp-user-frontend' ); ?></label></th>
189
  <td>
190
  <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /><br /><br />
191
  </td>
192
  </tr>
193
  <tr>
194
+ <th><label><?php _e( 'Confirm Password', 'wp-user-frontend' ); ?></label></th>
195
  <td>
196
+ <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" />&nbsp;<em><span class="description"><?php _e( "Type your new password again.", 'wp-user-frontend' ); ?></span></em>
197
  </td>
198
  </tr>
199
  <tr>
200
 
201
+ <th><label><?php _e( 'Password Strength', 'wp-user-frontend' ); ?></label></th>
202
  <td>
203
+ <div id="pass-strength-result"><?php _e( 'Strength indicator', 'wp-user-frontend' ); ?></div>
204
  <script src="<?php echo site_url(); ?>/wp-includes/js/zxcvbn.min.js"></script>
205
  <script src="<?php echo admin_url(); ?>/js/password-strength-meter.js"></script>
206
  <script type="text/javascript">
224
  <p class="submit">
225
  <input type="hidden" name="action" value="update" />
226
  <input type="hidden" name="user_id" id="user_id" value="<?php echo esc_attr( $user_id ); ?>" />
227
+ <input type="submit" class="wpuf-submit" value="<?php _e( 'Update Profile', 'wp-user-frontend' ); ?>" name="submit" />
228
  </p>
229
  </form>
230
  </div>
246
  $select = ( $post_locked == true ) ? 'yes' : 'no';
247
  ?>
248
  <div class="wpuf-user-post-lock">
249
+ <h3><?php _e( 'WPUF Post Lock', 'wp-user-frontend' ); ?></h3>
250
  <table class="form-table">
251
  <tr>
252
+ <th><label for="post-lock"><?php _e( 'Lock Post:', 'wp-user-frontend' ); ?> </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.', 'wp-user-frontend' ); ?></span></em>
259
  </td>
260
  </tr>
261
 
262
  <tr>
263
+ <th><label for="post-lock"><?php _e( 'Lock Reason:', 'wp-user-frontend' ); ?> </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>
includes/free/edit-user.php CHANGED
@@ -20,7 +20,7 @@ function wpuf_edit_users() {
20
  if ( $user_id && $userdata ) {
21
  WPUF_Edit_Profile::show_form( $user_id );
22
  } else {
23
- printf( __( "User doesn't exists", 'wpuf' ) );
24
  }
25
  break;
26
 
@@ -31,10 +31,10 @@ function wpuf_edit_users() {
31
  default: wpuf_show_users();
32
  }
33
  } else { // user don't have any permission
34
- printf( __( "You don't have permission for this purpose", 'wpuf' ) );
35
  }
36
  } else { //user is not logged in
37
- printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( '', false ) );
38
  }
39
 
40
  return ob_get_clean();
@@ -73,7 +73,7 @@ function wpuf_show_users() {
73
  if ( current_user_can( 'delete_users' ) && $delete_flag == true ) {
74
 
75
  wp_delete_user( $to_be_deleted );
76
- echo '<div class="success">' . __( 'User Deleted', 'wpuf' ) . '</div>';
77
  } else {
78
  echo '<div class="error">Cheatin&#8217; uh?</div>';
79
  }
@@ -82,7 +82,7 @@ function wpuf_show_users() {
82
  //$sql = "SELECT ID, display_name FROM $wpdb->users ORDER BY user_registered ASC";
83
  //$users = $wpdb->get_results( $sql );
84
  $users = get_users(apply_filters('wpuf_show_users', array()));
85
- $delete_message = __( 'Are you sure to delete this user?', 'wpuf' );
86
  ?>
87
 
88
  <a class="wpuf-button" href="<?php the_permalink(); ?>?action=wpuf_add_user">Add New User</a>
@@ -90,15 +90,15 @@ function wpuf_show_users() {
90
  <?php if ( $users ) : ?>
91
  <table class="wpuf-table" cellpadding="0" cellspacing="0">
92
  <tr>
93
- <th><?php _e( 'Username', 'wpuf' ); ?></th>
94
- <th><?php _e( 'Action', 'wpuf' ); ?></th>
95
  </tr>
96
  <?php foreach ($users as $user): ?>
97
  <tr>
98
- <td><a href="<?php echo get_author_posts_url( $user->ID ); ?>"><?php printf( esc_attr__( '%s', 'wpuf' ), $user->display_name ); ?></td>
99
  <td>
100
- <a href="<?php echo wp_nonce_url(get_permalink() . '?action=edit&user_id='. $user->ID, 'wpuf_edit_user'); ?>"><?php _e( 'Edit', 'wpuf' ); ?></a>
101
- <a href="<?php echo wp_nonce_url( the_permalink( 'echo=false' ) . "?action=del&user_id=" . $user->ID, 'wpuf_del_user' ) ?>" onclick="return confirm('<?php echo $delete_message ?>');"><span style="color: red;"><?php _e( 'Delete', 'wpuf' ); ?></span></a>
102
  </td>
103
  </tr>
104
 
@@ -117,7 +117,7 @@ function wpuf_add_user() {
117
  ?>
118
  <?php if ( current_user_can( 'create_users' ) ) : ?>
119
 
120
- <h3><?php _e( 'Add New User', 'wpuf' ); ?></h3>
121
 
122
  <?php
123
  if ( isset( $_POST['wpuf_new_user_submit'] ) ) {
@@ -130,7 +130,7 @@ function wpuf_add_user() {
130
  $error = null;
131
  $error = wpuf_register_new_user( $username, $email, $role );
132
  if ( !is_wp_error( $error ) ) {
133
- echo '<div class="success">' . __( 'User Added', 'wpuf' ) . '</div>';
134
  } else {
135
  echo '<div class="error">' . $error->get_error_message() . '</div>';
136
  }
@@ -142,7 +142,7 @@ function wpuf_add_user() {
142
  <ul class="wpuf-post-form">
143
  <li>
144
  <label for="user_login">
145
- <?php _e( 'Username', 'wpuf' ); ?> <span class="required">*</span>
146
  </label>
147
  <input type="text" name="user_login" id="user_login" minlength="2" value="<?php if ( isset( $_POST['user_login'] ) ) echo wpuf_clean_tags( $_POST['user_login'] ); ?>">
148
  <div class="clear"></div>
@@ -150,7 +150,7 @@ function wpuf_add_user() {
150
 
151
  <li>
152
  <label for="user_email">
153
- <?php _e( 'Email', 'wpuf' ); ?> <span class="required">*</span>
154
  </label>
155
  <input type="text" name="user_email" id="user_email" minlength="2" value="<?php if ( isset( $_POST['user_email'] ) ) echo wpuf_clean_tags( $_POST['user_email'] ); ?>">
156
  <div class="clear"></div>
@@ -158,7 +158,7 @@ function wpuf_add_user() {
158
 
159
  <li>
160
  <label for="role">
161
- <?php _e( 'Role', 'wpuf' ); ?>
162
  </label>
163
 
164
  <select name="role" id="role">
@@ -175,7 +175,7 @@ function wpuf_add_user() {
175
 
176
  <li>
177
  <label>&nbsp;</label>
178
- <input class="wpuf_submit" type="submit" name="wpuf_new_user_submit" value="<?php echo esc_attr( __( 'Add New User', 'wpuf' ) ); ?>">
179
  </li>
180
 
181
  </ul>
@@ -202,22 +202,22 @@ function wpuf_register_new_user( $user_login, $user_email, $role ) {
202
 
203
  // Check the username
204
  if ( $sanitized_user_login == '' ) {
205
- $errors->add( 'empty_username', __( '<strong>ERROR</strong>: Please enter a username', 'wpuf' ) );
206
  } elseif ( !validate_username( $user_login ) ) {
207
- $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: This username is invalid because it uses illegal characters. Please enter a valid username', 'wpuf' ) );
208
  $sanitized_user_login = '';
209
  } elseif ( username_exists( $sanitized_user_login ) ) {
210
- $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered, please choose another one', 'wpuf' ) );
211
  }
212
 
213
  // Check the e-mail address
214
  if ( $user_email == '' ) {
215
- $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your e-mail address', 'wpuf' ) );
216
  } elseif ( !is_email( $user_email ) ) {
217
- $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn&#8217;t correct', 'wpuf' ) );
218
  $user_email = '';
219
  } elseif ( email_exists( $user_email ) ) {
220
- $errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one', 'wpuf' ) );
221
  }
222
 
223
  do_action( 'register_post', $sanitized_user_login, $user_email, $errors );
@@ -240,7 +240,7 @@ function wpuf_register_new_user( $user_login, $user_email, $role ) {
240
  $user_id = wp_insert_user( $userdata );
241
 
242
  if ( !$user_id ) {
243
- $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'wpuf' ), get_option( 'admin_email' ) ) );
244
  return $errors;
245
  }
246
 
20
  if ( $user_id && $userdata ) {
21
  WPUF_Edit_Profile::show_form( $user_id );
22
  } else {
23
+ printf( __( "User doesn't exists", 'wp-user-frontend' ) );
24
  }
25
  break;
26
 
31
  default: wpuf_show_users();
32
  }
33
  } else { // user don't have any permission
34
+ printf( __( "You don't have permission for this purpose", 'wp-user-frontend' ) );
35
  }
36
  } else { //user is not logged in
37
+ printf( __( "This page is restricted. Please %s to view this page.", 'wp-user-frontend' ), wp_loginout( '', false ) );
38
  }
39
 
40
  return ob_get_clean();
73
  if ( current_user_can( 'delete_users' ) && $delete_flag == true ) {
74
 
75
  wp_delete_user( $to_be_deleted );
76
+ echo '<div class="success">' . __( 'User Deleted', 'wp-user-frontend' ) . '</div>';
77
  } else {
78
  echo '<div class="error">Cheatin&#8217; uh?</div>';
79
  }
82
  //$sql = "SELECT ID, display_name FROM $wpdb->users ORDER BY user_registered ASC";
83
  //$users = $wpdb->get_results( $sql );
84
  $users = get_users(apply_filters('wpuf_show_users', array()));
85
+ $delete_message = __( 'Are you sure to delete this user?', 'wp-user-frontend' );
86
  ?>
87
 
88
  <a class="wpuf-button" href="<?php the_permalink(); ?>?action=wpuf_add_user">Add New User</a>
90
  <?php if ( $users ) : ?>
91
  <table class="wpuf-table" cellpadding="0" cellspacing="0">
92
  <tr>
93
+ <th><?php _e( 'Username', 'wp-user-frontend' ); ?></th>
94
+ <th><?php _e( 'Action', 'wp-user-frontend' ); ?></th>
95
  </tr>
96
  <?php foreach ($users as $user): ?>
97
  <tr>
98
+ <td><a href="<?php echo get_author_posts_url( $user->ID ); ?>"><?php printf( esc_attr__( '%s', 'wp-user-frontend' ), $user->display_name ); ?></td>
99
  <td>
100
+ <a href="<?php echo wp_nonce_url(get_permalink() . '?action=edit&user_id='. $user->ID, 'wpuf_edit_user'); ?>"><?php _e( 'Edit', 'wp-user-frontend' ); ?></a>
101
+ <a href="<?php echo wp_nonce_url( the_permalink( 'echo=false' ) . "?action=del&user_id=" . $user->ID, 'wpuf_del_user' ) ?>" onclick="return confirm('<?php echo $delete_message ?>');"><span style="color: red;"><?php _e( 'Delete', 'wp-user-frontend' ); ?></span></a>
102
  </td>
103
  </tr>
104
 
117
  ?>
118
  <?php if ( current_user_can( 'create_users' ) ) : ?>
119
 
120
+ <h3><?php _e( 'Add New User', 'wp-user-frontend' ); ?></h3>
121
 
122
  <?php
123
  if ( isset( $_POST['wpuf_new_user_submit'] ) ) {
130
  $error = null;
131
  $error = wpuf_register_new_user( $username, $email, $role );
132
  if ( !is_wp_error( $error ) ) {
133
+ echo '<div class="success">' . __( 'User Added', 'wp-user-frontend' ) . '</div>';
134
  } else {
135
  echo '<div class="error">' . $error->get_error_message() . '</div>';
136
  }
142
  <ul class="wpuf-post-form">
143
  <li>
144
  <label for="user_login">
145
+ <?php _e( 'Username', 'wp-user-frontend' ); ?> <span class="required">*</span>
146
  </label>
147
  <input type="text" name="user_login" id="user_login" minlength="2" value="<?php if ( isset( $_POST['user_login'] ) ) echo wpuf_clean_tags( $_POST['user_login'] ); ?>">
148
  <div class="clear"></div>
150
 
151
  <li>
152
  <label for="user_email">
153
+ <?php _e( 'Email', 'wp-user-frontend' ); ?> <span class="required">*</span>
154
  </label>
155
  <input type="text" name="user_email" id="user_email" minlength="2" value="<?php if ( isset( $_POST['user_email'] ) ) echo wpuf_clean_tags( $_POST['user_email'] ); ?>">
156
  <div class="clear"></div>
158
 
159
  <li>
160
  <label for="role">
161
+ <?php _e( 'Role', 'wp-user-frontend' ); ?>
162
  </label>
163
 
164
  <select name="role" id="role">
175
 
176
  <li>
177
  <label>&nbsp;</label>
178
+ <input class="wpuf_submit" type="submit" name="wpuf_new_user_submit" value="<?php echo esc_attr( __( 'Add New User', 'wp-user-frontend' ) ); ?>">
179
  </li>
180
 
181
  </ul>
202
 
203
  // Check the username
204
  if ( $sanitized_user_login == '' ) {
205
+ $errors->add( 'empty_username', __( '<strong>ERROR</strong>: Please enter a username', 'wp-user-frontend' ) );
206
  } elseif ( !validate_username( $user_login ) ) {
207
+ $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: This username is invalid because it uses illegal characters. Please enter a valid username', 'wp-user-frontend' ) );
208
  $sanitized_user_login = '';
209
  } elseif ( username_exists( $sanitized_user_login ) ) {
210
+ $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered, please choose another one', 'wp-user-frontend' ) );
211
  }
212
 
213
  // Check the e-mail address
214
  if ( $user_email == '' ) {
215
+ $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your e-mail address', 'wp-user-frontend' ) );
216
  } elseif ( !is_email( $user_email ) ) {
217
+ $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn&#8217;t correct', 'wp-user-frontend' ) );
218
  $user_email = '';
219
  } elseif ( email_exists( $user_email ) ) {
220
+ $errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one', 'wp-user-frontend' ) );
221
  }
222
 
223
  do_action( 'register_post', $sanitized_user_login, $user_email, $errors );
240
  $user_id = wp_insert_user( $userdata );
241
 
242
  if ( !$user_id ) {
243
+ $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'wp-user-frontend' ), get_option( 'admin_email' ) ) );
244
  return $errors;
245
  }
246
 
includes/free/form-element.php CHANGED
@@ -3,19 +3,19 @@
3
  class WPUF_form_element extends WPUF_Pro_Prompt {
4
 
5
  public static function add_form_custom_buttons() {
6
- $title = esc_attr( __( 'Click to add to the editor', 'wpuf' ) );
7
  ?>
8
- <button class="button" data-name="custom_image" data-type="image" title="<?php echo $title; ?>"><?php _e( 'Image Upload', 'wpuf' ); ?></button>
9
 
10
  <?php self::get_pro_prompt(); ?>
11
- <button class="button" disabled data-type="repeat" title="<?php echo $title; ?>"><?php _e( 'Repeat Field', 'wpuf' ); ?></button>
12
- <button class="button" disabled data-type="date" title="<?php echo $title; ?>"><?php _e( 'Date', 'wpuf' ); ?></button>
13
- <button class="button" disabled data-type="file" title="<?php echo $title; ?>"><?php _e( 'File Upload', 'wpuf' ); ?></button>
14
- <button class="button" disabled data-type="map" title="<?php echo $title; ?>"><?php _e( 'Google Maps', 'wpuf' ); ?></button>
15
- <button class="button" disabled data-type="select" title="<?php echo $title; ?>"><?php _e( 'Country List', 'wpuf' ); ?></button>
16
- <button class="button" disabled data-type="text" title="<?php echo $title; ?>"><?php _e( 'Numeric Field', 'wpuf' ); ?></button>
17
- <button class="button" disabled data-type="text" title="<?php echo $title; ?>"><?php _e( 'Address Field', 'wpuf' ); ?></button>
18
- <button class="button" disabled data-type="text" title="<?php echo $title; ?>"><?php _e( 'Step Start', 'wpuf' ); ?></button>
19
  <?php
20
  }
21
 
@@ -23,15 +23,15 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
23
  * add formbuilder's button in Others section
24
  */
25
  public static function add_form_other_buttons() {
26
- $title = esc_attr( __( 'Click to add to the editor', 'wpuf' ) );
27
 
28
  self::get_pro_prompt();
29
  ?>
30
- <button class="button" disabled data-type="shortcode" title="<?php echo $title; ?>"><?php _e( 'Shortcode', 'wpuf' ); ?></button>
31
- <button class="button" data-name="recaptcha" data-type="captcha" title="<?php echo $title; ?>"><?php _e( 'reCaptcha', 'wpuf' ); ?></button>
32
- <button class="button" disabled data-type="rscaptcha" title="<?php echo $title; ?>"><?php _e( 'Really Simple Captcha', 'wpuf' ); ?></button>
33
- <button class="button" disabled data-type="action" title="<?php echo $title; ?>"><?php _e( 'Action Hook', 'wpuf' ); ?></button>
34
- <button class="button" disabled data-type="action" title="<?php echo $title; ?>"><?php _e( 'Term &amp; Conditions', 'wpuf' ); ?></button>
35
  <?php
36
  }
37
 
@@ -53,17 +53,17 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
53
  <div id="wpuf-pro-content">
54
  <table class="form-table">
55
  <tr>
56
- <th><?php _e( 'Post Expiration', 'wpuf' ); ?></th>
57
  <td>
58
  <label>
59
  <input disabled type="checkbox" id="wpuf-enable_post_expiration" name="" value="on" <?php echo $is_post_exp_selected;?> />
60
- <?php _e( 'Enable Post Expiration', 'wpuf' ); ?>
61
  </label>
62
  </td>
63
- <p class="description"><a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/using-post-expiration-wp-user-frontend/"><?php _e('Learn more about Automatic Post Expiration', 'wpuf'); ?></a></p>
64
  </tr>
65
  <tr class="wpuf_expiration_field">
66
- <th><?php _e( 'Post Expiration Time', 'wpuf' ); ?></th>
67
  <td>
68
  <?php
69
  $timeType_array = array(
@@ -109,7 +109,7 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
109
  }
110
  ?>
111
  </select>
112
- <p class="description"><?php echo __( 'Status of post after post expiration time is over ', 'wpuf' ); ?></p>
113
 
114
  </td>
115
  </tr>
@@ -120,7 +120,7 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
120
  <td>
121
  <label>
122
  <input disabled type="checkbox" name="" value="on" <?php echo $is_enable_mail_after_expired;?> />
123
- <?php echo __( 'Send Email to Author After Exceeding Post Expiration Time', 'wpuf' ); ?>
124
  </label>
125
  </td>
126
  </tr>
@@ -145,19 +145,19 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
145
  <td colspan="2"><?php self::get_pro_prompt(); ?></td>
146
  </tr>
147
  <tr class="wpuf_enable_multistep_section wpuf-pro-content">
148
- <th><?php _e( 'Enable Multistep', 'wpuf' ); ?></th>
149
  <td>
150
  <label>
151
  <input disabled type="checkbox" name="" value="yes" checked />
152
- <?php _e( 'Enable Multistep', 'wpuf' ); ?>
153
  </label>
154
 
155
- <p class="description"><?php echo __( 'If checked, form will be displayed in frontend in multiple steps', 'wpuf' ); ?>
156
- <a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/how-to-add-multi-step-form/"><?php _e( ' Learn more about Multistep', 'wpuf' ); ?></a></p>
157
  </td>
158
  </tr>
159
  <tr class="wpuf_multistep_progress_type wpuf-pro-content">
160
- <th><?php _e( 'Multistep Progressbar Type', 'wpuf' ); ?></th>
161
  <td>
162
  <label>
163
  <select disabled name="">
@@ -167,7 +167,7 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
167
  </label>
168
 
169
 
170
- <p class="description"><?php echo __( 'Choose how you want the progressbar', 'wpuf' ); ?></p>
171
  </td>
172
  </tr>
173
  <?php
@@ -197,78 +197,78 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
197
 
198
  $new_notificaton = isset( $form_settings['notification']['new'] ) ? $form_settings['notification']['new'] : 'on';
199
  $new_to = isset( $form_settings['notification']['new_to'] ) ? $form_settings['notification']['new_to'] : get_option( 'admin_email' );
200
- $new_subject = isset( $form_settings['notification']['new_subject'] ) ? $form_settings['notification']['new_subject'] : __( 'New post created', 'wpuf' );
201
  $new_body = isset( $form_settings['notification']['new_body'] ) ? $form_settings['notification']['new_body'] : $new_mail_body . $mail_body;
202
 
203
  $edit_notificaton = 'off';
204
  $edit_to = get_option( 'admin_email' );
205
- $edit_subject = __( 'A post has been edited', 'wpuf' );
206
  $edit_body = $edit_mail_body . $mail_body;
207
  ?>
208
 
209
- <h3><?php _e( 'New Post Notification', 'wpuf' ); ?></h3>
210
  <table class="form-table">
211
  <tr>
212
- <th><?php _e( 'Notification', 'wpuf' ); ?></th>
213
  <td>
214
  <label>
215
  <input type="hidden" name="wpuf_settings[notification][new]" value="on">
216
  <input type="checkbox" name="wpuf_settings[notification][new]" value="on"<?php checked( $new_notificaton, 'on' ); ?>>
217
- <?php _e( 'Enable post notification', 'wpuf' ); ?>
218
  </label>
219
  </td>
220
- <p class="description"><a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/how-to-set-up-submission-email-notification/"><?php _e('Learn more about Email Notification', 'wpuf'); ?></a></p>
221
  </tr>
222
 
223
  <tr>
224
- <th><?php _e( 'To', 'wpuf' ); ?></th>
225
  <td>
226
  <input type="text" name="wpuf_settings[notification][new_to]" class="regular-text" value="<?php echo esc_attr( $new_to ) ?>">
227
  </td>
228
  </tr>
229
 
230
  <tr>
231
- <th><?php _e( 'Subject', 'wpuf' ); ?></th>
232
  <td><input type="text" name="wpuf_settings[notification][new_subject]" class="regular-text" value="<?php echo esc_attr( $new_subject ) ?>"></td>
233
  </tr>
234
 
235
  <tr>
236
- <th><?php _e( 'Message', 'wpuf' ); ?></th>
237
  <td>
238
  <textarea rows="6" cols="60" name="wpuf_settings[notification][new_body]"><?php echo esc_textarea( $new_body ) ?></textarea>
239
  </td>
240
  </tr>
241
  </table>
242
 
243
- <h3><?php _e( 'Update Post Notification', 'wpuf' ); ?></h3>
244
 
245
  <div id="wpuf-pro-content">
246
  <?php self::get_pro_prompt(); ?>
247
 
248
  <table class="form-table">
249
  <tr>
250
- <th><?php _e( 'Notification', 'wpuf' ); ?></th>
251
  <td>
252
  <label>
253
  <input disabled type="checkbox" name="" value="on"<?php checked( $edit_notificaton, 'on' ); ?>>
254
  <input type="hidden" name="wpuf_settings[notification][edit]" value="off">
255
- <?php _e( 'Enable post notification', 'wpuf' ); ?>
256
  </label>
257
  </td>
258
  </tr>
259
 
260
  <tr>
261
- <th><?php _e( 'To', 'wpuf' ); ?></th>
262
  <td><input disabled type="text" name="" class="regular-text" value="<?php echo esc_attr( $edit_to ) ?>"></td>
263
  </tr>
264
 
265
  <tr>
266
- <th><?php _e( 'Subject', 'wpuf' ); ?></th>
267
  <td><input disabled type="text" name="" class="regular-text" value="<?php echo esc_attr( $edit_subject ) ?>"></td>
268
  </tr>
269
 
270
  <tr>
271
- <th><?php _e( 'Message', 'wpuf' ); ?></th>
272
  <td>
273
  <textarea disabled rows="6" cols="60" name=""><?php echo esc_textarea( $edit_body ) ?></textarea>
274
  </td>
@@ -276,7 +276,7 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
276
  </table>
277
  </div>
278
 
279
- <h3><?php _e( 'You may use in to, subject & message:', 'wpuf' ); ?></h3>
280
  <p>
281
  <code>%post_title%</code>, <code>%post_content%</code>, <code>%post_excerpt%</code>, <code>%tags%</code>, <code>%category%</code>,
282
  <code>%author%</code>, <code>%author_email%</code>, <code>%author_bio%</code>, <code>%sitename%</code>, <code>%siteurl%</code>, <code>%permalink%</code>, <code>%editlink%</code>
@@ -300,11 +300,11 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
300
 
301
  ?>
302
  <div style="margin-bottom: 10px">
303
- <button class="button wpuf-collapse"><?php _e( 'Toggle All', 'wpuf' ); ?></button>
304
  </div>
305
 
306
  <div class="wpuf-updated">
307
- <p><?php _e( 'Click on a form element to add to the editor', 'wpuf' ); ?></p>
308
  </div>
309
 
310
  <ul id="wpuf-form-editor" class="wpuf-form-editor unstyled">
@@ -338,12 +338,12 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
338
  $email_verification = 'no';
339
  $role_selected = 'subscriber';
340
  $redirect_to = 'post';
341
- $message = __( 'Registration successful', 'wpuf' );
342
- $update_message = __( 'Profile updated successfully', 'wpuf' );
343
  $page_id = 0;
344
  $url = '';
345
- $submit_text = __( 'Register', 'wpuf' );
346
- $update_text = __( 'Update Profile', 'wpuf' );
347
  ?>
348
  <tr>
349
  <td colspan="2">
@@ -351,7 +351,7 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
351
  </td>
352
  </tr>
353
  <tr class="wpuf-post-type">
354
- <th><?php _e( 'Enable Email Verfication', 'wpuf' ); ?></th>
355
  <td>
356
  <input type="hidden" name="" value="no">
357
  <input disabled type="checkbox" id="wpuf-enable_email_verification" name="" value="yes" <?php checked( $email_verification, 'yes' ); ?> > <label for="wpuf-enable_email_verification">Enable Email Verification</label>
@@ -359,7 +359,7 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
359
  </tr>
360
 
361
  <tr class="wpuf-post-type">
362
- <th><?php _e( 'New User Role', 'wpuf' ); ?></th>
363
  <td>
364
  <select disabled name="">
365
  <?php
@@ -373,14 +373,14 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
373
  </tr>
374
 
375
  <tr class="wpuf-redirect-to">
376
- <th><?php _e( 'Redirect To', 'wpuf' ); ?></th>
377
  <td>
378
  <select disabled name="">
379
  <?php
380
  $redirect_options = array(
381
- 'same' => __( 'Same Page', 'wpuf' ),
382
- 'page' => __( 'To a page', 'wpuf' ),
383
- 'url' => __( 'To a custom URL', 'wpuf' )
384
  );
385
 
386
  foreach ( $redirect_options as $to => $label ) {
@@ -389,27 +389,27 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
389
  ?>
390
  </select>
391
  <div class="description">
392
- <?php _e( 'After successfull submit, where the page will redirect to', 'wpuf' ) ?>
393
  </div>
394
  </td>
395
  </tr>
396
 
397
  <tr class="wpuf-same-page">
398
- <th><?php _e( 'Registration success message', 'wpuf' ); ?></th>
399
  <td>
400
  <textarea disabled rows="3" cols="40" name=""><?php echo esc_textarea( $message ); ?></textarea>
401
  </td>
402
  </tr>
403
 
404
  <tr class="wpuf-same-page">
405
- <th><?php _e( 'Update profile message', 'wpuf' ); ?></th>
406
  <td>
407
  <textarea disabled rows="3" cols="40" name=""><?php echo esc_textarea( $update_message ); ?></textarea>
408
  </td>
409
  </tr>
410
 
411
  <tr class="wpuf-page-id">
412
- <th><?php _e( 'Page', 'wpuf' ); ?></th>
413
  <td>
414
  <select disabled name="">
415
  <?php
@@ -424,21 +424,21 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
424
  </tr>
425
 
426
  <tr class="wpuf-url">
427
- <th><?php _e( 'Custom URL', 'wpuf' ); ?></th>
428
  <td>
429
  <input disabled type="url" name="" value="<?php echo esc_attr( $url ); ?>">
430
  </td>
431
  </tr>
432
 
433
  <tr class="wpuf-submit-text">
434
- <th><?php _e( 'Submit Button text', 'wpuf' ); ?></th>
435
  <td>
436
  <input disabled type="text" name="" value="<?php echo esc_attr( $submit_text ); ?>">
437
  </td>
438
  </tr>
439
 
440
  <tr class="wpuf-update-text">
441
- <th><?php _e( 'Update Button text', 'wpuf' ); ?></th>
442
  <td>
443
  <input disabled type="text" name="" value="<?php echo esc_attr( $update_text ); ?>">
444
  </td>
@@ -471,11 +471,11 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
471
  public static function render_conditional_field( $field_id, $con_fields, $obj ) {
472
  ?>
473
  <div class="wpuf-form-rows">
474
- <label><?php _e( 'Conditional Logic', 'wpuf' ); ?></label>
475
 
476
  <div class="wpuf-form-sub-fields">
477
- <label><input type="radio" name="" disabled class="wpuf-conditional-enable" value="yes"> <?php _e( 'Yes', 'wpuf' ); ?></label>
478
- <label><input type="radio" name="" disabled class="wpuf-conditional-enable" value="no" checked> <?php _e( 'No', 'wpuf' ); ?></label>
479
 
480
  <label class="wpuf-pro-text-alert"> (<?php echo self::get_pro_prompt_text(); ?>)</label>
481
  </div>
3
  class WPUF_form_element extends WPUF_Pro_Prompt {
4
 
5
  public static function add_form_custom_buttons() {
6
+ $title = esc_attr( __( 'Click to add to the editor', 'wp-user-frontend' ) );
7
  ?>
8
+ <button class="button" data-name="custom_image" data-type="image" title="<?php echo $title; ?>"><?php _e( 'Image Upload', 'wp-user-frontend' ); ?></button>
9
 
10
  <?php self::get_pro_prompt(); ?>
11
+ <button class="button" disabled data-type="repeat" title="<?php echo $title; ?>"><?php _e( 'Repeat Field', 'wp-user-frontend' ); ?></button>
12
+ <button class="button" disabled data-type="date" title="<?php echo $title; ?>"><?php _e( 'Date', 'wp-user-frontend' ); ?></button>
13
+ <button class="button" disabled data-type="file" title="<?php echo $title; ?>"><?php _e( 'File Upload', 'wp-user-frontend' ); ?></button>
14
+ <button class="button" disabled data-type="map" title="<?php echo $title; ?>"><?php _e( 'Google Maps', 'wp-user-frontend' ); ?></button>
15
+ <button class="button" disabled data-type="select" title="<?php echo $title; ?>"><?php _e( 'Country List', 'wp-user-frontend' ); ?></button>
16
+ <button class="button" disabled data-type="text" title="<?php echo $title; ?>"><?php _e( 'Numeric Field', 'wp-user-frontend' ); ?></button>
17
+ <button class="button" disabled data-type="text" title="<?php echo $title; ?>"><?php _e( 'Address Field', 'wp-user-frontend' ); ?></button>
18
+ <button class="button" disabled data-type="text" title="<?php echo $title; ?>"><?php _e( 'Step Start', 'wp-user-frontend' ); ?></button>
19
  <?php
20
  }
21
 
23
  * add formbuilder's button in Others section
24
  */
25
  public static function add_form_other_buttons() {
26
+ $title = esc_attr( __( 'Click to add to the editor', 'wp-user-frontend' ) );
27
 
28
  self::get_pro_prompt();
29
  ?>
30
+ <button class="button" disabled data-type="shortcode" title="<?php echo $title; ?>"><?php _e( 'Shortcode', 'wp-user-frontend' ); ?></button>
31
+ <button class="button" data-name="recaptcha" data-type="captcha" title="<?php echo $title; ?>"><?php _e( 'reCaptcha', 'wp-user-frontend' ); ?></button>
32
+ <button class="button" disabled data-type="rscaptcha" title="<?php echo $title; ?>"><?php _e( 'Really Simple Captcha', 'wp-user-frontend' ); ?></button>
33
+ <button class="button" disabled data-type="action" title="<?php echo $title; ?>"><?php _e( 'Action Hook', 'wp-user-frontend' ); ?></button>
34
+ <button class="button" disabled data-type="action" title="<?php echo $title; ?>"><?php _e( 'Term &amp; Conditions', 'wp-user-frontend' ); ?></button>
35
  <?php
36
  }
37
 
53
  <div id="wpuf-pro-content">
54
  <table class="form-table">
55
  <tr>
56
+ <th><?php _e( 'Post Expiration', 'wp-user-frontend' ); ?></th>
57
  <td>
58
  <label>
59
  <input disabled type="checkbox" id="wpuf-enable_post_expiration" name="" value="on" <?php echo $is_post_exp_selected;?> />
60
+ <?php _e( 'Enable Post Expiration', 'wp-user-frontend' ); ?>
61
  </label>
62
  </td>
63
+ <p class="description"><a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/using-post-expiration-wp-user-frontend/"><?php _e('Learn more about Automatic Post Expiration', 'wp-user-frontend'); ?></a></p>
64
  </tr>
65
  <tr class="wpuf_expiration_field">
66
+ <th><?php _e( 'Post Expiration Time', 'wp-user-frontend' ); ?></th>
67
  <td>
68
  <?php
69
  $timeType_array = array(
109
  }
110
  ?>
111
  </select>
112
+ <p class="description"><?php echo __( 'Status of post after post expiration time is over ', 'wp-user-frontend' ); ?></p>
113
 
114
  </td>
115
  </tr>
120
  <td>
121
  <label>
122
  <input disabled type="checkbox" name="" value="on" <?php echo $is_enable_mail_after_expired;?> />
123
+ <?php echo __( 'Send Email to Author After Exceeding Post Expiration Time', 'wp-user-frontend' ); ?>
124
  </label>
125
  </td>
126
  </tr>
145
  <td colspan="2"><?php self::get_pro_prompt(); ?></td>
146
  </tr>
147
  <tr class="wpuf_enable_multistep_section wpuf-pro-content">
148
+ <th><?php _e( 'Enable Multistep', 'wp-user-frontend' ); ?></th>
149
  <td>
150
  <label>
151
  <input disabled type="checkbox" name="" value="yes" checked />
152
+ <?php _e( 'Enable Multistep', 'wp-user-frontend' ); ?>
153
  </label>
154
 
155
+ <p class="description"><?php echo __( 'If checked, form will be displayed in frontend in multiple steps', 'wp-user-frontend' ); ?>
156
+ <a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/how-to-add-multi-step-form/"><?php _e( ' Learn more about Multistep', 'wp-user-frontend' ); ?></a></p>
157
  </td>
158
  </tr>
159
  <tr class="wpuf_multistep_progress_type wpuf-pro-content">
160
+ <th><?php _e( 'Multistep Progressbar Type', 'wp-user-frontend' ); ?></th>
161
  <td>
162
  <label>
163
  <select disabled name="">
167
  </label>
168
 
169
 
170
+ <p class="description"><?php echo __( 'Choose how you want the progressbar', 'wp-user-frontend' ); ?></p>
171
  </td>
172
  </tr>
173
  <?php
197
 
198
  $new_notificaton = isset( $form_settings['notification']['new'] ) ? $form_settings['notification']['new'] : 'on';
199
  $new_to = isset( $form_settings['notification']['new_to'] ) ? $form_settings['notification']['new_to'] : get_option( 'admin_email' );
200
+ $new_subject = isset( $form_settings['notification']['new_subject'] ) ? $form_settings['notification']['new_subject'] : __( 'New post created', 'wp-user-frontend' );
201
  $new_body = isset( $form_settings['notification']['new_body'] ) ? $form_settings['notification']['new_body'] : $new_mail_body . $mail_body;
202
 
203
  $edit_notificaton = 'off';
204
  $edit_to = get_option( 'admin_email' );
205
+ $edit_subject = __( 'A post has been edited', 'wp-user-frontend' );
206
  $edit_body = $edit_mail_body . $mail_body;
207
  ?>
208
 
209
+ <h3><?php _e( 'New Post Notification', 'wp-user-frontend' ); ?></h3>
210
  <table class="form-table">
211
  <tr>
212
+ <th><?php _e( 'Notification', 'wp-user-frontend' ); ?></th>
213
  <td>
214
  <label>
215
  <input type="hidden" name="wpuf_settings[notification][new]" value="on">
216
  <input type="checkbox" name="wpuf_settings[notification][new]" value="on"<?php checked( $new_notificaton, 'on' ); ?>>
217
+ <?php _e( 'Enable post notification', 'wp-user-frontend' ); ?>
218
  </label>
219
  </td>
220
+ <p class="description"><a target="_blank" href="https://wedevs.com/docs/wp-user-frontend-pro/posting-forms/how-to-set-up-submission-email-notification/"><?php _e('Learn more about Email Notification', 'wp-user-frontend'); ?></a></p>
221
  </tr>
222
 
223
  <tr>
224
+ <th><?php _e( 'To', 'wp-user-frontend' ); ?></th>
225
  <td>
226
  <input type="text" name="wpuf_settings[notification][new_to]" class="regular-text" value="<?php echo esc_attr( $new_to ) ?>">
227
  </td>
228
  </tr>
229
 
230
  <tr>
231
+ <th><?php _e( 'Subject', 'wp-user-frontend' ); ?></th>
232
  <td><input type="text" name="wpuf_settings[notification][new_subject]" class="regular-text" value="<?php echo esc_attr( $new_subject ) ?>"></td>
233
  </tr>
234
 
235
  <tr>
236
+ <th><?php _e( 'Message', 'wp-user-frontend' ); ?></th>
237
  <td>
238
  <textarea rows="6" cols="60" name="wpuf_settings[notification][new_body]"><?php echo esc_textarea( $new_body ) ?></textarea>
239
  </td>
240
  </tr>
241
  </table>
242
 
243
+ <h3><?php _e( 'Update Post Notification', 'wp-user-frontend' ); ?></h3>
244
 
245
  <div id="wpuf-pro-content">
246
  <?php self::get_pro_prompt(); ?>
247
 
248
  <table class="form-table">
249
  <tr>
250
+ <th><?php _e( 'Notification', 'wp-user-frontend' ); ?></th>
251
  <td>
252
  <label>
253
  <input disabled type="checkbox" name="" value="on"<?php checked( $edit_notificaton, 'on' ); ?>>
254
  <input type="hidden" name="wpuf_settings[notification][edit]" value="off">
255
+ <?php _e( 'Enable post notification', 'wp-user-frontend' ); ?>
256
  </label>
257
  </td>
258
  </tr>
259
 
260
  <tr>
261
+ <th><?php _e( 'To', 'wp-user-frontend' ); ?></th>
262
  <td><input disabled type="text" name="" class="regular-text" value="<?php echo esc_attr( $edit_to ) ?>"></td>
263
  </tr>
264
 
265
  <tr>
266
+ <th><?php _e( 'Subject', 'wp-user-frontend' ); ?></th>
267
  <td><input disabled type="text" name="" class="regular-text" value="<?php echo esc_attr( $edit_subject ) ?>"></td>
268
  </tr>
269
 
270
  <tr>
271
+ <th><?php _e( 'Message', 'wp-user-frontend' ); ?></th>
272
  <td>
273
  <textarea disabled rows="6" cols="60" name=""><?php echo esc_textarea( $edit_body ) ?></textarea>
274
  </td>
276
  </table>
277
  </div>
278
 
279
+ <h3><?php _e( 'You may use in to, subject & message:', 'wp-user-frontend' ); ?></h3>
280
  <p>
281
  <code>%post_title%</code>, <code>%post_content%</code>, <code>%post_excerpt%</code>, <code>%tags%</code>, <code>%category%</code>,
282
  <code>%author%</code>, <code>%author_email%</code>, <code>%author_bio%</code>, <code>%sitename%</code>, <code>%siteurl%</code>, <code>%permalink%</code>, <code>%editlink%</code>
300
 
301
  ?>
302
  <div style="margin-bottom: 10px">
303
+ <button class="button wpuf-collapse"><?php _e( 'Toggle All', 'wp-user-frontend' ); ?></button>
304
  </div>
305
 
306
  <div class="wpuf-updated">
307
+ <p><?php _e( 'Click on a form element to add to the editor', 'wp-user-frontend' ); ?></p>
308
  </div>
309
 
310
  <ul id="wpuf-form-editor" class="wpuf-form-editor unstyled">
338
  $email_verification = 'no';
339
  $role_selected = 'subscriber';
340
  $redirect_to = 'post';
341
+ $message = __( 'Registration successful', 'wp-user-frontend' );
342
+ $update_message = __( 'Profile updated successfully', 'wp-user-frontend' );
343
  $page_id = 0;
344
  $url = '';
345
+ $submit_text = __( 'Register', 'wp-user-frontend' );
346
+ $update_text = __( 'Update Profile', 'wp-user-frontend' );
347
  ?>
348
  <tr>
349
  <td colspan="2">
351
  </td>
352
  </tr>
353
  <tr class="wpuf-post-type">
354
+ <th><?php _e( 'Enable Email Verfication', 'wp-user-frontend' ); ?></th>
355
  <td>
356
  <input type="hidden" name="" value="no">
357
  <input disabled type="checkbox" id="wpuf-enable_email_verification" name="" value="yes" <?php checked( $email_verification, 'yes' ); ?> > <label for="wpuf-enable_email_verification">Enable Email Verification</label>
359
  </tr>
360
 
361
  <tr class="wpuf-post-type">
362
+ <th><?php _e( 'New User Role', 'wp-user-frontend' ); ?></th>
363
  <td>
364
  <select disabled name="">
365
  <?php
373
  </tr>
374
 
375
  <tr class="wpuf-redirect-to">
376
+ <th><?php _e( 'Redirect To', 'wp-user-frontend' ); ?></th>
377
  <td>
378
  <select disabled name="">
379
  <?php
380
  $redirect_options = array(
381
+ 'same' => __( 'Same Page', 'wp-user-frontend' ),
382
+ 'page' => __( 'To a page', 'wp-user-frontend' ),
383
+ 'url' => __( 'To a custom URL', 'wp-user-frontend' )
384
  );
385
 
386
  foreach ( $redirect_options as $to => $label ) {
389
  ?>
390
  </select>
391
  <div class="description">
392
+ <?php _e( 'After successfull submit, where the page will redirect to', 'wp-user-frontend' ) ?>
393
  </div>
394
  </td>
395
  </tr>
396
 
397
  <tr class="wpuf-same-page">
398
+ <th><?php _e( 'Registration success message', 'wp-user-frontend' ); ?></th>
399
  <td>
400
  <textarea disabled rows="3" cols="40" name=""><?php echo esc_textarea( $message ); ?></textarea>
401
  </td>
402
  </tr>
403
 
404
  <tr class="wpuf-same-page">
405
+ <th><?php _e( 'Update profile message', 'wp-user-frontend' ); ?></th>
406
  <td>
407
  <textarea disabled rows="3" cols="40" name=""><?php echo esc_textarea( $update_message ); ?></textarea>
408
  </td>
409
  </tr>
410
 
411
  <tr class="wpuf-page-id">
412
+ <th><?php _e( 'Page', 'wp-user-frontend' ); ?></th>
413
  <td>
414
  <select disabled name="">
415
  <?php
424
  </tr>
425
 
426
  <tr class="wpuf-url">
427
+ <th><?php _e( 'Custom URL', 'wp-user-frontend' ); ?></th>
428
  <td>
429
  <input disabled type="url" name="" value="<?php echo esc_attr( $url ); ?>">
430
  </td>
431
  </tr>
432
 
433
  <tr class="wpuf-submit-text">
434
+ <th><?php _e( 'Submit Button text', 'wp-user-frontend' ); ?></th>
435
  <td>
436
  <input disabled type="text" name="" value="<?php echo esc_attr( $submit_text ); ?>">
437
  </td>
438
  </tr>
439
 
440
  <tr class="wpuf-update-text">
441
+ <th><?php _e( 'Update Button text', 'wp-user-frontend' ); ?></th>
442
  <td>
443
  <input disabled type="text" name="" value="<?php echo esc_attr( $update_text ); ?>">
444
  </td>
471
  public static function render_conditional_field( $field_id, $con_fields, $obj ) {
472
  ?>
473
  <div class="wpuf-form-rows">
474
+ <label><?php _e( 'Conditional Logic', 'wp-user-frontend' ); ?></label>
475
 
476
  <div class="wpuf-form-sub-fields">
477
+ <label><input type="radio" name="" disabled class="wpuf-conditional-enable" value="yes"> <?php _e( 'Yes', 'wp-user-frontend' ); ?></label>
478
+ <label><input type="radio" name="" disabled class="wpuf-conditional-enable" value="no" checked> <?php _e( 'No', 'wp-user-frontend' ); ?></label>
479
 
480
  <label class="wpuf-pro-text-alert"> (<?php echo self::get_pro_prompt_text(); ?>)</label>
481
  </div>
includes/free/loader.php CHANGED
@@ -74,22 +74,22 @@ class WPUF_Free_Loader extends WPUF_Pro_Prompt {
74
  function admin_menu_top() {
75
  $capability = wpuf_admin_role();
76
 
77
- add_submenu_page( 'wp-user-frontend', __( 'Registration Forms', 'wpuf' ), __( 'Registration Forms', 'wpuf' ), $capability, 'wpuf-profile-forms', array($this, 'admin_reg_forms_page') );
78
  }
79
 
80
  function admin_menu() {
81
  if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
82
  $capability = wpuf_admin_role();
83
- add_submenu_page( 'wp-user-frontend', __( 'Coupons', 'wpuf' ), __( 'Coupons', 'wpuf' ), $capability, 'wpuf_coupon', array($this, 'admin_coupon_page' ) );
84
  }
85
  }
86
 
87
  function admin_reg_forms_page() {
88
  ?>
89
- <h2><?php _e( 'Registration Form', 'wpuf' ); ?></h2>
90
 
91
  <p>
92
- <?php _e( 'Use the shortcode <code>[wpuf-registration]</code> for a simple and default WordPress registration form.', 'wpuf' ); ?>
93
  </p>
94
 
95
  <p>
@@ -103,7 +103,7 @@ class WPUF_Free_Loader extends WPUF_Pro_Prompt {
103
  <h3 style="margin: 0;">Pro Features</h3>
104
 
105
  <p>
106
- <?php _e( 'Registration form builder is a two way form which can be used both for <strong>user registration</strong> and <strong>profile editing</strong>.', 'wpuf' ); ?>
107
  </p>
108
 
109
  <ul class="wpuf-pro-features">
@@ -122,8 +122,8 @@ class WPUF_Free_Loader extends WPUF_Pro_Prompt {
122
  </ul>
123
 
124
  <p style="margin-top: 30px;">
125
- <a href="<?php echo self::get_pro_url(); ?>" target="_blank" class="button-primary"><?php _e( 'Upgrade to Pro Version', 'wpuf' ); ?></a>
126
- <a href="https://wedevs.com/docs/wp-user-frontend-pro/registration-forms/" target="_blank" class="button"><?php _e( 'Learn More', 'wpuf' ); ?></a>
127
  </p>
128
  </div>
129
 
@@ -140,20 +140,20 @@ class WPUF_Free_Loader extends WPUF_Pro_Prompt {
140
 
141
  function admin_coupon_page() {
142
  ?>
143
- <h2><?php _e( 'Coupons', 'wpuf' ); ?></h2>
144
 
145
  <div class="wpuf-notice" style="padding: 20px; background: #fff; border: 1px solid #ddd;">
146
  <p>
147
- <?php _e( 'Use Coupon codes for subscription for discounts.', 'wpuf' ); ?>
148
  </p>
149
 
150
  <p>
151
- <?php _e( 'This feature is only available in the Pro Version.', 'wpuf' ); ?>
152
  </p>
153
 
154
  <p>
155
- <a href="<?php echo self::get_pro_url(); ?>" target="_blank" class="button-primary"><?php _e( 'Upgrade to Pro Version', 'wpuf' ); ?></a>
156
- <a href="https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/coupons/" target="_blank" class="button"><?php _e( 'Learn more about Coupons', 'wpuf' ); ?></a>
157
  </p>
158
  </div>
159
 
@@ -194,7 +194,7 @@ class WPUF_Free_Loader extends WPUF_Pro_Prompt {
194
  * @return void
195
  */
196
  function add_meta_box_post() {
197
- add_meta_box( 'wpuf-metabox-fields-banner', __( 'Upgrade to Pro', 'wpuf' ), array($this, 'show_banner_metabox'), 'wpuf_forms', 'side', 'core' );
198
  }
199
 
200
  function show_banner_metabox() {
74
  function admin_menu_top() {
75
  $capability = wpuf_admin_role();
76
 
77
+ add_submenu_page( 'wp-user-frontend', __( 'Registration Forms', 'wp-user-frontend' ), __( 'Registration Forms', 'wp-user-frontend' ), $capability, 'wpuf-profile-forms', array($this, 'admin_reg_forms_page') );
78
  }
79
 
80
  function admin_menu() {
81
  if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
82
  $capability = wpuf_admin_role();
83
+ add_submenu_page( 'wp-user-frontend', __( 'Coupons', 'wp-user-frontend' ), __( 'Coupons', 'wp-user-frontend' ), $capability, 'wpuf_coupon', array($this, 'admin_coupon_page' ) );
84
  }
85
  }
86
 
87
  function admin_reg_forms_page() {
88
  ?>
89
+ <h2><?php _e( 'Registration Form', 'wp-user-frontend' ); ?></h2>
90
 
91
  <p>
92
+ <?php _e( 'Use the shortcode <code>[wpuf-registration]</code> for a simple and default WordPress registration form.', 'wp-user-frontend' ); ?>
93
  </p>
94
 
95
  <p>
103
  <h3 style="margin: 0;">Pro Features</h3>
104
 
105
  <p>
106
+ <?php _e( 'Registration form builder is a two way form which can be used both for <strong>user registration</strong> and <strong>profile editing</strong>.', 'wp-user-frontend' ); ?>
107
  </p>
108
 
109
  <ul class="wpuf-pro-features">
122
  </ul>
123
 
124
  <p style="margin-top: 30px;">
125
+ <a href="<?php echo self::get_pro_url(); ?>" target="_blank" class="button-primary"><?php _e( 'Upgrade to Pro Version', 'wp-user-frontend' ); ?></a>
126
+ <a href="https://wedevs.com/docs/wp-user-frontend-pro/registration-forms/" target="_blank" class="button"><?php _e( 'Learn More', 'wp-user-frontend' ); ?></a>
127
  </p>
128
  </div>
129
 
140
 
141
  function admin_coupon_page() {
142
  ?>
143
+ <h2><?php _e( 'Coupons', 'wp-user-frontend' ); ?></h2>
144
 
145
  <div class="wpuf-notice" style="padding: 20px; background: #fff; border: 1px solid #ddd;">
146
  <p>
147
+ <?php _e( 'Use Coupon codes for subscription for discounts.', 'wp-user-frontend' ); ?>
148
  </p>
149
 
150
  <p>
151
+ <?php _e( 'This feature is only available in the Pro Version.', 'wp-user-frontend' ); ?>
152
  </p>
153
 
154
  <p>
155
+ <a href="<?php echo self::get_pro_url(); ?>" target="_blank" class="button-primary"><?php _e( 'Upgrade to Pro Version', 'wp-user-frontend' ); ?></a>
156
+ <a href="https://wedevs.com/docs/wp-user-frontend-pro/subscription-payment/coupons/" target="_blank" class="button"><?php _e( 'Learn more about Coupons', 'wp-user-frontend' ); ?></a>
157
  </p>
158
  </div>
159
 
194
  * @return void
195
  */
196
  function add_meta_box_post() {
197
+ add_meta_box( 'wpuf-metabox-fields-banner', __( 'Upgrade to Pro', 'wp-user-frontend' ), array($this, 'show_banner_metabox'), 'wpuf_forms', 'side', 'core' );
198
  }
199
 
200
  function show_banner_metabox() {
includes/free/post-form-templates/woocommerce.php CHANGED
@@ -9,8 +9,8 @@ class WPUF_Post_Form_Template_WooCommerce extends WPUF_Post_Form_Template {
9
  parent::__construct();
10
 
11
  $this->enabled = class_exists( 'WooCommerce' );
12
- $this->title = __( 'WooCommerce Product', 'wpuf' );
13
- $this->description = __( 'Create a simple product form for WooCommerce.', 'wpuf' );
14
  $this->image = WPUF_ASSET_URI . '/images/templates/woocommerce.png';
15
  $this->form_fields = array(
16
  array(
9
  parent::__construct();
10
 
11
  $this->enabled = class_exists( 'WooCommerce' );
12
+ $this->title = __( 'WooCommerce Product', 'wp-user-frontend' );
13
+ $this->description = __( 'Create a simple product form for WooCommerce.', 'wp-user-frontend' );
14
  $this->image = WPUF_ASSET_URI . '/images/templates/woocommerce.png';
15
  $this->form_fields = array(
16
  array(
includes/free/subscription.php CHANGED
@@ -5,11 +5,11 @@ class WPUF_Subscription_Element extends WPUF_Pro_Prompt {
5
  public static function add_subscription_element( $sub_meta, $hidden_recurring_class, $hidden_trial_class, $obj ) {
6
  ?>
7
  <tr valign="top">
8
- <th><label><?php _e( 'Recurring', 'wpuf' ); ?></label></th>
9
  <td>
10
  <label for="wpuf-recuring-pay">
11
  <input type="checkbox" disabled checked size="20" style="" id="wpuf-recuring-pay" value="yes" name="" />
12
- <?php _e( 'Enable Recurring Payment', 'wpuf' ); ?>
13
  </label>
14
 
15
  <label class="wpuf-pro-text-alert"> (<?php echo self::get_pro_prompt_text(); ?>)</label>
5
  public static function add_subscription_element( $sub_meta, $hidden_recurring_class, $hidden_trial_class, $obj ) {
6
  ?>
7
  <tr valign="top">
8
+ <th><label><?php _e( 'Recurring', 'wp-user-frontend' ); ?></label></th>
9
  <td>
10
  <label for="wpuf-recuring-pay">
11
  <input type="checkbox" disabled checked size="20" style="" id="wpuf-recuring-pay" value="yes" name="" />
12
+ <?php _e( 'Enable Recurring Payment', 'wp-user-frontend' ); ?>
13
  </label>
14
 
15
  <label class="wpuf-pro-text-alert"> (<?php echo self::get_pro_prompt_text(); ?>)</label>
includes/setup-wizard.php CHANGED
@@ -36,18 +36,18 @@ class WPUF_Setup_Wizard {
36
  wp_register_script( 'selectWPUF', WPUF_ASSET_URI . '/js/selectWPUF/selectWPUF.full' . $suffix . '.js', array( 'jquery' ), '1.0.1' );
37
  wp_register_script( 'wpuf-enhanced-select', WPUF_ASSET_URI . '/js/admin/wpuf-enhanced-select' . $suffix . '.js', array( 'jquery', 'selectWPUF' ) );
38
  wp_localize_script( 'wpuf-enhanced-select', 'wpuf_enhanced_select_params', array(
39
- 'i18n_matches_1' => _x( 'One result is available, press enter to select it.', 'enhanced select', 'wpuf' ),
40
- 'i18n_matches_n' => _x( '%qty% results are available, use up and down arrow keys to navigate.', 'enhanced select', 'wpuf' ),
41
- 'i18n_no_matches' => _x( 'No matches found', 'enhanced select', 'wpuf' ),
42
- 'i18n_ajax_error' => _x( 'Loading failed', 'enhanced select', 'wpuf' ),
43
- 'i18n_input_too_short_1' => _x( 'Please enter 1 or more characters', 'enhanced select', 'wpuf' ),
44
- 'i18n_input_too_short_n' => _x( 'Please enter %qty% or more characters', 'enhanced select', 'wpuf' ),
45
- 'i18n_input_too_long_1' => _x( 'Please delete 1 character', 'enhanced select', 'wpuf' ),
46
- 'i18n_input_too_long_n' => _x( 'Please delete %qty% characters', 'enhanced select', 'wpuf' ),
47
- 'i18n_selection_too_long_1' => _x( 'You can only select 1 item', 'enhanced select', 'wpuf' ),
48
- 'i18n_selection_too_long_n' => _x( 'You can only select %qty% items', 'enhanced select', 'wpuf' ),
49
- 'i18n_load_more' => _x( 'Loading more results&hellip;', 'enhanced select', 'wpuf' ),
50
- 'i18n_searching' => _x( 'Searching&hellip;', 'enhanced select', 'wpuf' ),
51
  'ajax_url' => admin_url( 'admin-ajax.php' ),
52
  ) );
53
 
@@ -95,17 +95,17 @@ class WPUF_Setup_Wizard {
95
  }
96
  $this->steps = array(
97
  'introduction' => array(
98
- 'name' => __( 'Introduction', 'wpuf' ),
99
  'view' => array( $this, 'wpuf_setup_introduction' ),
100
  'handler' => ''
101
  ),
102
  'basic' => array(
103
- 'name' => __( 'Settings', 'wpuf' ),
104
  'view' => array( $this, 'wpuf_setup_basic' ),
105
  'handler' => array( $this, 'wpuf_setup_basic_save' ),
106
  ),
107
  'next_steps' => array(
108
- 'name' => __( 'Ready!', 'wpuf' ),
109
  'view' => array( $this, 'wpuf_setup_ready' ),
110
  'handler' => ''
111
  )
@@ -142,7 +142,7 @@ class WPUF_Setup_Wizard {
142
  <head>
143
  <meta name="viewport" content="width=device-width" />
144
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
145
- <title><?php _e( 'WPUF &rsaquo; Setup Wizard', 'wpuf' ); ?></title>
146
  <?php wp_print_scripts( 'wpuf-setup' ); ?>
147
  <?php do_action( 'admin_print_styles' ); ?>
148
  <?php do_action( 'admin_head' ); ?>
@@ -207,7 +207,7 @@ class WPUF_Setup_Wizard {
207
  public function setup_wizard_footer() {
208
  ?>
209
  <?php if ( 'next_steps' === $this->step ) : ?>
210
- <a class="wpuf-return-to-dashboard" href="<?php echo esc_url( admin_url() ); ?>"><?php _e( 'Return to the WordPress Dashboard', 'wpuf' ); ?></a>
211
  <?php endif; ?>
212
  </body>
213
  </html>
@@ -249,12 +249,12 @@ class WPUF_Setup_Wizard {
249
  */
250
  public function wpuf_setup_introduction() {
251
  ?>
252
- <h1><?php _e( 'Welcome to the world of WPUF!', 'wpuf' ); ?></h1>
253
- <p><?php _e( 'Thank you for choosing WPUF to power your websites frontend! This quick setup wizard will help you configure the basic settings. <strong>It’s completely optional and shouldn’t take longer than a minute.</strong>', 'wpuf' ); ?></p>
254
- <p><?php _e( 'No time right now? If you don’t want to go through the wizard, you can skip and return to the WordPress dashboard. Come back anytime if you change your mind!', 'wpuf' ); ?></p>
255
  <p class="wpuf-setup-actions step">
256
- <a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button-primary button button-large button-next"><?php _e( 'Let\'s Go!', 'wpuf' ); ?></a>
257
- <a href="<?php echo esc_url( admin_url() ); ?>" class="button button-large"><?php _e( 'Not right now', 'wpuf' ); ?></a>
258
  </p>
259
  <?php
260
  }
@@ -266,27 +266,27 @@ class WPUF_Setup_Wizard {
266
  $enable_payment = wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' );
267
  $install_wpuf_pages = wpuf_get_option( 'install_wpuf_pages', 'wpuf_general', 'on' );
268
  ?>
269
- <h1><?php _e( 'Basic Setting', 'wpuf' ); ?></h1>
270
  <form method="post">
271
  <table class="form-table">
272
  <tr>
273
- <th scope="row"><label for="enable_payment"><?php _e( 'Enable Payments', 'wpuf' ); ?></label></th>
274
  <td>
275
  <input type="checkbox" name="enable_payment" id="enable_payment" class="input-checkbox" value="1" <?php echo ( $enable_payment == 'on' ) ? 'checked="checked"' : ''; ?>/>
276
- <label for="enable_payment"><?php _e( 'Make payment enable for user to add posts on frontend.', 'wpuf' ); ?></label>
277
  </td>
278
  </tr>
279
  <tr>
280
- <th scope="row"><label for="install_wpuf_pages"><?php _e( 'Install WPUF Pages', 'wpuf' ); ?></label></th>
281
  <td>
282
  <input type="checkbox" name="install_wpuf_pages" id="install_wpuf_pages" class="input-checkbox" value="1" <?php echo ( $install_wpuf_pages == 'on' ) ? 'checked="checked"' : ''; ?>/>
283
- <label for="install_wpuf_pages"><?php _e( 'Install neccessery pages on your site frontend.', 'wpuf' ); ?></label>
284
  </td>
285
  </tr>
286
  </table>
287
  <p class="wpuf-setup-actions step">
288
- <input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e( 'Continue', 'wpuf' ); ?>" name="save_step" />
289
- <a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button button-large button-next"><?php _e( 'Skip this step', 'wpuf' ); ?></a>
290
  <?php wp_nonce_field( 'wpuf-setup' ); ?>
291
  </p>
292
  </form>
@@ -320,16 +320,16 @@ class WPUF_Setup_Wizard {
320
  */
321
  public function wpuf_setup_ready() {
322
  ?>
323
- <h1><?php _e( 'Thank you!', 'wpuf' ); ?></h1>
324
 
325
  <div class="wpuf-setup-next-steps">
326
  <div class="wpuf-setup-next-steps-first">
327
  <ul>
328
- <li class="setup-product"><a class="button button-primary button-large" href="<?php echo esc_url( admin_url( 'admin.php?page=wpuf-welcome' ) ); ?>"><?php _e( 'Welcome to Awesomeness!', 'wpuf' ); ?></a></li>
329
  </ul>
330
  </div>
331
  <div class="wpuf-setup-next-steps-last">
332
- <h2><a href="<?php echo esc_url( admin_url( 'admin.php?page=wpuf-settings' ) ); ?>"><?php _e( 'Go to Full Settings', 'wpuf' ); ?></a></h2>
333
  </div>
334
  </div>
335
  <?php
36
  wp_register_script( 'selectWPUF', WPUF_ASSET_URI . '/js/selectWPUF/selectWPUF.full' . $suffix . '.js', array( 'jquery' ), '1.0.1' );
37
  wp_register_script( 'wpuf-enhanced-select', WPUF_ASSET_URI . '/js/admin/wpuf-enhanced-select' . $suffix . '.js', array( 'jquery', 'selectWPUF' ) );
38
  wp_localize_script( 'wpuf-enhanced-select', 'wpuf_enhanced_select_params', array(
39
+ 'i18n_matches_1' => _x( 'One result is available, press enter to select it.', 'enhanced select', 'wp-user-frontend' ),
40
+ 'i18n_matches_n' => _x( '%qty% results are available, use up and down arrow keys to navigate.', 'enhanced select', 'wp-user-frontend' ),
41
+ 'i18n_no_matches' => _x( 'No matches found', 'enhanced select', 'wp-user-frontend' ),
42
+ 'i18n_ajax_error' => _x( 'Loading failed', 'enhanced select', 'wp-user-frontend' ),
43
+ 'i18n_input_too_short_1' => _x( 'Please enter 1 or more characters', 'enhanced select', 'wp-user-frontend' ),
44
+ 'i18n_input_too_short_n' => _x( 'Please enter %qty% or more characters', 'enhanced select', 'wp-user-frontend' ),
45
+ 'i18n_input_too_long_1' => _x( 'Please delete 1 character', 'enhanced select', 'wp-user-frontend' ),
46
+ 'i18n_input_too_long_n' => _x( 'Please delete %qty% characters', 'enhanced select', 'wp-user-frontend' ),
47
+ 'i18n_selection_too_long_1' => _x( 'You can only select 1 item', 'enhanced select', 'wp-user-frontend' ),
48
+ 'i18n_selection_too_long_n' => _x( 'You can only select %qty% items', 'enhanced select', 'wp-user-frontend' ),
49
+ 'i18n_load_more' => _x( 'Loading more results&hellip;', 'enhanced select', 'wp-user-frontend' ),
50
+ 'i18n_searching' => _x( 'Searching&hellip;', 'enhanced select', 'wp-user-frontend' ),
51
  'ajax_url' => admin_url( 'admin-ajax.php' ),
52
  ) );
53
 
95
  }
96
  $this->steps = array(
97
  'introduction' => array(
98
+ 'name' => __( 'Introduction', 'wp-user-frontend' ),
99
  'view' => array( $this, 'wpuf_setup_introduction' ),
100
  'handler' => ''
101
  ),
102
  'basic' => array(
103
+ 'name' => __( 'Settings', 'wp-user-frontend' ),
104
  'view' => array( $this, 'wpuf_setup_basic' ),
105
  'handler' => array( $this, 'wpuf_setup_basic_save' ),
106
  ),
107
  'next_steps' => array(
108
+ 'name' => __( 'Ready!', 'wp-user-frontend' ),
109
  'view' => array( $this, 'wpuf_setup_ready' ),
110
  'handler' => ''
111
  )
142
  <head>
143
  <meta name="viewport" content="width=device-width" />
144
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
145
+ <title><?php _e( 'WPUF &rsaquo; Setup Wizard', 'wp-user-frontend' ); ?></title>
146
  <?php wp_print_scripts( 'wpuf-setup' ); ?>
147
  <?php do_action( 'admin_print_styles' ); ?>
148
  <?php do_action( 'admin_head' ); ?>
207
  public function setup_wizard_footer() {
208
  ?>
209
  <?php if ( 'next_steps' === $this->step ) : ?>
210
+ <a class="wpuf-return-to-dashboard" href="<?php echo esc_url( admin_url() ); ?>"><?php _e( 'Return to the WordPress Dashboard', 'wp-user-frontend' ); ?></a>
211
  <?php endif; ?>
212
  </body>
213
  </html>
249
  */
250
  public function wpuf_setup_introduction() {
251
  ?>
252
+ <h1><?php _e( 'Welcome to the world of WPUF!', 'wp-user-frontend' ); ?></h1>
253
+ <p><?php _e( 'Thank you for choosing WPUF to power your websites frontend! This quick setup wizard will help you configure the basic settings. <strong>It’s completely optional and shouldn’t take longer than a minute.</strong>', 'wp-user-frontend' ); ?></p>
254
+ <p><?php _e( 'No time right now? If you don’t want to go through the wizard, you can skip and return to the WordPress dashboard. Come back anytime if you change your mind!', 'wp-user-frontend' ); ?></p>
255
  <p class="wpuf-setup-actions step">
256
+ <a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button-primary button button-large button-next"><?php _e( 'Let\'s Go!', 'wp-user-frontend' ); ?></a>
257
+ <a href="<?php echo esc_url( admin_url() ); ?>" class="button button-large"><?php _e( 'Not right now', 'wp-user-frontend' ); ?></a>
258
  </p>
259
  <?php
260
  }
266
  $enable_payment = wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' );
267
  $install_wpuf_pages = wpuf_get_option( 'install_wpuf_pages', 'wpuf_general', 'on' );
268
  ?>
269
+ <h1><?php _e( 'Basic Setting', 'wp-user-frontend' ); ?></h1>
270
  <form method="post">
271
  <table class="form-table">
272
  <tr>
273
+ <th scope="row"><label for="enable_payment"><?php _e( 'Enable Payments', 'wp-user-frontend' ); ?></label></th>
274
  <td>
275
  <input type="checkbox" name="enable_payment" id="enable_payment" class="input-checkbox" value="1" <?php echo ( $enable_payment == 'on' ) ? 'checked="checked"' : ''; ?>/>
276
+ <label for="enable_payment"><?php _e( 'Make payment enable for user to add posts on frontend.', 'wp-user-frontend' ); ?></label>
277
  </td>
278
  </tr>
279
  <tr>
280
+ <th scope="row"><label for="install_wpuf_pages"><?php _e( 'Install WPUF Pages', 'wp-user-frontend' ); ?></label></th>
281
  <td>
282
  <input type="checkbox" name="install_wpuf_pages" id="install_wpuf_pages" class="input-checkbox" value="1" <?php echo ( $install_wpuf_pages == 'on' ) ? 'checked="checked"' : ''; ?>/>
283
+ <label for="install_wpuf_pages"><?php _e( 'Install neccessery pages on your site frontend.', 'wp-user-frontend' ); ?></label>
284
  </td>
285
  </tr>
286
  </table>
287
  <p class="wpuf-setup-actions step">
288
+ <input type="submit" class="button-primary button button-large button-next" value="<?php esc_attr_e( 'Continue', 'wp-user-frontend' ); ?>" name="save_step" />
289
+ <a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button button-large button-next"><?php _e( 'Skip this step', 'wp-user-frontend' ); ?></a>
290
  <?php wp_nonce_field( 'wpuf-setup' ); ?>
291
  </p>
292
  </form>
320
  */
321
  public function wpuf_setup_ready() {
322
  ?>
323
+ <h1><?php _e( 'Thank you!', 'wp-user-frontend' ); ?></h1>
324
 
325
  <div class="wpuf-setup-next-steps">
326
  <div class="wpuf-setup-next-steps-first">
327
  <ul>
328
+ <li class="setup-product"><a class="button button-primary button-large" href="<?php echo esc_url( admin_url( 'admin.php?page=wpuf-welcome' ) ); ?>"><?php _e( 'Welcome to Awesomeness!', 'wp-user-frontend' ); ?></a></li>
329
  </ul>
330
  </div>
331
  <div class="wpuf-setup-next-steps-last">
332
+ <h2><a href="<?php echo esc_url( admin_url( 'admin.php?page=wpuf-settings' ) ); ?>"><?php _e( 'Go to Full Settings', 'wp-user-frontend' ); ?></a></h2>
333
  </div>
334
  </div>
335
  <?php
languages/{wpuf-es_ES.mo → wp-user-frontend-es_ES.mo} RENAMED
File without changes
languages/{wpuf-es_ES.po → wp-user-frontend-es_ES.po} RENAMED
File without changes
languages/{wpuf-fa_IR.mo → wp-user-frontend-fa_IR.mo} RENAMED
File without changes
languages/{wpuf-fa_IR.po → wp-user-frontend-fa_IR.po} RENAMED
File without changes
languages/{wpuf-tr_TR.mo → wp-user-frontend-tr_TR.mo} RENAMED
File without changes
languages/{wpuf-tr_TR.po → wp-user-frontend-tr_TR.po} RENAMED
File without changes
languages/{wpuf-zh_CN.mo → wp-user-frontend-zh_CN.mo} RENAMED
File without changes
languages/{wpuf-zh_CN.po → wp-user-frontend-zh_CN.po} RENAMED
File without changes
languages/{wpuf.pot → wp-user-frontend.pot} RENAMED
@@ -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.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"
@@ -127,7 +127,8 @@ msgstr ""
127
  msgid "Amount"
128
  msgstr ""
129
 
130
- #: admin/class-admin-subscription.php:196 includes/free/subscription.php:8
 
131
  msgid "Recurring"
132
  msgstr ""
133
 
@@ -137,7 +138,7 @@ 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 ""
@@ -148,9 +149,9 @@ msgstr ""
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 ""
@@ -161,9 +162,9 @@ msgstr ""
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 ""
@@ -203,7 +204,7 @@ 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
 
@@ -295,7 +296,7 @@ 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"
@@ -327,7 +328,7 @@ msgstr ""
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
 
@@ -633,7 +634,7 @@ msgid "Give the user some information about this field"
633
  msgstr ""
634
 
635
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:63
636
- #: admin/template.php:67
637
  msgid "Required"
638
  msgstr ""
639
 
@@ -678,7 +679,7 @@ msgid "Everyone"
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
 
@@ -815,7 +816,7 @@ msgstr ""
815
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:404
816
  #: admin/template.php:398 admin/template.php:422 admin/template.php:454
817
  #: admin/template.php:486 templates/dashboard/posts.php:85
818
- #: templates/dashboard.php:123
819
  msgid "Options"
820
  msgstr ""
821
 
@@ -903,8 +904,8 @@ msgstr ""
903
 
904
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:697
905
  #: admin/html/form-submission-restriction.php:12 admin/html/support.php:224
906
- #: class/transactions-list-table.php:49 includes/free/edit-user.php:153
907
- #: templates/registration-form.php:44
908
  msgid "Email"
909
  msgstr ""
910
 
@@ -962,7 +963,7 @@ msgstr ""
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
 
@@ -1124,9 +1125,9 @@ msgid "Add New Form"
1124
  msgstr ""
1125
 
1126
  #: admin/form.php:74 admin/form.php:112 admin/installer.php:75
1127
- #: admin/post-forms-list-table.php:392 class/subscription.php:381
1128
  #: includes/free/admin/shortcode-button.php:90 includes/free/edit-user.php:100
1129
- #: templates/dashboard/posts.php:151 templates/dashboard.php:244
1130
  msgid "Edit"
1131
  msgstr ""
1132
 
@@ -1204,7 +1205,8 @@ msgstr ""
1204
  msgid "Save Draft"
1205
  msgstr ""
1206
 
1207
- #: admin/form.php:550 admin/form.php:557
 
1208
  msgid "Post Title"
1209
  msgstr ""
1210
 
@@ -1220,16 +1222,18 @@ msgstr ""
1220
  msgid "Post Body"
1221
  msgstr ""
1222
 
1223
- #: admin/form.php:646 admin/form.php:653 templates/dashboard.php:110
 
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
 
@@ -1357,7 +1361,7 @@ msgstr ""
1357
  msgid "Payment Options"
1358
  msgstr ""
1359
 
1360
- #: admin/html/form-settings-payment.php:25 admin/settings-options.php:342
1361
  #: includes/setup-wizard.php:273
1362
  msgid "Enable Payments"
1363
  msgstr ""
@@ -1491,7 +1495,7 @@ msgstr ""
1491
  msgid "Update Post Button text"
1492
  msgstr ""
1493
 
1494
- #: admin/html/form-settings-post.php:7
1495
  msgid "This page is restricted. Please Log in / Register to view this page."
1496
  msgstr ""
1497
 
@@ -1507,7 +1511,7 @@ msgstr ""
1507
  msgid "Preview"
1508
  msgstr ""
1509
 
1510
- #: admin/html/form-settings-post.php:30 admin/post-forms-list-table.php:297
1511
  msgid "Post Type"
1512
  msgstr ""
1513
 
@@ -1570,7 +1574,7 @@ msgid "It will show a button to save as draft"
1570
  msgstr ""
1571
 
1572
  #: admin/html/form-submission-restriction.php:29
1573
- #: admin/post-forms-list-table.php:299
1574
  msgid "Guest Post"
1575
  msgstr ""
1576
 
@@ -1649,12 +1653,12 @@ msgid "Choose which roles can submit posts."
1649
  msgstr ""
1650
 
1651
  #: admin/html/form-submission-restriction.php:114
1652
- #: admin/settings-options.php:266
1653
  msgid "Unauthorized Message"
1654
  msgstr ""
1655
 
1656
  #: admin/html/form-submission-restriction.php:117
1657
- #: admin/settings-options.php:267
1658
  msgid "Not logged in users will see this message"
1659
  msgstr ""
1660
 
@@ -1761,7 +1765,8 @@ msgid ""
1761
  "<strong>offers</strong> and <strong>news updates</strong>."
1762
  msgstr ""
1763
 
1764
- #: admin/html/support.php:219 includes/free/edit-profile.php:105
 
1765
  msgid "First Name"
1766
  msgstr ""
1767
 
@@ -1870,368 +1875,421 @@ msgid "Contact Support"
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,7 +2318,7 @@ msgid ""
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,7 +2333,7 @@ msgstr ""
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
 
@@ -2284,7 +2342,7 @@ msgid "[wpuf_sub_pack]"
2284
  msgstr ""
2285
 
2286
  #: admin/installer.php:85 templates/dashboard/posts.php:82
2287
- #: templates/dashboard.php:120
2288
  msgid "Payment"
2289
  msgstr ""
2290
 
@@ -2332,7 +2390,7 @@ msgstr ""
2332
  msgid "Published"
2333
  msgstr ""
2334
 
2335
- #: admin/post-forms-list-table.php:45 admin/post-forms-list-table.php:393
2336
  msgid "Trash"
2337
  msgstr ""
2338
 
@@ -2344,50 +2402,50 @@ msgstr ""
2344
  msgid "Move to Trash"
2345
  msgstr ""
2346
 
2347
- #: admin/post-forms-list-table.php:113 admin/post-forms-list-table.php:405
2348
  msgid "Restore"
2349
  msgstr ""
2350
 
2351
- #: admin/post-forms-list-table.php:114 admin/post-forms-list-table.php:406
2352
  msgid "Delete Permanently"
2353
  msgstr ""
2354
 
2355
- #: admin/post-forms-list-table.php:296
2356
  msgid "Form Name"
2357
  msgstr ""
2358
 
2359
- #: admin/post-forms-list-table.php:300 admin/premium.php:39
2360
  #: includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php:195
2361
  #: includes/free/form-element.php:30
2362
  msgid "Shortcode"
2363
  msgstr ""
2364
 
2365
- #: admin/post-forms-list-table.php:394
2366
  msgid "Duplicate"
2367
  msgstr ""
2368
 
2369
- #: admin/post-forms-list-table.php:415 wpuf-functions.php:65
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
 
@@ -2696,7 +2754,7 @@ msgstr ""
2696
  msgid "Login / Registration"
2697
  msgstr ""
2698
 
2699
- #: admin/settings-options.php:38
2700
  msgid "Payments"
2701
  msgstr ""
2702
 
@@ -2704,438 +2762,451 @@ msgstr ""
2704
  msgid "E-Mails"
2705
  msgstr ""
2706
 
2707
- #: admin/settings-options.php:57
 
 
 
 
2708
  msgid "Previous Page"
2709
  msgstr ""
2710
 
2711
- #: admin/settings-options.php:79
2712
  msgid "Show Admin Bar"
2713
  msgstr ""
2714
 
2715
- #: admin/settings-options.php:80
2716
  msgid "Select user by roles, who can view admin bar in frontend."
2717
  msgstr ""
2718
 
2719
- #: admin/settings-options.php:87
2720
  msgid "Admin area access"
2721
  msgstr ""
2722
 
2723
- #: admin/settings-options.php:88
2724
  msgid "Allow you to block specific user role to Ajax request and Media upload."
2725
  msgstr ""
2726
 
2727
- #: admin/settings-options.php:92
2728
  msgid "Admin Only"
2729
  msgstr ""
2730
 
2731
- #: admin/settings-options.php:93
2732
  msgid "Admins, Editors"
2733
  msgstr ""
2734
 
2735
- #: admin/settings-options.php:94
2736
  msgid "Admins, Editors, Authors"
2737
  msgstr ""
2738
 
2739
- #: admin/settings-options.php:95
2740
  msgid "Admins, Editors, Authors, Contributors"
2741
  msgstr ""
2742
 
2743
- #: admin/settings-options.php:96
2744
  msgid "Default"
2745
  msgstr ""
2746
 
2747
- #: admin/settings-options.php:101
2748
  msgid "Override the post edit link"
2749
  msgstr ""
2750
 
2751
- #: admin/settings-options.php:102
2752
  msgid ""
2753
  "Users see the edit link in post if s/he is capable to edit the post/page. "
2754
  "Selecting <strong>Yes</strong> will override the default WordPress edit "
2755
  "post link in frontend"
2756
  msgstr ""
2757
 
2758
- #: admin/settings-options.php:112
2759
  msgid "ACF Compatibility"
2760
  msgstr ""
2761
 
2762
- #: admin/settings-options.php:113
2763
  msgid ""
2764
  "Select <strong>Yes</strong> if you want to make compatible WPUF custom "
2765
  "fields data with advanced custom fields."
2766
  msgstr ""
2767
 
2768
- #: admin/settings-options.php:123
2769
  msgid "Load Scripts"
2770
  msgstr ""
2771
 
2772
- #: admin/settings-options.php:124
2773
  msgid "Load scripts/styles in all pages"
2774
  msgstr ""
2775
 
2776
- #: admin/settings-options.php:130
2777
  msgid "reCAPTCHA Site Key"
2778
  msgstr ""
2779
 
2780
- #: admin/settings-options.php:134
2781
  msgid "reCAPTCHA Secret Key"
2782
  msgstr ""
2783
 
2784
- #: admin/settings-options.php:135
2785
  msgid ""
2786
  "<a target=\"_blank\" href=\"https://www.google.com/recaptcha/\">Register "
2787
  "here</a> to get reCaptcha Site and Secret keys."
2788
  msgstr ""
2789
 
2790
- #: admin/settings-options.php:139
2791
  msgid "Custom CSS codes"
2792
  msgstr ""
2793
 
2794
- #: admin/settings-options.php:140
2795
  msgid ""
2796
  "If you want to add your custom CSS code, it will be added on page header "
2797
  "wrapped with style tag"
2798
  msgstr ""
2799
 
2800
- #: admin/settings-options.php:147
2801
  msgid "Edit Page"
2802
  msgstr ""
2803
 
2804
- #: admin/settings-options.php:148
2805
  msgid "Select the page where <code>[wpuf_edit]</code> is located"
2806
  msgstr ""
2807
 
2808
- #: admin/settings-options.php:154
2809
  msgid "Default Post Owner"
2810
  msgstr ""
2811
 
2812
- #: admin/settings-options.php:155
2813
  msgid ""
2814
  "If guest post is enabled and user details are OFF, the posts are assigned "
2815
  "to this user"
2816
  msgstr ""
2817
 
2818
- #: admin/settings-options.php:162
2819
  msgid "Custom Fields in post"
2820
  msgstr ""
2821
 
2822
- #: admin/settings-options.php:163
2823
  msgid "Show custom fields on post content area"
2824
  msgstr ""
2825
 
2826
- #: admin/settings-options.php:169
2827
  msgid "Insert Photo image size"
2828
  msgstr ""
2829
 
2830
- #: admin/settings-options.php:170
2831
  msgid ""
2832
  "Default image size of \"<strong>Insert Photo</strong>\" button in post "
2833
  "content area"
2834
  msgstr ""
2835
 
2836
- #: admin/settings-options.php:177
2837
  msgid "Insert Photo image type"
2838
  msgstr ""
2839
 
2840
- #: admin/settings-options.php:178
2841
  msgid ""
2842
  "Default image type of \"<strong>Insert Photo</strong>\" button in post "
2843
  "content area"
2844
  msgstr ""
2845
 
2846
- #: admin/settings-options.php:181
2847
  msgid "Image only"
2848
  msgstr ""
2849
 
2850
- #: admin/settings-options.php:182
2851
  msgid "Image with link"
2852
  msgstr ""
2853
 
2854
- #: admin/settings-options.php:188
2855
  msgid "Enable Image Caption"
2856
  msgstr ""
2857
 
2858
- #: admin/settings-options.php:189
2859
  msgid "Allow users to update image/video title, caption and description"
2860
  msgstr ""
2861
 
2862
- #: admin/settings-options.php:195
2863
  msgid "Default Post Form"
2864
  msgstr ""
2865
 
2866
- #: admin/settings-options.php:196
2867
  msgid "Fallback form for post editing if no associated form found"
2868
  msgstr ""
2869
 
2870
- #: admin/settings-options.php:204
2871
  msgid "Users can edit post?"
2872
  msgstr ""
2873
 
2874
- #: admin/settings-options.php:205
2875
  msgid "Users will be able to edit their own posts"
2876
  msgstr ""
2877
 
2878
- #: admin/settings-options.php:215
2879
  msgid "User can delete post?"
2880
  msgstr ""
2881
 
2882
- #: admin/settings-options.php:216
2883
  msgid "Users will be able to delete their own posts"
2884
  msgstr ""
2885
 
2886
- #: admin/settings-options.php:226
2887
  msgid "Pending Post Edit"
2888
  msgstr ""
2889
 
2890
- #: admin/settings-options.php:227
2891
  msgid "Disable post editing while post in \"pending\" status"
2892
  msgstr ""
2893
 
2894
- #: admin/settings-options.php:233
2895
  msgid "Posts per page"
2896
  msgstr ""
2897
 
2898
- #: admin/settings-options.php:234
2899
  msgid "How many posts will be listed in a page"
2900
  msgstr ""
2901
 
2902
- #: admin/settings-options.php:240
2903
  msgid "Show user bio"
2904
  msgstr ""
2905
 
2906
- #: admin/settings-options.php:241
2907
  msgid "Users biographical info will be shown"
2908
  msgstr ""
2909
 
2910
- #: admin/settings-options.php:247
2911
  msgid "Show post count"
2912
  msgstr ""
2913
 
2914
- #: admin/settings-options.php:248
2915
  msgid "Show how many posts are created by the user"
2916
  msgstr ""
2917
 
2918
- #: admin/settings-options.php:254
2919
  msgid "Show Featured Image"
2920
  msgstr ""
2921
 
2922
- #: admin/settings-options.php:255
2923
  msgid "Show featured image of the post (Overridden by Shortcode)"
2924
  msgstr ""
2925
 
2926
- #: admin/settings-options.php:260
2927
  msgid "Featured Image size"
2928
  msgstr ""
2929
 
2930
- #: admin/settings-options.php:274
2931
  msgid "Account Page"
2932
  msgstr ""
2933
 
2934
- #: admin/settings-options.php:275
2935
  msgid "Select the page which contains <code>[wpuf_account]</code> shortcode"
2936
  msgstr ""
2937
 
2938
- #: admin/settings-options.php:281
2939
  msgid "Show Subscriptions"
2940
  msgstr ""
2941
 
2942
- #: admin/settings-options.php:282
2943
  msgid ""
2944
  "Show Subscriptions tab in \"my account\" page where "
2945
  "<code>[wpuf_account]</code> is located"
2946
  msgstr ""
2947
 
2948
- #: admin/settings-options.php:288
 
2949
  msgid "Show Billing Address"
2950
  msgstr ""
2951
 
2952
- #: admin/settings-options.php:289
2953
  msgid "Show billing address in account page."
2954
  msgstr ""
2955
 
2956
- #: admin/settings-options.php:297
2957
  msgid "Auto Login After Registration"
2958
  msgstr ""
2959
 
2960
- #: admin/settings-options.php:298
2961
  msgid "If enabled, users after registration will be logged in to the system"
2962
  msgstr ""
2963
 
2964
- #: admin/settings-options.php:304
2965
  msgid "Login/Registration override"
2966
  msgstr ""
2967
 
2968
- #: admin/settings-options.php:305
2969
  msgid ""
2970
  "If enabled, default login and registration forms will be overridden by WPUF "
2971
  "with pages below"
2972
  msgstr ""
2973
 
2974
- #: admin/settings-options.php:311
2975
  msgid "Registration Page"
2976
  msgstr ""
2977
 
2978
- #: admin/settings-options.php:312
2979
  msgid ""
2980
  "Select the page you want to use as registration page override <em>(should "
2981
  "have shortcode)</em>"
2982
  msgstr ""
2983
 
2984
- #: admin/settings-options.php:318
2985
  msgid "Login Page"
2986
  msgstr ""
2987
 
2988
- #: admin/settings-options.php:319
2989
  msgid "Select the page which contains <code>[wpuf-login]</code> shortcode"
2990
  msgstr ""
2991
 
2992
- #: admin/settings-options.php:325
2993
  msgid "Redirect After Login"
2994
  msgstr ""
2995
 
2996
- #: admin/settings-options.php:326
2997
  msgid "After successfull login, where the page will redirect to"
2998
  msgstr ""
2999
 
3000
- #: admin/settings-options.php:332
3001
  msgid "Default Login Redirect"
3002
  msgstr ""
3003
 
3004
- #: admin/settings-options.php:333
3005
  msgid ""
3006
  "If enabled, users who login using WordPress default login form will be "
3007
  "redirected to the selected page."
3008
  msgstr ""
3009
 
3010
- #: admin/settings-options.php:343
3011
  msgid "Enable payments on your site."
3012
  msgstr ""
3013
 
3014
- #: admin/settings-options.php:349
3015
  msgid "Subscription Pack Page"
3016
  msgstr ""
3017
 
3018
- #: admin/settings-options.php:350
3019
  msgid "Select the page where <code>[wpuf_sub_pack]</code> located."
3020
  msgstr ""
3021
 
3022
- #: admin/settings-options.php:356
3023
  msgid "Subscription at registration"
3024
  msgstr ""
3025
 
3026
- #: admin/settings-options.php:357
3027
  msgid "Registration time redirect to subscription page"
3028
  msgstr ""
3029
 
3030
- #: admin/settings-options.php:362
3031
  msgid "Currency"
3032
  msgstr ""
3033
 
3034
- #: admin/settings-options.php:369
3035
  msgid "Currency Position"
3036
  msgstr ""
3037
 
3038
- #: admin/settings-options.php:373
3039
  msgid "Left"
3040
  msgstr ""
3041
 
3042
- #: admin/settings-options.php:374
3043
  msgid "Right"
3044
  msgstr ""
3045
 
3046
- #: admin/settings-options.php:375
3047
  msgid "Left with space"
3048
  msgstr ""
3049
 
3050
- #: admin/settings-options.php:376
3051
  msgid "Right with space"
3052
  msgstr ""
3053
 
3054
- #: admin/settings-options.php:381
3055
  msgid "Thousand Separator"
3056
  msgstr ""
3057
 
3058
- #: admin/settings-options.php:382
3059
  msgid "This sets the thousand separator of displayed prices."
3060
  msgstr ""
3061
 
3062
- #: admin/settings-options.php:390
3063
  msgid "Decimal Separator"
3064
  msgstr ""
3065
 
3066
- #: admin/settings-options.php:391
3067
  msgid "This sets the decimal separator of displayed prices."
3068
  msgstr ""
3069
 
3070
- #: admin/settings-options.php:398
3071
  msgid "Number of Decimals"
3072
  msgstr ""
3073
 
3074
- #: admin/settings-options.php:399
3075
  msgid "This sets the number of decimal points shown in displayed prices."
3076
  msgstr ""
3077
 
3078
- #: admin/settings-options.php:409
3079
  msgid "Enable demo/sandbox mode"
3080
  msgstr ""
3081
 
3082
- #: admin/settings-options.php:410
3083
  msgid "When sandbox mode is active, all payment gateway will be used in demo mode"
3084
  msgstr ""
3085
 
3086
- #: admin/settings-options.php:416
3087
  msgid "Payment Page"
3088
  msgstr ""
3089
 
3090
- #: admin/settings-options.php:417
3091
  msgid "This page will be used to process payment options"
3092
  msgstr ""
3093
 
3094
- #: admin/settings-options.php:423
3095
  msgid "Payment Success Page"
3096
  msgstr ""
3097
 
3098
- #: admin/settings-options.php:424 lib/gateway/bank.php:37
3099
  msgid "After payment users will be redirected here"
3100
  msgstr ""
3101
 
3102
- #: admin/settings-options.php:430
3103
  msgid "Payment Gateways"
3104
  msgstr ""
3105
 
3106
- #: admin/settings-options.php:431
3107
  msgid "Active payment gateways"
3108
  msgstr ""
3109
 
3110
- #: admin/settings-options.php:439
3111
  msgid "<span class=\"dashicons dashicons-universal-access-alt\"></span> Guest Email"
3112
  msgstr ""
3113
 
3114
- #: admin/settings-options.php:445
3115
  msgid "Guest mail subject"
3116
  msgstr ""
3117
 
3118
- #: admin/settings-options.php:446
3119
  msgid "This sets the subject of the emails sent to guest users"
3120
  msgstr ""
3121
 
3122
- #: admin/settings-options.php:453
3123
  msgid "Guest mail body"
3124
  msgstr ""
3125
 
3126
- #: admin/settings-options.php:454
3127
  msgid ""
3128
  "This sets the body of the emails sent to guest users. Please DON'T edit the "
3129
  "<code>{activation_link}</code> part, you can use {sitename} too."
3130
  msgstr ""
3131
 
3132
- #: admin/settings-options.php:478
 
 
 
 
 
 
 
 
3133
  msgid ""
3134
  "Select profile/registration forms for user roles. These forms will be used "
3135
  "to populate extra edit profile fields in backend."
3136
  msgstr ""
3137
 
3138
- #: admin/settings-options.php:489
3139
  msgid " - select - "
3140
  msgstr ""
3141
 
@@ -3228,23 +3299,23 @@ msgstr ""
3228
  msgid "Install Now"
3229
  msgstr ""
3230
 
3231
- #: class/asset-loader.php:31 wpuf.php:427
3232
  msgid "is required"
3233
  msgstr ""
3234
 
3235
- #: class/asset-loader.php:32 wpuf.php:428
3236
  msgid "does not match"
3237
  msgstr ""
3238
 
3239
- #: class/asset-loader.php:33 wpuf.php:429
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
 
@@ -3390,59 +3461,60 @@ msgstr ""
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
 
3397
- #: class/payment.php:158
3398
  msgid "Pricing & Plans"
3399
  msgstr ""
3400
 
3401
- #: class/payment.php:160
3402
  msgid "Change Pack"
3403
  msgstr ""
3404
 
3405
- #: class/payment.php:174
3406
  msgid "Selected Pack "
3407
  msgstr ""
3408
 
3409
- #: class/payment.php:175
3410
  msgid "Pack Price "
3411
  msgstr ""
3412
 
3413
- #: class/payment.php:179 class/payment.php:225
3414
  msgid "Total"
3415
  msgstr ""
3416
 
3417
- #: class/payment.php:191
3418
  msgid "Apply Coupon"
3419
  msgstr ""
3420
 
3421
- #: class/payment.php:195
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
 
@@ -3455,6 +3527,52 @@ msgstr ""
3455
  msgid "Form for creating a blog post."
3456
  msgstr ""
3457
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3458
  #: class/render-form.php:76
3459
  msgid "Really Simple Captcha validation failed"
3460
  msgstr ""
@@ -3494,7 +3612,7 @@ 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,57 +3652,61 @@ msgstr ""
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
 
@@ -3602,7 +3724,7 @@ msgstr ""
3602
 
3603
  #: class/transactions-list-table.php:41
3604
  #: includes/class-list-table-subscribers.php:44
3605
- #: templates/dashboard/posts.php:76 templates/dashboard.php:114
3606
  msgid "Status"
3607
  msgstr ""
3608
 
@@ -3614,15 +3736,17 @@ msgstr ""
3614
  msgid "Cost"
3615
  msgstr ""
3616
 
3617
- #: class/transactions-list-table.php:44
3618
  msgid "Tax"
3619
  msgstr ""
3620
 
3621
- #: class/transactions-list-table.php:45
 
3622
  msgid "Post ID"
3623
  msgstr ""
3624
 
3625
- #: class/transactions-list-table.php:46
 
3626
  msgid "Pack ID"
3627
  msgstr ""
3628
 
@@ -3697,45 +3821,85 @@ msgstr ""
3697
  msgid "No Thanks"
3698
  msgstr ""
3699
 
3700
- #: includes/class-billing-address.php:56
 
 
 
 
3701
  msgid "Choose a country"
3702
  msgstr ""
3703
 
3704
- #: includes/class-billing-address.php:75
3705
  msgid "Choose a state"
3706
  msgstr ""
3707
 
3708
- #: includes/class-billing-address.php:80
3709
  #: templates/dashboard/billing-address.php:42
3710
  msgid "Address Line 1 "
3711
  msgstr ""
3712
 
3713
- #: includes/class-billing-address.php:86
3714
  #: templates/dashboard/billing-address.php:49
3715
  msgid "Address Line 2 "
3716
  msgstr ""
3717
 
3718
- #: includes/class-billing-address.php:92
 
3719
  #: templates/dashboard/billing-address.php:56
3720
  msgid "City"
3721
  msgstr ""
3722
 
3723
- #: includes/class-billing-address.php:98
3724
- #: templates/dashboard/billing-address.php:73
3725
  msgid "Postal Code/ZIP"
3726
  msgstr ""
3727
 
3728
- #: includes/class-billing-address.php:104
3729
  #: templates/dashboard/billing-address.php:101
3730
  msgid "Update Billing Address"
3731
  msgstr ""
3732
 
3733
- #: includes/class-billing-address.php:140
3734
  #: templates/dashboard/billing-address.php:24
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
 
@@ -3783,7 +3947,7 @@ msgstr ""
3783
  msgid "Subscription ID"
3784
  msgstr ""
3785
 
3786
- #: includes/class-list-table-subscribers.php:46
3787
  msgid "Transaction ID"
3788
  msgstr ""
3789
 
@@ -3839,19 +4003,19 @@ msgstr ""
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
 
@@ -3895,7 +4059,7 @@ msgstr ""
3895
 
3896
  #: includes/class-login-widget.php:265 includes/free/edit-profile.php:101
3897
  #: includes/free/edit-user.php:93 includes/free/edit-user.php:145
3898
- #: templates/login-form.php:22 templates/registration-form.php:51
3899
  msgid "Username"
3900
  msgstr ""
3901
 
@@ -3949,6 +4113,310 @@ msgstr ""
3949
  msgid "Password Reset Label:"
3950
  msgstr ""
3951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3952
  #: includes/class-user-subscription.php:63
3953
  msgid "The subscription pack has expired. Please buy a pack."
3954
  msgstr ""
@@ -4158,19 +4626,19 @@ msgid ""
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
 
@@ -4211,10 +4679,6 @@ msgstr ""
4211
  msgid "Usernames cannot be changed."
4212
  msgstr ""
4213
 
4214
- #: includes/free/edit-profile.php:110
4215
- msgid "Last Name"
4216
- msgstr ""
4217
-
4218
  #: includes/free/edit-profile.php:115
4219
  msgid "Nickname"
4220
  msgstr ""
@@ -4694,14 +5158,6 @@ msgstr ""
4694
  msgid "PayPal API signature"
4695
  msgstr ""
4696
 
4697
- #: templates/dashboard/billing-address.php:63
4698
- msgid "State/Province/Region"
4699
- msgstr ""
4700
-
4701
- #: templates/dashboard/billing-address.php:78
4702
- msgid "Country"
4703
- msgstr ""
4704
-
4705
  #: templates/dashboard/dashboard.php:5
4706
  msgid "Hello %1$s, (not %1$s? <a href=\"%2$s\">Sign out</a>)"
4707
  msgstr ""
@@ -4749,31 +5205,31 @@ msgstr ""
4749
  msgid "You have created <span>%d</span> %s"
4750
  msgstr ""
4751
 
4752
- #: templates/dashboard/posts.php:105 templates/dashboard.php:143
4753
  msgid "No Image"
4754
  msgstr ""
4755
 
4756
- #: templates/dashboard/posts.php:119 templates/dashboard.php:157
4757
  msgid "Permalink to %s"
4758
  msgstr ""
4759
 
4760
- #: templates/dashboard/posts.php:135 templates/dashboard.php:222
4761
  msgid "Pay Now"
4762
  msgstr ""
4763
 
4764
- #: templates/dashboard/posts.php:160 templates/dashboard.php:253
4765
  msgid "Are you sure to delete?"
4766
  msgstr ""
4767
 
4768
- #: templates/dashboard/posts.php:180 templates/dashboard.php:273
4769
  msgid "&laquo;"
4770
  msgstr ""
4771
 
4772
- #: templates/dashboard/posts.php:181 templates/dashboard.php:274
4773
  msgid "&raquo;"
4774
  msgstr ""
4775
 
4776
- #: templates/dashboard/posts.php:195 templates/dashboard.php:288
4777
  msgid "No %s found"
4778
  msgstr ""
4779
 
@@ -4789,12 +5245,8 @@ msgstr ""
4789
  msgid "%s's Dashboard"
4790
  msgstr ""
4791
 
4792
- #: templates/dashboard.php:15
4793
- msgid "You have created <span>%d</span> (%s)"
4794
- msgstr ""
4795
-
4796
- #: templates/dashboard.php:88
4797
- msgid "Category"
4798
  msgstr ""
4799
 
4800
  #: templates/dokan/new-post.php:7
@@ -4813,6 +5265,10 @@ msgstr ""
4813
  msgid "You are currently logged in! %s?"
4814
  msgstr ""
4815
 
 
 
 
 
4816
  #: templates/lost-pass-form.php:21
4817
  msgid "Get New Password"
4818
  msgstr ""
@@ -4893,215 +5349,215 @@ msgstr ""
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,7 +5577,11 @@ msgstr ""
5121
  msgid "Your Post Has Been Expired"
5122
  msgstr ""
5123
 
5124
- #: wpuf.php:657
 
 
 
 
5125
  msgid "Error: Nonce verification failed"
5126
  msgstr ""
5127
 
@@ -5203,7 +5663,7 @@ msgctxt "enhanced select"
5203
  msgid "Searching&hellip;"
5204
  msgstr ""
5205
 
5206
- #: wpuf-functions.php:1113
5207
  msgctxt "tag delimiter"
5208
  msgid ","
5209
  msgstr ""
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP User Frontend 2.8.9\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2018-06-06 07:29:28+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
127
  msgid "Amount"
128
  msgstr ""
129
 
130
+ #: admin/class-admin-subscription.php:196 includes/class-privacy.php:485
131
+ #: includes/free/subscription.php:8
132
  msgid "Recurring"
133
  msgstr ""
134
 
138
 
139
  #: admin/class-admin-subscription.php:216
140
  #: admin/class-admin-subscription.php:570 class/frontend-account.php:126
141
+ #: class/subscription.php:847 includes/class-user-subscription.php:307
142
  #: templates/subscriptions/pack-details.php:26
143
  msgid "Free"
144
  msgstr ""
149
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:526
150
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:584
151
  #: admin/form.php:805 admin/html/form-settings-display.php:41
152
+ #: admin/post-forms-list-table.php:344 admin/settings-options.php:112
153
+ #: admin/settings-options.php:123 admin/settings-options.php:215
154
+ #: admin/settings-options.php:226 admin/template.php:70
155
  #: includes/free/form-element.php:477
156
  msgid "Yes"
157
  msgstr ""
162
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:527
163
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:585
164
  #: admin/form.php:806 admin/html/form-settings-display.php:40
165
+ #: admin/post-forms-list-table.php:345 admin/settings-options.php:113
166
+ #: admin/settings-options.php:124 admin/settings-options.php:216
167
+ #: admin/settings-options.php:227 admin/template.php:71
168
  #: includes/free/form-element.php:478
169
  msgid "No"
170
  msgstr ""
204
  msgstr ""
205
 
206
  #: admin/class-admin-subscription.php:421 admin/html/form-settings-post.php:57
207
+ #: admin/post-forms-list-table.php:297
208
  msgid "Post Status"
209
  msgstr ""
210
 
296
 
297
  #: admin/class-admin-subscription.php:754
298
  #: admin/form-builder/class-wpuf-admin-form-builder.php:329
299
+ #: class/payment.php:199 class/subscription.php:778
300
  #: includes/class-list-table-subscribers.php:128
301
  #: lib/class-wedevs-insights.php:667 templates/dashboard/subscription.php:61
302
  msgid "Cancel"
328
 
329
  #: admin/class-tools.php:39 admin/class-tools.php:95
330
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:86
331
+ #: includes/class-list-table-subscribers.php:126 wpuf-functions.php:2489
332
  msgid "All"
333
  msgstr ""
334
 
634
  msgstr ""
635
 
636
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:63
637
+ #: admin/template.php:67 includes/class-customizer.php:107
638
  msgid "Required"
639
  msgstr ""
640
 
679
  msgstr ""
680
 
681
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:110
682
+ #: admin/html/form-settings-display.php:19 includes/class-customizer.php:105
683
  msgid "Hidden"
684
  msgstr ""
685
 
816
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:404
817
  #: admin/template.php:398 admin/template.php:422 admin/template.php:454
818
  #: admin/template.php:486 templates/dashboard/posts.php:85
819
+ #: templates/dashboard.php:125
820
  msgid "Options"
821
  msgstr ""
822
 
904
 
905
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:697
906
  #: admin/html/form-submission-restriction.php:12 admin/html/support.php:224
907
+ #: class/transactions-list-table.php:49 includes/class-privacy.php:369
908
+ #: includes/free/edit-user.php:153 templates/registration-form.php:44
909
  msgid "Email"
910
  msgstr ""
911
 
963
  #: admin/form-builder/class-wpuf-form-builder-field-settings.php:926
964
  #: admin/template.php:544 admin/template.php:604 admin/template.php:683
965
  #: class/upload.php:164 templates/dashboard/posts.php:75
966
+ #: templates/dashboard.php:86 wpuf-functions.php:753
967
  msgid "Title"
968
  msgstr ""
969
 
1125
  msgstr ""
1126
 
1127
  #: admin/form.php:74 admin/form.php:112 admin/installer.php:75
1128
+ #: admin/post-forms-list-table.php:391 class/subscription.php:381
1129
  #: includes/free/admin/shortcode-button.php:90 includes/free/edit-user.php:100
1130
+ #: templates/dashboard/posts.php:151 templates/dashboard.php:246
1131
  msgid "Edit"
1132
  msgstr ""
1133
 
1205
  msgid "Save Draft"
1206
  msgstr ""
1207
 
1208
+ #: admin/form.php:550 admin/form.php:557 class/post-form-templates/post.php:20
1209
+ #: includes/class-privacy.php:423
1210
  msgid "Post Title"
1211
  msgstr ""
1212
 
1222
  msgid "Post Body"
1223
  msgstr ""
1224
 
1225
+ #: admin/form.php:646 admin/form.php:653 class/post-form-templates/post.php:85
1226
+ #: templates/dashboard.php:112
1227
  msgid "Excerpt"
1228
  msgstr ""
1229
 
1230
+ #: admin/form.php:705 admin/form.php:712 class/post-form-templates/post.php:72
1231
+ #: class/post-form-templates/post.php:73 templates/dashboard/posts.php:72
1232
+ #: templates/dashboard.php:83
1233
  msgid "Featured Image"
1234
  msgstr ""
1235
 
1236
+ #: admin/form.php:741 admin/form.php:747 class/post-form-templates/post.php:101
1237
  msgid "Tags"
1238
  msgstr ""
1239
 
1361
  msgid "Payment Options"
1362
  msgstr ""
1363
 
1364
+ #: admin/html/form-settings-payment.php:25 admin/settings-options.php:348
1365
  #: includes/setup-wizard.php:273
1366
  msgid "Enable Payments"
1367
  msgstr ""
1495
  msgid "Update Post Button text"
1496
  msgstr ""
1497
 
1498
+ #: admin/html/form-settings-post.php:7 class/post-form-templates/post.php:118
1499
  msgid "This page is restricted. Please Log in / Register to view this page."
1500
  msgstr ""
1501
 
1511
  msgid "Preview"
1512
  msgstr ""
1513
 
1514
+ #: admin/html/form-settings-post.php:30 admin/post-forms-list-table.php:296
1515
  msgid "Post Type"
1516
  msgstr ""
1517
 
1574
  msgstr ""
1575
 
1576
  #: admin/html/form-submission-restriction.php:29
1577
+ #: admin/post-forms-list-table.php:298
1578
  msgid "Guest Post"
1579
  msgstr ""
1580
 
1653
  msgstr ""
1654
 
1655
  #: admin/html/form-submission-restriction.php:114
1656
+ #: admin/settings-options.php:272
1657
  msgid "Unauthorized Message"
1658
  msgstr ""
1659
 
1660
  #: admin/html/form-submission-restriction.php:117
1661
+ #: admin/settings-options.php:273
1662
  msgid "Not logged in users will see this message"
1663
  msgstr ""
1664
 
1765
  "<strong>offers</strong> and <strong>news updates</strong>."
1766
  msgstr ""
1767
 
1768
+ #: admin/html/support.php:219 includes/class-privacy.php:361
1769
+ #: includes/free/edit-profile.php:105
1770
  msgid "First Name"
1771
  msgstr ""
1772
 
1875
  msgstr ""
1876
 
1877
  #: admin/html/whats-new.php:8
1878
+ msgid "Changed text domain to `wp-user-frontend` from `wpuf` "
1879
  msgstr ""
1880
 
1881
  #: admin/html/whats-new.php:10
1882
+ msgid ""
1883
+ "If you are using other language than English. Please <b>rename</b> your "
1884
+ "<i>.po and .mo </i> files to `wp-user-frontend_` from `wpuf_` <br> This "
1885
+ "change was made to support translations from translate.wordpress.org"
1886
  msgstr ""
1887
 
1888
  #: admin/html/whats-new.php:13
1889
+ msgid "Added WP User Frontend Data export and erase functionality."
1890
  msgstr ""
1891
 
1892
  #: admin/html/whats-new.php:15
1893
+ msgid "Added functionality to export WP User Frontend Data to comply with GDPR."
1894
  msgstr ""
1895
 
1896
  #: admin/html/whats-new.php:18
1897
+ msgid "Added billing address customizer."
1898
  msgstr ""
1899
 
1900
  #: admin/html/whats-new.php:20
1901
+ msgid "Added customizer options for billing address in payment page."
1902
  msgstr ""
1903
 
1904
  #: admin/html/whats-new.php:23
1905
+ msgid "Make the payment page responsive."
1906
  msgstr ""
1907
 
1908
  #: admin/html/whats-new.php:25
1909
+ msgid "Some css adjustments are made in payment page to make it responsive."
1910
  msgstr ""
1911
 
1912
  #: admin/html/whats-new.php:28
1913
+ msgid "Fixed image upload issue in Safari."
1914
  msgstr ""
1915
 
1916
  #: admin/html/whats-new.php:30
1917
+ msgid "Images were not showing after upload in safari, it is fixed now."
1918
+ msgstr ""
1919
+
1920
+ #: admin/html/whats-new.php:33
1921
+ msgid "Post update issue after updating or removing post images."
1922
+ msgstr ""
1923
+
1924
+ #: admin/html/whats-new.php:35
1925
+ msgid ""
1926
+ "Posts cannot be updated after updating or removing post images, it is fixed "
1927
+ "now."
1928
+ msgstr ""
1929
+
1930
+ #: admin/html/whats-new.php:44
1931
+ msgid "Allow overriding form input styles using theme styling."
1932
+ msgstr ""
1933
+
1934
+ #: admin/html/whats-new.php:46
1935
+ msgid "Overriding form input styles using theme style is now possible."
1936
+ msgstr ""
1937
+
1938
+ #: admin/html/whats-new.php:49
1939
+ msgid "Fixed Auto Login after registration."
1940
+ msgstr ""
1941
+
1942
+ #: admin/html/whats-new.php:51
1943
+ msgid "Auto Login after registration was not working is fixed now."
1944
+ msgstr ""
1945
+
1946
+ #: admin/html/whats-new.php:54
1947
+ msgid "Fixed fallback cost calculation"
1948
+ msgstr ""
1949
+
1950
+ #: admin/html/whats-new.php:56
1951
+ msgid "Fallback cost calculation was inaccurate for some cases, it is fixed now."
1952
+ msgstr ""
1953
+
1954
+ #: admin/html/whats-new.php:59
1955
+ msgid "Removal of subscription from User Profile gets reverted if updated"
1956
+ msgstr ""
1957
+
1958
+ #: admin/html/whats-new.php:61
1959
+ msgid "User subscription deletion gets reverted if updated is fixed."
1960
+ msgstr ""
1961
+
1962
+ #: admin/html/whats-new.php:64
1963
+ msgid "Show Free pack users in subscribers list."
1964
+ msgstr ""
1965
+
1966
+ #: admin/html/whats-new.php:66
1967
  msgid "Free pack users were not showing in subscribers list, now they will."
1968
  msgstr ""
1969
 
1970
+ #: admin/html/whats-new.php:75
1971
  msgid "WP User Frontend Guten Block is added"
1972
  msgstr ""
1973
 
1974
+ #: admin/html/whats-new.php:77
1975
  msgid ""
1976
  "WPUF Form Block is now available to be used within gutenberg editor with "
1977
  "preview of the form. "
1978
  msgstr ""
1979
 
1980
+ #: admin/html/whats-new.php:80
1981
  msgid "Advanced Custom Fields plugin compatibility"
1982
  msgstr ""
1983
 
1984
+ #: admin/html/whats-new.php:82
1985
  msgid "Now all your ACF fields can be used within WPUF Post forms. "
1986
  msgstr ""
1987
 
1988
+ #: admin/html/whats-new.php:85
1989
  msgid "Taxonomy Terms not showing for custom post types"
1990
  msgstr ""
1991
 
1992
+ #: admin/html/whats-new.php:87
1993
  msgid ""
1994
  "Fixed an issue with taxonomy terms not appearing for Custom Post types "
1995
  "within Form Settings and Dashboard Post Listing"
1996
  msgstr ""
1997
 
1998
+ #: admin/html/whats-new.php:90
1999
  msgid "Various other code optimizations"
2000
  msgstr ""
2001
 
2002
+ #: admin/html/whats-new.php:92 admin/html/whats-new.php:149
2003
  msgid "Code structure organization and optimization for better performance"
2004
  msgstr ""
2005
 
2006
+ #: admin/html/whats-new.php:101
2007
  msgid "WoooCommerce billing address Sync"
2008
  msgstr ""
2009
 
2010
+ #: admin/html/whats-new.php:103
2011
  msgid ""
2012
  "If an existing customer has previously set his billing address, that will "
2013
  "be imported into WPUF Billing address "
2014
  msgstr ""
2015
 
2016
+ #: admin/html/whats-new.php:106
2017
  msgid "Trial subscription message not showing properly"
2018
  msgstr ""
2019
 
2020
+ #: admin/html/whats-new.php:108
2021
  msgid "Subscriptions with Trial now shows trial notices"
2022
  msgstr ""
2023
 
2024
+ #: admin/html/whats-new.php:111
2025
  msgid "Reset email Key not working"
2026
  msgstr ""
2027
 
2028
+ #: admin/html/whats-new.php:113
2029
  msgid "Reset Email key was not working in some cases"
2030
  msgstr ""
2031
 
2032
+ #: admin/html/whats-new.php:116
2033
  msgid "Post count not showing on the frontend dashboard"
2034
  msgstr ""
2035
 
2036
+ #: admin/html/whats-new.php:118
2037
  msgid ""
2038
  "Dashboard with multiple post type was not showing post counts properly, is "
2039
  "now fixed and shows count for each post type"
2040
  msgstr ""
2041
 
2042
+ #: admin/html/whats-new.php:121
2043
  msgid "Login Redirect showing blank page is fixed"
2044
  msgstr ""
2045
 
2046
+ #: admin/html/whats-new.php:123
2047
  msgid ""
2048
  "If \"Previous Page\" was set for redirection, login redirect was "
2049
  "redirecting to blank page for users who hit login page directly"
2050
  msgstr ""
2051
 
2052
+ #: admin/html/whats-new.php:132
2053
  msgid "Enhanced Login Redirect to redirect users to previous page"
2054
  msgstr ""
2055
 
2056
+ #: admin/html/whats-new.php:134
2057
  msgid ""
2058
  "You can choose Previous Page as Login Redirect page settings now to "
2059
  "redirect users to the page from which they went for Login. "
2060
  msgstr ""
2061
 
2062
+ #: admin/html/whats-new.php:137
2063
  msgid "Email HTML links not Rendreing properly issue is fixed"
2064
  msgstr ""
2065
 
2066
+ #: admin/html/whats-new.php:139
2067
  msgid ""
2068
  "For some clients emails were not rendering the HTML links properly, this is "
2069
  "now fixed"
2070
  msgstr ""
2071
 
2072
+ #: admin/html/whats-new.php:142
2073
  msgid "Form Builder : Form Field's Help text styles not showing properly"
2074
  msgstr ""
2075
 
2076
+ #: admin/html/whats-new.php:144
2077
  msgid "Help texts styling is now fixed and much easier to read and understand"
2078
  msgstr ""
2079
 
2080
+ #: admin/html/whats-new.php:147
2081
  msgid "Various other code improvements"
2082
  msgstr ""
2083
 
2084
+ #: admin/html/whats-new.php:158
2085
  msgid "Dashboard Post Listing now supports multiple post types"
2086
  msgstr ""
2087
 
2088
+ #: admin/html/whats-new.php:160
2089
  msgid ""
2090
  "Now you can show multiple post type in user dashboard using shortcode like "
2091
  "this : <br><b>[wpuf_dashboard post_type=\"post,page,custom_type\"]</b> "
2092
  msgstr ""
2093
 
2094
+ #: admin/html/whats-new.php:163
2095
  msgid "Added Login Redirect Settings"
2096
  msgstr ""
2097
 
2098
+ #: admin/html/whats-new.php:165
2099
  msgid ""
2100
  "You can now set a page from <i>WPUF Settings > Login/Registration > "
2101
  "Redirect after Login</i>. When login redirection is active the user will be "
2102
  "redirected to this page after login."
2103
  msgstr ""
2104
 
2105
+ #: admin/html/whats-new.php:168
2106
  msgid "Image Upload field button text can be changed"
2107
  msgstr ""
2108
 
2109
+ #: admin/html/whats-new.php:170
2110
  msgid ""
2111
  "The upload button text can now be changed for image upload fields which "
2112
  "defaults to \"Select Image\" if not set. "
2113
  msgstr ""
2114
 
2115
+ #: admin/html/whats-new.php:173
2116
  msgid "Multi Step Form styles made compatible with more themes"
2117
  msgstr ""
2118
 
2119
+ #: admin/html/whats-new.php:175
2120
  msgid "Multi Step form can now be styled more easily with other themes "
2121
  msgstr ""
2122
 
2123
+ #: admin/html/whats-new.php:178
2124
  msgid "Required field condition for google map not working is fixed"
2125
  msgstr ""
2126
 
2127
+ #: admin/html/whats-new.php:180
2128
  msgid ""
2129
  "If Google Map field was set as required users were able to submit form "
2130
  "without changing the default value."
2131
  msgstr ""
2132
 
2133
+ #: admin/html/whats-new.php:189
2134
  msgid "Admin form builder is now fully responsive."
2135
  msgstr ""
2136
 
2137
+ #: admin/html/whats-new.php:191
2138
  msgid ""
2139
  "Now you can edit forms from your mobile devices directly. Our improved "
2140
  "responsive layouts of form builder makes it easy for you to build forms on "
2141
  "the go."
2142
  msgstr ""
2143
 
2144
+ #: admin/html/whats-new.php:194
2145
  msgid "Added color schemes for creating attractive form layouts."
2146
  msgstr ""
2147
 
2148
+ #: admin/html/whats-new.php:196
2149
  msgid ""
2150
  "We have added 3 new color schemes for the form layouts which you can choose "
2151
  "from each form's new display settings."
2152
  msgstr ""
2153
 
2154
+ #: admin/html/whats-new.php:199
2155
  msgid "Restrict Free subscription pack to be enabled multiple times "
2156
  msgstr ""
2157
 
2158
+ #: admin/html/whats-new.php:201
2159
  msgid ""
2160
  "Free subscription packs now can only be purchased once and the limit "
2161
  "applies properly"
2162
  msgstr ""
2163
 
2164
+ #: admin/html/whats-new.php:204
2165
  msgid "Various other bug fixes and improvements were made "
2166
  msgstr ""
2167
 
2168
+ #: admin/html/whats-new.php:206
2169
  msgid "Please see the change log to see full details."
2170
  msgstr ""
2171
 
2172
+ #: admin/html/whats-new.php:215
2173
  msgid "Added upgrade function for default category"
2174
  msgstr ""
2175
 
2176
+ #: admin/html/whats-new.php:217
2177
  msgid "Upgrader added to upgrade previously set default post category."
2178
  msgstr ""
2179
 
2180
+ #: admin/html/whats-new.php:220
2181
  msgid "Subscription pack cannot be canceled"
2182
  msgstr ""
2183
 
2184
+ #: admin/html/whats-new.php:222
2185
  msgid ""
2186
  "Fixed recurring subscription pack cannot be canceled from my account page "
2187
  "in subscription details section."
2188
  msgstr ""
2189
 
2190
+ #: admin/html/whats-new.php:225
2191
  msgid "page installer admin notice logic issue"
2192
  msgstr ""
2193
 
2194
+ #: admin/html/whats-new.php:227
2195
  msgid ""
2196
  "Fixed page installer admin notice logic problem due to new payment settings "
2197
  "default value not set."
2198
  msgstr ""
2199
 
2200
+ #: admin/html/whats-new.php:237
2201
  msgid "Setup Wizard"
2202
  msgstr ""
2203
 
2204
+ #: admin/html/whats-new.php:239
2205
  msgid "Setup Wizard added to turn off payment options and install pages."
2206
  msgstr ""
2207
 
2208
+ #: admin/html/whats-new.php:243
2209
  msgid "Multi-select Category"
2210
  msgstr ""
2211
 
2212
+ #: admin/html/whats-new.php:245
2213
  msgid "Add multi-select to default category in post form settings."
2214
  msgstr ""
2215
 
2216
+ #: admin/html/whats-new.php:249
2217
  msgid "Select Text option for Taxonomy"
2218
  msgstr ""
2219
 
2220
+ #: admin/html/whats-new.php:251
2221
  msgid ""
2222
  "Add Select Text option for taxonomy fields. Now you can add default text "
2223
  "with empty value as first option for Taxonomy dropdown."
2224
  msgstr ""
2225
 
2226
+ #: admin/html/whats-new.php:254
2227
  msgid "Taxonomy Checkbox Inline"
2228
  msgstr ""
2229
 
2230
+ #: admin/html/whats-new.php:256
2231
  msgid ""
2232
  "Added checkbox inline option to taxonomy checkbox. You can now display "
2233
  "Taxonomy checkbox fields inline."
2234
  msgstr ""
2235
 
2236
+ #: admin/html/whats-new.php:266
2237
  msgid "Manage schedule for form submission"
2238
  msgstr ""
2239
 
2240
+ #: admin/html/whats-new.php:268
2241
  msgid ""
2242
  "Do not accept form submission if the current date is not between the date "
2243
  "range of the schedule."
2244
  msgstr ""
2245
 
2246
+ #: admin/html/whats-new.php:272
2247
  msgid "Restrict form submission based on the user roles"
2248
  msgstr ""
2249
 
2250
+ #: admin/html/whats-new.php:274
2251
  msgid ""
2252
  "Restrict form submission based on the user roles. Now you can manage user "
2253
  "role base permission on form submission."
2254
  msgstr ""
2255
 
2256
+ #: admin/html/whats-new.php:278
2257
  msgid "Limit how many entries a form will accept"
2258
  msgstr ""
2259
 
2260
+ #: admin/html/whats-new.php:280
2261
  msgid ""
2262
  "Limit how many entries a form will accept and display a custom message when "
2263
  "that limit is reached."
2264
  msgstr ""
2265
 
2266
+ #: admin/html/whats-new.php:284
2267
  msgid "Show/hide Admin Bar"
2268
  msgstr ""
2269
 
2270
+ #: admin/html/whats-new.php:286
2271
  msgid "Control the admin bar visibility based on user roles."
2272
  msgstr ""
2273
 
2274
+ #: admin/html/whats-new.php:290
2275
  msgid "Ajax Login widget"
2276
  msgstr ""
2277
 
2278
+ #: admin/html/whats-new.php:292
2279
  msgid ""
2280
  "Login user is more simple now with Ajax Login Widget. The simple ajax login "
2281
  "form do not required page loading for login."
2282
  msgstr ""
2283
 
2284
+ #: admin/html/whats-new.php:296
2285
  msgid "Form submission with Captcha field"
2286
  msgstr ""
2287
 
2288
+ #: admin/html/whats-new.php:298
2289
  msgid "Form field validation process updated if form submits with captcha field."
2290
  msgstr ""
2291
 
2292
+ #: admin/html/whats-new.php:312
2293
  msgid "What's New in WPUF?"
2294
  msgstr ""
2295
 
2318
  msgstr ""
2319
 
2320
  #: admin/installer.php:73 admin/settings-options.php:23
2321
+ #: includes/free/admin/shortcode-button.php:82 wpuf-functions.php:1501
2322
  msgid "Dashboard"
2323
  msgstr ""
2324
 
2333
 
2334
  #: admin/installer.php:84 class/subscription.php:356 class/subscription.php:376
2335
  #: class/subscription.php:377 class/subscription.php:378
2336
+ #: includes/free/admin/shortcode-button.php:102 wpuf-functions.php:1504
2337
  msgid "Subscription"
2338
  msgstr ""
2339
 
2342
  msgstr ""
2343
 
2344
  #: admin/installer.php:85 templates/dashboard/posts.php:82
2345
+ #: templates/dashboard.php:122
2346
  msgid "Payment"
2347
  msgstr ""
2348
 
2390
  msgid "Published"
2391
  msgstr ""
2392
 
2393
+ #: admin/post-forms-list-table.php:45 admin/post-forms-list-table.php:392
2394
  msgid "Trash"
2395
  msgstr ""
2396
 
2402
  msgid "Move to Trash"
2403
  msgstr ""
2404
 
2405
+ #: admin/post-forms-list-table.php:113 admin/post-forms-list-table.php:404
2406
  msgid "Restore"
2407
  msgstr ""
2408
 
2409
+ #: admin/post-forms-list-table.php:114 admin/post-forms-list-table.php:405
2410
  msgid "Delete Permanently"
2411
  msgstr ""
2412
 
2413
+ #: admin/post-forms-list-table.php:295
2414
  msgid "Form Name"
2415
  msgstr ""
2416
 
2417
+ #: admin/post-forms-list-table.php:299 admin/premium.php:39
2418
  #: includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php:195
2419
  #: includes/free/form-element.php:30
2420
  msgid "Shortcode"
2421
  msgstr ""
2422
 
2423
+ #: admin/post-forms-list-table.php:393
2424
  msgid "Duplicate"
2425
  msgstr ""
2426
 
2427
+ #: admin/post-forms-list-table.php:414 wpuf-functions.php:65
2428
  msgid "Draft"
2429
  msgstr ""
2430
 
2431
  #: admin/posting.php:66 class/asset-loader.php:51 class/render-form.php:1686
2432
+ #: wpuf.php:517
2433
  msgid "Are you sure?"
2434
  msgstr ""
2435
 
2436
+ #: admin/posting.php:72 class/asset-loader.php:57 wpuf.php:525
2437
  msgid "Allowed Files"
2438
  msgstr ""
2439
 
2440
+ #: admin/posting.php:75 class/asset-loader.php:60 wpuf.php:531
2441
  msgid "Maximum number of files reached!"
2442
  msgstr ""
2443
 
2444
+ #: admin/posting.php:76 class/asset-loader.php:61 wpuf.php:532
2445
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
2446
  msgstr ""
2447
 
2448
+ #: admin/posting.php:77 class/asset-loader.php:62 wpuf.php:533
2449
  msgid "You have uploaded an incorrect file type. Please try again."
2450
  msgstr ""
2451
 
2754
  msgid "Login / Registration"
2755
  msgstr ""
2756
 
2757
+ #: admin/settings-options.php:38 includes/class-privacy.php:74
2758
  msgid "Payments"
2759
  msgstr ""
2760
 
2762
  msgid "E-Mails"
2763
  msgstr ""
2764
 
2765
+ #: admin/settings-options.php:48
2766
+ msgid "Privacy Options"
2767
+ msgstr ""
2768
+
2769
+ #: admin/settings-options.php:63
2770
  msgid "Previous Page"
2771
  msgstr ""
2772
 
2773
+ #: admin/settings-options.php:85
2774
  msgid "Show Admin Bar"
2775
  msgstr ""
2776
 
2777
+ #: admin/settings-options.php:86
2778
  msgid "Select user by roles, who can view admin bar in frontend."
2779
  msgstr ""
2780
 
2781
+ #: admin/settings-options.php:93
2782
  msgid "Admin area access"
2783
  msgstr ""
2784
 
2785
+ #: admin/settings-options.php:94
2786
  msgid "Allow you to block specific user role to Ajax request and Media upload."
2787
  msgstr ""
2788
 
2789
+ #: admin/settings-options.php:98
2790
  msgid "Admin Only"
2791
  msgstr ""
2792
 
2793
+ #: admin/settings-options.php:99
2794
  msgid "Admins, Editors"
2795
  msgstr ""
2796
 
2797
+ #: admin/settings-options.php:100
2798
  msgid "Admins, Editors, Authors"
2799
  msgstr ""
2800
 
2801
+ #: admin/settings-options.php:101
2802
  msgid "Admins, Editors, Authors, Contributors"
2803
  msgstr ""
2804
 
2805
+ #: admin/settings-options.php:102
2806
  msgid "Default"
2807
  msgstr ""
2808
 
2809
+ #: admin/settings-options.php:107
2810
  msgid "Override the post edit link"
2811
  msgstr ""
2812
 
2813
+ #: admin/settings-options.php:108
2814
  msgid ""
2815
  "Users see the edit link in post if s/he is capable to edit the post/page. "
2816
  "Selecting <strong>Yes</strong> will override the default WordPress edit "
2817
  "post link in frontend"
2818
  msgstr ""
2819
 
2820
+ #: admin/settings-options.php:118
2821
  msgid "ACF Compatibility"
2822
  msgstr ""
2823
 
2824
+ #: admin/settings-options.php:119
2825
  msgid ""
2826
  "Select <strong>Yes</strong> if you want to make compatible WPUF custom "
2827
  "fields data with advanced custom fields."
2828
  msgstr ""
2829
 
2830
+ #: admin/settings-options.php:129
2831
  msgid "Load Scripts"
2832
  msgstr ""
2833
 
2834
+ #: admin/settings-options.php:130
2835
  msgid "Load scripts/styles in all pages"
2836
  msgstr ""
2837
 
2838
+ #: admin/settings-options.php:136
2839
  msgid "reCAPTCHA Site Key"
2840
  msgstr ""
2841
 
2842
+ #: admin/settings-options.php:140
2843
  msgid "reCAPTCHA Secret Key"
2844
  msgstr ""
2845
 
2846
+ #: admin/settings-options.php:141
2847
  msgid ""
2848
  "<a target=\"_blank\" href=\"https://www.google.com/recaptcha/\">Register "
2849
  "here</a> to get reCaptcha Site and Secret keys."
2850
  msgstr ""
2851
 
2852
+ #: admin/settings-options.php:145
2853
  msgid "Custom CSS codes"
2854
  msgstr ""
2855
 
2856
+ #: admin/settings-options.php:146
2857
  msgid ""
2858
  "If you want to add your custom CSS code, it will be added on page header "
2859
  "wrapped with style tag"
2860
  msgstr ""
2861
 
2862
+ #: admin/settings-options.php:153
2863
  msgid "Edit Page"
2864
  msgstr ""
2865
 
2866
+ #: admin/settings-options.php:154
2867
  msgid "Select the page where <code>[wpuf_edit]</code> is located"
2868
  msgstr ""
2869
 
2870
+ #: admin/settings-options.php:160
2871
  msgid "Default Post Owner"
2872
  msgstr ""
2873
 
2874
+ #: admin/settings-options.php:161
2875
  msgid ""
2876
  "If guest post is enabled and user details are OFF, the posts are assigned "
2877
  "to this user"
2878
  msgstr ""
2879
 
2880
+ #: admin/settings-options.php:168
2881
  msgid "Custom Fields in post"
2882
  msgstr ""
2883
 
2884
+ #: admin/settings-options.php:169
2885
  msgid "Show custom fields on post content area"
2886
  msgstr ""
2887
 
2888
+ #: admin/settings-options.php:175
2889
  msgid "Insert Photo image size"
2890
  msgstr ""
2891
 
2892
+ #: admin/settings-options.php:176
2893
  msgid ""
2894
  "Default image size of \"<strong>Insert Photo</strong>\" button in post "
2895
  "content area"
2896
  msgstr ""
2897
 
2898
+ #: admin/settings-options.php:183
2899
  msgid "Insert Photo image type"
2900
  msgstr ""
2901
 
2902
+ #: admin/settings-options.php:184
2903
  msgid ""
2904
  "Default image type of \"<strong>Insert Photo</strong>\" button in post "
2905
  "content area"
2906
  msgstr ""
2907
 
2908
+ #: admin/settings-options.php:187
2909
  msgid "Image only"
2910
  msgstr ""
2911
 
2912
+ #: admin/settings-options.php:188
2913
  msgid "Image with link"
2914
  msgstr ""
2915
 
2916
+ #: admin/settings-options.php:194
2917
  msgid "Enable Image Caption"
2918
  msgstr ""
2919
 
2920
+ #: admin/settings-options.php:195
2921
  msgid "Allow users to update image/video title, caption and description"
2922
  msgstr ""
2923
 
2924
+ #: admin/settings-options.php:201
2925
  msgid "Default Post Form"
2926
  msgstr ""
2927
 
2928
+ #: admin/settings-options.php:202
2929
  msgid "Fallback form for post editing if no associated form found"
2930
  msgstr ""
2931
 
2932
+ #: admin/settings-options.php:210
2933
  msgid "Users can edit post?"
2934
  msgstr ""
2935
 
2936
+ #: admin/settings-options.php:211
2937
  msgid "Users will be able to edit their own posts"
2938
  msgstr ""
2939
 
2940
+ #: admin/settings-options.php:221
2941
  msgid "User can delete post?"
2942
  msgstr ""
2943
 
2944
+ #: admin/settings-options.php:222
2945
  msgid "Users will be able to delete their own posts"
2946
  msgstr ""
2947
 
2948
+ #: admin/settings-options.php:232
2949
  msgid "Pending Post Edit"
2950
  msgstr ""
2951
 
2952
+ #: admin/settings-options.php:233
2953
  msgid "Disable post editing while post in \"pending\" status"
2954
  msgstr ""
2955
 
2956
+ #: admin/settings-options.php:239
2957
  msgid "Posts per page"
2958
  msgstr ""
2959
 
2960
+ #: admin/settings-options.php:240
2961
  msgid "How many posts will be listed in a page"
2962
  msgstr ""
2963
 
2964
+ #: admin/settings-options.php:246
2965
  msgid "Show user bio"
2966
  msgstr ""
2967
 
2968
+ #: admin/settings-options.php:247
2969
  msgid "Users biographical info will be shown"
2970
  msgstr ""
2971
 
2972
+ #: admin/settings-options.php:253
2973
  msgid "Show post count"
2974
  msgstr ""
2975
 
2976
+ #: admin/settings-options.php:254
2977
  msgid "Show how many posts are created by the user"
2978
  msgstr ""
2979
 
2980
+ #: admin/settings-options.php:260
2981
  msgid "Show Featured Image"
2982
  msgstr ""
2983
 
2984
+ #: admin/settings-options.php:261
2985
  msgid "Show featured image of the post (Overridden by Shortcode)"
2986
  msgstr ""
2987
 
2988
+ #: admin/settings-options.php:266
2989
  msgid "Featured Image size"
2990
  msgstr ""
2991
 
2992
+ #: admin/settings-options.php:280
2993
  msgid "Account Page"
2994
  msgstr ""
2995
 
2996
+ #: admin/settings-options.php:281
2997
  msgid "Select the page which contains <code>[wpuf_account]</code> shortcode"
2998
  msgstr ""
2999
 
3000
+ #: admin/settings-options.php:287
3001
  msgid "Show Subscriptions"
3002
  msgstr ""
3003
 
3004
+ #: admin/settings-options.php:288
3005
  msgid ""
3006
  "Show Subscriptions tab in \"my account\" page where "
3007
  "<code>[wpuf_account]</code> is located"
3008
  msgstr ""
3009
 
3010
+ #: admin/settings-options.php:294 includes/class-customizer.php:23
3011
+ #: includes/class-customizer.php:68
3012
  msgid "Show Billing Address"
3013
  msgstr ""
3014
 
3015
+ #: admin/settings-options.php:295
3016
  msgid "Show billing address in account page."
3017
  msgstr ""
3018
 
3019
+ #: admin/settings-options.php:303
3020
  msgid "Auto Login After Registration"
3021
  msgstr ""
3022
 
3023
+ #: admin/settings-options.php:304
3024
  msgid "If enabled, users after registration will be logged in to the system"
3025
  msgstr ""
3026
 
3027
+ #: admin/settings-options.php:310
3028
  msgid "Login/Registration override"
3029
  msgstr ""
3030
 
3031
+ #: admin/settings-options.php:311
3032
  msgid ""
3033
  "If enabled, default login and registration forms will be overridden by WPUF "
3034
  "with pages below"
3035
  msgstr ""
3036
 
3037
+ #: admin/settings-options.php:317
3038
  msgid "Registration Page"
3039
  msgstr ""
3040
 
3041
+ #: admin/settings-options.php:318
3042
  msgid ""
3043
  "Select the page you want to use as registration page override <em>(should "
3044
  "have shortcode)</em>"
3045
  msgstr ""
3046
 
3047
+ #: admin/settings-options.php:324
3048
  msgid "Login Page"
3049
  msgstr ""
3050
 
3051
+ #: admin/settings-options.php:325
3052
  msgid "Select the page which contains <code>[wpuf-login]</code> shortcode"
3053
  msgstr ""
3054
 
3055
+ #: admin/settings-options.php:331
3056
  msgid "Redirect After Login"
3057
  msgstr ""
3058
 
3059
+ #: admin/settings-options.php:332
3060
  msgid "After successfull login, where the page will redirect to"
3061
  msgstr ""
3062
 
3063
+ #: admin/settings-options.php:338
3064
  msgid "Default Login Redirect"
3065
  msgstr ""
3066
 
3067
+ #: admin/settings-options.php:339
3068
  msgid ""
3069
  "If enabled, users who login using WordPress default login form will be "
3070
  "redirected to the selected page."
3071
  msgstr ""
3072
 
3073
+ #: admin/settings-options.php:349
3074
  msgid "Enable payments on your site."
3075
  msgstr ""
3076
 
3077
+ #: admin/settings-options.php:355
3078
  msgid "Subscription Pack Page"
3079
  msgstr ""
3080
 
3081
+ #: admin/settings-options.php:356
3082
  msgid "Select the page where <code>[wpuf_sub_pack]</code> located."
3083
  msgstr ""
3084
 
3085
+ #: admin/settings-options.php:362
3086
  msgid "Subscription at registration"
3087
  msgstr ""
3088
 
3089
+ #: admin/settings-options.php:363
3090
  msgid "Registration time redirect to subscription page"
3091
  msgstr ""
3092
 
3093
+ #: admin/settings-options.php:368
3094
  msgid "Currency"
3095
  msgstr ""
3096
 
3097
+ #: admin/settings-options.php:375
3098
  msgid "Currency Position"
3099
  msgstr ""
3100
 
3101
+ #: admin/settings-options.php:379
3102
  msgid "Left"
3103
  msgstr ""
3104
 
3105
+ #: admin/settings-options.php:380
3106
  msgid "Right"
3107
  msgstr ""
3108
 
3109
+ #: admin/settings-options.php:381
3110
  msgid "Left with space"
3111
  msgstr ""
3112
 
3113
+ #: admin/settings-options.php:382
3114
  msgid "Right with space"
3115
  msgstr ""
3116
 
3117
+ #: admin/settings-options.php:387
3118
  msgid "Thousand Separator"
3119
  msgstr ""
3120
 
3121
+ #: admin/settings-options.php:388
3122
  msgid "This sets the thousand separator of displayed prices."
3123
  msgstr ""
3124
 
3125
+ #: admin/settings-options.php:396
3126
  msgid "Decimal Separator"
3127
  msgstr ""
3128
 
3129
+ #: admin/settings-options.php:397
3130
  msgid "This sets the decimal separator of displayed prices."
3131
  msgstr ""
3132
 
3133
+ #: admin/settings-options.php:404
3134
  msgid "Number of Decimals"
3135
  msgstr ""
3136
 
3137
+ #: admin/settings-options.php:405
3138
  msgid "This sets the number of decimal points shown in displayed prices."
3139
  msgstr ""
3140
 
3141
+ #: admin/settings-options.php:415
3142
  msgid "Enable demo/sandbox mode"
3143
  msgstr ""
3144
 
3145
+ #: admin/settings-options.php:416
3146
  msgid "When sandbox mode is active, all payment gateway will be used in demo mode"
3147
  msgstr ""
3148
 
3149
+ #: admin/settings-options.php:422
3150
  msgid "Payment Page"
3151
  msgstr ""
3152
 
3153
+ #: admin/settings-options.php:423
3154
  msgid "This page will be used to process payment options"
3155
  msgstr ""
3156
 
3157
+ #: admin/settings-options.php:429
3158
  msgid "Payment Success Page"
3159
  msgstr ""
3160
 
3161
+ #: admin/settings-options.php:430 lib/gateway/bank.php:37
3162
  msgid "After payment users will be redirected here"
3163
  msgstr ""
3164
 
3165
+ #: admin/settings-options.php:436
3166
  msgid "Payment Gateways"
3167
  msgstr ""
3168
 
3169
+ #: admin/settings-options.php:437
3170
  msgid "Active payment gateways"
3171
  msgstr ""
3172
 
3173
+ #: admin/settings-options.php:445
3174
  msgid "<span class=\"dashicons dashicons-universal-access-alt\"></span> Guest Email"
3175
  msgstr ""
3176
 
3177
+ #: admin/settings-options.php:451
3178
  msgid "Guest mail subject"
3179
  msgstr ""
3180
 
3181
+ #: admin/settings-options.php:452
3182
  msgid "This sets the subject of the emails sent to guest users"
3183
  msgstr ""
3184
 
3185
+ #: admin/settings-options.php:459
3186
  msgid "Guest mail body"
3187
  msgstr ""
3188
 
3189
+ #: admin/settings-options.php:460
3190
  msgid ""
3191
  "This sets the body of the emails sent to guest users. Please DON'T edit the "
3192
  "<code>{activation_link}</code> part, you can use {sitename} too."
3193
  msgstr ""
3194
 
3195
+ #: admin/settings-options.php:469
3196
+ msgid "Post Types"
3197
+ msgstr ""
3198
+
3199
+ #: admin/settings-options.php:470
3200
+ msgid "Select the post types you will allow users to export."
3201
+ msgstr ""
3202
+
3203
+ #: admin/settings-options.php:493
3204
  msgid ""
3205
  "Select profile/registration forms for user roles. These forms will be used "
3206
  "to populate extra edit profile fields in backend."
3207
  msgstr ""
3208
 
3209
+ #: admin/settings-options.php:504
3210
  msgid " - select - "
3211
  msgstr ""
3212
 
3299
  msgid "Install Now"
3300
  msgstr ""
3301
 
3302
+ #: class/asset-loader.php:31 wpuf.php:433
3303
  msgid "is required"
3304
  msgstr ""
3305
 
3306
+ #: class/asset-loader.php:32 wpuf.php:434
3307
  msgid "does not match"
3308
  msgstr ""
3309
 
3310
+ #: class/asset-loader.php:33 wpuf.php:435
3311
  msgid "is not valid"
3312
  msgstr ""
3313
 
3314
+ #: class/asset-loader.php:45 wpuf.php:507
3315
  msgid "Please fix the errors to proceed"
3316
  msgstr ""
3317
 
3318
+ #: class/asset-loader.php:47 wpuf.php:509
3319
  msgid "Word limit reached"
3320
  msgstr ""
3321
 
3461
  msgid "You already have activated a free package previously."
3462
  msgstr ""
3463
 
3464
+ #: class/payment.php:139 includes/class-customizer.php:59
3465
+ #: wpuf-functions.php:1505
3466
  msgid "Billing Address"
3467
  msgstr ""
3468
 
3469
+ #: class/payment.php:165
3470
  msgid "Pricing & Plans"
3471
  msgstr ""
3472
 
3473
+ #: class/payment.php:167
3474
  msgid "Change Pack"
3475
  msgstr ""
3476
 
3477
+ #: class/payment.php:181
3478
  msgid "Selected Pack "
3479
  msgstr ""
3480
 
3481
+ #: class/payment.php:182
3482
  msgid "Pack Price "
3483
  msgstr ""
3484
 
3485
+ #: class/payment.php:186 class/payment.php:232 includes/class-privacy.php:349
3486
  msgid "Total"
3487
  msgstr ""
3488
 
3489
+ #: class/payment.php:198
3490
  msgid "Apply Coupon"
3491
  msgstr ""
3492
 
3493
+ #: class/payment.php:202
3494
  msgid "Have a discount code?"
3495
  msgstr ""
3496
 
3497
+ #: class/payment.php:228
3498
  msgid "Post cost"
3499
  msgstr ""
3500
 
3501
+ #: class/payment.php:239
3502
  msgid "Choose Your Payment Method"
3503
  msgstr ""
3504
 
3505
+ #: class/payment.php:275
3506
  msgid "Proceed"
3507
  msgstr ""
3508
 
3509
+ #: class/payment.php:281
3510
  msgid "No Payment gateway found"
3511
  msgstr ""
3512
 
3513
+ #: class/payment.php:445 lib/gateway/bank.php:109
3514
  msgid "[%s] Payment Received"
3515
  msgstr ""
3516
 
3517
+ #: class/payment.php:446
3518
  msgid "New payment received at %s"
3519
  msgstr ""
3520
 
3527
  msgid "Form for creating a blog post."
3528
  msgstr ""
3529
 
3530
+ #: class/post-form-templates/post.php:25
3531
+ msgid "Please enter your post name"
3532
+ msgstr ""
3533
+
3534
+ #: class/post-form-templates/post.php:34 templates/dashboard.php:90
3535
+ msgid "Category"
3536
+ msgstr ""
3537
+
3538
+ #: class/post-form-templates/post.php:37
3539
+ msgid "Select a category for your post"
3540
+ msgstr ""
3541
+
3542
+ #: class/post-form-templates/post.php:53
3543
+ msgid "Post description"
3544
+ msgstr ""
3545
+
3546
+ #: class/post-form-templates/post.php:56
3547
+ msgid "Write the full description of your Post"
3548
+ msgstr ""
3549
+
3550
+ #: class/post-form-templates/post.php:76
3551
+ msgid "Upload the main image of your post"
3552
+ msgstr ""
3553
+
3554
+ #: class/post-form-templates/post.php:88
3555
+ msgid "Provide a short description of this post (optional)"
3556
+ msgstr ""
3557
+
3558
+ #: class/post-form-templates/post.php:104
3559
+ msgid "Separate tags with commas."
3560
+ msgstr ""
3561
+
3562
+ #: class/post-form-templates/post.php:121
3563
+ msgid "Create Post"
3564
+ msgstr ""
3565
+
3566
+ #: class/post-form-templates/post.php:124
3567
+ msgid ""
3568
+ "Post has been updated successfully. <a target=\"_blank\" "
3569
+ "href=\"%link%\">View post</a>"
3570
+ msgstr ""
3571
+
3572
+ #: class/post-form-templates/post.php:126
3573
+ msgid "Update Post"
3574
+ msgstr ""
3575
+
3576
  #: class/render-form.php:76
3577
  msgid "Really Simple Captcha validation failed"
3578
  msgstr ""
3612
 
3613
  #: class/render-form.php:1686 class/transactions-list-table.php:115
3614
  #: class/transactions-list-table.php:181 includes/free/edit-user.php:101
3615
+ #: templates/dashboard/posts.php:162 templates/dashboard.php:257
3616
  msgid "Delete"
3617
  msgstr ""
3618
 
3652
  msgid "Parent Subscription"
3653
  msgstr ""
3654
 
3655
+ #: class/subscription.php:747
3656
  msgid "Payment is complete"
3657
  msgstr ""
3658
 
3659
+ #: class/subscription.php:747
3660
  msgid "Congratulations, your payment has been completed!"
3661
  msgstr ""
3662
 
3663
+ #: class/subscription.php:751 class/subscription.php:755
3664
  msgid "Please buy a subscription pack to post"
3665
  msgstr ""
3666
 
3667
+ #: class/subscription.php:769
3668
  msgid "<p><i>You have a subscription pack activated. </i></p>"
3669
  msgstr ""
3670
 
3671
+ #: class/subscription.php:770
3672
  msgid "<p><i>Pack name: %s </i></p>"
3673
  msgstr ""
3674
 
3675
+ #: class/subscription.php:772
3676
  msgid "<p><i>To cancel the pack, press the following cancel button</i></p>"
3677
  msgstr ""
3678
 
3679
+ #: class/subscription.php:822
3680
  msgid "One time payment"
3681
  msgstr ""
3682
 
3683
+ #: class/subscription.php:829
3684
  msgid "Every"
3685
  msgstr ""
3686
 
3687
+ #: class/subscription.php:836
3688
+ msgid "Trial available for first %s %s"
3689
+ msgstr ""
3690
+
3691
+ #: class/subscription.php:840
3692
  msgid "Buy Now"
3693
  msgstr ""
3694
 
3695
+ #: class/subscription.php:844
3696
  msgid "Sign Up"
3697
  msgstr ""
3698
 
3699
+ #: class/subscription.php:907
3700
  msgid "There is a <strong>%s</strong> charge to add a new post."
3701
  msgstr ""
3702
 
3703
+ #: class/subscription.php:924
3704
  msgid ""
3705
  "Your Subscription pack exhausted. There is a <strong>%s</strong> charge to "
3706
  "add a new post."
3707
  msgstr ""
3708
 
3709
+ #: class/subscription.php:969
3710
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
3711
  msgstr ""
3712
 
3724
 
3725
  #: class/transactions-list-table.php:41
3726
  #: includes/class-list-table-subscribers.php:44
3727
+ #: templates/dashboard/posts.php:76 templates/dashboard.php:116
3728
  msgid "Status"
3729
  msgstr ""
3730
 
3736
  msgid "Cost"
3737
  msgstr ""
3738
 
3739
+ #: class/transactions-list-table.php:44 includes/class-privacy.php:345
3740
  msgid "Tax"
3741
  msgstr ""
3742
 
3743
+ #: class/transactions-list-table.php:45 includes/class-privacy.php:353
3744
+ #: includes/class-privacy.php:419
3745
  msgid "Post ID"
3746
  msgstr ""
3747
 
3748
+ #: class/transactions-list-table.php:46 includes/class-privacy.php:357
3749
+ #: includes/class-privacy.php:473
3750
  msgid "Pack ID"
3751
  msgstr ""
3752
 
3821
  msgid "No Thanks"
3822
  msgstr ""
3823
 
3824
+ #: includes/class-billing-address.php:34
3825
+ msgid "Some Required Fields are not filled!"
3826
+ msgstr ""
3827
+
3828
+ #: includes/class-billing-address.php:147
3829
  msgid "Choose a country"
3830
  msgstr ""
3831
 
3832
+ #: includes/class-billing-address.php:166
3833
  msgid "Choose a state"
3834
  msgstr ""
3835
 
3836
+ #: includes/class-billing-address.php:171
3837
  #: templates/dashboard/billing-address.php:42
3838
  msgid "Address Line 1 "
3839
  msgstr ""
3840
 
3841
+ #: includes/class-billing-address.php:179
3842
  #: templates/dashboard/billing-address.php:49
3843
  msgid "Address Line 2 "
3844
  msgstr ""
3845
 
3846
+ #: includes/class-billing-address.php:187 includes/class-customizer.php:28
3847
+ #: includes/class-customizer.php:73 includes/class-privacy.php:263
3848
  #: templates/dashboard/billing-address.php:56
3849
  msgid "City"
3850
  msgstr ""
3851
 
3852
+ #: includes/class-billing-address.php:194 includes/class-customizer.php:29
3853
+ #: includes/class-customizer.php:74 templates/dashboard/billing-address.php:73
3854
  msgid "Postal Code/ZIP"
3855
  msgstr ""
3856
 
3857
+ #: includes/class-billing-address.php:202
3858
  #: templates/dashboard/billing-address.php:101
3859
  msgid "Update Billing Address"
3860
  msgstr ""
3861
 
3862
+ #: includes/class-billing-address.php:240
3863
  #: templates/dashboard/billing-address.php:24
3864
  msgid "Billing address is updated."
3865
  msgstr ""
3866
 
3867
+ #: includes/class-customizer.php:24 includes/class-customizer.php:69
3868
+ #: includes/class-privacy.php:275 templates/dashboard/billing-address.php:78
3869
+ msgid "Country"
3870
+ msgstr ""
3871
+
3872
+ #: includes/class-customizer.php:25 includes/class-customizer.php:70
3873
+ #: templates/dashboard/billing-address.php:63
3874
+ msgid "State/Province/Region"
3875
+ msgstr ""
3876
+
3877
+ #: includes/class-customizer.php:26 includes/class-customizer.php:71
3878
+ msgid "Address line 1"
3879
+ msgstr ""
3880
+
3881
+ #: includes/class-customizer.php:27 includes/class-customizer.php:72
3882
+ msgid "Address line 2"
3883
+ msgstr ""
3884
+
3885
+ #: includes/class-customizer.php:51
3886
+ msgid "Customize WPUF Settings"
3887
+ msgstr ""
3888
+
3889
+ #: includes/class-customizer.php:62
3890
+ msgid "These options let you change the appearance of the billing address."
3891
+ msgstr ""
3892
+
3893
+ #: includes/class-customizer.php:89 includes/class-customizer.php:100
3894
+ #. Translators: %s field name.
3895
+ msgid "%s field"
3896
+ msgstr ""
3897
+
3898
+ #: includes/class-customizer.php:106
3899
+ msgid "Optional"
3900
+ msgstr ""
3901
+
3902
+ #: includes/class-dokan-integration.php:37 wpuf-functions.php:1502
3903
  msgid "Posts"
3904
  msgstr ""
3905
 
3947
  msgid "Subscription ID"
3948
  msgstr ""
3949
 
3950
+ #: includes/class-list-table-subscribers.php:46 includes/class-privacy.php:333
3951
  msgid "Transaction ID"
3952
  msgstr ""
3953
 
4003
  msgid "Someone has requested a password reset for the following account:"
4004
  msgstr ""
4005
 
4006
+ #: includes/class-login-widget.php:137 includes/free/class-login.php:747
4007
  msgid "Username: %s"
4008
  msgstr ""
4009
 
4010
+ #: includes/class-login-widget.php:138 includes/free/class-login.php:748
4011
  msgid "If this was a mistake, just ignore this email and nothing will happen."
4012
  msgstr ""
4013
 
4014
+ #: includes/class-login-widget.php:139 includes/free/class-login.php:749
4015
  msgid "To reset your password, visit the following address:"
4016
  msgstr ""
4017
 
4018
+ #: includes/class-login-widget.php:144 includes/free/class-login.php:758
4019
  msgid "[%s] Password Reset"
4020
  msgstr ""
4021
 
4059
 
4060
  #: includes/class-login-widget.php:265 includes/free/edit-profile.php:101
4061
  #: includes/free/edit-user.php:93 includes/free/edit-user.php:145
4062
+ #: templates/registration-form.php:51
4063
  msgid "Username"
4064
  msgstr ""
4065
 
4113
  msgid "Password Reset Label:"
4114
  msgstr ""
4115
 
4116
+ #: includes/class-privacy.php:35
4117
+ msgid ""
4118
+ "This sample policy includes the basics around what personal data you may be "
4119
+ "collecting, storing and sharing, as well as who may have access to that "
4120
+ "data. Depending on what settings are enabled and which additional plugins "
4121
+ "are used, the specific information shared by your form will vary. We "
4122
+ "recommend consulting with a lawyer when deciding what information to "
4123
+ "disclose on your privacy policy."
4124
+ msgstr ""
4125
+
4126
+ #: includes/class-privacy.php:38
4127
+ msgid ""
4128
+ "We collect information about you during the form submission process on our "
4129
+ "WordPress website."
4130
+ msgstr ""
4131
+
4132
+ #: includes/class-privacy.php:39
4133
+ msgid "What we collect and store"
4134
+ msgstr ""
4135
+
4136
+ #: includes/class-privacy.php:40
4137
+ msgid "While you visit our , we’ll track:"
4138
+ msgstr ""
4139
+
4140
+ #: includes/class-privacy.php:42
4141
+ msgid ""
4142
+ "Form Fields Data: Forms Fields data includes the available field types when "
4143
+ "creating a form. We’ll use this to, for example, collect informations like "
4144
+ "Name, Email and other available fields."
4145
+ msgstr ""
4146
+
4147
+ #: includes/class-privacy.php:43
4148
+ msgid ""
4149
+ "Location, IP address and browser type: we’ll use this for purposes like "
4150
+ "estimating taxes and shipping. Also, for reducing fraudulent activities and "
4151
+ "prevent identity theft while placing orders"
4152
+ msgstr ""
4153
+
4154
+ #: includes/class-privacy.php:44
4155
+ msgid ""
4156
+ "Transaction Details: we’ll ask you to enter this so we can, for instance, "
4157
+ "provide & regulate subscription packs that you bought and keep track of "
4158
+ "your payment details for subscription packs!"
4159
+ msgstr ""
4160
+
4161
+ #: includes/class-privacy.php:46
4162
+ msgid ""
4163
+ "We’ll also use cookies to keep track of form elements while you’re browsing "
4164
+ "our site."
4165
+ msgstr ""
4166
+
4167
+ #: includes/class-privacy.php:48
4168
+ msgid ""
4169
+ "Note: you may want to further detail your cookie policy, and link to that "
4170
+ "section from here."
4171
+ msgstr ""
4172
+
4173
+ #: includes/class-privacy.php:50
4174
+ msgid ""
4175
+ "When you fill up a form, we’ll ask you to provide information including "
4176
+ "your name, billing address, shipping address, email address, phone number, "
4177
+ "credit card/payment details and optional account information like username "
4178
+ "and password and any other form fields found in the form building options. "
4179
+ "We’ll use this information for purposes, such as, to:"
4180
+ msgstr ""
4181
+
4182
+ #: includes/class-privacy.php:52
4183
+ msgid "Send you information about your account and order"
4184
+ msgstr ""
4185
+
4186
+ #: includes/class-privacy.php:53
4187
+ msgid "Respond to your requests, including transaction details and complaints"
4188
+ msgstr ""
4189
+
4190
+ #: includes/class-privacy.php:54
4191
+ msgid "Process payments and prevent fraud"
4192
+ msgstr ""
4193
+
4194
+ #: includes/class-privacy.php:55
4195
+ msgid "Set up your account"
4196
+ msgstr ""
4197
+
4198
+ #: includes/class-privacy.php:56
4199
+ msgid "Comply with any legal obligations we have, such as calculating taxes"
4200
+ msgstr ""
4201
+
4202
+ #: includes/class-privacy.php:57
4203
+ msgid "Improve our form offerings"
4204
+ msgstr ""
4205
+
4206
+ #: includes/class-privacy.php:58
4207
+ msgid "Send you marketing messages, if you choose to receive them"
4208
+ msgstr ""
4209
+
4210
+ #: includes/class-privacy.php:60
4211
+ msgid ""
4212
+ "If you create an account, we will store your name, address, email and phone "
4213
+ "number, which will be used to populate the form fields for future "
4214
+ "submissions."
4215
+ msgstr ""
4216
+
4217
+ #: includes/class-privacy.php:61
4218
+ msgid ""
4219
+ "We generally store information about you for as long as we need the "
4220
+ "information for the purposes for which we collect and use it, and we are "
4221
+ "not legally required to continue keeping it. For example, we will store "
4222
+ "form submission information for XXX years for tax, accounting and marketing "
4223
+ "purposes. This includes your name, email address and billing and shipping "
4224
+ "addresses."
4225
+ msgstr ""
4226
+
4227
+ #: includes/class-privacy.php:62
4228
+ msgid "Who on our team has access"
4229
+ msgstr ""
4230
+
4231
+ #: includes/class-privacy.php:63
4232
+ msgid ""
4233
+ "Members of our team have access to the information you provide us. For "
4234
+ "example, Administrators and Editors and any body else who has permission "
4235
+ "can access:"
4236
+ msgstr ""
4237
+
4238
+ #: includes/class-privacy.php:65
4239
+ msgid "Form submission information and other details related to it"
4240
+ msgstr ""
4241
+
4242
+ #: includes/class-privacy.php:66
4243
+ msgid ""
4244
+ "Customer information like your name, email address, and billing and "
4245
+ "shipping information."
4246
+ msgstr ""
4247
+
4248
+ #: includes/class-privacy.php:68
4249
+ msgid ""
4250
+ "Our team members have access to this information to help fulfill "
4251
+ "transactions and support you."
4252
+ msgstr ""
4253
+
4254
+ #: includes/class-privacy.php:69
4255
+ msgid "What we share with others"
4256
+ msgstr ""
4257
+
4258
+ #: includes/class-privacy.php:71
4259
+ msgid ""
4260
+ "In this section you should list who you’re sharing data with, and for what "
4261
+ "purpose. This could include, but may not be limited to, analytics, "
4262
+ "marketing, payment gateways, shipping providers, and third party embeds."
4263
+ msgstr ""
4264
+
4265
+ #: includes/class-privacy.php:73
4266
+ msgid ""
4267
+ "We share information with third parties who help us provide our orders and "
4268
+ "store services to you; for example --"
4269
+ msgstr ""
4270
+
4271
+ #: includes/class-privacy.php:76
4272
+ msgid ""
4273
+ "In this subsection you should list which third party payment processors "
4274
+ "you’re using to take payments on your site since these may handle customer "
4275
+ "data. We’ve included PayPal as an example, but you should remove this if "
4276
+ "you’re not using PayPal."
4277
+ msgstr ""
4278
+
4279
+ #: includes/class-privacy.php:78
4280
+ msgid ""
4281
+ "We accept payments through PayPal. When processing payments, some of your "
4282
+ "data will be passed to PayPal, including information required to process or "
4283
+ "support the payment, such as the purchase total and billing information."
4284
+ msgstr ""
4285
+
4286
+ #: includes/class-privacy.php:79
4287
+ msgid ""
4288
+ "Please see the <a "
4289
+ "href=\"https://www.paypal.com/us/webapps/mpp/ua/privacy-full\">PayPal "
4290
+ "Privacy Policy</a> for more details."
4291
+ msgstr ""
4292
+
4293
+ #: includes/class-privacy.php:80
4294
+ msgid ""
4295
+ "Also, we accept payments through Stripe. When processing payments, some of "
4296
+ "your data will be passed to Stripe, including information required to "
4297
+ "process or support the payment, such as the purchase total and billing "
4298
+ "information."
4299
+ msgstr ""
4300
+
4301
+ #: includes/class-privacy.php:81
4302
+ msgid ""
4303
+ "Please see the <a href=\"https://stripe.com/us/privacy\">Stripe Privacy "
4304
+ "Policy</a> for more details."
4305
+ msgstr ""
4306
+
4307
+ #: includes/class-privacy.php:82
4308
+ msgid "Available Modules"
4309
+ msgstr ""
4310
+
4311
+ #: includes/class-privacy.php:83
4312
+ msgid ""
4313
+ "In this subsection you should list which third party modules you’re using "
4314
+ "to increase the functionality of your created forms using WP User Frontend "
4315
+ "since these may handle customer data."
4316
+ msgstr ""
4317
+
4318
+ #: includes/class-privacy.php:84
4319
+ msgid ""
4320
+ "WP User Frontend Pro comes with support for modules like MailChimp, "
4321
+ "ConvertKit, Stipe, Paid Membership Pro, MailPoet, Zapier, GetResponse, "
4322
+ "MailPoet 3, Campaign Monitor, Social Login, BuddyPress. Please note any "
4323
+ "future modules that will be added will have some data transferred to their "
4324
+ "own platform which falls in their own data policy. "
4325
+ msgstr ""
4326
+
4327
+ #: includes/class-privacy.php:85
4328
+ msgid ""
4329
+ "As an example while using MailChimp for your marketing email automation "
4330
+ "service by integrating it with WP User Frontend, some of your data will be "
4331
+ "passed to MailChimp, including information required to process or support "
4332
+ "the email marketing services, such as name, email address and any other "
4333
+ "information that you intend to pass or collect including all collected "
4334
+ "information through subscription. "
4335
+ msgstr ""
4336
+
4337
+ #: includes/class-privacy.php:86
4338
+ msgid ""
4339
+ "Please see the <a href=\"https://mailchimp.com/legal/privacy/\">MailChimp "
4340
+ "Privacy Policy</a> for more details."
4341
+ msgstr ""
4342
+
4343
+ #: includes/class-privacy.php:100 includes/class-privacy.php:131
4344
+ #: includes/class-privacy.php:170
4345
+ msgid "WPUF User Data"
4346
+ msgstr ""
4347
+
4348
+ #: includes/class-privacy.php:105 includes/class-privacy.php:300
4349
+ msgid "WPUF Subscription Data"
4350
+ msgstr ""
4351
+
4352
+ #: includes/class-privacy.php:110 includes/class-privacy.php:329
4353
+ msgid "WPUF Transaction Data"
4354
+ msgstr ""
4355
+
4356
+ #: includes/class-privacy.php:115 includes/class-privacy.php:415
4357
+ msgid "WPUF Post Data"
4358
+ msgstr ""
4359
+
4360
+ #: includes/class-privacy.php:255
4361
+ msgid "Billing Address 1"
4362
+ msgstr ""
4363
+
4364
+ #: includes/class-privacy.php:259
4365
+ msgid "Billing Address 2"
4366
+ msgstr ""
4367
+
4368
+ #: includes/class-privacy.php:267
4369
+ msgid "State"
4370
+ msgstr ""
4371
+
4372
+ #: includes/class-privacy.php:271
4373
+ msgid "Zip"
4374
+ msgstr ""
4375
+
4376
+ #: includes/class-privacy.php:337
4377
+ msgid "Payment Status"
4378
+ msgstr ""
4379
+
4380
+ #: includes/class-privacy.php:341
4381
+ msgid "Subtotal"
4382
+ msgstr ""
4383
+
4384
+ #: includes/class-privacy.php:365 includes/free/edit-profile.php:110
4385
+ msgid "Last Name"
4386
+ msgstr ""
4387
+
4388
+ #: includes/class-privacy.php:373
4389
+ msgid "Payment Type"
4390
+ msgstr ""
4391
+
4392
+ #: includes/class-privacy.php:377
4393
+ msgid "payer_address"
4394
+ msgstr ""
4395
+
4396
+ #: includes/class-privacy.php:385
4397
+ msgid "Transaction Date"
4398
+ msgstr ""
4399
+
4400
+ #: includes/class-privacy.php:427
4401
+ msgid "Post URL"
4402
+ msgstr ""
4403
+
4404
+ #: includes/class-privacy.php:431
4405
+ msgid "Post Date"
4406
+ msgstr ""
4407
+
4408
+ #: includes/class-privacy.php:477
4409
+ msgid "Pack Title"
4410
+ msgstr ""
4411
+
4412
+ #: includes/class-privacy.php:481
4413
+ msgid "Expiry"
4414
+ msgstr ""
4415
+
4416
+ #: includes/class-user-subscription.php:58
4417
+ msgid "You must <a href=\"%s\">purchase a subscription package</a> before posting"
4418
+ msgstr ""
4419
+
4420
  #: includes/class-user-subscription.php:63
4421
  msgid "The subscription pack has expired. Please buy a pack."
4422
  msgstr ""
4626
  "link"
4627
  msgstr ""
4628
 
4629
+ #: includes/free/class-login.php:685 includes/free/class-login.php:701
4630
  msgid "Your account has been activated"
4631
  msgstr ""
4632
 
4633
+ #: includes/free/class-login.php:745
4634
  msgid "Someone requested that the password be reset for the following account:"
4635
  msgstr ""
4636
 
4637
+ #: includes/free/class-login.php:764
4638
  msgid "The e-mail could not be sent."
4639
  msgstr ""
4640
 
4641
+ #: includes/free/class-login.php:764
4642
  msgid "Possible reason: your host may have disabled the mail() function."
4643
  msgstr ""
4644
 
4679
  msgid "Usernames cannot be changed."
4680
  msgstr ""
4681
 
 
 
 
 
4682
  #: includes/free/edit-profile.php:115
4683
  msgid "Nickname"
4684
  msgstr ""
5158
  msgid "PayPal API signature"
5159
  msgstr ""
5160
 
 
 
 
 
 
 
 
 
5161
  #: templates/dashboard/dashboard.php:5
5162
  msgid "Hello %1$s, (not %1$s? <a href=\"%2$s\">Sign out</a>)"
5163
  msgstr ""
5205
  msgid "You have created <span>%d</span> %s"
5206
  msgstr ""
5207
 
5208
+ #: templates/dashboard/posts.php:105 templates/dashboard.php:145
5209
  msgid "No Image"
5210
  msgstr ""
5211
 
5212
+ #: templates/dashboard/posts.php:119 templates/dashboard.php:159
5213
  msgid "Permalink to %s"
5214
  msgstr ""
5215
 
5216
+ #: templates/dashboard/posts.php:135 templates/dashboard.php:224
5217
  msgid "Pay Now"
5218
  msgstr ""
5219
 
5220
+ #: templates/dashboard/posts.php:160 templates/dashboard.php:255
5221
  msgid "Are you sure to delete?"
5222
  msgstr ""
5223
 
5224
+ #: templates/dashboard/posts.php:180 templates/dashboard.php:275
5225
  msgid "&laquo;"
5226
  msgstr ""
5227
 
5228
+ #: templates/dashboard/posts.php:181 templates/dashboard.php:276
5229
  msgid "&raquo;"
5230
  msgstr ""
5231
 
5232
+ #: templates/dashboard/posts.php:195 templates/dashboard.php:290
5233
  msgid "No %s found"
5234
  msgstr ""
5235
 
5245
  msgid "%s's Dashboard"
5246
  msgstr ""
5247
 
5248
+ #: templates/dashboard.php:17
5249
+ msgid "You have created <span>%d</span> (%ss)"
 
 
 
 
5250
  msgstr ""
5251
 
5252
  #: templates/dokan/new-post.php:7
5265
  msgid "You are currently logged in! %s?"
5266
  msgstr ""
5267
 
5268
+ #: templates/login-form.php:22
5269
+ msgid "Username or Email"
5270
+ msgstr ""
5271
+
5272
  #: templates/lost-pass-form.php:21
5273
  msgid "Get New Password"
5274
  msgstr ""
5349
  msgid "CSV"
5350
  msgstr ""
5351
 
5352
+ #: wpuf-functions.php:1503
5353
  msgid "Edit Profile"
5354
  msgstr ""
5355
 
5356
+ #: wpuf-functions.php:1610
5357
  msgid "United Arab Emirates Dirham"
5358
  msgstr ""
5359
 
5360
+ #: wpuf-functions.php:1611
5361
  msgid "Australian Dollars"
5362
  msgstr ""
5363
 
5364
+ #: wpuf-functions.php:1612
5365
  msgid "Argentine Peso"
5366
  msgstr ""
5367
 
5368
+ #: wpuf-functions.php:1613
5369
  msgid "Bangladeshi Taka"
5370
  msgstr ""
5371
 
5372
+ #: wpuf-functions.php:1614
5373
  msgid "Brazilian Real"
5374
  msgstr ""
5375
 
5376
+ #: wpuf-functions.php:1615
5377
  msgid "Bulgarian Lev"
5378
  msgstr ""
5379
 
5380
+ #: wpuf-functions.php:1616
5381
  msgid "Canadian Dollars"
5382
  msgstr ""
5383
 
5384
+ #: wpuf-functions.php:1617
5385
  msgid "Chilean Peso"
5386
  msgstr ""
5387
 
5388
+ #: wpuf-functions.php:1618
5389
  msgid "Chinese Yuan"
5390
  msgstr ""
5391
 
5392
+ #: wpuf-functions.php:1619
5393
  msgid "Colombian Peso"
5394
  msgstr ""
5395
 
5396
+ #: wpuf-functions.php:1620
5397
  msgid "Czech Koruna"
5398
  msgstr ""
5399
 
5400
+ #: wpuf-functions.php:1621
5401
  msgid "Danish Krone"
5402
  msgstr ""
5403
 
5404
+ #: wpuf-functions.php:1622
5405
  msgid "Dominican Peso"
5406
  msgstr ""
5407
 
5408
+ #: wpuf-functions.php:1623
5409
  msgid "Algerian Dinar"
5410
  msgstr ""
5411
 
5412
+ #: wpuf-functions.php:1624
5413
  msgid "Euros"
5414
  msgstr ""
5415
 
5416
+ #: wpuf-functions.php:1625
5417
  msgid "Hong Kong Dollar"
5418
  msgstr ""
5419
 
5420
+ #: wpuf-functions.php:1626
5421
  msgid "Croatia kuna"
5422
  msgstr ""
5423
 
5424
+ #: wpuf-functions.php:1627
5425
  msgid "Hungarian Forint"
5426
  msgstr ""
5427
 
5428
+ #: wpuf-functions.php:1628
5429
  msgid "Icelandic krona"
5430
  msgstr ""
5431
 
5432
+ #: wpuf-functions.php:1629
5433
  msgid "Indonesia Rupiah"
5434
  msgstr ""
5435
 
5436
+ #: wpuf-functions.php:1630
5437
  msgid "Indian Rupee"
5438
  msgstr ""
5439
 
5440
+ #: wpuf-functions.php:1631
5441
  msgid "Nepali Rupee"
5442
  msgstr ""
5443
 
5444
+ #: wpuf-functions.php:1632
5445
  msgid "Israeli Shekel"
5446
  msgstr ""
5447
 
5448
+ #: wpuf-functions.php:1633
5449
  msgid "Japanese Yen"
5450
  msgstr ""
5451
 
5452
+ #: wpuf-functions.php:1634
5453
  msgid "Lao Kip"
5454
  msgstr ""
5455
 
5456
+ #: wpuf-functions.php:1635
5457
  msgid "South Korean Won"
5458
  msgstr ""
5459
 
5460
+ #: wpuf-functions.php:1636
5461
  msgid "Malaysian Ringgits"
5462
  msgstr ""
5463
 
5464
+ #: wpuf-functions.php:1637
5465
  msgid "Mexican Peso"
5466
  msgstr ""
5467
 
5468
+ #: wpuf-functions.php:1638
5469
  msgid "Nigerian Naira"
5470
  msgstr ""
5471
 
5472
+ #: wpuf-functions.php:1639
5473
  msgid "Norwegian Krone"
5474
  msgstr ""
5475
 
5476
+ #: wpuf-functions.php:1640
5477
  msgid "New Zealand Dollar"
5478
  msgstr ""
5479
 
5480
+ #: wpuf-functions.php:1641
5481
  msgid "Omani Rial"
5482
  msgstr ""
5483
 
5484
+ #: wpuf-functions.php:1642
5485
  msgid "Iranian Rial"
5486
  msgstr ""
5487
 
5488
+ #: wpuf-functions.php:1643
5489
  msgid "Pakistani Rupee"
5490
  msgstr ""
5491
 
5492
+ #: wpuf-functions.php:1644
5493
  msgid "Paraguayan Guaraní"
5494
  msgstr ""
5495
 
5496
+ #: wpuf-functions.php:1645
5497
  msgid "Philippine Pesos"
5498
  msgstr ""
5499
 
5500
+ #: wpuf-functions.php:1646
5501
  msgid "Polish Zloty"
5502
  msgstr ""
5503
 
5504
+ #: wpuf-functions.php:1647
5505
  msgid "Pounds Sterling"
5506
  msgstr ""
5507
 
5508
+ #: wpuf-functions.php:1648
5509
  msgid "Romanian Leu"
5510
  msgstr ""
5511
 
5512
+ #: wpuf-functions.php:1649
5513
  msgid "Russian Ruble"
5514
  msgstr ""
5515
 
5516
+ #: wpuf-functions.php:1650
5517
  msgid "Saudi Riyal"
5518
  msgstr ""
5519
 
5520
+ #: wpuf-functions.php:1651
5521
  msgid "Singapore Dollar"
5522
  msgstr ""
5523
 
5524
+ #: wpuf-functions.php:1652
5525
  msgid "South African rand"
5526
  msgstr ""
5527
 
5528
+ #: wpuf-functions.php:1653
5529
  msgid "Swedish Krona"
5530
  msgstr ""
5531
 
5532
+ #: wpuf-functions.php:1654
5533
  msgid "Swiss Franc"
5534
  msgstr ""
5535
 
5536
+ #: wpuf-functions.php:1655
5537
  msgid "Taiwan New Dollars"
5538
  msgstr ""
5539
 
5540
+ #: wpuf-functions.php:1656
5541
  msgid "Thai Baht"
5542
  msgstr ""
5543
 
5544
+ #: wpuf-functions.php:1657
5545
  msgid "Turkish Lira"
5546
  msgstr ""
5547
 
5548
+ #: wpuf-functions.php:1658
5549
  msgid "US Dollar"
5550
  msgstr ""
5551
 
5552
+ #: wpuf-functions.php:1659
5553
  msgid "Vietnamese Dong"
5554
  msgstr ""
5555
 
5556
+ #: wpuf-functions.php:1660
5557
  msgid "Egyptian Pound"
5558
  msgstr ""
5559
 
5560
+ #: wpuf-functions.php:2490
5561
  msgid "None"
5562
  msgstr ""
5563
 
5577
  msgid "Your Post Has Been Expired"
5578
  msgstr ""
5579
 
5580
+ #: wpuf.php:513
5581
+ msgid "Please Cancel Your Currently Active Pack first!"
5582
+ msgstr ""
5583
+
5584
+ #: wpuf.php:670
5585
  msgid "Error: Nonce verification failed"
5586
  msgstr ""
5587
 
5663
  msgid "Searching&hellip;"
5664
  msgstr ""
5665
 
5666
+ #: wpuf-functions.php:1114
5667
  msgctxt "tag delimiter"
5668
  msgid ","
5669
  msgstr ""
lib/class-wedevs-insights.php CHANGED
@@ -323,19 +323,19 @@ class WPUF_WeDevs_Insights {
323
  $optout_url = add_query_arg( $this->slug . '_tracker_optout', 'true' );
324
 
325
  if ( empty( $this->notice ) ) {
326
- $notice = sprintf( __( 'Want to help make <strong>%s</strong> even more awesome? Allow weDevs to collect non-sensitive diagnostic data and usage information.', 'wpuf' ), $this->name );
327
  } else {
328
  $notice = $this->notice;
329
  }
330
 
331
- $notice .= ' (<a class="insights-data-we-collect" href="#">' . __( 'what we collect', 'wpuf' ) . '</a>)';
332
  $notice .= '<p class="description" style="display:none;">' . implode( ', ', $this->data_we_collect() ) . '. No sensitive data is tracked.</p>';
333
 
334
  echo '<div class="updated"><p>';
335
  echo $notice;
336
  echo '</p><p class="submit">';
337
- echo '&nbsp;<a href="' . esc_url( $optin_url ) . '" class="button-primary button-large">' . __( 'Allow', 'wpuf' ) . '</a>';
338
- echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary button-large">' . __( 'No thanks', 'wpuf' ) . '</a>';
339
  echo '</p></div>';
340
 
341
  echo "<script type='text/javascript'>jQuery('.insights-data-we-collect').on('click', function(e) {
@@ -512,7 +512,7 @@ class WPUF_WeDevs_Insights {
512
 
513
  $schedules['weekly'] = array(
514
  'interval' => DAY_IN_SECONDS * 7,
515
- 'display' => __( 'Once Weekly', 'wpuf' )
516
  );
517
 
518
  return $schedules;
@@ -648,7 +648,7 @@ class WPUF_WeDevs_Insights {
648
  <div class="wd-dr-modal" id="<?php echo $this->slug; ?>-wd-dr-modal">
649
  <div class="wd-dr-modal-wrap">
650
  <div class="wd-dr-modal-header">
651
- <h3><?php _e( 'If you have a moment, please let us know why you are deactivating:', 'wpuf' ); ?></h3>
652
  </div>
653
 
654
  <div class="wd-dr-modal-body">
@@ -662,9 +662,9 @@ class WPUF_WeDevs_Insights {
662
  </div>
663
 
664
  <div class="wd-dr-modal-footer">
665
- <a href="#" class="dont-bother-me"><?php _e( 'I rather wouldn\'t say', 'wpuf' ); ?></a>
666
- <button class="button-secondary"><?php _e( 'Submit & Deactivate', 'wpuf' ); ?></button>
667
- <button class="button-primary"><?php _e( 'Cancel', 'wpuf' ); ?></button>
668
  </div>
669
  </div>
670
  </div>
323
  $optout_url = add_query_arg( $this->slug . '_tracker_optout', 'true' );
324
 
325
  if ( empty( $this->notice ) ) {
326
+ $notice = sprintf( __( 'Want to help make <strong>%s</strong> even more awesome? Allow weDevs to collect non-sensitive diagnostic data and usage information.', 'wp-user-frontend' ), $this->name );
327
  } else {
328
  $notice = $this->notice;
329
  }
330
 
331
+ $notice .= ' (<a class="insights-data-we-collect" href="#">' . __( 'what we collect', 'wp-user-frontend' ) . '</a>)';
332
  $notice .= '<p class="description" style="display:none;">' . implode( ', ', $this->data_we_collect() ) . '. No sensitive data is tracked.</p>';
333
 
334
  echo '<div class="updated"><p>';
335
  echo $notice;
336
  echo '</p><p class="submit">';
337
+ echo '&nbsp;<a href="' . esc_url( $optin_url ) . '" class="button-primary button-large">' . __( 'Allow', 'wp-user-frontend' ) . '</a>';
338
+ echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary button-large">' . __( 'No thanks', 'wp-user-frontend' ) . '</a>';
339
  echo '</p></div>';
340
 
341
  echo "<script type='text/javascript'>jQuery('.insights-data-we-collect').on('click', function(e) {
512
 
513
  $schedules['weekly'] = array(
514
  'interval' => DAY_IN_SECONDS * 7,
515
+ 'display' => __( 'Once Weekly', 'wp-user-frontend' )
516
  );
517
 
518
  return $schedules;
648
  <div class="wd-dr-modal" id="<?php echo $this->slug; ?>-wd-dr-modal">
649
  <div class="wd-dr-modal-wrap">
650
  <div class="wd-dr-modal-header">
651
+ <h3><?php _e( 'If you have a moment, please let us know why you are deactivating:', 'wp-user-frontend' ); ?></h3>
652
  </div>
653
 
654
  <div class="wd-dr-modal-body">
662
  </div>
663
 
664
  <div class="wd-dr-modal-footer">
665
+ <a href="#" class="dont-bother-me"><?php _e( 'I rather wouldn\'t say', 'wp-user-frontend' ); ?></a>
666
+ <button class="button-secondary"><?php _e( 'Submit & Deactivate', 'wp-user-frontend' ); ?></button>
667
+ <button class="button-primary"><?php _e( 'Cancel', 'wp-user-frontend' ); ?></button>
668
  </div>
669
  </div>
670
  </div>
lib/class-weforms-upsell.php CHANGED
@@ -74,11 +74,11 @@ class WeForms_Upsell {
74
  <p>weForms is the next generation contact form plugin for WordPress.</p>
75
  </div>
76
  <div class="weforms-upsell-cta">
77
- <button id="weforms-upsell-prompt-btn" class="button"><?php _e( 'Install Now', 'wpuf' ); ?></button>
78
  &nbsp;<a href="#" class="learn-more" data-tube="NJvjy9WFyAM">Learn More</a>
79
  </div>
80
- <button type="button" class="notice-dismiss" style="padding: 3px;" title="<?php _e( 'Dismiss this notice.', 'wpuf' ); ?>">
81
- <span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'wpuf' ); ?></span>
82
  </button>
83
  </div>
84
 
@@ -350,7 +350,7 @@ class WeForms_Upsell {
350
  check_ajax_referer( 'weforms_upsell_installer' );
351
 
352
  if ( ! current_user_can( 'manage_options' ) ) {
353
- wp_send_json_error( __( 'You don\'t have permission to install the plugins', 'wpuf' ) );
354
  }
355
 
356
  $weforms_status = $this->install_plugin( 'weforms', 'weforms.php' );
74
  <p>weForms is the next generation contact form plugin for WordPress.</p>
75
  </div>
76
  <div class="weforms-upsell-cta">
77
+ <button id="weforms-upsell-prompt-btn" class="button"><?php _e( 'Install Now', 'wp-user-frontend' ); ?></button>
78
  &nbsp;<a href="#" class="learn-more" data-tube="NJvjy9WFyAM">Learn More</a>
79
  </div>
80
+ <button type="button" class="notice-dismiss" style="padding: 3px;" title="<?php _e( 'Dismiss this notice.', 'wp-user-frontend' ); ?>">
81
+ <span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'wp-user-frontend' ); ?></span>
82
  </button>
83
  </div>
84
 
350
  check_ajax_referer( 'weforms_upsell_installer' );
351
 
352
  if ( ! current_user_can( 'manage_options' ) ) {
353
+ wp_send_json_error( __( 'You don\'t have permission to install the plugins', 'wp-user-frontend' ) );
354
  }
355
 
356
  $weforms_status = $this->install_plugin( 'weforms', 'weforms.php' );
lib/class.settings-api.php CHANGED
@@ -363,7 +363,7 @@ class WeDevs_Settings_API {
363
  $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
364
  $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';
365
  $id = $args['section'] . '[' . $args['id'] . ']';
366
- $label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : __( 'Choose File', 'wpuf' );
367
 
368
  $html = sprintf( '<input type="text" class="%1$s-text wpsa-url" id="%2$s[%3$s]" name="%2$s[%3$s]" value="%4$s"/>', $size, $args['section'], $args['id'], $value );
369
  $html .= '<input type="button" class="button wpsa-browse" value="' . $label . '" />';
363
  $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
364
  $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';
365
  $id = $args['section'] . '[' . $args['id'] . ']';
366
+ $label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : __( 'Choose File', 'wp-user-frontend' );
367
 
368
  $html = sprintf( '<input type="text" class="%1$s-text wpsa-url" id="%2$s[%3$s]" name="%2$s[%3$s]" value="%4$s"/>', $size, $args['section'], $args['id'], $value );
369
  $html .= '<input type="button" class="button wpsa-browse" value="' . $label . '" />';
lib/gateway/bank.php CHANGED
@@ -26,15 +26,15 @@ class WPUF_Gateway_Bank {
26
 
27
  $options[] = array(
28
  'name' => 'gate_instruct_bank',
29
- 'label' => __( 'Bank Instruction', 'wpuf' ),
30
  'type' => 'textarea',
31
  'default' => "Make your payment directly into our bank account."
32
  );
33
 
34
  $options[] = array(
35
  'name' => 'bank_success',
36
- 'label' => __( 'Bank Payment Success Page', 'wpuf' ),
37
- 'desc' => __( 'After payment users will be redirected here', 'wpuf' ),
38
  'type' => 'select',
39
  'options' => $pages
40
  );
@@ -84,8 +84,8 @@ class WPUF_Gateway_Bank {
84
  */
85
  function order_notify_admin() {
86
 
87
- $subject = sprintf( __( '[%s] New Bank Order Received', 'wpuf' ), get_bloginfo( 'name' ) );
88
- $msg = sprintf( __( 'New bank order received at %s, please check it out: %s', 'wpuf' ), get_bloginfo( 'name' ), admin_url( 'admin.php?page=wpuf_transaction' ) );
89
 
90
  $receiver = get_bloginfo( 'admin_email' );
91
  $subject = apply_filters( 'wpuf_mail_bank_admin_subject', $subject );
@@ -106,10 +106,10 @@ class WPUF_Gateway_Bank {
106
  return;
107
  }
108
 
109
- $subject = sprintf( __( '[%s] Payment Received', 'wpuf' ), get_bloginfo( 'name' ) );
110
- $msg = sprintf( __( 'Hello %s,', 'wpuf' ), $user->display_name ) . "\r\n";
111
- $msg .= __( 'We have received your bank payment.', 'wpuf' ). "\r\n\r\n";
112
- $msg .= __( 'Thanks for being with us.', 'wpuf' ). "\r\n";
113
 
114
  $subject = apply_filters( 'wpuf_mail_bank_user_subject', $subject );
115
  $msg = apply_filters( 'wpuf_mail_bank_user_body', $msg );
26
 
27
  $options[] = array(
28
  'name' => 'gate_instruct_bank',
29
+ 'label' => __( 'Bank Instruction', 'wp-user-frontend' ),
30
  'type' => 'textarea',
31
  'default' => "Make your payment directly into our bank account."
32
  );
33
 
34
  $options[] = array(
35
  'name' => 'bank_success',
36
+ 'label' => __( 'Bank Payment Success Page', 'wp-user-frontend' ),
37
+ 'desc' => __( 'After payment users will be redirected here', 'wp-user-frontend' ),
38
  'type' => 'select',
39
  'options' => $pages
40
  );
84
  */
85
  function order_notify_admin() {
86
 
87
+ $subject = sprintf( __( '[%s] New Bank Order Received', 'wp-user-frontend' ), get_bloginfo( 'name' ) );
88
+ $msg = sprintf( __( 'New bank order received at %s, please check it out: %s', 'wp-user-frontend' ), get_bloginfo( 'name' ), admin_url( 'admin.php?page=wpuf_transaction' ) );
89
 
90
  $receiver = get_bloginfo( 'admin_email' );
91
  $subject = apply_filters( 'wpuf_mail_bank_admin_subject', $subject );
106
  return;
107
  }
108
 
109
+ $subject = sprintf( __( '[%s] Payment Received', 'wp-user-frontend' ), get_bloginfo( 'name' ) );
110
+ $msg = sprintf( __( 'Hello %s,', 'wp-user-frontend' ), $user->display_name ) . "\r\n";
111
+ $msg .= __( 'We have received your bank payment.', 'wp-user-frontend' ). "\r\n\r\n";
112
+ $msg .= __( 'Thanks for being with us.', 'wp-user-frontend' ). "\r\n";
113
 
114
  $subject = apply_filters( 'wpuf_mail_bank_user_subject', $subject );
115
  $msg = apply_filters( 'wpuf_mail_bank_user_body', $msg );
lib/gateway/paypal.php CHANGED
@@ -58,7 +58,7 @@ class WPUF_Paypal {
58
  'METHOD' => 'ManageRecurringPaymentsProfileStatus',
59
  'PROFILEID' => $profile_id,
60
  'ACTION' => ucfirst( $new_status ),
61
- 'NOTE' => sprintf( __( 'Subscription %s at %s', 'wpuf' ), $new_status_string, get_bloginfo( 'name' ) ),
62
  );
63
 
64
  // Send back post vars to paypal
@@ -88,27 +88,27 @@ class WPUF_Paypal {
88
 
89
  $options[] = array(
90
  'name' => 'paypal_email',
91
- 'label' => __( 'PayPal Email', 'wpuf' )
92
  );
93
 
94
  $options[] = array(
95
  'name' => 'gate_instruct_paypal',
96
- 'label' => __( 'PayPal Instruction', 'wpuf' ),
97
  'type' => 'textarea',
98
  'default' => "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account"
99
  );
100
 
101
  $options[] = array(
102
  'name' => 'paypal_api_username',
103
- 'label' => __( 'PayPal API username', 'wpuf' )
104
  );
105
  $options[] = array(
106
  'name' => 'paypal_api_password',
107
- 'label' => __( 'PayPal API password', 'wpuf' )
108
  );
109
  $options[] = array(
110
  'name' => 'paypal_api_signature',
111
- 'label' => __( 'PayPal API signature', 'wpuf' )
112
  );
113
 
114
  return $options;
58
  'METHOD' => 'ManageRecurringPaymentsProfileStatus',
59
  'PROFILEID' => $profile_id,
60
  'ACTION' => ucfirst( $new_status ),
61
+ 'NOTE' => sprintf( __( 'Subscription %s at %s', 'wp-user-frontend' ), $new_status_string, get_bloginfo( 'name' ) ),
62
  );
63
 
64
  // Send back post vars to paypal
88
 
89
  $options[] = array(
90
  'name' => 'paypal_email',
91
+ 'label' => __( 'PayPal Email', 'wp-user-frontend' )
92
  );
93
 
94
  $options[] = array(
95
  'name' => 'gate_instruct_paypal',
96
+ 'label' => __( 'PayPal Instruction', 'wp-user-frontend' ),
97
  'type' => 'textarea',
98
  'default' => "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account"
99
  );
100
 
101
  $options[] = array(
102
  'name' => 'paypal_api_username',
103
+ 'label' => __( 'PayPal API username', 'wp-user-frontend' )
104
  );
105
  $options[] = array(
106
  'name' => 'paypal_api_password',
107
+ 'label' => __( 'PayPal API password', 'wp-user-frontend' )
108
  );
109
  $options[] = array(
110
  'name' => 'paypal_api_signature',
111
+ 'label' => __( 'PayPal API signature', 'wp-user-frontend' )
112
  );
113
 
114
  return $options;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Forms, registration, profile-builder, login, membership
5
  Requires at least: 4.0
6
  Tested up to: 4.9.6
7
  Requires PHP: 5.4
8
- Stable tag: trunk
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -171,6 +171,20 @@ redirected to the edit page with that post id. Then you'll see the edit post for
171
 
172
  == Changelog ==
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  = v2.8.8 (16 May, 2018) =
175
 
176
  * **New:** Allow override form input style using theme styling.
5
  Requires at least: 4.0
6
  Tested up to: 4.9.6
7
  Requires PHP: 5.4
8
+ Stable tag: 2.8.9
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
171
 
172
  == Changelog ==
173
 
174
+ = v2.8.9 (6 June, 2018) =
175
+
176
+ * **New:** Added functionality to export and erase WP User Frontend Data.
177
+ * **New:** Added billing address customizer.
178
+ * **New:** Changed plugin text-domain to 'wp-user-frontend' from 'wpuf'.
179
+ * **Improved:** Some responsive adjustments are made in payment page.
180
+ * **Improved:** Some scripts and styles were loading in all pages, it is fixed now.
181
+ * **Improved:** Fixed warning on dashboard for custom post types with no label.
182
+ * **Fix:** Images were not showing after upload in safari, it is fixed now.
183
+ * **Fix:** Posts cannot be updated after changing post images, it is fixed now.
184
+ * **Fix:** Fixed getting fatal error when submitting post with image in some cases.
185
+ * **Fix:** Fixed billing amount not showing when assign pack from backend.
186
+ * **Fix:** Fixed some translations issues.
187
+
188
  = v2.8.8 (16 May, 2018) =
189
 
190
  * **New:** Allow override form input style using theme styling.
templates/dashboard.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="wpuf-dashboard-container">
2
 
3
  <h2 class="page-head">
4
- <span class="colour"><?php printf( __( "%s's Dashboard", 'wpuf' ), $userdata->user_login ); ?></span>
5
  </h2>
6
 
7
  <?php if ( wpuf_get_option( 'show_post_count', 'wpuf_dashboard', 'on' ) == 'on' ) { ?>
@@ -14,7 +14,7 @@
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
  ?>
19
  </div>
20
  <?php endif ?>
@@ -80,14 +80,14 @@
80
  <tr class="items-list-header">
81
  <?php
82
  if ((( 'on' == $featured_img || 'on' == $featured_image ) || ( 'off' == $featured_img && 'on' == $featured_image ) || ( 'on' == $featured_img && 'default' == $featured_image )) && !( 'on' == $featured_img && 'off' == $featured_image )) {
83
- echo '<th>' . __( 'Featured Image', 'wpuf' ) . '</th>';
84
  }
85
  ?>
86
- <th><?php _e( 'Title', 'wpuf' ); ?></th>
87
 
88
  <?php
89
  if ( 'on' == $category ) {
90
- echo '<th>' . __( 'Category', 'wpuf' ) . '</th>';
91
  }
92
  ?>
93
 
@@ -99,7 +99,7 @@
99
  for ( $j = 0; $j < $len; $j++ ) {
100
  if ( $meta_key[$j] == $meta_name[$i] ) {
101
  echo '<th>';
102
- echo __( $meta_label[$i], 'wpuf' );
103
  echo '</th>';
104
  }
105
  }
@@ -109,20 +109,20 @@
109
 
110
  <?php
111
  if ( 'on' == $excerpt ) {
112
- echo '<th>' . __( 'Excerpt', 'wpuf' ) . '</th>';
113
  }
114
  ?>
115
 
116
- <th><?php _e( 'Status', 'wpuf' ); ?></th>
117
 
118
  <?php do_action( 'wpuf_dashboard_head_col', $args ) ?>
119
 
120
  <?php
121
  if ( $charging_enabled ) {
122
- echo '<th>' . __( 'Payment', 'wpuf' ) . '</th>';
123
  }
124
  ?>
125
- <th><?php _e( 'Options', 'wpuf' ); ?></th>
126
  </tr>
127
  </thead>
128
  <tbody>
@@ -142,7 +142,7 @@
142
  if ( has_post_thumbnail() ) {
143
  the_post_thumbnail( $featured_img_size );
144
  } else {
145
- printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', apply_filters( 'wpuf_no_image', plugins_url( '/assets/images/no-image.png', dirname( __FILE__ ) ) ), __( 'No Image', 'wpuf' ) );
146
  }
147
 
148
  echo $show_link ? '</a>' : '';
@@ -156,7 +156,7 @@
156
 
157
  <?php } else { ?>
158
 
159
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpuf' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
160
 
161
  <?php } ?>
162
  </td>
@@ -221,7 +221,7 @@
221
  ?>
222
  <td>
223
  <?php if ( $post->post_status == 'pending' && $order_id && $payment_status != 'completed' ) { ?>
224
- <a href="<?php echo trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ); ?>?action=wpuf_pay&type=post&post_id=<?php echo $post->ID; ?>"><?php _e( 'Pay Now', 'wpuf' ); ?></a>
225
  <?php }
226
  elseif ( $payment_status == 'completed' ) {
227
  echo "Completed";
@@ -243,7 +243,7 @@
243
  // don't show the edit link
244
  } else {
245
  ?>
246
- <a href="<?php echo wp_nonce_url( $edit_page_url, 'wpuf_edit' ); ?>"><?php _e( 'Edit', 'wpuf' ); ?></a>
247
  <?php
248
  }
249
  }
@@ -252,9 +252,9 @@
252
  <?php
253
  if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
254
  $del_url = add_query_arg( array('action' => 'del', 'pid' => $post->ID) );
255
- $message = __( 'Are you sure to delete?', 'wpuf' );
256
  ?>
257
- <a href="<?php echo wp_nonce_url( $del_url, 'wpuf_del' ) ?>" onclick="return confirm('<?php echo $message ?>');"><span style="color: red;"><?php _e( 'Delete', 'wpuf' ); ?></span></a>
258
  <?php } ?>
259
  </td>
260
  </tr>
@@ -272,8 +272,8 @@
272
  $pagination = paginate_links( array(
273
  'base' => add_query_arg( 'pagenum', '%#%' ),
274
  'format' => '',
275
- 'prev_text' => __( '&laquo;', 'wpuf' ),
276
- 'next_text' => __( '&raquo;', 'wpuf' ),
277
  'total' => $dashboard_query->max_num_pages,
278
  'current' => $pagenum,
279
  'add_args' => false
@@ -287,7 +287,7 @@
287
  <?php
288
  } else {
289
  if ( !empty( $post_type_obj ) ) {
290
- printf( '<div class="wpuf-message">' . __( 'No %s found', 'wpuf' ) . '</div>', implode( ', ', $labels ) );
291
  do_action( 'wpuf_dashboard_nopost', $userdata->ID, $post_type_obj );
292
  }
293
  }
1
  <div class="wpuf-dashboard-container">
2
 
3
  <h2 class="page-head">
4
+ <span class="colour"><?php printf( __( "%s's Dashboard", 'wp-user-frontend' ), $userdata->user_login ); ?></span>
5
  </h2>
6
 
7
  <?php if ( wpuf_get_option( 'show_post_count', 'wpuf_dashboard', 'on' ) == 'on' ) { ?>
14
  $labels[] = $post_type_name->label;
15
  }
16
  }
17
+ printf( __( 'You have created <span>%d</span> (%ss)', 'wp-user-frontend' ), $dashboard_query->found_posts, implode( 's, ', $dashboard_query->query['post_type'] ) );
18
  ?>
19
  </div>
20
  <?php endif ?>
80
  <tr class="items-list-header">
81
  <?php
82
  if ((( 'on' == $featured_img || 'on' == $featured_image ) || ( 'off' == $featured_img && 'on' == $featured_image ) || ( 'on' == $featured_img && 'default' == $featured_image )) && !( 'on' == $featured_img && 'off' == $featured_image )) {
83
+ echo '<th>' . __( 'Featured Image', 'wp-user-frontend' ) . '</th>';
84
  }
85
  ?>
86
+ <th><?php _e( 'Title', 'wp-user-frontend' ); ?></th>
87
 
88
  <?php
89
  if ( 'on' == $category ) {
90
+ echo '<th>' . __( 'Category', 'wp-user-frontend' ) . '</th>';
91
  }
92
  ?>
93
 
99
  for ( $j = 0; $j < $len; $j++ ) {
100
  if ( $meta_key[$j] == $meta_name[$i] ) {
101
  echo '<th>';
102
+ echo __( $meta_label[$i], 'wp-user-frontend' );
103
  echo '</th>';
104
  }
105
  }
109
 
110
  <?php
111
  if ( 'on' == $excerpt ) {
112
+ echo '<th>' . __( 'Excerpt', 'wp-user-frontend' ) . '</th>';
113
  }
114
  ?>
115
 
116
+ <th><?php _e( 'Status', 'wp-user-frontend' ); ?></th>
117
 
118
  <?php do_action( 'wpuf_dashboard_head_col', $args ) ?>
119
 
120
  <?php
121
  if ( $charging_enabled ) {
122
+ echo '<th>' . __( 'Payment', 'wp-user-frontend' ) . '</th>';
123
  }
124
  ?>
125
+ <th><?php _e( 'Options', 'wp-user-frontend' ); ?></th>
126
  </tr>
127
  </thead>
128
  <tbody>
142
  if ( has_post_thumbnail() ) {
143
  the_post_thumbnail( $featured_img_size );
144
  } else {
145
+ printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', apply_filters( 'wpuf_no_image', plugins_url( '/assets/images/no-image.png', dirname( __FILE__ ) ) ), __( 'No Image', 'wp-user-frontend' ) );
146
  }
147
 
148
  echo $show_link ? '</a>' : '';
156
 
157
  <?php } else { ?>
158
 
159
+ <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wp-user-frontend' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
160
 
161
  <?php } ?>
162
  </td>
221
  ?>
222
  <td>
223
  <?php if ( $post->post_status == 'pending' && $order_id && $payment_status != 'completed' ) { ?>
224
+ <a href="<?php echo trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ); ?>?action=wpuf_pay&type=post&post_id=<?php echo $post->ID; ?>"><?php _e( 'Pay Now', 'wp-user-frontend' ); ?></a>
225
  <?php }
226
  elseif ( $payment_status == 'completed' ) {
227
  echo "Completed";
243
  // don't show the edit link
244
  } else {
245
  ?>
246
+ <a href="<?php echo wp_nonce_url( $edit_page_url, 'wpuf_edit' ); ?>"><?php _e( 'Edit', 'wp-user-frontend' ); ?></a>
247
  <?php
248
  }
249
  }
252
  <?php
253
  if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
254
  $del_url = add_query_arg( array('action' => 'del', 'pid' => $post->ID) );
255
+ $message = __( 'Are you sure to delete?', 'wp-user-frontend' );
256
  ?>
257
+ <a href="<?php echo wp_nonce_url( $del_url, 'wpuf_del' ) ?>" onclick="return confirm('<?php echo $message ?>');"><span style="color: red;"><?php _e( 'Delete', 'wp-user-frontend' ); ?></span></a>
258
  <?php } ?>
259
  </td>
260
  </tr>
272
  $pagination = paginate_links( array(
273
  'base' => add_query_arg( 'pagenum', '%#%' ),
274
  'format' => '',
275
+ 'prev_text' => __( '&laquo;', 'wp-user-frontend' ),
276
+ 'next_text' => __( '&raquo;', 'wp-user-frontend' ),
277
  'total' => $dashboard_query->max_num_pages,
278
  'current' => $pagenum,
279
  'add_args' => false
287
  <?php
288
  } else {
289
  if ( !empty( $post_type_obj ) ) {
290
+ printf( '<div class="wpuf-message">' . __( 'No %s found', 'wp-user-frontend' ) . '</div>', implode( ', ', $labels ) );
291
  do_action( 'wpuf_dashboard_nopost', $userdata->ID, $post_type_obj );
292
  }
293
  }
templates/dashboard/billing-address.php CHANGED
@@ -21,7 +21,7 @@ if ( isset( $_POST['update_billing_address'] )
21
  'country' => $_POST['country']
22
  );
23
  update_user_meta( $user_id, 'wpuf_address_fields', $address_fields );
24
- echo '<div class="wpuf-success">' . __( 'Billing address is updated.', 'wpuf' ) . '</div>';
25
  } else {
26
  if ( metadata_exists( 'user', $user_id, 'wpuf_address_fields') ) {
27
  $address_fields = get_user_meta( $user_id, 'wpuf_address_fields', true );
@@ -39,28 +39,28 @@ if ( isset( $_POST['update_billing_address'] )
39
  <ul class="wpuf-form form-label-above">
40
 
41
  <li>
42
- <div class="wpuf-label"><?php _e( 'Address Line 1 ', 'wpuf' ); ?><span class="required">*</span></div>
43
  <div class="wpuf-fields">
44
  <input type="text" class="input" name="add_line_1" id="add_line_1" value="<?php echo $address_fields['add_line_1']; ?>" />
45
  </div>
46
  </li>
47
 
48
  <li>
49
- <div class="wpuf-label"><?php _e( 'Address Line 2 ', 'wpuf' ); ?></div>
50
  <div class="wpuf-fields">
51
  <input type="text" class="input" name="add_line_2" id="add_line_2" value="<?php echo $address_fields['add_line_2']; ?>" />
52
  </div>
53
  </li>
54
 
55
  <li>
56
- <div class="wpuf-label"><?php _e( 'City', 'wpuf' ); ?> <span class="required">*</span></div>
57
  <div class="wpuf-fields">
58
  <input type="text" class="input" name="city" id="city" value="<?php echo $address_fields['city']; ?>" />
59
  </div>
60
  </li>
61
 
62
  <li>
63
- <div class="wpuf-label"><?php _e('State/Province/Region', 'wpuf' ); ?> <span class="required">*</span></div>
64
  <div class="wpuf-fields">
65
  <input type="text" class="input" name="state" id="state" value="<?php echo $cs->getStateName( $address_fields['state'], $address_fields['country'] ); ?>" />
66
  </div>
@@ -70,12 +70,12 @@ if ( isset( $_POST['update_billing_address'] )
70
  <div class="wpuf-fields">
71
  <div class="wpuf-name-field-wrap format-first-last">
72
  <div class="wpuf-name-field-first-name">
73
- <label class="wpuf-fields wpuf-label"><?php _e( 'Postal Code/ZIP', 'wpuf' ); ?></label>
74
  <input type="text" class="input" name="zip_code" id="zip_code" value="<?php echo $address_fields['zip_code']; ?>" />
75
  </div>
76
 
77
  <div class="wpuf-name-field-last-name">
78
- <label class="wpuf-fields wpuf-label"><?php _e('Country', 'wpuf' ); ?></label>
79
  <div class="wpuf-fields">
80
  <?php
81
  $countries = $cs->countries();
@@ -98,7 +98,7 @@ if ( isset( $_POST['update_billing_address'] )
98
  </li>
99
 
100
  <li class="wpuf-submit">
101
- <input type="submit" name="update_billing_address" id="wpuf-account-update-billing_address" value="<?php _e( 'Update Billing Address', 'wpuf' ); ?>" />
102
  </li>
103
  </ul>
104
 
21
  'country' => $_POST['country']
22
  );
23
  update_user_meta( $user_id, 'wpuf_address_fields', $address_fields );
24
+ echo '<div class="wpuf-success">' . __( 'Billing address is updated.', 'wp-user-frontend' ) . '</div>';
25
  } else {
26
  if ( metadata_exists( 'user', $user_id, 'wpuf_address_fields') ) {
27
  $address_fields = get_user_meta( $user_id, 'wpuf_address_fields', true );
39
  <ul class="wpuf-form form-label-above">
40
 
41
  <li>
42
+ <div class="wpuf-label"><?php _e( 'Address Line 1 ', 'wp-user-frontend' ); ?><span class="required">*</span></div>
43
  <div class="wpuf-fields">
44
  <input type="text" class="input" name="add_line_1" id="add_line_1" value="<?php echo $address_fields['add_line_1']; ?>" />
45
  </div>
46
  </li>
47
 
48
  <li>
49
+ <div class="wpuf-label"><?php _e( 'Address Line 2 ', 'wp-user-frontend' ); ?></div>
50
  <div class="wpuf-fields">
51
  <input type="text" class="input" name="add_line_2" id="add_line_2" value="<?php echo $address_fields['add_line_2']; ?>" />
52
  </div>
53
  </li>
54
 
55
  <li>
56
+ <div class="wpuf-label"><?php _e( 'City', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
57
  <div class="wpuf-fields">
58
  <input type="text" class="input" name="city" id="city" value="<?php echo $address_fields['city']; ?>" />
59
  </div>
60
  </li>
61
 
62
  <li>
63
+ <div class="wpuf-label"><?php _e('State/Province/Region', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
64
  <div class="wpuf-fields">
65
  <input type="text" class="input" name="state" id="state" value="<?php echo $cs->getStateName( $address_fields['state'], $address_fields['country'] ); ?>" />
66
  </div>
70
  <div class="wpuf-fields">
71
  <div class="wpuf-name-field-wrap format-first-last">
72
  <div class="wpuf-name-field-first-name">
73
+ <label class="wpuf-fields wpuf-label"><?php _e( 'Postal Code/ZIP', 'wp-user-frontend' ); ?></label>
74
  <input type="text" class="input" name="zip_code" id="zip_code" value="<?php echo $address_fields['zip_code']; ?>" />
75
  </div>
76
 
77
  <div class="wpuf-name-field-last-name">
78
+ <label class="wpuf-fields wpuf-label"><?php _e('Country', 'wp-user-frontend' ); ?></label>
79
  <div class="wpuf-fields">
80
  <?php
81
  $countries = $cs->countries();
98
  </li>
99
 
100
  <li class="wpuf-submit">
101
+ <input type="submit" name="update_billing_address" id="wpuf-account-update-billing_address" value="<?php _e( 'Update Billing Address', 'wp-user-frontend' ); ?>" />
102
  </li>
103
  </ul>
104
 
templates/dashboard/dashboard.php CHANGED
@@ -2,7 +2,7 @@
2
  global $current_user;
3
 
4
  printf(
5
- __( 'Hello %1$s, (not %1$s? <a href="%2$s">Sign out</a>)', 'wpuf' ),
6
  '<strong>' . esc_html( $current_user->display_name ) . '</strong>',
7
  esc_url( wp_logout_url( get_permalink() ) )
8
  );
@@ -10,7 +10,7 @@
10
 
11
  <p><?php
12
  printf(
13
- __( 'From your account dashboard you can view your dashboard, manage your <a href="%1$s">posts</a>, <a href="%2$s">subscription</a> and <a href="%3$s">edit your password and profile</a>.', 'wpuf' ),
14
  esc_url( add_query_arg( array( 'section' => 'posts' ), get_permalink() ) ),
15
  esc_url( add_query_arg( array( 'section' => 'subscription' ), get_permalink() ) ),
16
  esc_url( add_query_arg( array( 'section' => 'edit-profile' ), get_permalink() ) )
2
  global $current_user;
3
 
4
  printf(
5
+ __( 'Hello %1$s, (not %1$s? <a href="%2$s">Sign out</a>)', 'wp-user-frontend' ),
6
  '<strong>' . esc_html( $current_user->display_name ) . '</strong>',
7
  esc_url( wp_logout_url( get_permalink() ) )
8
  );
10
 
11
  <p><?php
12
  printf(
13
+ __( 'From your account dashboard you can view your dashboard, manage your <a href="%1$s">posts</a>, <a href="%2$s">subscription</a> and <a href="%3$s">edit your password and profile</a>.', 'wp-user-frontend' ),
14
  esc_url( add_query_arg( array( 'section' => 'posts' ), get_permalink() ) ),
15
  esc_url( add_query_arg( array( 'section' => 'subscription' ), get_permalink() ) ),
16
  esc_url( add_query_arg( array( 'section' => 'edit-profile' ), get_permalink() ) )
templates/dashboard/edit-profile.php CHANGED
@@ -2,12 +2,12 @@
2
 
3
  <form class="wpuf-form wpuf-update-profile-form" action="" method="post">
4
 
5
- <div style="display: none;" class="wpuf-success"><?php _e( 'Profile updated successfully!', 'wpuf' ); ?></div>
6
- <div style="display: none;" class="wpuf-error"><?php _e( 'Something went wrong!', 'wpuf' ); ?></div>
7
  <ul class="wpuf-form form-label-above">
8
  <li class="wpuf-el form-row form-row-first">
9
  <div class="wpuf-label" >
10
- <label for="first_name"><?php _e( 'First Name ', 'wpuf' ); ?><span class="required">*</span></label>
11
  </div>
12
  <div class="wpuf-fields" >
13
  <input type="text" class="input-text" name="first_name" id="first_name" value="<?php echo $current_user->first_name; ?>" required>
@@ -15,7 +15,7 @@
15
  </li>
16
  <li class="wpuf-el form-row-last">
17
  <div class="wpuf-label" >
18
- <label for="last_name"><?php _e('Last Name ', 'wpuf' ); ?><span class="required">*</span></label>
19
  </div>
20
  <div class="wpuf-fields" >
21
  <input type="text" class="input-text" name="last_name" id="last_name" value="<?php echo $current_user->last_name; ?>" required>
@@ -25,7 +25,7 @@
25
 
26
  <li class="wpuf-el form-row">
27
  <div class="wpuf-label" >
28
- <label for="email"><?php _e( 'Email Address ', 'wpuf' ); ?><span class="required">*</span></label>
29
  </div>
30
  <div class="wpuf-fields" >
31
  <input type="email" class="input-text" name="email" id="email" value="<?php echo $current_user->user_email; ?>" required>
@@ -35,23 +35,23 @@
35
 
36
  <li class="wpuf-el">
37
  <div class="wpuf-label" >
38
- <label for="current_password"><?php _e( 'Current Password', 'wpuf' ); ?></label>
39
  </div>
40
  <div class="wpuf-fields" >
41
  <input type="password" class="input-text" name="current_password" id="current_password" size="16" value="" autocomplete="off" />
42
  </div>
43
- <span class="wpuf-help"><?php _e( 'Leave this field empty to keep your password unchanged.', 'wpuf' ); ?></span>
44
  </li>
45
  <div class="clear"></div>
46
 
47
  <li class="wpuf-el">
48
  <div class="wpuf-label" >
49
- <label for="pass1"><?php _e( 'New Password', 'wpuf' ); ?></label>
50
  </div>
51
  <div class="wpuf-fields" >
52
  <input type="password" class="input-text" name="pass1" id="pass1" size="16" value="" autocomplete="off" />
53
  </div>
54
- <span style="width: 100%;" id="pass-strength-result"><?php _e( 'Strength indicator', 'wpuf' ); ?></span>
55
  <script src="<?php echo site_url(); ?>/wp-includes/js/zxcvbn.min.js"></script>
56
  <script src="<?php echo admin_url(); ?>/js/password-strength-meter.js"></script>
57
  <script type="text/javascript">
@@ -72,7 +72,7 @@
72
 
73
  <li class="wpuf-el">
74
  <div class="wpuf-label" >
75
- <label for="pass2"><?php _e( 'Confirm New Password', 'wpuf' ); ?></label>
76
  </div>
77
  <div class="wpuf-fields" >
78
  <input type="password" class="input-text" name="pass2" id="pass2" size="16" value="" autocomplete="off" />
@@ -83,7 +83,7 @@
83
  <li class="wpuf-submit">
84
  <?php wp_nonce_field( 'wpuf-account-update-profile' ); ?>
85
  <input type="hidden" name="action" value="wpuf_account_update_profile">
86
- <button type="submit" name="update_profile" id="wpuf-account-update-profile"><?php _e( 'Update Profile', 'wpuf' ); ?></button>
87
  </li>
88
  </ul>
89
 
2
 
3
  <form class="wpuf-form wpuf-update-profile-form" action="" method="post">
4
 
5
+ <div style="display: none;" class="wpuf-success"><?php _e( 'Profile updated successfully!', 'wp-user-frontend' ); ?></div>
6
+ <div style="display: none;" class="wpuf-error"><?php _e( 'Something went wrong!', 'wp-user-frontend' ); ?></div>
7
  <ul class="wpuf-form form-label-above">
8
  <li class="wpuf-el form-row form-row-first">
9
  <div class="wpuf-label" >
10
+ <label for="first_name"><?php _e( 'First Name ', 'wp-user-frontend' ); ?><span class="required">*</span></label>
11
  </div>
12
  <div class="wpuf-fields" >
13
  <input type="text" class="input-text" name="first_name" id="first_name" value="<?php echo $current_user->first_name; ?>" required>
15
  </li>
16
  <li class="wpuf-el form-row-last">
17
  <div class="wpuf-label" >
18
+ <label for="last_name"><?php _e('Last Name ', 'wp-user-frontend' ); ?><span class="required">*</span></label>
19
  </div>
20
  <div class="wpuf-fields" >
21
  <input type="text" class="input-text" name="last_name" id="last_name" value="<?php echo $current_user->last_name; ?>" required>
25
 
26
  <li class="wpuf-el form-row">
27
  <div class="wpuf-label" >
28
+ <label for="email"><?php _e( 'Email Address ', 'wp-user-frontend' ); ?><span class="required">*</span></label>
29
  </div>
30
  <div class="wpuf-fields" >
31
  <input type="email" class="input-text" name="email" id="email" value="<?php echo $current_user->user_email; ?>" required>
35
 
36
  <li class="wpuf-el">
37
  <div class="wpuf-label" >
38
+ <label for="current_password"><?php _e( 'Current Password', 'wp-user-frontend' ); ?></label>
39
  </div>
40
  <div class="wpuf-fields" >
41
  <input type="password" class="input-text" name="current_password" id="current_password" size="16" value="" autocomplete="off" />
42
  </div>
43
+ <span class="wpuf-help"><?php _e( 'Leave this field empty to keep your password unchanged.', 'wp-user-frontend' ); ?></span>
44
  </li>
45
  <div class="clear"></div>
46
 
47
  <li class="wpuf-el">
48
  <div class="wpuf-label" >
49
+ <label for="pass1"><?php _e( 'New Password', 'wp-user-frontend' ); ?></label>
50
  </div>
51
  <div class="wpuf-fields" >
52
  <input type="password" class="input-text" name="pass1" id="pass1" size="16" value="" autocomplete="off" />
53
  </div>
54
+ <span style="width: 100%;" id="pass-strength-result"><?php _e( 'Strength indicator', 'wp-user-frontend' ); ?></span>
55
  <script src="<?php echo site_url(); ?>/wp-includes/js/zxcvbn.min.js"></script>
56
  <script src="<?php echo admin_url(); ?>/js/password-strength-meter.js"></script>
57
  <script type="text/javascript">
72
 
73
  <li class="wpuf-el">
74
  <div class="wpuf-label" >
75
+ <label for="pass2"><?php _e( 'Confirm New Password', 'wp-user-frontend' ); ?></label>
76
  </div>
77
  <div class="wpuf-fields" >
78
  <input type="password" class="input-text" name="pass2" id="pass2" size="16" value="" autocomplete="off" />
83
  <li class="wpuf-submit">
84
  <?php wp_nonce_field( 'wpuf-account-update-profile' ); ?>
85
  <input type="hidden" name="action" value="wpuf_account_update_profile">
86
+ <button type="submit" name="update_profile" id="wpuf-account-update-profile"><?php _e( 'Update Profile', 'wp-user-frontend' ); ?></button>
87
  </li>
88
  </ul>
89
 
templates/dashboard/posts.php CHANGED
@@ -27,13 +27,13 @@ if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == "del" ) {
27
  $redirect = add_query_arg( array( 'section' => 'posts', 'msg' => 'deleted'), get_permalink() );
28
  wp_redirect( $redirect );
29
  } else {
30
- echo '<div class="error">' . __( 'You are not the post author. Cheeting huh!', 'wpuf' ) . '</div>';
31
  }
32
  }
33
 
34
  // show delete success message
35
  if ( isset( $_GET['msg'] ) && $_GET['msg'] == 'deleted' ) {
36
- echo '<div class="success">' . __( 'Post Deleted', 'wpuf' ) . '</div>';
37
  }
38
 
39
  $args = array(
@@ -51,7 +51,7 @@ $post_type_obj = get_post_type_object( $post_type );
51
  ?>
52
 
53
  <?php if ( wpuf_get_option( 'show_post_count', 'wpuf_dashboard', 'on' ) == 'on' ) { ?>
54
- <div class="post_count"><?php printf( __( 'You have created <span>%d</span> %s', 'wpuf' ), $dashboard_query->found_posts, $post_type_obj->label ); ?></div>
55
  <?php } ?>
56
 
57
  <?php do_action( 'wpuf_account_posts_top', $userdata->ID, $post_type_obj ) ?>
@@ -69,20 +69,20 @@ $post_type_obj = get_post_type_object( $post_type );
69
  <tr class="items-list-header">
70
  <?php
71
  if ( 'on' == $featured_img ) {
72
- echo '<th>' . __( 'Featured Image', 'wpuf' ) . '</th>';
73
  }
74
  ?>
75
- <th><?php _e( 'Title', 'wpuf' ); ?></th>
76
- <th><?php _e( 'Status', 'wpuf' ); ?></th>
77
 
78
  <?php do_action( 'wpuf_account_posts_head_col', $args ) ?>
79
 
80
  <?php
81
  if ( $charging_enabled ) {
82
- echo '<th>' . __( 'Payment', 'wpuf' ) . '</th>';
83
  }
84
  ?>
85
- <th><?php _e( 'Options', 'wpuf' ); ?></th>
86
  </tr>
87
  </thead>
88
  <tbody>
@@ -102,7 +102,7 @@ $post_type_obj = get_post_type_object( $post_type );
102
  if ( has_post_thumbnail() ) {
103
  the_post_thumbnail( $featured_img_size );
104
  } else {
105
- printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', apply_filters( 'wpuf_no_image', plugins_url( '/assets/images/no-image.png', dirname( __FILE__ ) ) ), __( 'No Image', 'wpuf' ) );
106
  }
107
 
108
  echo $show_link ? '</a>' : '';
@@ -116,7 +116,7 @@ $post_type_obj = get_post_type_object( $post_type );
116
 
117
  <?php } else { ?>
118
 
119
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpuf' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
120
 
121
  <?php } ?>
122
  </td>
@@ -132,7 +132,7 @@ $post_type_obj = get_post_type_object( $post_type );
132
  ?>
133
  <td>
134
  <?php if ( $post->post_status == 'pending' && $order_id ) { ?>
135
- <a href="<?php echo trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ); ?>?action=wpuf_pay&type=post&post_id=<?php echo $post->ID; ?>"><?php _e( 'Pay Now', 'wpuf' ); ?></a>
136
  <?php } ?>
137
  </td>
138
  <?php } ?>
@@ -148,7 +148,7 @@ $post_type_obj = get_post_type_object( $post_type );
148
  // don't show the edit link
149
  } else {
150
  ?>
151
- <a href="<?php echo wp_nonce_url( $url, 'wpuf_edit' ); ?>"><?php _e( 'Edit', 'wpuf' ); ?></a> /
152
  <?php
153
  }
154
  }
@@ -157,9 +157,9 @@ $post_type_obj = get_post_type_object( $post_type );
157
  <?php
158
  if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
159
  $del_url = add_query_arg( array('action' => 'del', 'pid' => $post->ID) );
160
- $message = __( 'Are you sure to delete?', 'wpuf' );
161
  ?>
162
- <a href="<?php echo wp_nonce_url( $del_url, 'wpuf_del' ) ?>" onclick="return confirm('<?php echo $message ?>');"><span style="color: red;"><?php _e( 'Delete', 'wpuf' ); ?></span></a>
163
  <?php } ?>
164
  </td>
165
  </tr>
@@ -177,8 +177,8 @@ $post_type_obj = get_post_type_object( $post_type );
177
  $pagination = paginate_links( array(
178
  'base' => add_query_arg( 'pagenum', '%#%' ),
179
  'format' => '',
180
- 'prev_text' => __( '&laquo;', 'wpuf' ),
181
- 'next_text' => __( '&raquo;', 'wpuf' ),
182
  'total' => $dashboard_query->max_num_pages,
183
  'current' => $pagenum,
184
  'add_args' => false
@@ -192,7 +192,7 @@ $post_type_obj = get_post_type_object( $post_type );
192
 
193
  <?php
194
  } else {
195
- printf( '<div class="wpuf-message">' . __( 'No %s found', 'wpuf' ) . '</div>', $post_type_obj->label );
196
  do_action( 'wpuf_account_posts_nopost', $userdata->ID, $post_type_obj );
197
  }
198
 
27
  $redirect = add_query_arg( array( 'section' => 'posts', 'msg' => 'deleted'), get_permalink() );
28
  wp_redirect( $redirect );
29
  } else {
30
+ echo '<div class="error">' . __( 'You are not the post author. Cheeting huh!', 'wp-user-frontend' ) . '</div>';
31
  }
32
  }
33
 
34
  // show delete success message
35
  if ( isset( $_GET['msg'] ) && $_GET['msg'] == 'deleted' ) {
36
+ echo '<div class="success">' . __( 'Post Deleted', 'wp-user-frontend' ) . '</div>';
37
  }
38
 
39
  $args = array(
51
  ?>
52
 
53
  <?php if ( wpuf_get_option( 'show_post_count', 'wpuf_dashboard', 'on' ) == 'on' ) { ?>
54
+ <div class="post_count"><?php printf( __( 'You have created <span>%d</span> %s', 'wp-user-frontend' ), $dashboard_query->found_posts, $post_type_obj->label ); ?></div>
55
  <?php } ?>
56
 
57
  <?php do_action( 'wpuf_account_posts_top', $userdata->ID, $post_type_obj ) ?>
69
  <tr class="items-list-header">
70
  <?php
71
  if ( 'on' == $featured_img ) {
72
+ echo '<th>' . __( 'Featured Image', 'wp-user-frontend' ) . '</th>';
73
  }
74
  ?>
75
+ <th><?php _e( 'Title', 'wp-user-frontend' ); ?></th>
76
+ <th><?php _e( 'Status', 'wp-user-frontend' ); ?></th>
77
 
78
  <?php do_action( 'wpuf_account_posts_head_col', $args ) ?>
79
 
80
  <?php
81
  if ( $charging_enabled ) {
82
+ echo '<th>' . __( 'Payment', 'wp-user-frontend' ) . '</th>';
83
  }
84
  ?>
85
+ <th><?php _e( 'Options', 'wp-user-frontend' ); ?></th>
86
  </tr>
87
  </thead>
88
  <tbody>
102
  if ( has_post_thumbnail() ) {
103
  the_post_thumbnail( $featured_img_size );
104
  } else {
105
+ printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', apply_filters( 'wpuf_no_image', plugins_url( '/assets/images/no-image.png', dirname( __FILE__ ) ) ), __( 'No Image', 'wp-user-frontend' ) );
106
  }
107
 
108
  echo $show_link ? '</a>' : '';
116
 
117
  <?php } else { ?>
118
 
119
+ <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wp-user-frontend' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
120
 
121
  <?php } ?>
122
  </td>
132
  ?>
133
  <td>
134
  <?php if ( $post->post_status == 'pending' && $order_id ) { ?>
135
+ <a href="<?php echo trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ); ?>?action=wpuf_pay&type=post&post_id=<?php echo $post->ID; ?>"><?php _e( 'Pay Now', 'wp-user-frontend' ); ?></a>
136
  <?php } ?>
137
  </td>
138
  <?php } ?>
148
  // don't show the edit link
149
  } else {
150
  ?>
151
+ <a href="<?php echo wp_nonce_url( $url, 'wpuf_edit' ); ?>"><?php _e( 'Edit', 'wp-user-frontend' ); ?></a> /
152
  <?php
153
  }
154
  }
157
  <?php
158
  if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
159
  $del_url = add_query_arg( array('action' => 'del', 'pid' => $post->ID) );
160
+ $message = __( 'Are you sure to delete?', 'wp-user-frontend' );
161
  ?>
162
+ <a href="<?php echo wp_nonce_url( $del_url, 'wpuf_del' ) ?>" onclick="return confirm('<?php echo $message ?>');"><span style="color: red;"><?php _e( 'Delete', 'wp-user-frontend' ); ?></span></a>
163
  <?php } ?>
164
  </td>
165
  </tr>
177
  $pagination = paginate_links( array(
178
  'base' => add_query_arg( 'pagenum', '%#%' ),
179
  'format' => '',
180
+ 'prev_text' => __( '&laquo;', 'wp-user-frontend' ),
181
+ 'next_text' => __( '&raquo;', 'wp-user-frontend' ),
182
  'total' => $dashboard_query->max_num_pages,
183
  'current' => $pagenum,
184
  'add_args' => false
192
 
193
  <?php
194
  } else {
195
+ printf( '<div class="wpuf-message">' . __( 'No %s found', 'wp-user-frontend' ) . '</div>', $post_type_obj->label );
196
  do_action( 'wpuf_account_posts_nopost', $userdata->ID, $post_type_obj );
197
  }
198
 
templates/dashboard/subscription.php CHANGED
@@ -1,14 +1,14 @@
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">
5
- <div><strong><?php _e( 'Subcription Name: ','wpuf' ); ?></strong><?php echo $pack->post_title; ?></div>
6
  <div>
7
- <strong><?php _e( 'Package & billing details: ', 'wpuf'); ?></strong>
8
  <?php echo $billing_amount . ' ' . $recurring_des; ?>
9
  </div>
10
  <div>
11
- <strong><?php _e( 'Remaining post: ', 'wpuf'); ?></strong>
12
  <?php
13
  $i = 0;
14
  foreach ( $user_sub['posts'] as $key => $value ) {
@@ -22,7 +22,7 @@
22
  if ( ! $post_type_obj ) {
23
  continue;
24
  }
25
- $value = ( $value == '-1' ) ? __( 'Unlimited', 'wpuf' ) : $value;
26
  ?>
27
  <div><?php echo $post_type_obj->labels->name . ': ' . $value; ?></div>
28
  <?php
@@ -37,7 +37,7 @@
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
  }
@@ -53,12 +53,12 @@
53
  $payment_gateway = strtolower( $payment_gateway );
54
 
55
  echo '<br />';
56
- _e( '<p><i>To cancel the pack, press the following cancel button.</i></p>', 'wpuf' );
57
  ?>
58
  <form action="" method="post" style="text-align: center;">
59
  <?php wp_nonce_field( 'wpuf-sub-cancel' ); ?>
60
  <input type="hidden" name="gateway" value="<?php echo $payment_gateway; ?>">
61
- <input type="submit" name="wpuf_cancel_subscription" class="btn btn-sm btn-danger" value="<?php _e( 'Cancel', 'wpuf' ); ?>">
62
  </form>
63
  <?php
64
  }
1
+ <p><?php _e( "You've subscribed to the following package.", 'wp-user-frontend' ); ?></p>
2
  <div class="wpuf_sub_info">
3
+ <h3><?php _e( 'Subscription Details', 'wp-user-frontend' ); ?></h3>
4
  <div class="wpuf-text">
5
+ <div><strong><?php _e( 'Subcription Name: ','wp-user-frontend' ); ?></strong><?php echo $pack->post_title; ?></div>
6
  <div>
7
+ <strong><?php _e( 'Package & billing details: ', 'wp-user-frontend'); ?></strong>
8
  <?php echo $billing_amount . ' ' . $recurring_des; ?>
9
  </div>
10
  <div>
11
+ <strong><?php _e( 'Remaining post: ', 'wp-user-frontend'); ?></strong>
12
  <?php
13
  $i = 0;
14
  foreach ( $user_sub['posts'] as $key => $value ) {
22
  if ( ! $post_type_obj ) {
23
  continue;
24
  }
25
+ $value = ( $value == '-1' ) ? __( 'Unlimited', 'wp-user-frontend' ) : $value;
26
  ?>
27
  <div><?php echo $post_type_obj->labels->name . ': ' . $value; ?></div>
28
  <?php
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:', 'wp-user-frontend' ); ?></strong> <?php echo $expiry_date ?>
41
  </div>
42
  <?php
43
  }
53
  $payment_gateway = strtolower( $payment_gateway );
54
 
55
  echo '<br />';
56
+ _e( '<p><i>To cancel the pack, press the following cancel button.</i></p>', 'wp-user-frontend' );
57
  ?>
58
  <form action="" method="post" style="text-align: center;">
59
  <?php wp_nonce_field( 'wpuf-sub-cancel' ); ?>
60
  <input type="hidden" name="gateway" value="<?php echo $payment_gateway; ?>">
61
+ <input type="submit" name="wpuf_cancel_subscription" class="btn btn-sm btn-danger" value="<?php _e( 'Cancel', 'wp-user-frontend' ); ?>">
62
  </form>
63
  <?php
64
  }
templates/dokan/new-post.php CHANGED
@@ -4,7 +4,7 @@ $access = dokan_get_option( 'allow_wpuf_post', 'dokan_general' );
4
  $selected_form = dokan_get_option( 'wpuf_post_forms', 'dokan_general' );
5
 
6
  if ( $access != 'on' ) {
7
- echo __( 'You are not allowed to submit post. Please contact admin', 'wpuf' );
8
  }else {
9
  echo do_shortcode( '[wpuf_form id="' . $selected_form . '"]' );
10
  }
4
  $selected_form = dokan_get_option( 'wpuf_post_forms', 'dokan_general' );
5
 
6
  if ( $access != 'on' ) {
7
+ echo __( 'You are not allowed to submit post. Please contact admin', 'wp-user-frontend' );
8
  }else {
9
  echo do_shortcode( '[wpuf_form id="' . $selected_form . '"]' );
10
  }
templates/dokan/post-listing.php CHANGED
@@ -1,6 +1,6 @@
1
  <header class="dokan-dashboard-header">
2
  <span class="pull-right">
3
- <a href="<?php echo dokan_get_navigation_url( 'posts' ); ?>?action=new-post" class="dokan-btn dokan-btn-theme"><?php _e( '+ Add Post', 'wpuf' ); ?></a>
4
  </span>
5
  </header><!-- .dokan-dashboard-header -->
6
 
1
  <header class="dokan-dashboard-header">
2
  <span class="pull-right">
3
+ <a href="<?php echo dokan_get_navigation_url( 'posts' ); ?>?action=new-post" class="dokan-btn dokan-btn-theme"><?php _e( '+ Add Post', 'wp-user-frontend' ); ?></a>
4
  </span>
5
  </header><!-- .dokan-dashboard-header -->
6
 
templates/logged-in.php CHANGED
@@ -5,7 +5,7 @@
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>
5
  </span>
6
 
7
  <br>
8
+ <h3> <?php printf( __( 'Hello, %s', 'wp-user-frontend' ), $user->display_name ); ?> </h3>
9
 
10
+ <?php printf( __( 'You are currently logged in! %s?', 'wp-user-frontend' ), wp_loginout( '', false ) ) ?>
11
  </div>
templates/login-form.php CHANGED
@@ -19,21 +19,21 @@
19
 
20
  <form name="loginform" class="wpuf-login-form" id="loginform" action="<?php echo $action_url; ?>" method="post">
21
  <p>
22
- <label for="wpuf-user_login"><?php _e( 'Username', 'wpuf' ); ?></label>
23
  <input type="text" name="log" id="wpuf-user_login" class="input" value="" size="20" />
24
  </p>
25
  <p>
26
- <label for="wpuf-user_pass"><?php _e( 'Password', 'wpuf' ); ?></label>
27
  <input type="password" name="pwd" id="wpuf-user_pass" class="input" value="" size="20" />
28
  </p>
29
 
30
  <p class="forgetmenot">
31
  <input name="rememberme" type="checkbox" id="wpuf-rememberme" value="forever" />
32
- <label for="wpuf-rememberme"><?php esc_attr_e( 'Remember Me', 'wpuf' ); ?></label>
33
  </p>
34
 
35
  <p class="submit">
36
- <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Log In', 'wpuf' ); ?>" />
37
  <input type="hidden" name="redirect_to" value="<?php echo wp_get_referer() ?>" />
38
  <input type="hidden" name="wpuf_login" value="true" />
39
  <input type="hidden" name="action" value="login" />
19
 
20
  <form name="loginform" class="wpuf-login-form" id="loginform" action="<?php echo $action_url; ?>" method="post">
21
  <p>
22
+ <label for="wpuf-user_login"><?php _e( 'Username or Email', 'wp-user-frontend' ); ?></label>
23
  <input type="text" name="log" id="wpuf-user_login" class="input" value="" size="20" />
24
  </p>
25
  <p>
26
+ <label for="wpuf-user_pass"><?php _e( 'Password', 'wp-user-frontend' ); ?></label>
27
  <input type="password" name="pwd" id="wpuf-user_pass" class="input" value="" size="20" />
28
  </p>
29
 
30
  <p class="forgetmenot">
31
  <input name="rememberme" type="checkbox" id="wpuf-rememberme" value="forever" />
32
+ <label for="wpuf-rememberme"><?php esc_attr_e( 'Remember Me', 'wp-user-frontend' ); ?></label>
33
  </p>
34
 
35
  <p class="submit">
36
+ <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Log In', 'wp-user-frontend' ); ?>" />
37
  <input type="hidden" name="redirect_to" value="<?php echo wp_get_referer() ?>" />
38
  <input type="hidden" name="wpuf_login" value="true" />
39
  <input type="hidden" name="action" value="login" />
templates/lost-pass-form.php CHANGED
@@ -11,14 +11,14 @@ WPUF will always look in your theme's directory first, before using this default
11
 
12
  <form name="lostpasswordform" id="lostpasswordform" action="" method="post">
13
  <p>
14
- <label for="wpuf-user_login"><?php _e( 'Username or E-mail:', 'wpuf' ); ?></label>
15
  <input type="text" name="user_login" id="wpuf-user_login" class="input" value="" size="20" />
16
  </p>
17
 
18
  <?php do_action( 'lostpassword_form' ); ?>
19
 
20
  <p class="submit">
21
- <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Get New Password', 'wpuf' ); ?>" />
22
  <input type="hidden" name="redirect_to" value="<?php echo WPUF_Simple_Login::get_posted_value( 'redirect_to' ); ?>" />
23
  <input type="hidden" name="wpuf_reset_password" value="true" />
24
  <input type="hidden" name="action" value="lostpassword" />
11
 
12
  <form name="lostpasswordform" id="lostpasswordform" action="" method="post">
13
  <p>
14
+ <label for="wpuf-user_login"><?php _e( 'Username or E-mail:', 'wp-user-frontend' ); ?></label>
15
  <input type="text" name="user_login" id="wpuf-user_login" class="input" value="" size="20" />
16
  </p>
17
 
18
  <?php do_action( 'lostpassword_form' ); ?>
19
 
20
  <p class="submit">
21
+ <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Get New Password', 'wp-user-frontend' ); ?>" />
22
  <input type="hidden" name="redirect_to" value="<?php echo WPUF_Simple_Login::get_posted_value( 'redirect_to' ); ?>" />
23
  <input type="hidden" name="wpuf_reset_password" value="true" />
24
  <input type="hidden" name="action" value="lostpassword" />
templates/registration-form.php CHANGED
@@ -13,7 +13,7 @@
13
  }
14
 
15
  if ( isset($_GET['success']) && "yes" == $_GET['success'] ) {
16
- echo "<div class='wpuf-success' style='text-align:center'>" . __( 'Registration has been successful!', 'wpuf' ) ."</div>";
17
  }
18
  ?>
19
 
@@ -24,7 +24,7 @@
24
 
25
  <ul class="wpuf-form form-label-above">
26
  <li>
27
- <div class="wpuf-label"><?php _e( 'Name', 'wpuf' ); ?> <span class="required">*</span></div>
28
  <div class="wpuf-fields">
29
  <div class="wpuf-name-field-wrap format-first-last">
30
  <div class="wpuf-name-field-first-name">
@@ -41,35 +41,35 @@
41
  </li>
42
 
43
  <li>
44
- <div class="wpuf-label"><?php _e( 'Email', 'wpuf' ); ?> <span class="required">*</span></div>
45
  <div class="wpuf-fields">
46
  <input type="text" name="reg_email" id="wpuf-user_email" class="input" value="<?php echo wpuf()->registration->get_posted_value( 'reg_email' ); ?>" size="40">
47
  </div>
48
  </li>
49
 
50
  <li>
51
- <div class="wpuf-label"><?php _e( 'Username', 'wpuf' ); ?> <span class="required">*</span></div>
52
  <div class="wpuf-fields">
53
  <input type="text" name="log" id="wpuf-user_login" class="input" value="<?php echo wpuf()->registration->get_posted_value( 'log' ); ?>" size="40" />
54
  </div>
55
  </li>
56
 
57
  <li>
58
- <div class="wpuf-label"><?php _e( 'Password', 'wpuf' ); ?> <span class="required">*</span></div>
59
  <div class="wpuf-fields">
60
  <input type="password" name="pwd1" id="wpuf-user_pass1" class="input" value="" size="40" />
61
  </div>
62
  </li>
63
 
64
  <li>
65
- <div class="wpuf-label"><?php _e( 'Confirm Password', 'wpuf' ); ?> <span class="required">*</span></div>
66
  <div class="wpuf-fields">
67
  <input type="password" name="pwd2" id="wpuf-user_pass2" class="input" value="" size="40" />
68
  </div>
69
  </li>
70
 
71
  <li class="wpuf-submit">
72
- <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Register', 'wpuf' ); ?>" />
73
  <input type="hidden" name="urhidden" value=" <?php echo $userrole; ?>" />
74
  <input type="hidden" name="redirect_to" value="<?php echo wpuf()->registration->get_posted_value( 'redirect_to' ); ?>" />
75
  <input type="hidden" name="wpuf_registration" value="true" />
13
  }
14
 
15
  if ( isset($_GET['success']) && "yes" == $_GET['success'] ) {
16
+ echo "<div class='wpuf-success' style='text-align:center'>" . __( 'Registration has been successful!', 'wp-user-frontend' ) ."</div>";
17
  }
18
  ?>
19
 
24
 
25
  <ul class="wpuf-form form-label-above">
26
  <li>
27
+ <div class="wpuf-label"><?php _e( 'Name', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
28
  <div class="wpuf-fields">
29
  <div class="wpuf-name-field-wrap format-first-last">
30
  <div class="wpuf-name-field-first-name">
41
  </li>
42
 
43
  <li>
44
+ <div class="wpuf-label"><?php _e( 'Email', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
45
  <div class="wpuf-fields">
46
  <input type="text" name="reg_email" id="wpuf-user_email" class="input" value="<?php echo wpuf()->registration->get_posted_value( 'reg_email' ); ?>" size="40">
47
  </div>
48
  </li>
49
 
50
  <li>
51
+ <div class="wpuf-label"><?php _e( 'Username', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
52
  <div class="wpuf-fields">
53
  <input type="text" name="log" id="wpuf-user_login" class="input" value="<?php echo wpuf()->registration->get_posted_value( 'log' ); ?>" size="40" />
54
  </div>
55
  </li>
56
 
57
  <li>
58
+ <div class="wpuf-label"><?php _e( 'Password', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
59
  <div class="wpuf-fields">
60
  <input type="password" name="pwd1" id="wpuf-user_pass1" class="input" value="" size="40" />
61
  </div>
62
  </li>
63
 
64
  <li>
65
+ <div class="wpuf-label"><?php _e( 'Confirm Password', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
66
  <div class="wpuf-fields">
67
  <input type="password" name="pwd2" id="wpuf-user_pass2" class="input" value="" size="40" />
68
  </div>
69
  </li>
70
 
71
  <li class="wpuf-submit">
72
+ <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Register', 'wp-user-frontend' ); ?>" />
73
  <input type="hidden" name="urhidden" value=" <?php echo $userrole; ?>" />
74
  <input type="hidden" name="redirect_to" value="<?php echo wpuf()->registration->get_posted_value( 'redirect_to' ); ?>" />
75
  <input type="hidden" name="wpuf_registration" value="true" />
templates/reset-pass-form.php CHANGED
@@ -11,19 +11,19 @@ WPUF will always look in your theme's directory first, before using this default
11
 
12
  <form name="resetpasswordform" id="resetpasswordform" action="" method="post">
13
  <p>
14
- <label for="wpuf-pass1"><?php _e( 'New password', 'wpuf' ); ?></label>
15
  <input autocomplete="off" name="pass1" id="wpuf-pass1" class="input" size="20" value="" type="password" autocomplete="off" />
16
  </p>
17
 
18
  <p>
19
- <label for="wpuf-pass2"><?php _e( 'Confirm new password', 'wpuf' ); ?></label>
20
  <input autocomplete="off" name="pass2" id="wpuf-pass2" class="input" size="20" value="" type="password" autocomplete="off" />
21
  </p>
22
 
23
  <?php do_action( 'resetpassword_form' ); ?>
24
 
25
  <p class="submit">
26
- <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Reset Password', 'wpuf' ); ?>" />
27
  <input type="hidden" name="key" value="<?php echo WPUF_Simple_Login::get_posted_value( 'key' ); ?>" />
28
  <input type="hidden" name="login" id="user_login" value="<?php echo WPUF_Simple_Login::get_posted_value( 'login' ); ?>" />
29
  <input type="hidden" name="wpuf_reset_password" value="true" />
11
 
12
  <form name="resetpasswordform" id="resetpasswordform" action="" method="post">
13
  <p>
14
+ <label for="wpuf-pass1"><?php _e( 'New password', 'wp-user-frontend' ); ?></label>
15
  <input autocomplete="off" name="pass1" id="wpuf-pass1" class="input" size="20" value="" type="password" autocomplete="off" />
16
  </p>
17
 
18
  <p>
19
+ <label for="wpuf-pass2"><?php _e( 'Confirm new password', 'wp-user-frontend' ); ?></label>
20
  <input autocomplete="off" name="pass2" id="wpuf-pass2" class="input" size="20" value="" type="password" autocomplete="off" />
21
  </p>
22
 
23
  <?php do_action( 'resetpassword_form' ); ?>
24
 
25
  <p class="submit">
26
+ <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Reset Password', 'wp-user-frontend' ); ?>" />
27
  <input type="hidden" name="key" value="<?php echo WPUF_Simple_Login::get_posted_value( 'key' ); ?>" />
28
  <input type="hidden" name="login" id="user_login" value="<?php echo WPUF_Simple_Login::get_posted_value( 'login' ); ?>" />
29
  <input type="hidden" name="wpuf_reset_password" value="true" />
templates/subscriptions/pack-details.php CHANGED
@@ -23,10 +23,10 @@
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
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', 'wp-user-frontend' ); ?></span>
27
  <?php } ?>
28
 
29
+ <?php _e( $recurring_des , 'wp-user-frontend' ); ?>
30
 
31
  </div>
32
  <?php
templates/unauthorized.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  if ( empty( $message ) ) {
3
- $msg = '<div class="wpuf-message">' . sprintf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false ) ) . '</div>';
4
  echo apply_filters( 'wpuf_account_unauthorized', $msg );
5
  } else {
6
  echo $message;
1
  <?php
2
  if ( empty( $message ) ) {
3
+ $msg = '<div class="wpuf-message">' . sprintf( __( "This page is restricted. Please %s to view this page.", 'wp-user-frontend' ), wp_loginout( get_permalink(), false ) ) . '</div>';
4
  echo apply_filters( 'wpuf_account_unauthorized', $msg );
5
  } else {
6
  echo $message;
views/welcome-page.php CHANGED
@@ -442,8 +442,8 @@
442
  <img src="<?php echo WPUF_ASSET_URI; ?>/images/welcome/welcome-video.png" alt="Watch how to create your first form" class="video-thumbnail">
443
  </a>
444
  <div class="action-block">
445
- <a href="<?php echo admin_url( 'admin.php?page=wpuf-post-forms' ); ?>" class="wpuf-btn primary"><?php _e( 'Create Your First Form', 'wpuf' ); ?></a>
446
- <a href="<?php echo admin_url( 'admin.php?page=wpuf-support' ); ?>" class="wpuf-btn default"><?php _e( 'Read the Full Guide', 'wpuf' ); ?></a>
447
  </div>
448
  </div>
449
  <div class="wpuf-welcome-modal" id="wpuf-welcome-modal">
@@ -583,8 +583,8 @@
583
 
584
  <div class="footer">
585
  <div class="action-block">
586
- <a href="<?php echo admin_url( 'admin.php?page=wpuf-post-forms' ); ?>" class="wpuf-btn primary"><?php _e( 'Create Your First Form', 'wpuf' ); ?></a>
587
- <a href="<?php echo admin_url( 'admin.php?page=wpuf-support' ); ?>" class="wpuf-btn default"><?php _e( 'Read the Full Guide', 'wpuf' ); ?></a>
588
  </div>
589
  </div><!-- /.footer -->
590
 
442
  <img src="<?php echo WPUF_ASSET_URI; ?>/images/welcome/welcome-video.png" alt="Watch how to create your first form" class="video-thumbnail">
443
  </a>
444
  <div class="action-block">
445
+ <a href="<?php echo admin_url( 'admin.php?page=wpuf-post-forms' ); ?>" class="wpuf-btn primary"><?php _e( 'Create Your First Form', 'wp-user-frontend' ); ?></a>
446
+ <a href="<?php echo admin_url( 'admin.php?page=wpuf-support' ); ?>" class="wpuf-btn default"><?php _e( 'Read the Full Guide', 'wp-user-frontend' ); ?></a>
447
  </div>
448
  </div>
449
  <div class="wpuf-welcome-modal" id="wpuf-welcome-modal">
583
 
584
  <div class="footer">
585
  <div class="action-block">
586
+ <a href="<?php echo admin_url( 'admin.php?page=wpuf-post-forms' ); ?>" class="wpuf-btn primary"><?php _e( 'Create Your First Form', 'wp-user-frontend' ); ?></a>
587
+ <a href="<?php echo admin_url( 'admin.php?page=wpuf-support' ); ?>" class="wpuf-btn default"><?php _e( 'Read the Full Guide', 'wp-user-frontend' ); ?></a>
588
  </div>
589
  </div><!-- /.footer -->
590
 
wpuf-functions.php CHANGED
@@ -24,22 +24,22 @@ function wpuf_show_post_status( $status ) {
24
 
25
  if ( $status == 'publish' ) {
26
 
27
- $title = __( 'Live', 'wpuf' );
28
  $fontcolor = '#33CC33';
29
  } else if ( $status == 'draft' ) {
30
 
31
- $title = __( 'Offline', 'wpuf' );
32
  $fontcolor = '#bbbbbb';
33
  } else if ( $status == 'pending' ) {
34
 
35
- $title = __( 'Awaiting Approval', 'wpuf' );
36
  $fontcolor = '#C00202';
37
  } else if ( $status == 'future' ) {
38
- $title = __( 'Scheduled', 'wpuf' );
39
  $fontcolor = '#bbbbbb';
40
 
41
  } else if ( $status == 'private' ) {
42
- $title = __( 'Private', 'wpuf' );
43
  $fontcolor = '#bbbbbb';
44
  }
45
 
@@ -58,18 +58,18 @@ function wpuf_admin_post_status( $status ) {
58
 
59
  if ( $status == 'publish' ) {
60
 
61
- $title = __( 'Published', 'wpuf' );
62
  $fontcolor = '#009200';
63
  } else if ( $status == 'draft' || $status == 'private' ) {
64
 
65
- $title = __( 'Draft', 'wpuf' );
66
  $fontcolor = '#bbbbbb';
67
  } else if ( $status == 'pending' ) {
68
 
69
- $title = __( 'Pending', 'wpuf' );
70
  $fontcolor = '#C00202';
71
  } else if ( $status == 'future' ) {
72
- $title = __( 'Scheduled', 'wpuf' );
73
  $fontcolor = '#bbbbbb';
74
  }
75
 
@@ -210,7 +210,7 @@ function wpuf_list_users() {
210
  function wpuf_get_pages( $post_type = 'page' ) {
211
  global $wpdb;
212
 
213
- $array = array( '' => __( '-- select --', 'wpuf' ) );
214
  $pages = get_posts( array('post_type' => $post_type, 'numberposts' => -1) );
215
  if ( $pages ) {
216
  foreach ($pages as $page) {
@@ -357,7 +357,7 @@ function wpuf_category_checklist( $post_id = 0, $selected_cats = false, $attr =
357
 
358
  $exclude_type = isset( $attr['exclude_type'] ) ? $attr['exclude_type'] : 'exclude';
359
  $exclude = $attr['exclude'];
360
-
361
  if ( $exclude_type == 'child_of' ) {
362
  $exclude = $exclude[0];
363
  }
@@ -421,14 +421,14 @@ function wpuf_get_image_sizes() {
421
 
422
  function wpuf_allowed_extensions() {
423
  $extesions = array(
424
- 'images' => array('ext' => 'jpg,jpeg,gif,png,bmp', 'label' => __( 'Images', 'wpuf' )),
425
- 'audio' => array('ext' => 'mp3,wav,ogg,wma,mka,m4a,ra,mid,midi', 'label' => __( 'Audio', 'wpuf' )),
426
- 'video' => array('ext' => 'avi,divx,flv,mov,ogv,mkv,mp4,m4v,divx,mpg,mpeg,mpe', 'label' => __( 'Videos', 'wpuf' )),
427
- 'pdf' => array('ext' => 'pdf', 'label' => __( 'PDF', 'wpuf' )),
428
- 'office' => array('ext' => 'doc,ppt,pps,xls,mdb,docx,xlsx,pptx,odt,odp,ods,odg,odc,odb,odf,rtf,txt', 'label' => __( 'Office Documents', 'wpuf' )),
429
- 'zip' => array('ext' => 'zip,gz,gzip,rar,7z', 'label' => __( 'Zip Archives', 'wpuf' )),
430
- 'exe' => array('ext' => 'exe', 'label' => __( 'Executable Files', 'wpuf' )),
431
- 'csv' => array('ext' => 'csv', 'label' => __( 'CSV', 'wpuf' ))
432
  );
433
 
434
  return apply_filters( 'wpuf_allowed_extensions', $extesions );
@@ -750,13 +750,13 @@ function wpuf_show_custom_fields( $content ) {
750
  if ( $show_caption == 'on' ) {
751
  $post_detail = get_post( $attachment_id );
752
  if( !empty( $post_detail->post_title ) ) {
753
- $image_html .= '<br /><label>' . __( 'Title', 'wpuf' ) . ':</label> <span class="image_title">' . esc_html( $post_detail->post_title ) . '</span>';
754
  }
755
  if( !empty( $post_detail->post_excerpt ) ) {
756
- $image_html .= '<br /><label>' . __( 'Caption', 'wpuf' ) . ':</label> <span class="image_caption">' . esc_html( $post_detail->post_excerpt ) . '</span>';
757
  }
758
  if( !empty( $post_detail->post_content ) ) {
759
- $image_html .= '<br /><label>' . __( 'Description', 'wpuf' ) . ':</label> <span class="image_description">' . esc_html( $post_detail->post_content ) . '</span>';
760
  }
761
  }
762
  }
@@ -841,8 +841,9 @@ function wpuf_show_custom_fields( $content ) {
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
  }
@@ -1110,7 +1111,7 @@ function wpufe_ajax_tag_search() {
1110
 
1111
  $s = wp_unslash( $_GET['q'] );
1112
 
1113
- $comma = _x( ',', 'tag delimiter', 'wpuf' );
1114
  if ( ',' !== $comma )
1115
  $s = str_replace( $comma, ',', $s );
1116
  if ( false !== strpos( $s, ',' ) ) {
@@ -1497,11 +1498,11 @@ function wpuf_get_countries( $type = 'array' ) {
1497
  */
1498
  function wpuf_get_account_sections() {
1499
  $account_sections = array(
1500
- array( 'slug' => 'dashboard', 'label' => __( 'Dashboard', 'wpuf' ) ),
1501
- array( 'slug' => 'posts', 'label' => __( 'Posts', 'wpuf' ) ),
1502
- array( 'slug' => 'edit-profile', 'label' => __( 'Edit Profile', 'wpuf' ) ),
1503
- array( 'slug' => 'subscription', 'label' => __( 'Subscription', 'wpuf' ) ),
1504
- array( 'slug' => 'billing-address', 'label' => __( 'Billing Address', 'wpuf' ) ),
1505
  );
1506
 
1507
  return apply_filters( 'wpuf_account_sections', $account_sections );
@@ -1606,57 +1607,57 @@ function wpuf_get_pending_transactions( $args = array() ) {
1606
  */
1607
  function wpuf_get_currencies() {
1608
  $currencies = array(
1609
- array( 'currency' => 'AED', 'label' => __( 'United Arab Emirates Dirham', 'wpuf' ), 'symbol' => 'د.إ' ),
1610
- array( 'currency' => 'AUD', 'label' => __( 'Australian Dollars', 'wpuf' ), 'symbol' => '&#36;' ),
1611
- array( 'currency' => 'AZD', 'label' => __( 'Argentine Peso', 'wpuf' ), 'symbol' => '&#36;' ),
1612
- array( 'currency' => 'BDT', 'label' => __( 'Bangladeshi Taka', 'wpuf' ), 'symbol' => '&#2547;' ),
1613
- array( 'currency' => 'BRL', 'label' => __( 'Brazilian Real', 'wpuf' ), 'symbol' => '&#82;&#36;' ),
1614
- array( 'currency' => 'BGN', 'label' => __( 'Bulgarian Lev', 'wpuf' ), 'symbol' => '&#1083;&#1074;.' ),
1615
- array( 'currency' => 'CAD', 'label' => __( 'Canadian Dollars', 'wpuf' ), 'symbol' => '&#36;' ),
1616
- array( 'currency' => 'CLP', 'label' => __( 'Chilean Peso', 'wpuf' ), 'symbol' => '&#36;' ),
1617
- array( 'currency' => 'CNY', 'label' => __( 'Chinese Yuan', 'wpuf' ), 'symbol' => '&yen;' ),
1618
- array( 'currency' => 'COP', 'label' => __( 'Colombian Peso', 'wpuf' ), 'symbol' => '&#36;' ),
1619
- array( 'currency' => 'CZK', 'label' => __( 'Czech Koruna', 'wpuf' ), 'symbol' => '&#75;&#269;' ),
1620
- array( 'currency' => 'DKK', 'label' => __( 'Danish Krone', 'wpuf' ), 'symbol' => 'kr.' ),
1621
- array( 'currency' => 'DOP', 'label' => __( 'Dominican Peso', 'wpuf' ), 'symbol' => 'RD&#36;' ),
1622
- array( 'currency' => 'DZD', 'label' => __( 'Algerian Dinar', 'wpuf' ), 'symbol' => 'DA;' ),
1623
- array( 'currency' => 'EUR', 'label' => __( 'Euros', 'wpuf' ), 'symbol' => '&euro;' ),
1624
- array( 'currency' => 'HKD', 'label' => __( 'Hong Kong Dollar', 'wpuf' ), 'symbol' => '&#36;' ),
1625
- array( 'currency' => 'HRK', 'label' => __( 'Croatia kuna', 'wpuf' ), 'symbol' => 'Kn' ),
1626
- array( 'currency' => 'HUF', 'label' => __( 'Hungarian Forint', 'wpuf' ), 'symbol' => '&#70;&#116;' ),
1627
- array( 'currency' => 'ISK', 'label' => __( 'Icelandic krona', 'wpuf' ), 'symbol' => 'Kr.' ),
1628
- array( 'currency' => 'IDR', 'label' => __( 'Indonesia Rupiah', 'wpuf' ), 'symbol' => 'Rp' ),
1629
- array( 'currency' => 'INR', 'label' => __( 'Indian Rupee', 'wpuf' ), 'symbol' => '&#8377;' ),
1630
- array( 'currency' => 'NPR', 'label' => __( 'Nepali Rupee', 'wpuf' ), 'symbol' => 'Rs.' ),
1631
- array( 'currency' => 'ILS', 'label' => __( 'Israeli Shekel', 'wpuf' ), 'symbol' => '&#8362;' ),
1632
- array( 'currency' => 'JPY', 'label' => __( 'Japanese Yen', 'wpuf' ), 'symbol' => '&yen;' ),
1633
- array( 'currency' => 'KIP', 'label' => __( 'Lao Kip', 'wpuf' ), 'symbol' => '&#8365;' ),
1634
- array( 'currency' => 'KRW', 'label' => __( 'South Korean Won', 'wpuf' ), 'symbol' => '&#8361;' ),
1635
- array( 'currency' => 'MYR', 'label' => __( 'Malaysian Ringgits', 'wpuf' ), 'symbol' => '&#82;&#77;' ),
1636
- array( 'currency' => 'MXN', 'label' => __( 'Mexican Peso', 'wpuf' ), 'symbol' => '&#36;' ),
1637
- array( 'currency' => 'NGN', 'label' => __( 'Nigerian Naira', 'wpuf' ), 'symbol' => '&#8358;' ),
1638
- array( 'currency' => 'NOK', 'label' => __( 'Norwegian Krone', 'wpuf' ), 'symbol' => '&#107;&#114;' ),
1639
- array( 'currency' => 'NZD', 'label' => __( 'New Zealand Dollar', 'wpuf' ), 'symbol' => '&#36;' ),
1640
- array( 'currency' => 'OMR', 'label' => __( 'Omani Rial', 'wpuf' ), 'symbol' => 'ر.ع.' ),
1641
- array( 'currency' => 'IRR', 'label' => __( 'Iranian Rial', 'wpuf' ), 'symbol' => '﷼' ),
1642
- array( 'currency' => 'PKR', 'label' => __( 'Pakistani Rupee', 'wpuf' ), 'symbol' => 'Rs' ),
1643
- array( 'currency' => 'PYG', 'label' => __( 'Paraguayan Guaraní', 'wpuf' ), 'symbol' => '&#8370;' ),
1644
- array( 'currency' => 'PHP', 'label' => __( 'Philippine Pesos', 'wpuf' ), 'symbol' => '&#8369;' ),
1645
- array( 'currency' => 'PLN', 'label' => __( 'Polish Zloty', 'wpuf' ), 'symbol' => '&#122;&#322;' ),
1646
- array( 'currency' => 'GBP', 'label' => __( 'Pounds Sterling', 'wpuf' ), 'symbol' => '&pound;' ),
1647
- array( 'currency' => 'RON', 'label' => __( 'Romanian Leu', 'wpuf' ), 'symbol' => 'lei' ),
1648
- array( 'currency' => 'RUB', 'label' => __( 'Russian Ruble', 'wpuf' ), 'symbol' => '&#1088;&#1091;&#1073;.' ),
1649
- array( 'currency' => 'SR', 'label' => __( 'Saudi Riyal', 'wpuf'), 'symbol' => 'SR' ),
1650
- array( 'currency' => 'SGD', 'label' => __( 'Singapore Dollar', 'wpuf' ), 'symbol' => '&#36;' ),
1651
- array( 'currency' => 'ZAR', 'label' => __( 'South African rand', 'wpuf' ), 'symbol' => '&#82;' ),
1652
- array( 'currency' => 'SEK', 'label' => __( 'Swedish Krona', 'wpuf' ), 'symbol' => '&#107;&#114;' ),
1653
- array( 'currency' => 'CHF', 'label' => __( 'Swiss Franc', 'wpuf' ), 'symbol' => '&#67;&#72;&#70;' ),
1654
- array( 'currency' => 'TWD', 'label' => __( 'Taiwan New Dollars', 'wpuf' ), 'symbol' => '&#78;&#84;&#36;' ),
1655
- array( 'currency' => 'THB', 'label' => __( 'Thai Baht', 'wpuf' ), 'symbol' => '&#3647;' ),
1656
- array( 'currency' => 'TRY', 'label' => __( 'Turkish Lira', 'wpuf' ), 'symbol' => '&#8378;' ),
1657
- array( 'currency' => 'USD', 'label' => __( 'US Dollar', 'wpuf' ), 'symbol' => '&#36;' ),
1658
- array( 'currency' => 'VND', 'label' => __( 'Vietnamese Dong', 'wpuf' ), 'symbol' => '&#8363;' ),
1659
- array( 'currency' => 'EGP', 'label' => __( 'Egyptian Pound', 'wpuf' ), 'symbol' => 'EGP' ),
1660
  );
1661
 
1662
  return apply_filters( 'wpuf_currencies', $currencies );
@@ -2485,8 +2486,8 @@ function wpuf_select( $args = array() ) {
2485
  'chosen' => false,
2486
  'placeholder' => null,
2487
  'multiple' => false,
2488
- 'show_option_all' => __( 'All', 'all dropdown items', 'wpuf' ),
2489
- 'show_option_none' => __( 'None', 'no dropdown items', 'wpuf' ),
2490
  'data' => array(),
2491
  'readonly' => false,
2492
  'disabled' => false,
@@ -2775,7 +2776,7 @@ function wpuf_get_user_address() {
2775
  $countries_obj = new WC_Countries();
2776
  $countries_array = $countries_obj->get_countries();
2777
  $country_states_array = $countries_obj->get_states();
2778
- $woo_address['state'] = $country_states_array[$woo_address['country']][$woo_address['state']];
2779
  $woo_address['state'] = strtolower( str_replace( ' ', '', $woo_address['state'] ) );
2780
 
2781
  if ( !empty( $woo_address ) ) {
@@ -2817,3 +2818,27 @@ function wpuf_settings_multiselect( $args ) {
2817
 
2818
  echo $html;
2819
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  if ( $status == 'publish' ) {
26
 
27
+ $title = __( 'Live', 'wp-user-frontend' );
28
  $fontcolor = '#33CC33';
29
  } else if ( $status == 'draft' ) {
30
 
31
+ $title = __( 'Offline', 'wp-user-frontend' );
32
  $fontcolor = '#bbbbbb';
33
  } else if ( $status == 'pending' ) {
34
 
35
+ $title = __( 'Awaiting Approval', 'wp-user-frontend' );
36
  $fontcolor = '#C00202';
37
  } else if ( $status == 'future' ) {
38
+ $title = __( 'Scheduled', 'wp-user-frontend' );
39
  $fontcolor = '#bbbbbb';
40
 
41
  } else if ( $status == 'private' ) {
42
+ $title = __( 'Private', 'wp-user-frontend' );
43
  $fontcolor = '#bbbbbb';
44
  }
45
 
58
 
59
  if ( $status == 'publish' ) {
60
 
61
+ $title = __( 'Published', 'wp-user-frontend' );
62
  $fontcolor = '#009200';
63
  } else if ( $status == 'draft' || $status == 'private' ) {
64
 
65
+ $title = __( 'Draft', 'wp-user-frontend' );
66
  $fontcolor = '#bbbbbb';
67
  } else if ( $status == 'pending' ) {
68
 
69
+ $title = __( 'Pending', 'wp-user-frontend' );
70
  $fontcolor = '#C00202';
71
  } else if ( $status == 'future' ) {
72
+ $title = __( 'Scheduled', 'wp-user-frontend' );
73
  $fontcolor = '#bbbbbb';
74
  }
75
 
210
  function wpuf_get_pages( $post_type = 'page' ) {
211
  global $wpdb;
212
 
213
+ $array = array( '' => __( '-- select --', 'wp-user-frontend' ) );
214
  $pages = get_posts( array('post_type' => $post_type, 'numberposts' => -1) );
215
  if ( $pages ) {
216
  foreach ($pages as $page) {
357
 
358
  $exclude_type = isset( $attr['exclude_type'] ) ? $attr['exclude_type'] : 'exclude';
359
  $exclude = $attr['exclude'];
360
+
361
  if ( $exclude_type == 'child_of' ) {
362
  $exclude = $exclude[0];
363
  }
421
 
422
  function wpuf_allowed_extensions() {
423
  $extesions = array(
424
+ 'images' => array('ext' => 'jpg,jpeg,gif,png,bmp', 'label' => __( 'Images', 'wp-user-frontend' )),
425
+ 'audio' => array('ext' => 'mp3,wav,ogg,wma,mka,m4a,ra,mid,midi', 'label' => __( 'Audio', 'wp-user-frontend' )),
426
+ 'video' => array('ext' => 'avi,divx,flv,mov,ogv,mkv,mp4,m4v,divx,mpg,mpeg,mpe', 'label' => __( 'Videos', 'wp-user-frontend' )),
427
+ 'pdf' => array('ext' => 'pdf', 'label' => __( 'PDF', 'wp-user-frontend' )),
428
+ 'office' => array('ext' => 'doc,ppt,pps,xls,mdb,docx,xlsx,pptx,odt,odp,ods,odg,odc,odb,odf,rtf,txt', 'label' => __( 'Office Documents', 'wp-user-frontend' )),
429
+ 'zip' => array('ext' => 'zip,gz,gzip,rar,7z', 'label' => __( 'Zip Archives', 'wp-user-frontend' )),
430
+ 'exe' => array('ext' => 'exe', 'label' => __( 'Executable Files', 'wp-user-frontend' )),
431
+ 'csv' => array('ext' => 'csv', 'label' => __( 'CSV', 'wp-user-frontend' ))
432
  );
433
 
434
  return apply_filters( 'wpuf_allowed_extensions', $extesions );
750
  if ( $show_caption == 'on' ) {
751
  $post_detail = get_post( $attachment_id );
752
  if( !empty( $post_detail->post_title ) ) {
753
+ $image_html .= '<br /><label>' . __( 'Title', 'wp-user-frontend' ) . ':</label> <span class="image_title">' . esc_html( $post_detail->post_title ) . '</span>';
754
  }
755
  if( !empty( $post_detail->post_excerpt ) ) {
756
+ $image_html .= '<br /><label>' . __( 'Caption', 'wp-user-frontend' ) . ':</label> <span class="image_caption">' . esc_html( $post_detail->post_excerpt ) . '</span>';
757
  }
758
  if( !empty( $post_detail->post_content ) ) {
759
+ $image_html .= '<br /><label>' . __( 'Description', 'wp-user-frontend' ) . ':</label> <span class="image_description">' . esc_html( $post_detail->post_content ) . '</span>';
760
  }
761
  }
762
  }
841
  } elseif ( ( $attr['input_type'] == 'checkbox' || $attr['input_type'] == 'multiselect' ) && is_array( $value ) ) {
842
 
843
  if ( !empty( $value[0] ) ) {
844
+ $glue = array( '| ', '', );
845
+ $modified_value = implode( $glue, $value[0] );
846
+
847
  if ( $modified_value ) {
848
  $html .= sprintf( '<li><label>%s</label>: %s</li>', $attr['label'], make_clickable( $modified_value ) );
849
  }
1111
 
1112
  $s = wp_unslash( $_GET['q'] );
1113
 
1114
+ $comma = _x( ',', 'tag delimiter', 'wp-user-frontend' );
1115
  if ( ',' !== $comma )
1116
  $s = str_replace( $comma, ',', $s );
1117
  if ( false !== strpos( $s, ',' ) ) {
1498
  */
1499
  function wpuf_get_account_sections() {
1500
  $account_sections = array(
1501
+ array( 'slug' => 'dashboard', 'label' => __( 'Dashboard', 'wp-user-frontend' ) ),
1502
+ array( 'slug' => 'posts', 'label' => __( 'Posts', 'wp-user-frontend' ) ),
1503
+ array( 'slug' => 'edit-profile', 'label' => __( 'Edit Profile', 'wp-user-frontend' ) ),
1504
+ array( 'slug' => 'subscription', 'label' => __( 'Subscription', 'wp-user-frontend' ) ),
1505
+ array( 'slug' => 'billing-address', 'label' => __( 'Billing Address', 'wp-user-frontend' ) ),
1506
  );
1507
 
1508
  return apply_filters( 'wpuf_account_sections', $account_sections );
1607
  */
1608
  function wpuf_get_currencies() {
1609
  $currencies = array(
1610
+ array( 'currency' => 'AED', 'label' => __( 'United Arab Emirates Dirham', 'wp-user-frontend' ), 'symbol' => 'د.إ' ),
1611
+ array( 'currency' => 'AUD', 'label' => __( 'Australian Dollars', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1612
+ array( 'currency' => 'AZD', 'label' => __( 'Argentine Peso', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1613
+ array( 'currency' => 'BDT', 'label' => __( 'Bangladeshi Taka', 'wp-user-frontend' ), 'symbol' => '&#2547;' ),
1614
+ array( 'currency' => 'BRL', 'label' => __( 'Brazilian Real', 'wp-user-frontend' ), 'symbol' => '&#82;&#36;' ),
1615
+ array( 'currency' => 'BGN', 'label' => __( 'Bulgarian Lev', 'wp-user-frontend' ), 'symbol' => '&#1083;&#1074;.' ),
1616
+ array( 'currency' => 'CAD', 'label' => __( 'Canadian Dollars', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1617
+ array( 'currency' => 'CLP', 'label' => __( 'Chilean Peso', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1618
+ array( 'currency' => 'CNY', 'label' => __( 'Chinese Yuan', 'wp-user-frontend' ), 'symbol' => '&yen;' ),
1619
+ array( 'currency' => 'COP', 'label' => __( 'Colombian Peso', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1620
+ array( 'currency' => 'CZK', 'label' => __( 'Czech Koruna', 'wp-user-frontend' ), 'symbol' => '&#75;&#269;' ),
1621
+ array( 'currency' => 'DKK', 'label' => __( 'Danish Krone', 'wp-user-frontend' ), 'symbol' => 'kr.' ),
1622
+ array( 'currency' => 'DOP', 'label' => __( 'Dominican Peso', 'wp-user-frontend' ), 'symbol' => 'RD&#36;' ),
1623
+ array( 'currency' => 'DZD', 'label' => __( 'Algerian Dinar', 'wp-user-frontend' ), 'symbol' => 'DA;' ),
1624
+ array( 'currency' => 'EUR', 'label' => __( 'Euros', 'wp-user-frontend' ), 'symbol' => '&euro;' ),
1625
+ array( 'currency' => 'HKD', 'label' => __( 'Hong Kong Dollar', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1626
+ array( 'currency' => 'HRK', 'label' => __( 'Croatia kuna', 'wp-user-frontend' ), 'symbol' => 'Kn' ),
1627
+ array( 'currency' => 'HUF', 'label' => __( 'Hungarian Forint', 'wp-user-frontend' ), 'symbol' => '&#70;&#116;' ),
1628
+ array( 'currency' => 'ISK', 'label' => __( 'Icelandic krona', 'wp-user-frontend' ), 'symbol' => 'Kr.' ),
1629
+ array( 'currency' => 'IDR', 'label' => __( 'Indonesia Rupiah', 'wp-user-frontend' ), 'symbol' => 'Rp' ),
1630
+ array( 'currency' => 'INR', 'label' => __( 'Indian Rupee', 'wp-user-frontend' ), 'symbol' => '&#8377;' ),
1631
+ array( 'currency' => 'NPR', 'label' => __( 'Nepali Rupee', 'wp-user-frontend' ), 'symbol' => 'Rs.' ),
1632
+ array( 'currency' => 'ILS', 'label' => __( 'Israeli Shekel', 'wp-user-frontend' ), 'symbol' => '&#8362;' ),
1633
+ array( 'currency' => 'JPY', 'label' => __( 'Japanese Yen', 'wp-user-frontend' ), 'symbol' => '&yen;' ),
1634
+ array( 'currency' => 'KIP', 'label' => __( 'Lao Kip', 'wp-user-frontend' ), 'symbol' => '&#8365;' ),
1635
+ array( 'currency' => 'KRW', 'label' => __( 'South Korean Won', 'wp-user-frontend' ), 'symbol' => '&#8361;' ),
1636
+ array( 'currency' => 'MYR', 'label' => __( 'Malaysian Ringgits', 'wp-user-frontend' ), 'symbol' => '&#82;&#77;' ),
1637
+ array( 'currency' => 'MXN', 'label' => __( 'Mexican Peso', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1638
+ array( 'currency' => 'NGN', 'label' => __( 'Nigerian Naira', 'wp-user-frontend' ), 'symbol' => '&#8358;' ),
1639
+ array( 'currency' => 'NOK', 'label' => __( 'Norwegian Krone', 'wp-user-frontend' ), 'symbol' => '&#107;&#114;' ),
1640
+ array( 'currency' => 'NZD', 'label' => __( 'New Zealand Dollar', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1641
+ array( 'currency' => 'OMR', 'label' => __( 'Omani Rial', 'wp-user-frontend' ), 'symbol' => 'ر.ع.' ),
1642
+ array( 'currency' => 'IRR', 'label' => __( 'Iranian Rial', 'wp-user-frontend' ), 'symbol' => '﷼' ),
1643
+ array( 'currency' => 'PKR', 'label' => __( 'Pakistani Rupee', 'wp-user-frontend' ), 'symbol' => 'Rs' ),
1644
+ array( 'currency' => 'PYG', 'label' => __( 'Paraguayan Guaraní', 'wp-user-frontend' ), 'symbol' => '&#8370;' ),
1645
+ array( 'currency' => 'PHP', 'label' => __( 'Philippine Pesos', 'wp-user-frontend' ), 'symbol' => '&#8369;' ),
1646
+ array( 'currency' => 'PLN', 'label' => __( 'Polish Zloty', 'wp-user-frontend' ), 'symbol' => '&#122;&#322;' ),
1647
+ array( 'currency' => 'GBP', 'label' => __( 'Pounds Sterling', 'wp-user-frontend' ), 'symbol' => '&pound;' ),
1648
+ array( 'currency' => 'RON', 'label' => __( 'Romanian Leu', 'wp-user-frontend' ), 'symbol' => 'lei' ),
1649
+ array( 'currency' => 'RUB', 'label' => __( 'Russian Ruble', 'wp-user-frontend' ), 'symbol' => '&#1088;&#1091;&#1073;.' ),
1650
+ array( 'currency' => 'SR', 'label' => __( 'Saudi Riyal', 'wp-user-frontend'), 'symbol' => 'SR' ),
1651
+ array( 'currency' => 'SGD', 'label' => __( 'Singapore Dollar', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1652
+ array( 'currency' => 'ZAR', 'label' => __( 'South African rand', 'wp-user-frontend' ), 'symbol' => '&#82;' ),
1653
+ array( 'currency' => 'SEK', 'label' => __( 'Swedish Krona', 'wp-user-frontend' ), 'symbol' => '&#107;&#114;' ),
1654
+ array( 'currency' => 'CHF', 'label' => __( 'Swiss Franc', 'wp-user-frontend' ), 'symbol' => '&#67;&#72;&#70;' ),
1655
+ array( 'currency' => 'TWD', 'label' => __( 'Taiwan New Dollars', 'wp-user-frontend' ), 'symbol' => '&#78;&#84;&#36;' ),
1656
+ array( 'currency' => 'THB', 'label' => __( 'Thai Baht', 'wp-user-frontend' ), 'symbol' => '&#3647;' ),
1657
+ array( 'currency' => 'TRY', 'label' => __( 'Turkish Lira', 'wp-user-frontend' ), 'symbol' => '&#8378;' ),
1658
+ array( 'currency' => 'USD', 'label' => __( 'US Dollar', 'wp-user-frontend' ), 'symbol' => '&#36;' ),
1659
+ array( 'currency' => 'VND', 'label' => __( 'Vietnamese Dong', 'wp-user-frontend' ), 'symbol' => '&#8363;' ),
1660
+ array( 'currency' => 'EGP', 'label' => __( 'Egyptian Pound', 'wp-user-frontend' ), 'symbol' => 'EGP' ),
1661
  );
1662
 
1663
  return apply_filters( 'wpuf_currencies', $currencies );
2486
  'chosen' => false,
2487
  'placeholder' => null,
2488
  'multiple' => false,
2489
+ 'show_option_all' => __( 'All', 'all dropdown items', 'wp-user-frontend' ),
2490
+ 'show_option_none' => __( 'None', 'no dropdown items', 'wp-user-frontend' ),
2491
  'data' => array(),
2492
  'readonly' => false,
2493
  'disabled' => false,
2776
  $countries_obj = new WC_Countries();
2777
  $countries_array = $countries_obj->get_countries();
2778
  $country_states_array = $countries_obj->get_states();
2779
+ $woo_address['state'] = isset( $country_states_array[$woo_address['country']][$woo_address['state']] ) ? $country_states_array[$woo_address['country']][$woo_address['state']] : '';
2780
  $woo_address['state'] = strtolower( str_replace( ' ', '', $woo_address['state'] ) );
2781
 
2782
  if ( !empty( $woo_address ) ) {
2818
 
2819
  echo $html;
2820
  }
2821
+
2822
+ /**
2823
+ * Filters custom avatar url
2824
+ *
2825
+ * @param array $args
2826
+ */
2827
+ function wpuf_get_custom_avatar( $args, $id_or_email ) {
2828
+
2829
+ $user_id = get_current_user_id();
2830
+
2831
+ if ( email_exists( $id_or_email ) ) {
2832
+ $user_id = email_exists( $id_or_email );
2833
+ }
2834
+
2835
+ if ( $user_id ) {
2836
+ $custom_avatar_url = get_user_meta( $user_id, 'user_avatar', true );
2837
+ }
2838
+ if ( !empty( $custom_avatar_url )) {
2839
+ $args['url'] = $custom_avatar_url;
2840
+ }
2841
+
2842
+ return $args;
2843
+ }
2844
+ add_filter( 'get_avatar_data', 'wpuf_get_custom_avatar', 10, 2 );
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.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,7 +12,7 @@ Text Domain: wpuf
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__ ) );
@@ -101,8 +101,8 @@ final class WP_User_Frontend {
101
  return;
102
  }
103
 
104
- $error = __( 'Your installed PHP Version is: ', 'wpuf' ) . PHP_VERSION . '. ';
105
- $error .= __( 'The <strong>WP User Frontend</strong> plugin requires PHP version <strong>', 'wpuf' ) . $this->min_php . __( '</strong> or greater.', 'wpuf' );
106
  ?>
107
  <div class="error">
108
  <p><?php printf( $error ); ?></p>
@@ -183,7 +183,7 @@ final class WP_User_Frontend {
183
  'posts_per_page' => -1
184
  );
185
 
186
- $mail_subject = apply_filters( 'wpuf_post_expiry_mail_subject', sprintf( '[%s] %s', get_bloginfo( 'name' ), __( 'Your Post Has Been Expired', 'wpuf' ) ) );
187
  $posts = get_posts( $args );
188
 
189
  foreach ( $posts as $each_post ) {
@@ -246,6 +246,7 @@ final class WP_User_Frontend {
246
  require_once WPUF_ROOT . '/includes/class-billing-address.php';
247
  include_once WPUF_ROOT . '/includes/class-gutenblock.php';
248
  include_once WPUF_ROOT . '/includes/class-form-preview.php';
 
249
 
250
  if ( class_exists( 'WeDevs_Dokan' ) ) {
251
  require_once WPUF_ROOT . '/includes/class-dokan-integration.php';
@@ -271,6 +272,7 @@ final class WP_User_Frontend {
271
  include_once WPUF_ROOT . '/lib/class-weforms-upsell.php';
272
  include_once WPUF_ROOT . '/includes/class-whats-new.php';
273
  include_once WPUF_ROOT . '/includes/class-acf.php';
 
274
 
275
  } else {
276
 
@@ -306,6 +308,7 @@ final class WP_User_Frontend {
306
  $this->container['forms'] = new WPUF_Form_Manager();
307
  $this->container['preview'] = new WPUF_Form_Preview();
308
  $this->container['block'] = new WPUF_Form_Block();
 
309
 
310
  if ( class_exists( 'WeDevs_Dokan' ) ) {
311
  $this->container['dokan_integration'] = new WPUF_Dokan_Integration();
@@ -323,6 +326,7 @@ final class WP_User_Frontend {
323
  $this->container['welcome'] = new WPUF_Admin_Welcome();
324
  $this->container['whats_new'] = new WPUF_Whats_New();
325
  $this->container['wpuf_acf'] = new WPUF_ACF_Compatibility();
 
326
 
327
  } else {
328
 
@@ -416,6 +420,8 @@ final class WP_User_Frontend {
416
 
417
  $load_gmap = apply_filters( 'wpuf_load_gmap_script', true );
418
 
 
 
419
  if ( ! empty( $api_key ) && $load_gmap ) {
420
  wp_enqueue_script( 'google-maps', $scheme . '://maps.google.com/maps/api/js?libraries=places&key=' . $api_key, array(), null );
421
  }
@@ -424,16 +430,16 @@ final class WP_User_Frontend {
424
  ?>
425
  <script type="text/javascript" id="wpuf-language-script">
426
  var error_str_obj = {
427
- 'required' : '<?php esc_attr_e( 'is required', 'wpuf' ); ?>',
428
- 'mismatch' : '<?php esc_attr_e( 'does not match', 'wpuf' ); ?>',
429
- 'validation' : '<?php esc_attr_e( 'is not valid', 'wpuf' ); ?>'
430
  }
431
  </script>
432
  <?php
433
- wp_enqueue_script( 'wpuf-form', WPUF_ASSET_URI . '/js/frontend-form' . $suffix . '.js', array( 'jquery' ) );
434
  }
435
 
436
- wp_enqueue_style( 'wpuf-css', WPUF_ASSET_URI . '/css/frontend-forms.css' );
437
 
438
  // register css files for different layouts of frontend form
439
  wp_register_style( 'wpuf-layout1', WPUF_ASSET_URI . '/css/frontend-form/layout1.css' );
@@ -442,11 +448,11 @@ final class WP_User_Frontend {
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
 
447
  if ( wpuf_get_option( 'load_script', 'wpuf_general', 'on' ) == 'on' ) {
448
  $this->plugin_scripts();
449
- } elseif ( wpuf_has_shortcode( 'wpuf_form' ) || wpuf_has_shortcode( 'wpuf_edit' ) || wpuf_has_shortcode( 'wpuf_profile' ) || wpuf_has_shortcode( 'wpuf_dashboard' ) || wpuf_has_shortcode( 'weforms' ) || wpuf_has_shortcode( 'wpuf_account' ) ) {
450
  $this->plugin_scripts();
451
  }
452
  }
@@ -482,6 +488,7 @@ final class WP_User_Frontend {
482
 
483
  function plugin_scripts() {
484
 
 
485
  wp_enqueue_style( 'jquery-ui', WPUF_ASSET_URI . '/css/jquery-ui-1.9.1.custom.css' );
486
 
487
  wp_enqueue_script( 'jquery' );
@@ -492,16 +499,22 @@ final class WP_User_Frontend {
492
  wp_enqueue_script( 'plupload-handlers' );
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' ),
505
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
506
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
507
  'plupload' => array(
@@ -509,15 +522,15 @@ final class WP_User_Frontend {
509
  'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
510
  'filters' => array(
511
  array(
512
- 'title' => __( 'Allowed Files', 'wpuf' ),
513
  'extensions' => '*'
514
  )
515
  ),
516
  'multipart' => true,
517
  'urlstream_upload' => true,
518
- 'warning' => __( 'Maximum number of files reached!', 'wpuf' ),
519
- 'size_error' => __( 'The file you have uploaded exceeds the file size limit. Please try again.', 'wpuf' ),
520
- 'type_error' => __( 'You have uploaded an incorrect file type. Please try again.', 'wpuf' )
521
  )
522
  ) );
523
  }
@@ -574,7 +587,7 @@ final class WP_User_Frontend {
574
  * @author Tareq Hasan
575
  */
576
  function load_textdomain() {
577
- load_plugin_textdomain( 'wpuf', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
578
  }
579
 
580
  /**
@@ -654,7 +667,7 @@ final class WP_User_Frontend {
654
  public function install_weforms() {
655
 
656
  if ( ! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-weforms-installer-nonce' ) ) {
657
- wp_send_json_error( __( 'Error: Nonce verification failed', 'wpuf' ) );
658
  }
659
 
660
  include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
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.9
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.9' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
101
  return;
102
  }
103
 
104
+ $error = __( 'Your installed PHP Version is: ', 'wp-user-frontend' ) . PHP_VERSION . '. ';
105
+ $error .= __( 'The <strong>WP User Frontend</strong> plugin requires PHP version <strong>', 'wp-user-frontend' ) . $this->min_php . __( '</strong> or greater.', 'wp-user-frontend' );
106
  ?>
107
  <div class="error">
108
  <p><?php printf( $error ); ?></p>
183
  'posts_per_page' => -1
184
  );
185
 
186
+ $mail_subject = apply_filters( 'wpuf_post_expiry_mail_subject', sprintf( '[%s] %s', get_bloginfo( 'name' ), __( 'Your Post Has Been Expired', 'wp-user-frontend' ) ) );
187
  $posts = get_posts( $args );
188
 
189
  foreach ( $posts as $each_post ) {
246
  require_once WPUF_ROOT . '/includes/class-billing-address.php';
247
  include_once WPUF_ROOT . '/includes/class-gutenblock.php';
248
  include_once WPUF_ROOT . '/includes/class-form-preview.php';
249
+ include_once WPUF_ROOT . '/includes/class-customizer.php';
250
 
251
  if ( class_exists( 'WeDevs_Dokan' ) ) {
252
  require_once WPUF_ROOT . '/includes/class-dokan-integration.php';
272
  include_once WPUF_ROOT . '/lib/class-weforms-upsell.php';
273
  include_once WPUF_ROOT . '/includes/class-whats-new.php';
274
  include_once WPUF_ROOT . '/includes/class-acf.php';
275
+ include_once WPUF_ROOT . '/includes/class-privacy.php';
276
 
277
  } else {
278
 
308
  $this->container['forms'] = new WPUF_Form_Manager();
309
  $this->container['preview'] = new WPUF_Form_Preview();
310
  $this->container['block'] = new WPUF_Form_Block();
311
+ $this->container['customize'] = new WPUF_Customizer_Options();
312
 
313
  if ( class_exists( 'WeDevs_Dokan' ) ) {
314
  $this->container['dokan_integration'] = new WPUF_Dokan_Integration();
326
  $this->container['welcome'] = new WPUF_Admin_Welcome();
327
  $this->container['whats_new'] = new WPUF_Whats_New();
328
  $this->container['wpuf_acf'] = new WPUF_ACF_Compatibility();
329
+ $this->container['privacy'] = new WPUF_Privacy();
330
 
331
  } else {
332
 
420
 
421
  $load_gmap = apply_filters( 'wpuf_load_gmap_script', true );
422
 
423
+ $pay_page = intval( wpuf_get_option( 'payment_page', 'wpuf_payment' ) );
424
+
425
  if ( ! empty( $api_key ) && $load_gmap ) {
426
  wp_enqueue_script( 'google-maps', $scheme . '://maps.google.com/maps/api/js?libraries=places&key=' . $api_key, array(), null );
427
  }
430
  ?>
431
  <script type="text/javascript" id="wpuf-language-script">
432
  var error_str_obj = {
433
+ 'required' : '<?php esc_attr_e( 'is required', 'wp-user-frontend' ); ?>',
434
+ 'mismatch' : '<?php esc_attr_e( 'does not match', 'wp-user-frontend' ); ?>',
435
+ 'validation' : '<?php esc_attr_e( 'is not valid', 'wp-user-frontend' ); ?>'
436
  }
437
  </script>
438
  <?php
439
+ wp_register_script( 'wpuf-form', WPUF_ASSET_URI . '/js/frontend-form' . $suffix . '.js', array( 'jquery' ) );
440
  }
441
 
442
+ wp_register_style( 'wpuf-css', WPUF_ASSET_URI . '/css/frontend-forms.css' );
443
 
444
  // register css files for different layouts of frontend form
445
  wp_register_style( 'wpuf-layout1', WPUF_ASSET_URI . '/css/frontend-form/layout1.css' );
448
  wp_register_style( 'wpuf-layout4', WPUF_ASSET_URI . '/css/frontend-form/layout4.css' );
449
  wp_register_style( 'wpuf-layout5', WPUF_ASSET_URI . '/css/frontend-form/layout5.css' );
450
 
451
+ wp_register_script( 'wpuf-subscriptions', WPUF_ASSET_URI . '/js/subscriptions.js', array( 'jquery' ), false, true );
452
 
453
  if ( wpuf_get_option( 'load_script', 'wpuf_general', 'on' ) == 'on' ) {
454
  $this->plugin_scripts();
455
+ } elseif ( wpuf_has_shortcode( 'wpuf_form' ) || wpuf_has_shortcode( 'wpuf_edit' ) || wpuf_has_shortcode( 'wpuf_profile' ) || wpuf_has_shortcode( 'wpuf_dashboard' ) || wpuf_has_shortcode( 'weforms' ) || wpuf_has_shortcode( 'wpuf_account' ) || wpuf_has_shortcode( 'wpuf_sub_pack' ) || ( isset( $post->ID ) && ( $pay_page == $post->ID ) ) ) {
456
  $this->plugin_scripts();
457
  }
458
  }
488
 
489
  function plugin_scripts() {
490
 
491
+ wp_enqueue_style( 'wpuf-css' );
492
  wp_enqueue_style( 'jquery-ui', WPUF_ASSET_URI . '/css/jquery-ui-1.9.1.custom.css' );
493
 
494
  wp_enqueue_script( 'jquery' );
499
  wp_enqueue_script( 'plupload-handlers' );
500
  wp_enqueue_script( 'jquery-ui-timepicker', WPUF_ASSET_URI . '/js/jquery-ui-timepicker-addon.js', array( 'jquery-ui-datepicker' ) );
501
  wp_enqueue_script( 'wpuf-upload', WPUF_ASSET_URI . '/js/upload.js', array( 'jquery', 'plupload-handlers' ) );
502
+ wp_enqueue_script( 'wpuf-form' );
503
+ wp_enqueue_script( 'wpuf-subscriptions' );
504
 
505
  wp_localize_script( 'wpuf-form', 'wpuf_frontend', apply_filters( 'wpuf_frontend_js_data' , array(
506
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
507
+ 'error_message' => __( 'Please fix the errors to proceed', 'wp-user-frontend' ),
508
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
509
+ 'word_limit' => __( 'Word limit reached', 'wp-user-frontend' )
510
+ )) );
511
+
512
+ wp_localize_script( 'wpuf-subscriptions', 'wpuf_subscription', apply_filters( 'wpuf_subscription_js_data' , array(
513
+ 'pack_notice' => __( 'Please Cancel Your Currently Active Pack first!', 'wp-user-frontend' ),
514
  )) );
515
 
516
  wp_localize_script( 'wpuf-upload', 'wpuf_frontend_upload', array(
517
+ 'confirmMsg' => __( 'Are you sure?', 'wp-user-frontend' ),
518
  'nonce' => wp_create_nonce( 'wpuf_nonce' ),
519
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
520
  'plupload' => array(
522
  'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
523
  'filters' => array(
524
  array(
525
+ 'title' => __( 'Allowed Files', 'wp-user-frontend' ),
526
  'extensions' => '*'
527
  )
528
  ),
529
  'multipart' => true,
530
  'urlstream_upload' => true,
531
+ 'warning' => __( 'Maximum number of files reached!', 'wp-user-frontend' ),
532
+ 'size_error' => __( 'The file you have uploaded exceeds the file size limit. Please try again.', 'wp-user-frontend' ),
533
+ 'type_error' => __( 'You have uploaded an incorrect file type. Please try again.', 'wp-user-frontend' )
534
  )
535
  ) );
536
  }
587
  * @author Tareq Hasan
588
  */
589
  function load_textdomain() {
590
+ load_plugin_textdomain( 'wp-user-frontend', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
591
  }
592
 
593
  /**
667
  public function install_weforms() {
668
 
669
  if ( ! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-weforms-installer-nonce' ) ) {
670
+ wp_send_json_error( __( 'Error: Nonce verification failed', 'wp-user-frontend' ) );
671
  }
672
 
673
  include_once ABSPATH . 'wp-admin/includes/plugin-install.php';