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

Version Description

Download this release

Release Info

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

Code changes from version 3.5.21 to 3.5.22

admin/class-admin-settings.php CHANGED
@@ -20,7 +20,7 @@ class WPUF_Admin_Settings {
20
  private static $_instance;
21
 
22
  /**
23
- * public instance of this class
24
  *
25
  * @var \self
26
  */
@@ -36,19 +36,19 @@ class WPUF_Admin_Settings {
36
  private $menu_pages = [];
37
 
38
  public function __construct() {
39
- if ( !class_exists( 'WeDevs_Settings_API' ) ) {
40
  require_once dirname( __DIR__ ) . '/lib/class.settings-api.php';
41
  }
42
 
43
  $this->settings_api = new WeDevs_Settings_API();
44
 
45
- add_action( 'admin_init', [$this, 'admin_init'] );
46
- add_action( 'admin_menu', [$this, 'admin_menu'] );
47
 
48
- add_filter( 'parent_file', [$this, 'fix_parent_menu' ] );
49
- add_filter( 'submenu_file', [$this, 'fix_submenu_file' ] );
50
 
51
- add_action( 'admin_init', [$this, 'handle_tools_action'] );
52
  add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_styles' ] );
53
 
54
  add_filter( 'wp_handle_upload_prefilter', [ $this, 'enable_json_upload' ], 1 );
@@ -58,7 +58,7 @@ class WPUF_Admin_Settings {
58
  }
59
 
60
  public static function init() {
61
- if ( !self::$_instance ) {
62
  self::$_instance = new self();
63
  }
64
 
@@ -85,7 +85,7 @@ class WPUF_Admin_Settings {
85
  $capability = wpuf_admin_role();
86
 
87
  // Translation issue: Hook name change due to translate menu title
88
- $this->menu_pages[] = add_menu_page( __( 'WP User Frontend', 'wp-user-frontend' ), __( 'User Frontend', '' ), $capability, 'wp-user-frontend', [$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>' ), '54.2');
89
 
90
  $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Post Forms', 'wp-user-frontend' ), __( 'Post Forms', 'wp-user-frontend' ), $capability, 'wpuf-post-forms', [ $this, 'wpuf_post_forms_page' ] );
91
  remove_submenu_page( 'wp-user-frontend', 'wp-user-frontend' );
@@ -95,27 +95,28 @@ class WPUF_Admin_Settings {
95
  */
96
  do_action( 'wpuf_admin_menu_top' );
97
 
98
- if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
99
  $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Subscriptions', 'wp-user-frontend' ), __( 'Subscriptions', 'wp-user-frontend' ), $capability, 'edit.php?post_type=wpuf_subscription' );
100
  }
101
 
102
  do_action( 'wpuf_admin_menu' );
103
 
104
- if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
105
- $transactions_page = add_submenu_page( 'wp-user-frontend', __( 'Transactions', 'wp-user-frontend' ), __( 'Transactions', 'wp-user-frontend' ), $capability, 'wpuf_transaction', [$this, 'transactions_page'] );
106
  }
107
 
108
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Tools', 'wp-user-frontend' ), __( 'Tools', 'wp-user-frontend' ), $capability, 'wpuf_tools', [$this, 'tools_page'] );
109
 
110
  do_action( 'wpuf_admin_menu_bottom' );
111
 
112
- if ( !class_exists( 'WP_User_Frontend_Pro' ) ) {
113
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Premium', 'wp-user-frontend' ), __( 'Premium', 'wp-user-frontend' ), $capability, 'wpuf_premium', [$this, 'premium_page'] );
114
  }
115
- $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', [$this, 'support_page'] );
116
- $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Settings', 'wp-user-frontend' ), __( 'Settings', 'wp-user-frontend' ), $capability, 'wpuf-settings', [$this, 'plugin_page'] );
117
 
118
- $this->menu_pages[] = add_submenu_page( 'edit.php?post_type=wpuf_subscription', __( 'Subscribers', 'wp-user-frontend' ), __( 'Subscribers', 'wp-user-frontend' ), $capability, 'wpuf_subscribers', [$this, 'subscribers_page'] );
 
119
  $_registered_pages['user-frontend_page_wpuf_subscribers'] = true; // hack to work the nested subscribers page
120
 
121
  // manually add subsription page
@@ -123,7 +124,7 @@ class WPUF_Admin_Settings {
123
  $this->menu_pages[] = 'wpuf_subscribers';
124
  $this->menu_pages[] = 'user-frontend_page_wpuf_transaction';
125
 
126
- if ( 'on' == wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
127
  add_action( "load-$transactions_page", [ $this, 'transactions_screen_option' ] );
128
  // add_action( "load-wpuf_subscribers", array( $this, 'subscribers_screen_option' ) );
129
  }
@@ -159,8 +160,87 @@ class WPUF_Admin_Settings {
159
  settings_errors();
160
 
161
  $this->settings_api->show_navigation();
162
- $this->settings_api->show_forms(); ?>
 
163
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  </div>
165
  <?php
166
  }
@@ -220,7 +300,7 @@ class WPUF_Admin_Settings {
220
  * @return bool
221
  */
222
  public function is_admin_menu_page( $screen ) {
223
- if ( $screen && in_array( $screen->id, $this->menu_pages ) ) {
224
  return true;
225
  }
226
 
@@ -228,7 +308,7 @@ class WPUF_Admin_Settings {
228
  }
229
 
230
  /**
231
- * highlight the proper top level menu
232
  *
233
  * @see http://wordpress.org/support/topic/moving-taxonomy-ui-to-another-main-menu?replies=5#post-2432769
234
  *
@@ -241,13 +321,13 @@ class WPUF_Admin_Settings {
241
  public function fix_parent_menu( $parent_file ) {
242
  $current_screen = get_current_screen();
243
 
244
- $post_types = [ 'wpuf_forms', 'wpuf_profile', 'wpuf_subscription', 'wpuf_coupon'];
245
 
246
- if ( in_array( $current_screen->post_type, $post_types ) ) {
247
  $parent_file = 'wp-user-frontend';
248
  }
249
 
250
- if ( 'wpuf_subscription' == $current_screen->post_type && $current_screen->base == 'admin_page_the-slug' ) {
251
  $parent_file = 'wp-user-frontend';
252
  }
253
 
@@ -266,7 +346,7 @@ class WPUF_Admin_Settings {
266
  public function fix_submenu_file( $submenu_file ) {
267
  $current_screen = get_current_screen();
268
 
269
- if ( 'wpuf_subscription' == $current_screen->post_type && $current_screen->base == 'admin_page_wpuf_subscribers' ) {
270
  $submenu_file = 'edit.php?post_type=wpuf_subscription';
271
  }
272
 
@@ -279,13 +359,13 @@ class WPUF_Admin_Settings {
279
  * @return void
280
  */
281
  public function handle_tools_action() {
282
- if ( !isset( $_GET['wpuf_action'] ) ) {
283
  return;
284
  }
285
 
286
  check_admin_referer( 'wpuf-tools-action' );
287
 
288
- if ( !current_user_can( 'manage_options' ) ) {
289
  return;
290
  }
291
 
@@ -344,11 +424,13 @@ class WPUF_Admin_Settings {
344
  * @return void
345
  */
346
  public function delete_post_type( $post_type ) {
347
- $query = new WP_Query( [
348
- 'post_type' => $post_type,
349
- 'posts_per_page' => -1,
350
- 'post_status' => [ 'publish', 'draft', 'pending', 'trash' ],
351
- ] );
 
 
352
 
353
  $posts = $query->get_posts();
354
 
@@ -376,7 +458,7 @@ class WPUF_Admin_Settings {
376
 
377
  add_screen_option( $option, $args );
378
 
379
- if ( !class_exists( 'WPUF_Transactions_List_Table' ) ) {
380
  require_once WPUF_ROOT . '/class/transactions-list-table.php';
381
  }
382
 
@@ -389,18 +471,20 @@ class WPUF_Admin_Settings {
389
  * @return void
390
  */
391
  public function enqueue_styles() {
392
- if ( !$this->is_admin_menu_page( get_current_screen() ) && get_current_screen()->parent_base == 'edit' ) {
393
  return;
394
  }
395
 
396
  wp_enqueue_style( 'wpuf-admin', WPUF_ASSET_URI . '/css/admin.css', false, WPUF_VERSION );
397
  wp_enqueue_script( 'wpuf-admin-script', WPUF_ASSET_URI . '/js/wpuf-admin.js', [ 'jquery' ], WPUF_VERSION, false );
398
 
399
- wp_localize_script( 'wpuf-admin-script', 'wpuf_admin_script', [
400
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
401
- 'nonce' => wp_create_nonce( 'wpuf_nonce' ),
402
- 'cleared_schedule_lock' => __( 'Post lock has been cleared', 'wp-user-frontend' ),
403
- ] );
 
 
404
  }
405
 
406
  /**
@@ -421,17 +505,19 @@ class WPUF_Admin_Settings {
421
 
422
  wp_enqueue_script( 'wpuf-admin-tools', WPUF_ASSET_URI . '/js/wpuf-admin-tools.js', [ 'jquery', 'wpuf-vue' ], WPUF_VERSION, true );
423
 
424
- wp_localize_script( 'wpuf-admin-tools', 'wpuf_admin_tools', [
425
- 'url' => [
426
- 'ajax' => admin_url( 'admin-ajax.php' ),
427
- ],
428
- 'nonce' => wp_create_nonce( 'wpuf_admin_tools' ),
429
- 'i18n' => [
430
- 'wpuf_import_forms' => __( 'WPUF Import Forms', 'wp-user-frontend' ),
431
- 'add_json_file' => __( 'Add JSON file', 'wp-user-frontend' ),
432
- 'could_not_import_forms' => __( 'Could not import forms.', 'wp-user-frontend' ),
 
 
433
  ]
434
- ] );
435
  }
436
 
437
  /**
@@ -543,8 +629,10 @@ class WPUF_Admin_Settings {
543
  wp_send_json_error( $imported, WP_Http::UNPROCESSABLE_ENTITY );
544
  }
545
 
546
- wp_send_json_success( [
547
- 'message' => __( 'Forms imported successfully.', 'wp-user-frontend' ),
548
- ] );
 
 
549
  }
550
  }
20
  private static $_instance;
21
 
22
  /**
23
+ * Public instance of this class
24
  *
25
  * @var \self
26
  */
36
  private $menu_pages = [];
37
 
38
  public function __construct() {
39
+ if ( ! class_exists( 'WeDevs_Settings_API' ) ) {
40
  require_once dirname( __DIR__ ) . '/lib/class.settings-api.php';
41
  }
42
 
43
  $this->settings_api = new WeDevs_Settings_API();
44
 
45
+ add_action( 'admin_init', [ $this, 'admin_init' ] );
46
+ add_action( 'admin_menu', [ $this, 'admin_menu' ] );
47
 
48
+ add_filter( 'parent_file', [ $this, 'fix_parent_menu' ] );
49
+ add_filter( 'submenu_file', [ $this, 'fix_submenu_file' ] );
50
 
51
+ add_action( 'admin_init', [ $this, 'handle_tools_action' ] );
52
  add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_styles' ] );
53
 
54
  add_filter( 'wp_handle_upload_prefilter', [ $this, 'enable_json_upload' ], 1 );
58
  }
59
 
60
  public static function init() {
61
+ if ( ! self::$_instance ) {
62
  self::$_instance = new self();
63
  }
64
 
85
  $capability = wpuf_admin_role();
86
 
87
  // Translation issue: Hook name change due to translate menu title
88
+ $this->menu_pages[] = add_menu_page( __( 'WP User Frontend', 'wp-user-frontend' ), __( 'User Frontend', 'wp-user-frontend' ), $capability, 'wp-user-frontend', [ $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>' ), '54.2' );
89
 
90
  $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Post Forms', 'wp-user-frontend' ), __( 'Post Forms', 'wp-user-frontend' ), $capability, 'wpuf-post-forms', [ $this, 'wpuf_post_forms_page' ] );
91
  remove_submenu_page( 'wp-user-frontend', 'wp-user-frontend' );
95
  */
96
  do_action( 'wpuf_admin_menu_top' );
97
 
98
+ if ( 'on' === wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
99
  $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Subscriptions', 'wp-user-frontend' ), __( 'Subscriptions', 'wp-user-frontend' ), $capability, 'edit.php?post_type=wpuf_subscription' );
100
  }
101
 
102
  do_action( 'wpuf_admin_menu' );
103
 
104
+ if ( 'on' === wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
105
+ $transactions_page = add_submenu_page( 'wp-user-frontend', __( 'Transactions', 'wp-user-frontend' ), __( 'Transactions', 'wp-user-frontend' ), $capability, 'wpuf_transaction', [ $this, 'transactions_page' ] );
106
  }
107
 
108
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Tools', 'wp-user-frontend' ), __( 'Tools', 'wp-user-frontend' ), $capability, 'wpuf_tools', [ $this, 'tools_page' ] );
109
 
110
  do_action( 'wpuf_admin_menu_bottom' );
111
 
112
+ if ( ! class_exists( 'WP_User_Frontend_Pro' ) ) {
113
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Premium', 'wp-user-frontend' ), __( 'Premium', 'wp-user-frontend' ), $capability, 'wpuf_premium', [ $this, 'premium_page' ] );
114
  }
115
+ $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', [ $this, 'support_page' ] );
116
+ $this->menu_pages[] = add_submenu_page( 'wp-user-frontend', __( 'Settings', 'wp-user-frontend' ), __( 'Settings', 'wp-user-frontend' ), $capability, 'wpuf-settings', [ $this, 'plugin_page' ] );
117
 
118
+ $this->menu_pages[] = add_submenu_page( 'edit.php?post_type=wpuf_subscription', __( 'Subscribers', 'wp-user-frontend' ), __( 'Subscribers', 'wp-user-frontend' ), $capability, 'wpuf_subscribers', [ $this, 'subscribers_page' ] );
119
+ //phpcs:ignore
120
  $_registered_pages['user-frontend_page_wpuf_subscribers'] = true; // hack to work the nested subscribers page
121
 
122
  // manually add subsription page
124
  $this->menu_pages[] = 'wpuf_subscribers';
125
  $this->menu_pages[] = 'user-frontend_page_wpuf_transaction';
126
 
127
+ if ( 'on' === wpuf_get_option( 'enable_payment', 'wpuf_payment', 'on' ) ) {
128
  add_action( "load-$transactions_page", [ $this, 'transactions_screen_option' ] );
129
  // add_action( "load-wpuf_subscribers", array( $this, 'subscribers_screen_option' ) );
130
  }
160
  settings_errors();
161
 
162
  $this->settings_api->show_navigation();
163
+ $this->settings_api->show_forms();
164
+ ?>
165
  </div>
166
+ <script>
167
+ (function () {
168
+ document.addEventListener('DOMContentLoaded',function () {
169
+ var tabs = document.querySelector('.wpuf-settings-wrap').querySelectorAll('h2 a');
170
+ var content = document.querySelectorAll('.wpuf-settings-wrap .metabox-holder th');
171
+ var close = document.querySelector('#wpuf-search-section span');
172
+
173
+ var search_input = document.querySelector('#wpuf-settings-search');
174
+
175
+ search_input.addEventListener('keyup', function (e) {
176
+ var search_value = e.target.value.toLowerCase();
177
+ var value_tab = [];
178
+
179
+ if ( search_value.length ) {
180
+ close.style.display = 'flex'
181
+ content.forEach(function (row, index) {
182
+
183
+ var content_id = row.closest('div').getAttribute('id');
184
+ var tab_id = content_id + '-tab';
185
+ var found_value = row.innerText.toLowerCase().includes( search_value );
186
+
187
+ if ( found_value ){
188
+ row.closest('tr').style.display = 'table-row';
189
+ }else {
190
+ row.closest('tr').style.display = 'none';
191
+ }
192
+
193
+ if ( 'wpuf_mails' === content_id ){
194
+ row.closest('tbody').querySelectorAll('tr').forEach(function (tr) {
195
+ tr.style.display = '';
196
+ });
197
+ }
198
+
199
+ if ( found_value === true && ! value_tab.includes( tab_id ) ) {
200
+ value_tab.push(tab_id);
201
+ }
202
+ })
203
+
204
+ if ( value_tab.length ) {
205
+ document.getElementById(value_tab[0]).click();
206
+ }
207
+
208
+ tabs.forEach(function (tab) {
209
+ var tab_id = tab.getAttribute('id');
210
+ if ( ! value_tab.includes( tab_id ) ){
211
+ document.getElementById(tab_id).style.display = 'none';
212
+ }else {
213
+ document.getElementById(tab_id).style.display = 'block';
214
+ }
215
+ })
216
+
217
+ }else {
218
+ wpuf_search_reset();
219
+ }
220
+ })
221
+
222
+ close.addEventListener('click',function (event) {
223
+ wpuf_search_reset();
224
+ search_input.value = '';
225
+ close.style.display = 'none';
226
+ })
227
+
228
+ function wpuf_search_reset() {
229
+ content.forEach(function (row, index) {
230
+ var content_id = row.closest('div').getAttribute('id');
231
+ var tab_id = content_id + '-tab';
232
+ document.getElementById(content_id).style.display = '';
233
+ document.getElementById(tab_id).style.display = '';
234
+ document.getElementById('wpuf_general-tab').click();
235
+ })
236
+ document.querySelector('.wpuf-settings-wrap .metabox-holder').querySelectorAll('tr').forEach(function (row) {
237
+ row.style.display = '';
238
+ });
239
+
240
+ }
241
+ });
242
+ })();
243
+ </script>
244
  </div>
245
  <?php
246
  }
300
  * @return bool
301
  */
302
  public function is_admin_menu_page( $screen ) {
303
+ if ( $screen && in_array( $screen->id, $this->menu_pages, true ) ) {
304
  return true;
305
  }
306
 
308
  }
309
 
310
  /**
311
+ * Highlight the proper top level menu
312
  *
313
  * @see http://wordpress.org/support/topic/moving-taxonomy-ui-to-another-main-menu?replies=5#post-2432769
314
  *
321
  public function fix_parent_menu( $parent_file ) {
322
  $current_screen = get_current_screen();
323
 
324
+ $post_types = [ 'wpuf_forms', 'wpuf_profile', 'wpuf_subscription', 'wpuf_coupon' ];
325
 
326
+ if ( in_array( $current_screen->post_type, $post_types, true ) ) {
327
  $parent_file = 'wp-user-frontend';
328
  }
329
 
330
+ if ( 'wpuf_subscription' === $current_screen->post_type && $current_screen->base === 'admin_page_the-slug' ) {
331
  $parent_file = 'wp-user-frontend';
332
  }
333
 
346
  public function fix_submenu_file( $submenu_file ) {
347
  $current_screen = get_current_screen();
348
 
349
+ if ( 'wpuf_subscription' === $current_screen->post_type && $current_screen->base === 'admin_page_wpuf_subscribers' ) {
350
  $submenu_file = 'edit.php?post_type=wpuf_subscription';
351
  }
352
 
359
  * @return void
360
  */
361
  public function handle_tools_action() {
362
+ if ( ! isset( $_GET['wpuf_action'] ) ) {
363
  return;
364
  }
365
 
366
  check_admin_referer( 'wpuf-tools-action' );
367
 
368
+ if ( ! current_user_can( 'manage_options' ) ) {
369
  return;
370
  }
371
 
424
  * @return void
425
  */
426
  public function delete_post_type( $post_type ) {
427
+ $query = new WP_Query(
428
+ [
429
+ 'post_type' => $post_type,
430
+ 'posts_per_page' => -1,
431
+ 'post_status' => [ 'publish', 'draft', 'pending', 'trash' ],
432
+ ]
433
+ );
434
 
435
  $posts = $query->get_posts();
436
 
458
 
459
  add_screen_option( $option, $args );
460
 
461
+ if ( ! class_exists( 'WPUF_Transactions_List_Table' ) ) {
462
  require_once WPUF_ROOT . '/class/transactions-list-table.php';
463
  }
464
 
471
  * @return void
472
  */
473
  public function enqueue_styles() {
474
+ if ( ! $this->is_admin_menu_page( get_current_screen() ) && get_current_screen()->parent_base === 'edit' ) {
475
  return;
476
  }
477
 
478
  wp_enqueue_style( 'wpuf-admin', WPUF_ASSET_URI . '/css/admin.css', false, WPUF_VERSION );
479
  wp_enqueue_script( 'wpuf-admin-script', WPUF_ASSET_URI . '/js/wpuf-admin.js', [ 'jquery' ], WPUF_VERSION, false );
480
 
481
+ wp_localize_script(
482
+ 'wpuf-admin-script', 'wpuf_admin_script', [
483
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
484
+ 'nonce' => wp_create_nonce( 'wpuf_nonce' ),
485
+ 'cleared_schedule_lock' => __( 'Post lock has been cleared', 'wp-user-frontend' ),
486
+ ]
487
+ );
488
  }
489
 
490
  /**
505
 
506
  wp_enqueue_script( 'wpuf-admin-tools', WPUF_ASSET_URI . '/js/wpuf-admin-tools.js', [ 'jquery', 'wpuf-vue' ], WPUF_VERSION, true );
507
 
508
+ wp_localize_script(
509
+ 'wpuf-admin-tools', 'wpuf_admin_tools', [
510
+ 'url' => [
511
+ 'ajax' => admin_url( 'admin-ajax.php' ),
512
+ ],
513
+ 'nonce' => wp_create_nonce( 'wpuf_admin_tools' ),
514
+ 'i18n' => [
515
+ 'wpuf_import_forms' => __( 'WPUF Import Forms', 'wp-user-frontend' ),
516
+ 'add_json_file' => __( 'Add JSON file', 'wp-user-frontend' ),
517
+ 'could_not_import_forms' => __( 'Could not import forms.', 'wp-user-frontend' ),
518
+ ],
519
  ]
520
+ );
521
  }
522
 
523
  /**
629
  wp_send_json_error( $imported, WP_Http::UNPROCESSABLE_ENTITY );
630
  }
631
 
632
+ wp_send_json_success(
633
+ [
634
+ 'message' => __( 'Forms imported successfully.', 'wp-user-frontend' ),
635
+ ]
636
+ );
637
  }
638
  }
admin/class-admin-subscription.php CHANGED
@@ -326,6 +326,8 @@ class WPUF_Admin_Subscription {
326
  $expired_post_status = isset( $sub_meta['_expired_post_status'] ) ? $sub_meta['_expired_post_status'] : '';
327
  $is_enable_mail_after_expired = isset( $sub_meta['_enable_mail_after_expired'] ) && $sub_meta['_enable_mail_after_expired'] == 'on' ? 'checked' : '';
328
  $post_expiration_message = isset( $sub_meta['_post_expiration_message'] ) ? $sub_meta['_post_expiration_message'] : '';
 
 
329
  ?>
330
 
331
  <div class="wpuf-subscription-pack-settings">
@@ -382,6 +384,23 @@ class WPUF_Admin_Subscription {
382
  <section id="wpuf-post-restriction">
383
  <table class="form-table">
384
  <tbody>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
  <?php
386
  echo wp_kses(
387
  $this->get_post_types( $sub_meta['post_type_name'] ),
@@ -645,7 +664,12 @@ class WPUF_Admin_Subscription {
645
  <h4><?php esc_html_e( 'Remaining Posting Count', 'wp-user-frontend' ); ?></h4>
646
 
647
  <table class="form-table">
648
-
 
 
 
 
 
649
  <?php
650
  foreach ( $user_sub['posts'] as $key => $value ) {
651
  $post_type_object = get_post_type_object( $key );
326
  $expired_post_status = isset( $sub_meta['_expired_post_status'] ) ? $sub_meta['_expired_post_status'] : '';
327
  $is_enable_mail_after_expired = isset( $sub_meta['_enable_mail_after_expired'] ) && $sub_meta['_enable_mail_after_expired'] == 'on' ? 'checked' : '';
328
  $post_expiration_message = isset( $sub_meta['_post_expiration_message'] ) ? $sub_meta['_post_expiration_message'] : '';
329
+ $featured_item = ! empty( $sub_meta['_total_feature_item'] ) ? $sub_meta['_total_feature_item'] : 0;
330
+ $remove_featured_item = ! empty( $sub_meta['_remove_feature_item'] ) ? $sub_meta['_remove_feature_item'] : 0;
331
  ?>
332
 
333
  <div class="wpuf-subscription-pack-settings">
384
  <section id="wpuf-post-restriction">
385
  <table class="form-table">
386
  <tbody>
387
+ <tr>
388
+ <th><label for="wpuf-sticky-item"><?php esc_html_e( 'Number of featured item', 'wp-user-frontend' ); ?></label></th>
389
+ <td>
390
+ <input type="text" size="20" style="" id="wpuf-sticky-item" value="<?php echo intval( $featured_item ); ?>" name="total_feature_item" />
391
+ <br>
392
+ <span class="description"><?php esc_html_e( 'How many items a user can set as featured, including all post types', 'wp-user-frontend' ); ?></span>
393
+ </td>
394
+ </tr>
395
+ <tr>
396
+ <th><label for="wpuf-sticky-item"><?php esc_html_e( 'Remove featured item on subscription expiry', 'wp-user-frontend' ); ?></label></th>
397
+ <td>
398
+ <label for="">
399
+ <input type="checkbox" value="on" <?php echo esc_attr( 'on' === $remove_featured_item ? 'checked' : '' ); ?> name="remove_feature_item" />
400
+ <?php esc_html_e( 'The featured item will be removed if the subscription expires', 'wp-user-frontend' ); ?>
401
+ </label>
402
+ </td>
403
+ </tr>
404
  <?php
405
  echo wp_kses(
406
  $this->get_post_types( $sub_meta['post_type_name'] ),
664
  <h4><?php esc_html_e( 'Remaining Posting Count', 'wp-user-frontend' ); ?></h4>
665
 
666
  <table class="form-table">
667
+ <?php if ( ! empty( $user_sub['total_feature_item'] ) ) { ?>
668
+ <tr>
669
+ <th><label><?php esc_html_e( 'Number of featured item', 'wp-user-frontend' ); ?></label></th>
670
+ <td><input type="text" value="<?php echo esc_attr( $user_sub['total_feature_item'] ); ?>" name="<?php echo esc_attr( $key ); ?>" ></td>
671
+ </tr>
672
+ <?php } ?>
673
  <?php
674
  foreach ( $user_sub['posts'] as $key => $value ) {
675
  $post_type_object = get_post_type_object( $key );
admin/form-builder/assets/js/form-builder.js CHANGED
@@ -535,6 +535,13 @@
535
  self.is_form_saving = true;
536
  self.set_current_panel('form-fields');
537
 
 
 
 
 
 
 
 
538
  wp.ajax.send('wpuf_form_builder_save_form', {
539
  data: {
540
  form_data: $('#wpuf-form-builder').serialize(),
535
  self.is_form_saving = true;
536
  self.set_current_panel('form-fields');
537
 
538
+ var form_id = $('#wpuf-form-builder [name="wpuf_form_id"]').val();
539
+
540
+ if ( typeof tinyMCE !== 'undefined' ) {
541
+ $('textarea[name="wpuf_settings[notification][verification_body]"]').val(tinyMCE.get('wpuf_verification_body_' + form_id).getContent());
542
+ $('textarea[name="wpuf_settings[notification][welcome_email_body]"]').val(tinyMCE.get('wpuf_welcome_email_body_' + form_id).getContent());
543
+ }
544
+
545
  wp.ajax.send('wpuf_form_builder_save_form', {
546
  data: {
547
  form_data: $('#wpuf-form-builder').serialize(),
admin/html/whats-new.php CHANGED
@@ -1,5 +1,52 @@
1
  <?php
2
  $changelog = [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  [
4
  'version' => 'Version 3.5.21',
5
  'released' => '2021-10-21',
1
  <?php
2
  $changelog = [
3
+ [
4
+ 'version' => 'Version 3.5.22',
5
+ 'released' => '2021-10-28',
6
+ 'changes' => [
7
+
8
+ [
9
+ 'title' => __( 'Featured item for subscriber', 'wp-user-frontend' ),
10
+ 'type' => 'Enhancement',
11
+ ],
12
+ [
13
+ 'title' => __( 'Warning added for unsaved form data on frontend', 'wp-user-frontend' ),
14
+ 'type' => 'Enhancement',
15
+ ],
16
+ [
17
+ 'title' => __( 'Settings page search implemented', 'wp-user-frontend' ),
18
+ 'type' => 'Enhancement',
19
+ ],
20
+ [
21
+ 'title' => __( 'Editor added for registration form email template', 'wp-user-frontend' ),
22
+ 'type' => 'Enhancement',
23
+ ],
24
+ [
25
+ 'title' => __( 'Fallback pay per post not working with when draft enabled', 'wp-user-frontend' ),
26
+ 'type' => 'Fix',
27
+ ],
28
+ [
29
+ 'title' => __( 'User Dashboard responsive issues fixed', 'wp-user-frontend' ),
30
+ 'type' => 'Fix',
31
+ ],
32
+ [
33
+ 'title' => __( 'Showing wrong license expire message handled', 'wp-user-frontend' ),
34
+ 'type' => 'Fix',
35
+ ],
36
+ [
37
+ 'title' => __( 'Remove expire cron handled for once daily', 'wp-user-frontend' ),
38
+ 'type' => 'Fix',
39
+ ],
40
+ [
41
+ 'title' => __( 'Billing address validation handled', 'wp-user-frontend' ),
42
+ 'type' => 'Fix',
43
+ ],
44
+ [
45
+ 'title' => __( 'Promotion notice restricted for WPUF menu', 'wp-user-frontend' ),
46
+ 'type' => 'Update',
47
+ ],
48
+ ],
49
+ ],
50
  [
51
  'version' => 'Version 3.5.21',
52
  'released' => '2021-10-21',
admin/promotion.php CHANGED
@@ -23,15 +23,19 @@ class WPUF_Admin_Promotion {
23
  if ( ! current_user_can( 'manage_options' ) ) {
24
  return;
25
  }
 
 
 
 
26
 
27
  $current_time = $this->convert_utc_to_est();
28
 
29
  if (
30
- strtotime( '2021-10-21 09:00:00 EST' ) < strtotime( $current_time )
31
- && strtotime( $current_time ) < strtotime( '2021-10-31 9:00:00 EST' )
32
  ) {
33
- $option_name = 'wpuf_2021_summer_offer';
34
- $notice = sprintf( '<p>%s <a href="%s" target="_blank">%s</a></p>', __( 'Get Yourself a Spooky Delight ! Get Up To 40% OFF on WP User Frontend Pro.', 'wp-user-frontend' ), 'https://wedevs.com/wp-user-frontend-pro/pricing?utm_medium=text&utm_source=wordpress-wpuf-halloween20212021', __( 'Get Now', 'wp-user-frontend' ) );
35
  $this->generate_notice( $notice, $option_name );
36
  }
37
  }
23
  if ( ! current_user_can( 'manage_options' ) ) {
24
  return;
25
  }
26
+ // Showing only for Uf menu
27
+ if ( 'wp-user-frontend' !== get_admin_page_parent() ){
28
+ return;
29
+ }
30
 
31
  $current_time = $this->convert_utc_to_est();
32
 
33
  if (
34
+ strtotime( '2021-11-19 09:00:00 EST' ) < strtotime( $current_time )
35
+ && strtotime( $current_time ) < strtotime( '2021-11-30 11:00:00 EST' )
36
  ) {
37
+ $option_name = 'wpuf-bfcm2021';
38
+ $notice = sprintf( '<p>%s <a href="%s" target="_blank">%s</a></p>', __( 'Irresistible Black Friday & Cyber Monday Deals. Enjoy Up To 50% OFF on WP User Frontend Pro.', 'wp-user-frontend' ), 'https://wedevs.com/wp-user-frontend-pro/pricing?utm_medium=text&utm_source=wordpress-wpuf-bfcm2021', __( 'Get Now', 'wp-user-frontend' ) );
39
  $this->generate_notice( $notice, $option_name );
40
  }
41
  }
assets/css/admin.css CHANGED
@@ -640,6 +640,32 @@ ul.wpuf-form .wpuf-field-columns .wpuf-column-field-inner-columns .wpuf-column .
640
  .wpuf-xmp-tag {
641
  display: inline;
642
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
643
  .wpuf-help-tabbed {
644
  display: flex;
645
  width: 100%;
640
  .wpuf-xmp-tag {
641
  display: inline;
642
  }
643
+ #wpuf-search-section {
644
+ display: flex;
645
+ position: relative;
646
+ align-items: center;
647
+ color: red;
648
+ cursor: pointer;
649
+ justify-content: space-between;
650
+ border-bottom: 1px solid #c8d7e1;
651
+ height: 46px;
652
+ }
653
+ #wpuf-settings-search {
654
+ width: 100%;
655
+ height: 100%;
656
+ background: #f1f1f1;
657
+ border: 0;
658
+ border-radius: 0;
659
+ margin: 0;
660
+ line-height: 20px;
661
+ font-weight: 400;
662
+ padding: 0 15px;
663
+ }
664
+ #wpuf-search-section .dashicons-no-alt {
665
+ display: none;
666
+ position: absolute;
667
+ right: 5px;
668
+ }
669
  .wpuf-help-tabbed {
670
  display: flex;
671
  width: 100%;
assets/css/frontend-forms.css CHANGED
@@ -15,6 +15,10 @@ body {
15
  body #wpfooter {
16
  position: fixed !important;
17
  }
 
 
 
 
18
  body .wpufTable {
19
  display: table;
20
  width: 100%;
@@ -1662,10 +1666,11 @@ body .dokan-dashboard .dokan-dashboard-content ul li.wpuf-submit {
1662
  padding: 10px;
1663
  padding-left: 0;
1664
  }
1665
- body .wpuf-posts-options {
1666
- display: inline-block;
1667
- padding: 7px 7px;
1668
- border-radius: 100%;
 
1669
  }
1670
  body .wpuf-posts-edit:hover {
1671
  background-color: #5C5CFB;
15
  body #wpfooter {
16
  position: fixed !important;
17
  }
18
+ body .has-error {
19
+ background: #FFE4E4;
20
+ padding: 10px;
21
+ }
22
  body .wpufTable {
23
  display: table;
24
  width: 100%;
1666
  padding: 10px;
1667
  padding-left: 0;
1668
  }
1669
+ body .wpuf-posts-edit,
1670
+ body .wpuf-posts-delete {
1671
+ float: left;
1672
+ padding: 10px;
1673
+ border-radius: 50%;
1674
  }
1675
  body .wpuf-posts-edit:hover {
1676
  background-color: #5C5CFB;
assets/images/edit.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.2175 0.232507L14.0736 2.08857C14.3836 2.39858 14.3836 2.90335 14.0736 3.21336L12.6189 4.66802L9.63808 1.68716L11.0927 0.232507C11.4027 -0.0775022 11.9075 -0.0775022 12.2175 0.232507ZM0 14.3061V11.3253L8.7955 2.52974L11.7764 5.5106L2.98086 14.3061H0Z" fill="#B7C4E7"/></svg>
assets/images/trash.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg width="15" height="15" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8082 1.9102H7.98776C7.73445 1.9102 7.49152 1.80958 7.3124 1.63046C7.13328 1.45134 7.03266 1.20841 7.03266 0.955102C7.03266 0.701793 7.13328 0.458859 7.3124 0.279743C7.49152 0.100626 7.73445 0 7.98776 0H11.8082C12.0615 0 12.3044 0.100626 12.4835 0.279743C12.6626 0.458859 12.7633 0.701793 12.7633 0.955102C12.7633 1.20841 12.6626 1.45134 12.4835 1.63046C12.3044 1.80958 12.0615 1.9102 11.8082 1.9102ZM1.30203 2.86529H18.4939C18.7472 2.86529 18.9901 2.96591 19.1692 3.14503C19.3483 3.32415 19.449 3.56708 19.449 3.82039C19.449 4.0737 19.3483 4.31663 19.1692 4.49575C18.9901 4.67486 18.7472 4.77549 18.4939 4.77549H16.5837V16.2367C16.5835 16.9966 16.2815 17.7253 15.7442 18.2626C15.2069 18.7999 14.4782 19.1018 13.7184 19.102H6.07754C5.31768 19.1018 4.58901 18.7998 4.05171 18.2625C3.51441 17.7252 3.21246 16.9966 3.21223 16.2367V4.77549H1.30203C1.04872 4.77549 0.805783 4.67486 0.626667 4.49575C0.44755 4.31663 0.346924 4.0737 0.346924 3.82039C0.346924 3.56708 0.44755 3.32415 0.626667 3.14503C0.805783 2.96591 1.04872 2.86529 1.30203 2.86529ZM8.6631 14.0468C8.84222 13.8677 8.94284 13.6247 8.94284 13.3714V8.5959C8.94284 8.34259 8.84222 8.09966 8.6631 7.92054C8.48398 7.74142 8.24105 7.6408 7.98774 7.6408C7.73443 7.6408 7.4915 7.74142 7.31238 7.92054C7.13327 8.09966 7.03264 8.34259 7.03264 8.5959V13.3714C7.03264 13.6247 7.13327 13.8677 7.31238 14.0468C7.4915 14.2259 7.73443 14.3265 7.98774 14.3265C8.24105 14.3265 8.48398 14.2259 8.6631 14.0468ZM12.4835 14.0468C12.6626 13.8677 12.7633 13.6247 12.7633 13.3714V8.5959C12.7633 8.34259 12.6626 8.09966 12.4835 7.92054C12.3044 7.74142 12.0615 7.6408 11.8081 7.6408C11.5548 7.6408 11.3119 7.74142 11.1328 7.92054C10.9537 8.09966 10.853 8.34259 10.853 8.5959V13.3714C10.853 13.6247 10.9537 13.8677 11.1328 14.0468C11.3119 14.2259 11.5548 14.3265 11.8081 14.3265C12.0615 14.3265 12.3044 14.2259 12.4835 14.0468Z" fill="#B7C4E7"/></svg>
assets/js/billing-address.js CHANGED
@@ -1,4 +1,3 @@
1
-
2
  jQuery(function($){
3
 
4
  window.wpuf_validate_address = function(e) {
@@ -16,15 +15,16 @@ jQuery(function($){
16
  ( city.hasClass('bill_required') && city.val() === "" ) ||
17
  ( zip.hasClass('bill_required') && zip.val() === "" ) )
18
  {
19
- e.preventDefault();
20
  isValid = false;
21
  }
22
  return isValid;
23
  };
24
 
25
  $( '#wpuf-payment-gateway' ).submit(function (e) {
26
- if ( ! window.wpuf_validate_address(e) ) {
27
- alert( ajax_object.fill_notice );
 
 
28
  }
29
 
30
  var billing_address_form = $( '#wpuf-ajax-address-form' );
@@ -88,6 +88,10 @@ jQuery(function($){
88
  var $payment_form = jQuery('#wpuf-payment-gateway');
89
  var $address_form = jQuery('#wpuf-ajax-address-form');
90
 
 
 
 
 
91
  var postData = {
92
  action: 'wpuf_update_billing_address',
93
  billing_country: $wpuf_cc_address.find('#wpuf_biiling_country').val(),
 
1
  jQuery(function($){
2
 
3
  window.wpuf_validate_address = function(e) {
15
  ( city.hasClass('bill_required') && city.val() === "" ) ||
16
  ( zip.hasClass('bill_required') && zip.val() === "" ) )
17
  {
 
18
  isValid = false;
19
  }
20
  return isValid;
21
  };
22
 
23
  $( '#wpuf-payment-gateway' ).submit(function (e) {
24
+ let form_data = WP_User_Frontend.validateForm($(this));
25
+
26
+ if (!form_data) {
27
+ e.preventDefault();
28
  }
29
 
30
  var billing_address_form = $( '#wpuf-ajax-address-form' );
88
  var $payment_form = jQuery('#wpuf-payment-gateway');
89
  var $address_form = jQuery('#wpuf-ajax-address-form');
90
 
91
+ if ( ! $address_form.length ) {
92
+ return;
93
+ }
94
+
95
  var postData = {
96
  action: 'wpuf_update_billing_address',
97
  billing_country: $wpuf_cc_address.find('#wpuf_biiling_country').val(),
assets/js/frontend-form.js CHANGED
@@ -85,6 +85,25 @@
85
  $('#wpuf_cancel_subscription').submit();
86
  });
87
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  },
89
 
90
  check_pass_strength : function() {
@@ -388,7 +407,7 @@
388
 
389
  formStepCheck : function(e,fieldset) {
390
  var form = fieldset,
391
- submitButton = form.find('input[type=submit]');
392
  form_data = WP_User_Frontend.validateForm(form);
393
 
394
  if ( form_data == false ) {
@@ -476,7 +495,7 @@
476
  var temp,
477
  temp_val = '',
478
  error = false,
479
- error_items = [];
480
  error_type = '';
481
 
482
  // remove all initial errors if any
@@ -490,7 +509,7 @@
490
  // temp_val = $.trim($(item).val());
491
 
492
  // console.log( $(item).data('type') );
493
- var data_type = $(item).data('type')
494
  val = '';
495
 
496
  switch(data_type) {
@@ -703,18 +722,22 @@
703
  },
704
 
705
  markError: function(item, error_type) {
706
-
707
- var error_string = '';
708
- $(item).closest('li').addClass('has-error');
709
 
710
  if ( error_type ) {
711
- error_string = $(item).closest('li').data('label');
 
 
 
 
 
 
712
  switch ( error_type ) {
713
  case 'required' :
714
  error_string = error_string + ' ' + error_str_obj[error_type];
715
  break;
716
  case 'mismatch' :
717
- error_string = error_string + ' ' +error_str_obj[error_type];
718
  break;
719
  case 'validation' :
720
  error_string = error_string + ' ' + error_str_obj[error_type];
@@ -724,7 +747,14 @@
724
  break
725
  }
726
  $(item).siblings('.wpuf-error-msg').remove();
727
- $(item).after('<div class="wpuf-error-msg">'+ error_string +'</div>')
 
 
 
 
 
 
 
728
  }
729
 
730
  $(item).focus();
@@ -1107,5 +1137,4 @@
1107
  // Set name attribute for google map search field
1108
  $(".wpuf-form-add #wpuf-map-add-location").attr("name", "find_address");
1109
  });
1110
-
1111
  })(jQuery, window);
85
  $('#wpuf_cancel_subscription').submit();
86
  });
87
  });
88
+
89
+ this.warningOnExit();
90
+ },
91
+
92
+ warningOnExit: function () {
93
+ $('input[name="submit"]').on('click', function () {
94
+ window.onbeforeunload = null;
95
+ return;
96
+ });
97
+
98
+ $('.wpuf-form-add').on( 'change', function(){
99
+ $('.wpuf-form-add input, .wpuf-form-add select, .wpuf-form-add textarea').each(function (index) {
100
+ if ( 'hidden' !== $(this).attr('type') || 'submit' !== $(this).attr('type') || -1 !== $(this).val() ){
101
+ window.onbeforeunload = function () {
102
+ return 'you have changes';//changing return values doesnt have any impact due to security
103
+ }
104
+ }
105
+ })
106
+ });
107
  },
108
 
109
  check_pass_strength : function() {
407
 
408
  formStepCheck : function(e,fieldset) {
409
  var form = fieldset,
410
+ submitButton = form.find('input[type=submit]'),
411
  form_data = WP_User_Frontend.validateForm(form);
412
 
413
  if ( form_data == false ) {
495
  var temp,
496
  temp_val = '',
497
  error = false,
498
+ error_items = [],
499
  error_type = '';
500
 
501
  // remove all initial errors if any
509
  // temp_val = $.trim($(item).val());
510
 
511
  // console.log( $(item).data('type') );
512
+ var data_type = $(item).data('type'),
513
  val = '';
514
 
515
  switch(data_type) {
722
  },
723
 
724
  markError: function(item, error_type) {
725
+ $(item).closest('div').addClass('has-error');
 
 
726
 
727
  if ( error_type ) {
728
+ var error_string = '';
729
+ var address_field_label = $(item).data('label');
730
+ if ( address_field_label ) {
731
+ error_string = address_field_label;
732
+ } else {
733
+ error_string = $(item).closest('li').data('label');
734
+ }
735
  switch ( error_type ) {
736
  case 'required' :
737
  error_string = error_string + ' ' + error_str_obj[error_type];
738
  break;
739
  case 'mismatch' :
740
+ error_string = error_string + ' ' + error_str_obj[error_type];
741
  break;
742
  case 'validation' :
743
  error_string = error_string + ' ' + error_str_obj[error_type];
747
  break
748
  }
749
  $(item).siblings('.wpuf-error-msg').remove();
750
+
751
+ // if input type is radio, append the error message for design issue
752
+ if ( $(item).prev().prop('nodeName') === 'DIV' ) {
753
+ $(item).append('<div class="wpuf-error-msg">'+ error_string +'</div>')
754
+ } else {
755
+ // if input type is not radio, add the div after current item
756
+ $(item).after('<div class="wpuf-error-msg">'+ error_string +'</div>')
757
+ }
758
  }
759
 
760
  $(item).focus();
1137
  // Set name attribute for google map search field
1138
  $(".wpuf-form-add #wpuf-map-add-location").attr("name", "find_address");
1139
  });
 
1140
  })(jQuery, window);
assets/js/frontend-form.min.js CHANGED
@@ -1 +1 @@
1
- !function(a,b){a.fn.listautowidth=function(){return this.each(function(){var b=a(this).width(),c=b/a(this).children("li").length;a(this).children("li").each(function(){var b=a(this).outerWidth(!0)-a(this).width();a(this).width(c-b)})})},b.WP_User_Frontend={init:function(){this.enableMultistep(this),a(".wpuf-form").on("click","img.wpuf-clone-field",this.cloneField),a(".wpuf-form").on("click","img.wpuf-remove-field",this.removeField),a(".wpuf-form").on("click","a.wpuf-delete-avatar",this.deleteAvatar),a(".wpuf-form").on("click","a#wpuf-post-draft",this.draftPost),a(".wpuf-form").on("click","button#wpuf-account-update-profile",this.account_update_profile),a(".wpuf-form-add").on("submit",this.formSubmit),a("form#post").on("submit",this.adminPostSubmit),b.matchMedia("(max-width: 600px)").matches&&(a("table.items-table tr td .post-edit-icon").click(function(b){b.preventDefault(),a(this).parents("tr").find(".data-column").toggleClass("flex-column"),a(this).toggleClass("toggle-icon")}),a(".wpuf-dashboard-navigation ul li:first-child").after().click(function(b){b.preventDefault(),a(".wpuf-dashboard-navigation ul li").not(":first").toggle()})),a(".wpuf-form").on("step-change-fieldset",function(a,b,c){if(wpuf_plupload_items.length)for(var d=wpuf_plupload_items.length-1;d>=0;d--)wpuf_plupload_items[d].refresh();if(wpuf_map_items.length)for(var d=wpuf_map_items.length-1;d>=0;d--)google.maps.event.trigger(wpuf_map_items[d].map,"resize"),wpuf_map_items[d].map.setCenter(wpuf_map_items[d].center)}),this.ajaxCategory(),a(':submit[name="wpuf_user_subscription_cancel"]').click(function(b){b.preventDefault(),swal({text:wpuf_frontend.cancelSubMsg,type:"warning",showCancelButton:!0,confirmButtonColor:"#d54e21",confirmButtonText:wpuf_frontend.delete_it,cancelButtonText:wpuf_frontend.cancel_it,confirmButtonClass:"btn btn-success",cancelButtonClass:"btn btn-danger"}).then(function(b){if(!b)return!1;a("#wpuf_cancel_subscription").submit()})})},check_pass_strength:function(){var b=a("#pass1").val();if(a("#pass-strength-result").show(),a("#pass-strength-result").removeClass("short bad good strong"),!b)return a("#pass-strength-result").html("&nbsp;"),void a("#pass-strength-result").hide();if(void 0!==wp.passwordStrength)switch(wp.passwordStrength.meter(b,wp.passwordStrength.userInputBlacklist(),b)){case 2:a("#pass-strength-result").addClass("bad").html(pwsL10n.bad);break;case 3:a("#pass-strength-result").addClass("good").html(pwsL10n.good);break;case 4:a("#pass-strength-result").addClass("strong").html(pwsL10n.strong);break;case 5:a("#pass-strength-result").addClass("short").html(pwsL10n.mismatch);break;default:a("#pass-strength-result").addClass("short").html(pwsL10n.short)}},enableMultistep:function(c){var d=this,e=0,f=a(':hidden[name="wpuf_multistep_type"]').val();if(null!=f){if(a("fieldset.wpuf-multistep-fieldset").find(".wpuf-multistep-prev-btn").first().remove(),a("fieldset.wpuf-multistep-fieldset").find(".wpuf-multistep-next-btn").last().remove(),a(".wpuf-form fieldset").removeClass("field-active").first().addClass("field-active"),"progressive"==f&&0!=a(".wpuf-form .wpuf-multistep-fieldset").length){a("fieldset.wpuf-multistep-fieldset legend").first();a(".wpuf-multistep-progressbar").html('<div class="wpuf-progress-percentage"></div>');var g=a(".wpuf-multistep-progressbar"),h=a(".wpuf-progress-percentage");a(".wpuf-multistep-progressbar").progressbar({change:function(){h.text(g.progressbar("value")+"%")}}),a(".wpuf-multistep-fieldset legend").hide()}else a(".wpuf-form").each(function(){var b=a(this),c=a(".wpuf-multistep-progressbar",b),d="";c.addClass("wizard-steps"),d+='<ul class="wpuf-step-wizard">',a(".wpuf-multistep-fieldset",this).each(function(){d+="<li>"+a.trim(a("legend",this).text())+"</li>",a("legend",this).hide()}),d+="</ul>",c.append(d),a(".wpuf-step-wizard li",c).first().addClass("active-step"),a(".wpuf-step-wizard",c).listautowidth()});this.change_fieldset(e,f),a("fieldset .wpuf-multistep-prev-btn, fieldset .wpuf-multistep-next-btn").click(function(g){if(a(this).hasClass("wpuf-multistep-next-btn")){0!=d.formStepCheck("",a(this).closest("fieldset"))&&c.change_fieldset(++e,f)}else a(this).hasClass("wpuf-multistep-prev-btn")&&c.change_fieldset(--e,f);var h=a("form.wpuf-form-add"),i=h.offset().top;return b.scrollTo({top:i-32,behavior:"smooth"}),!1})}},change_fieldset:function(b,c){var d=a("fieldset.wpuf-multistep-fieldset").eq(b);a("fieldset.wpuf-multistep-fieldset").removeClass("field-active").eq(b).addClass("field-active"),a(".wpuf-step-wizard li").each(function(){a(this).index()<=b?"step_by_step"==c?a(this).addClass("passed-wpuf-ms-bar"):a(".wpuf-ps-bar",this).addClass("passed-wpuf-ms-bar"):"step_by_step"==c?a(this).removeClass("passed-wpuf-ms-bar"):a(".wpuf-ps-bar",this).removeClass("passed-wpuf-ms-bar")}),a(".wpuf-step-wizard li").removeClass("wpuf-ms-bar-active active-step completed-step"),a(".passed-wpuf-ms-bar").addClass("completed-step").last().addClass("wpuf-ms-bar-active"),a(".wpuf-ms-bar-active").addClass("active-step");var e=a("fieldset.wpuf-multistep-fieldset").eq(b).find("legend").text();if(e=a.trim(e),"progressive"==c&&0!=a(".wpuf-form .wpuf-multistep-fieldset").length){var f=100*(b+1)/a("fieldset.wpuf-multistep-fieldset").length,f=Number(f.toFixed(2));a(".wpuf-multistep-progressbar").progressbar({value:f}),a(".wpuf-progress-percentage").text(e+" ("+f+"%)")}a(".wpuf-form").trigger("step-change-fieldset",[b,d])},ajaxCategory:function(){a(".category-wrap").on("change",".cat-ajax",function(){var b=a(this).data("form-id");currentLevel=parseInt(a(this).parent().attr("level")),WP_User_Frontend.getChildCats(a(this),currentLevel+1,"category",b)})},getChildCats:function(b,c,d,e){var f=a(b).val(),g="wpuf-category-dropdown-lvl-"+c,d=void 0!==d?d:"category",h=a(b).siblings("span").data("taxonomy");a.ajax({type:"post",url:wpuf_frontend.ajaxurl,data:{action:"wpuf_get_child_cat",catID:f,nonce:wpuf_frontend.nonce,field_attr:h,form_id:e},beforeSend:function(){a(b).parent().parent().next(".loading").addClass("wpuf-loading")},complete:function(){a(b).parent().parent().next(".loading").removeClass("wpuf-loading")},success:function(e){a(b).parent().nextAll().each(function(){a(this).remove()}),""!=e&&(a(b).parent().addClass("hasChild").parent().append('<div id="'+g+'" level="'+c+'"></div>'),b.parent().parent().find("#"+g).html(e).slideDown("fast")),a(document).trigger("wpuf-ajax-fetched-child-categories",g,c,d)}})},cloneField:function(b){b.preventDefault();var c=a(this).closest("tr"),d=c.clone();d.find("input").val(""),d.find(":checked").attr("checked",""),c.after(d)},removeField:function(){var b=a(this).closest("tr");b.siblings().andSelf().length>1&&b.remove()},adminPostSubmit:function(b){b.preventDefault();var c=a(this);if(WP_User_Frontend.validateForm(c))return!0},draftPost:function(b){b.preventDefault();var c=a(this),d=a(this).closest("form"),e=d.serialize()+"&action=wpuf_draft_post",f=d.find('input[type="hidden"][name="post_id"]').val(),g=[];a(".wpuf-rich-validation").each(function(b,c){var c=a(c),d=c.data("id"),e=c.data("name"),f=a.trim(tinyMCE.get(d).getContent());g.push(e+"="+encodeURIComponent(f))}),e=e+"&"+g.join("&"),c.after(' <span class="wpuf-loading"></span>'),a.post(wpuf_frontend.ajaxurl,e,function(b){if(void 0===f){var e='<input type="hidden" name="post_id" value="'+b.post_id+'">';e+='<input type="hidden" name="post_date" value="'+b.date+'">',e+='<input type="hidden" name="post_author" value="'+b.post_author+'">',e+='<input type="hidden" name="comment_status" value="'+b.comment_status+'">',d.append(e)}c.next("span.wpuf-loading").remove(),c.after('<span class="wpuf-draft-saved">&nbsp; Post Saved</span>'),a(".wpuf-draft-saved").delay(2500).fadeOut("fast",function(){a(this).remove()})})},account_update_profile:function(b){b.preventDefault();var c=a(this).closest("form");a.post(wpuf_frontend.ajaxurl,c.serialize(),function(a){a.success?(c.find(".wpuf-error").hide(),c.find(".wpuf-success").show()):(c.find(".wpuf-success").hide(),c.find(".wpuf-error").show(),c.find(".wpuf-error").text(a.data))})},formStepCheck:function(a,b){var c=b;c.find("input[type=submit]");return form_data=WP_User_Frontend.validateForm(c),0==form_data&&WP_User_Frontend.addErrorNotice(self,"bottom"),form_data},formSubmit:function(c){c.preventDefault();var d=a(this),e=d.find("input[type=submit]");form_data=WP_User_Frontend.validateForm(d),form_data&&(d.find("li.wpuf-submit").append('<span class="wpuf-loading"></span>'),e.attr("disabled","disabled").addClass("button-primary-disabled"),a.post(wpuf_frontend.ajaxurl,form_data,function(c){if(c.success)a("body").trigger("wpuf:postform:success",c),1==c.show_message?(d.before('<div class="wpuf-success">'+c.message+"</div>"),d.slideUp("fast",function(){d.remove()}),a("html, body").animate({scrollTop:a(".wpuf-success").offset().top-100},"fast")):b.location=c.redirect_to;else{if(void 0!==c.type&&"login"===c.type)return void(confirm(c.error)?b.location=c.redirect_to:(e.removeAttr("disabled"),e.removeClass("button-primary-disabled"),d.find("span.wpuf-loading").remove()));d.find(".g-recaptcha").length>0&&grecaptcha.reset(),swal({html:c.error,type:"warning",showCancelButton:!1,confirmButtonColor:"#d54e21",confirmButtonText:"OK",cancelButtonClass:"btn btn-danger"}),e.removeAttr("disabled")}e.removeClass("button-primary-disabled"),d.find("span.wpuf-loading").remove()}))},validateForm:function(b){var c=!1;error_type="",WP_User_Frontend.removeErrors(b),WP_User_Frontend.removeErrorNotice(b),b.find('[data-required="yes"]:visible').each(function(b,d){var e=a(d).data("type");switch(j="",e){case"rich":var f=a(d).data("id");""===(j=a.trim(tinyMCE.get(f).getContent()))&&(c=!0,WP_User_Frontend.markError(d));break;case"textarea":case"text":""===(j=a.trim(a(d).val()))&&(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"password":case"confirm_password":var g=a(d).data("repeat");if(j=a.trim(a(d).val()),""===j&&(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type)),g){var h=a('[data-type="confirm_password"]').eq(0);h.val()!=j&&(c=!0,error_type="mismatch",WP_User_Frontend.markError(h,error_type))}break;case"select":(j=a(d).val())&&"-1"!==j||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"multiselect":null!==(j=a(d).val())&&0!==j.length||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"tax-checkbox":var i=a(d).children().find("input:checked").length;i||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"radio":var i=a(d).find("input:checked").length;i||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"file":var i=a(d).find("ul").children().length;i||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"email":var j=a(d).val();""!==j?WP_User_Frontend.isValidEmail(j)||(c=!0,error_type="validation",WP_User_Frontend.markError(d,error_type)):""===j&&(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"url":var j=a(d).val();""!==j&&(WP_User_Frontend.isValidURL(j)||(c=!0,error_type="validation",WP_User_Frontend.markError(d,error_type)))}});var d=b.find('[data-required="yes"]').parents(".wpuf-form-google-map-container");if(a.each(d,function(b,d){""==a(d).val()&&(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type))}),c)return WP_User_Frontend.addErrorNotice(b,"end"),!1;var e=b.serialize(),f=[];return a(".wpuf-rich-validation",b).each(function(b,c){var c=a(c),d=c.data("id"),e=c.data("name"),g=a.trim(tinyMCE.get(d).getContent());f.push(e+"="+encodeURIComponent(g))}),e=e+"&"+f.join("&")},addErrorNotice:function(b,c){"bottom"==c?a(".wpuf-multistep-fieldset:visible").append('<div class="wpuf-errors">'+wpuf_frontend.error_message+"</div>"):a(b).find("li.wpuf-submit").append('<div class="wpuf-errors">'+wpuf_frontend.error_message+"</div>")},removeErrorNotice:function(b){a(b).find(".wpuf-errors").remove()},markError:function(b,c){var d="";if(a(b).closest("li").addClass("has-error"),c){switch(d=a(b).closest("li").data("label"),c){case"required":case"mismatch":case"validation":d=d+" "+error_str_obj[c];break;case"limit":d=""}a(b).siblings(".wpuf-error-msg").remove(),a(b).after('<div class="wpuf-error-msg">'+d+"</div>")}a(b).focus()},removeErrors:function(b){a(b).find(".has-error").removeClass("has-error"),a(".wpuf-error-msg").remove()},isValidEmail:function(a){return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a)},isValidURL:function(a){return new RegExp("^(http://www.|https://www.|ftp://www.|www.|http://|https://){1}([0-9A-Za-z]+.)").test(a)},insertImage:function(b,c){if(a("#"+b).length){var d=new plupload.Uploader({runtimes:"html5,html4",browse_button:b,container:"wpuf-insert-image-container",multipart:!0,multipart_params:{action:"wpuf_insert_image",form_id:a("#"+b).data("form_id")},multiple_queues:!1,multi_selection:!1,urlstream_upload:!0,file_data_name:"wpuf_file",max_file_size:wpuf_frontend_upload.max_filesize,url:wpuf_frontend_upload.plupload.url,flash_swf_url:wpuf_frontend_upload.flash_swf_url,filters:[{title:"Allowed Files",extensions:"jpg,jpeg,gif,png,bmp"}]});d.bind("Init",function(a,b){}),d.bind("FilesAdded",function(b,c){var d=a("#wpuf-insert-image-container");a.each(c,function(a,b){d.append('<div class="upload-item" id="'+b.id+'"><div class="progress progress-striped active"><div class="bar"></div></div></div>')}),b.refresh(),b.start()}),d.bind("QueueChanged",function(a){d.start()}),d.bind("UploadProgress",function(b,c){var d=a("#"+c.id);a(".bar",d).css({width:c.percent+"%"}),a(".percent",d).html(c.percent+"%")}),d.bind("Error",function(a,b){alert("Error #"+b.code+": "+b.message)}),d.bind("FileUploaded",function(b,d,e){if(a("#"+d.id).remove(),"error"!==e.response){if("undefined"!=typeof tinyMCE)if("function"!=typeof tinyMCE.execInstanceCommand){var f=tinyMCE.get("post_content_"+c);null!==f&&f.insertContent(e.response)}else tinyMCE.execInstanceCommand("post_content_"+c,"mceInsertContent",!1,e.response);var g=a("#post_content_"+c);g.val(g.val()+e.response)}else alert("Something went wrong")}),d.init()}},deleteAvatar:function(b){b.preventDefault(),confirm(a(this).data("confirm"))&&a.post(wpuf_frontend.ajaxurl,{action:"wpuf_delete_avatar",_wpnonce:wpuf_frontend.nonce},function(){a(b.target).parent().remove(),a("[id^=wpuf-avatar]").css("display","")})},editorLimit:{bind:function(b,c,d,e,f){"no"===d?(a("textarea#"+c).keydown(function(a){WP_User_Frontend.editorLimit.textLimit.call(this,a,b,e,f)}),a("input#"+c).keydown(function(a){WP_User_Frontend.editorLimit.textLimit.call(this,a,b,e,f)}),a("textarea#"+c).on("paste",function(c){var d=a(this);setTimeout(function(){WP_User_Frontend.editorLimit.textLimit.call(d,c,b,e,f)},100)}),a("input#"+c).on("paste",function(c){var d=a(this);setTimeout(function(){WP_User_Frontend.editorLimit.textLimit.call(d,c,b,e,f)},100)})):setTimeout(function(){tinyMCE.get(c).onKeyDown.add(function(a,c){WP_User_Frontend.editorLimit.tinymce.onKeyDown(a,c,b,e,f)}),tinyMCE.get(c).onPaste.add(function(a,c){setTimeout(function(){WP_User_Frontend.editorLimit.tinymce.onPaste(a,c,b,e,f)},100)})},1e3)},tinymce:{getStats:function(a){var b=a.getBody(),c=tinymce.trim(b.innerText||b.textContent);return{chars:c.length,words:c.split(/[\w\u2019\'-]+/).length}},onKeyDown:function(b,c,d,e,f){field=a(".post_content");var g=WP_User_Frontend.editorLimit.tinymce.getStats(b).chars+1;"word"===e&&(g=WP_User_Frontend.editorLimit.tinymce.getStats(b).words),d&&g>d&&"max"===f?(WP_User_Frontend.editorLimit.blockTyping(c),WP_User_Frontend.markError(field,"limit"),jQuery(".mce-path-item.mce-last",b.container).html(wpuf_frontend["word_"+f]+g+"/"+d)):d&&g<d&&"min"===f?(WP_User_Frontend.markError(field,"limit"),jQuery(".mce-path-item.mce-last",b.container).html(wpuf_frontend["word_"+f]+g+"/"+d)):(field.removeClass("has-error"),jQuery(".mce-path-item.mce-last",b.container).html(""))},onPaste:function(a,b,c){var d=a.getContent().split(" ").slice(0,c).join(" ");a.setContent(d),WP_User_Frontend.editorLimit.make_media_embed_code(d,a)}},textLimit:function(b,c,d,e){var f=a(this),g=f.val().length+1;"word"===d&&(g=f.val().split(" ").length),c&&g>c&&"max"===e?(WP_User_Frontend.content_limit_message(f,d,e,c),WP_User_Frontend.editorLimit.blockTyping(b)):c&&g<c&&"min"===e?WP_User_Frontend.content_limit_message(f,d,e,c):(f.closest("li").removeClass("has-error"),f.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html("")),"paste"===b.type&&(f.val(content.substring(0,c)),"word"===d&&f.val(content.slice(0,c).join(" ")))},blockTyping:function(b){-1!==a.inArray(b.keyCode,[46,8,9,27,13,110,190,189])||65==b.keyCode&&!0===b.ctrlKey||b.keyCode>=35&&b.keyCode<=40||(b.preventDefault(),b.stopPropagation())},make_media_embed_code:function(b,c){a.post(ajaxurl,{action:"make_media_embed_code",content:b},function(a){c.setContent(c.getContent()+c.setContent(a))})}},doUncheckRadioBtn:function(a){a.checked=!1},content_limit_message:function(a,b,c,d){WP_User_Frontend.markError(a,"limit"),"word"===b&&(limit_message=wpuf_frontend["word_"+c]+d),"character"===b&&(limit_message=wpuf_frontend["char_"+c]+d),a.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html(limit_message)}},a(function(){if(WP_User_Frontend.init(),a("ul.wpuf-payment-gateways").on("click","input[type=radio]",function(b){a(".wpuf-payment-instruction").slideUp(250),a(this).parents("li").find(".wpuf-payment-instruction").slideDown(250)}),a("ul.wpuf-payment-gateways li").find("input[type=radio]").is(":checked")){a("ul.wpuf-payment-gateways li").find("input[type=radio]:checked").parents("li").find(".wpuf-payment-instruction").slideDown(250)}else a("ul.wpuf-payment-gateways li").first().find("input[type=radio]").click()}),a(function(){a('input[name="first_name"], input[name="last_name"]').on("change keyup",function(){var b,c=a.makeArray(a('input[name="first_name"], input[name="last_name"]').map(function(){if(b=a(this).val())return b})).join(" ");a('input[name="display_name"]').val(c)})}),a(function(a){a('.wpuf-form-add input[name="dokan_store_name"]').on("focusout",function(){var b=a(this).val().toLowerCase().replace(/-+/g,"").replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");a('input[name="shopurl"]').val(b),a("#url-alart").text(b),a('input[name="shopurl"]').focus()}),a('.wpuf-form-add input[name="shopurl"]').keydown(function(b){a(this).val();-1!==a.inArray(b.keyCode,[46,8,9,27,13,91,109,110,173,189,190])||65==b.keyCode&&!0===b.ctrlKey||b.keyCode>=35&&b.keyCode<=39||(b.shiftKey||(b.keyCode<65||b.keyCode>90)&&(b.keyCode<48||b.keyCode>57))&&(b.keyCode<96||b.keyCode>105)&&b.preventDefault()}),a('.wpuf-form-add input[name="shopurl"]').keyup(function(b){a("#url-alart").text(a(this).val())}),a('.wpuf-form-add input[name="shopurl"]').on("focusout",function(){var b=a(this),c={action:"shop_url",url_slug:b.val(),_nonce:dokan.nonce};""!==b.val()&&a.post(dokan.ajaxurl,c,function(b){0==b?(a("#url-alart").removeClass("text-success").addClass("text-danger"),a("#url-alart-mgs").removeClass("text-success").addClass("text-danger").text(dokan.seller.notAvailable)):(a("#url-alart").removeClass("text-danger").addClass("text-success"),a("#url-alart-mgs").removeClass("text-danger").addClass("text-success").text(dokan.seller.available))})}),a(".wpuf-form-add #wpuf-map-add-location").attr("name","find_address")})}(jQuery,window);
1
+ !function(a,b){a.fn.listautowidth=function(){return this.each(function(){var b=a(this).width(),c=b/a(this).children("li").length;a(this).children("li").each(function(){var b=a(this).outerWidth(!0)-a(this).width();a(this).width(c-b)})})},b.WP_User_Frontend={init:function(){this.enableMultistep(this),a(".wpuf-form").on("click","img.wpuf-clone-field",this.cloneField),a(".wpuf-form").on("click","img.wpuf-remove-field",this.removeField),a(".wpuf-form").on("click","a.wpuf-delete-avatar",this.deleteAvatar),a(".wpuf-form").on("click","a#wpuf-post-draft",this.draftPost),a(".wpuf-form").on("click","button#wpuf-account-update-profile",this.account_update_profile),a(".wpuf-form-add").on("submit",this.formSubmit),a("form#post").on("submit",this.adminPostSubmit),b.matchMedia("(max-width: 600px)").matches&&(a("table.items-table tr td .post-edit-icon").click(function(b){b.preventDefault(),a(this).parents("tr").find(".data-column").toggleClass("flex-column"),a(this).toggleClass("toggle-icon")}),a(".wpuf-dashboard-navigation ul li:first-child").after().click(function(b){b.preventDefault(),a(".wpuf-dashboard-navigation ul li").not(":first").toggle()})),a(".wpuf-form").on("step-change-fieldset",function(a,b,c){if(wpuf_plupload_items.length)for(var d=wpuf_plupload_items.length-1;d>=0;d--)wpuf_plupload_items[d].refresh();if(wpuf_map_items.length)for(var d=wpuf_map_items.length-1;d>=0;d--)google.maps.event.trigger(wpuf_map_items[d].map,"resize"),wpuf_map_items[d].map.setCenter(wpuf_map_items[d].center)}),this.ajaxCategory(),a(':submit[name="wpuf_user_subscription_cancel"]').click(function(b){b.preventDefault(),swal({text:wpuf_frontend.cancelSubMsg,type:"warning",showCancelButton:!0,confirmButtonColor:"#d54e21",confirmButtonText:wpuf_frontend.delete_it,cancelButtonText:wpuf_frontend.cancel_it,confirmButtonClass:"btn btn-success",cancelButtonClass:"btn btn-danger"}).then(function(b){if(!b)return!1;a("#wpuf_cancel_subscription").submit()})}),this.warningOnExit()},warningOnExit:function(){a('input[name="submit"]').on("click",function(){b.onbeforeunload=null}),a(".wpuf-form-add").on("change",function(){a(".wpuf-form-add input, .wpuf-form-add select, .wpuf-form-add textarea").each(function(c){"hidden"===a(this).attr("type")&&"submit"===a(this).attr("type")&&-1===a(this).val()||(b.onbeforeunload=function(){return"you have changes"})})})},check_pass_strength:function(){var b=a("#pass1").val();if(a("#pass-strength-result").show(),a("#pass-strength-result").removeClass("short bad good strong"),!b)return a("#pass-strength-result").html("&nbsp;"),void a("#pass-strength-result").hide();if(void 0!==wp.passwordStrength)switch(wp.passwordStrength.meter(b,wp.passwordStrength.userInputBlacklist(),b)){case 2:a("#pass-strength-result").addClass("bad").html(pwsL10n.bad);break;case 3:a("#pass-strength-result").addClass("good").html(pwsL10n.good);break;case 4:a("#pass-strength-result").addClass("strong").html(pwsL10n.strong);break;case 5:a("#pass-strength-result").addClass("short").html(pwsL10n.mismatch);break;default:a("#pass-strength-result").addClass("short").html(pwsL10n.short)}},enableMultistep:function(c){var d=this,e=0,f=a(':hidden[name="wpuf_multistep_type"]').val();if(null!=f){if(a("fieldset.wpuf-multistep-fieldset").find(".wpuf-multistep-prev-btn").first().remove(),a("fieldset.wpuf-multistep-fieldset").find(".wpuf-multistep-next-btn").last().remove(),a(".wpuf-form fieldset").removeClass("field-active").first().addClass("field-active"),"progressive"==f&&0!=a(".wpuf-form .wpuf-multistep-fieldset").length){a("fieldset.wpuf-multistep-fieldset legend").first();a(".wpuf-multistep-progressbar").html('<div class="wpuf-progress-percentage"></div>');var g=a(".wpuf-multistep-progressbar"),h=a(".wpuf-progress-percentage");a(".wpuf-multistep-progressbar").progressbar({change:function(){h.text(g.progressbar("value")+"%")}}),a(".wpuf-multistep-fieldset legend").hide()}else a(".wpuf-form").each(function(){var b=a(this),c=a(".wpuf-multistep-progressbar",b),d="";c.addClass("wizard-steps"),d+='<ul class="wpuf-step-wizard">',a(".wpuf-multistep-fieldset",this).each(function(){d+="<li>"+a.trim(a("legend",this).text())+"</li>",a("legend",this).hide()}),d+="</ul>",c.append(d),a(".wpuf-step-wizard li",c).first().addClass("active-step"),a(".wpuf-step-wizard",c).listautowidth()});this.change_fieldset(e,f),a("fieldset .wpuf-multistep-prev-btn, fieldset .wpuf-multistep-next-btn").click(function(g){if(a(this).hasClass("wpuf-multistep-next-btn")){0!=d.formStepCheck("",a(this).closest("fieldset"))&&c.change_fieldset(++e,f)}else a(this).hasClass("wpuf-multistep-prev-btn")&&c.change_fieldset(--e,f);var h=a("form.wpuf-form-add"),i=h.offset().top;return b.scrollTo({top:i-32,behavior:"smooth"}),!1})}},change_fieldset:function(b,c){var d=a("fieldset.wpuf-multistep-fieldset").eq(b);a("fieldset.wpuf-multistep-fieldset").removeClass("field-active").eq(b).addClass("field-active"),a(".wpuf-step-wizard li").each(function(){a(this).index()<=b?"step_by_step"==c?a(this).addClass("passed-wpuf-ms-bar"):a(".wpuf-ps-bar",this).addClass("passed-wpuf-ms-bar"):"step_by_step"==c?a(this).removeClass("passed-wpuf-ms-bar"):a(".wpuf-ps-bar",this).removeClass("passed-wpuf-ms-bar")}),a(".wpuf-step-wizard li").removeClass("wpuf-ms-bar-active active-step completed-step"),a(".passed-wpuf-ms-bar").addClass("completed-step").last().addClass("wpuf-ms-bar-active"),a(".wpuf-ms-bar-active").addClass("active-step");var e=a("fieldset.wpuf-multistep-fieldset").eq(b).find("legend").text();if(e=a.trim(e),"progressive"==c&&0!=a(".wpuf-form .wpuf-multistep-fieldset").length){var f=100*(b+1)/a("fieldset.wpuf-multistep-fieldset").length,f=Number(f.toFixed(2));a(".wpuf-multistep-progressbar").progressbar({value:f}),a(".wpuf-progress-percentage").text(e+" ("+f+"%)")}a(".wpuf-form").trigger("step-change-fieldset",[b,d])},ajaxCategory:function(){a(".category-wrap").on("change",".cat-ajax",function(){var b=a(this).data("form-id");currentLevel=parseInt(a(this).parent().attr("level")),WP_User_Frontend.getChildCats(a(this),currentLevel+1,"category",b)})},getChildCats:function(b,c,d,e){var f=a(b).val(),g="wpuf-category-dropdown-lvl-"+c,d=void 0!==d?d:"category",h=a(b).siblings("span").data("taxonomy");a.ajax({type:"post",url:wpuf_frontend.ajaxurl,data:{action:"wpuf_get_child_cat",catID:f,nonce:wpuf_frontend.nonce,field_attr:h,form_id:e},beforeSend:function(){a(b).parent().parent().next(".loading").addClass("wpuf-loading")},complete:function(){a(b).parent().parent().next(".loading").removeClass("wpuf-loading")},success:function(e){a(b).parent().nextAll().each(function(){a(this).remove()}),""!=e&&(a(b).parent().addClass("hasChild").parent().append('<div id="'+g+'" level="'+c+'"></div>'),b.parent().parent().find("#"+g).html(e).slideDown("fast")),a(document).trigger("wpuf-ajax-fetched-child-categories",g,c,d)}})},cloneField:function(b){b.preventDefault();var c=a(this).closest("tr"),d=c.clone();d.find("input").val(""),d.find(":checked").attr("checked",""),c.after(d)},removeField:function(){var b=a(this).closest("tr");b.siblings().andSelf().length>1&&b.remove()},adminPostSubmit:function(b){b.preventDefault();var c=a(this);if(WP_User_Frontend.validateForm(c))return!0},draftPost:function(b){b.preventDefault();var c=a(this),d=a(this).closest("form"),e=d.serialize()+"&action=wpuf_draft_post",f=d.find('input[type="hidden"][name="post_id"]').val(),g=[];a(".wpuf-rich-validation").each(function(b,c){var c=a(c),d=c.data("id"),e=c.data("name"),f=a.trim(tinyMCE.get(d).getContent());g.push(e+"="+encodeURIComponent(f))}),e=e+"&"+g.join("&"),c.after(' <span class="wpuf-loading"></span>'),a.post(wpuf_frontend.ajaxurl,e,function(b){if(void 0===f){var e='<input type="hidden" name="post_id" value="'+b.post_id+'">';e+='<input type="hidden" name="post_date" value="'+b.date+'">',e+='<input type="hidden" name="post_author" value="'+b.post_author+'">',e+='<input type="hidden" name="comment_status" value="'+b.comment_status+'">',d.append(e)}c.next("span.wpuf-loading").remove(),c.after('<span class="wpuf-draft-saved">&nbsp; Post Saved</span>'),a(".wpuf-draft-saved").delay(2500).fadeOut("fast",function(){a(this).remove()})})},account_update_profile:function(b){b.preventDefault();var c=a(this).closest("form");a.post(wpuf_frontend.ajaxurl,c.serialize(),function(a){a.success?(c.find(".wpuf-error").hide(),c.find(".wpuf-success").show()):(c.find(".wpuf-success").hide(),c.find(".wpuf-error").show(),c.find(".wpuf-error").text(a.data))})},formStepCheck:function(a,b){var c=b,d=(c.find("input[type=submit]"),WP_User_Frontend.validateForm(c));return 0==d&&WP_User_Frontend.addErrorNotice(self,"bottom"),d},formSubmit:function(c){c.preventDefault();var d=a(this),e=d.find("input[type=submit]");form_data=WP_User_Frontend.validateForm(d),form_data&&(d.find("li.wpuf-submit").append('<span class="wpuf-loading"></span>'),e.attr("disabled","disabled").addClass("button-primary-disabled"),a.post(wpuf_frontend.ajaxurl,form_data,function(c){if(c.success)a("body").trigger("wpuf:postform:success",c),1==c.show_message?(d.before('<div class="wpuf-success">'+c.message+"</div>"),d.slideUp("fast",function(){d.remove()}),a("html, body").animate({scrollTop:a(".wpuf-success").offset().top-100},"fast")):b.location=c.redirect_to;else{if(void 0!==c.type&&"login"===c.type)return void(confirm(c.error)?b.location=c.redirect_to:(e.removeAttr("disabled"),e.removeClass("button-primary-disabled"),d.find("span.wpuf-loading").remove()));d.find(".g-recaptcha").length>0&&grecaptcha.reset(),swal({html:c.error,type:"warning",showCancelButton:!1,confirmButtonColor:"#d54e21",confirmButtonText:"OK",cancelButtonClass:"btn btn-danger"}),e.removeAttr("disabled")}e.removeClass("button-primary-disabled"),d.find("span.wpuf-loading").remove()}))},validateForm:function(b){var c=!1,d="";WP_User_Frontend.removeErrors(b),WP_User_Frontend.removeErrorNotice(b),b.find('[data-required="yes"]:visible').each(function(b,e){var f=a(e).data("type"),g="";switch(f){case"rich":var h=a(e).data("id");""===(g=a.trim(tinyMCE.get(h).getContent()))&&(c=!0,WP_User_Frontend.markError(e));break;case"textarea":case"text":""===(g=a.trim(a(e).val()))&&(c=!0,d="required",WP_User_Frontend.markError(e,d));break;case"password":case"confirm_password":var i=a(e).data("repeat");if(g=a.trim(a(e).val()),""===g&&(c=!0,d="required",WP_User_Frontend.markError(e,d)),i){var j=a('[data-type="confirm_password"]').eq(0);j.val()!=g&&(c=!0,d="mismatch",WP_User_Frontend.markError(j,d))}break;case"select":(g=a(e).val())&&"-1"!==g||(c=!0,d="required",WP_User_Frontend.markError(e,d));break;case"multiselect":null!==(g=a(e).val())&&0!==g.length||(c=!0,d="required",WP_User_Frontend.markError(e,d));break;case"tax-checkbox":var k=a(e).children().find("input:checked").length;k||(c=!0,d="required",WP_User_Frontend.markError(e,d));break;case"radio":var k=a(e).find("input:checked").length;k||(c=!0,d="required",WP_User_Frontend.markError(e,d));break;case"file":var k=a(e).find("ul").children().length;k||(c=!0,d="required",WP_User_Frontend.markError(e,d));break;case"email":var g=a(e).val();""!==g?WP_User_Frontend.isValidEmail(g)||(c=!0,d="validation",WP_User_Frontend.markError(e,d)):""===g&&(c=!0,d="required",WP_User_Frontend.markError(e,d));break;case"url":var g=a(e).val();""!==g&&(WP_User_Frontend.isValidURL(g)||(c=!0,d="validation",WP_User_Frontend.markError(e,d)))}});var e=b.find('[data-required="yes"]').parents(".wpuf-form-google-map-container");if(a.each(e,function(b,e){""==a(e).val()&&(c=!0,d="required",WP_User_Frontend.markError(e,d))}),c)return WP_User_Frontend.addErrorNotice(b,"end"),!1;var f=b.serialize(),g=[];return a(".wpuf-rich-validation",b).each(function(b,c){var c=a(c),d=c.data("id"),e=c.data("name"),f=a.trim(tinyMCE.get(d).getContent());g.push(e+"="+encodeURIComponent(f))}),f=f+"&"+g.join("&")},addErrorNotice:function(b,c){"bottom"==c?a(".wpuf-multistep-fieldset:visible").append('<div class="wpuf-errors">'+wpuf_frontend.error_message+"</div>"):a(b).find("li.wpuf-submit").append('<div class="wpuf-errors">'+wpuf_frontend.error_message+"</div>")},removeErrorNotice:function(b){a(b).find(".wpuf-errors").remove()},markError:function(b,c){if(a(b).closest("div").addClass("has-error"),c){var d="",e=a(b).data("label");switch(d=e||a(b).closest("li").data("label"),c){case"required":case"mismatch":case"validation":d=d+" "+error_str_obj[c];break;case"limit":d=""}a(b).siblings(".wpuf-error-msg").remove(),"DIV"===a(b).prev().prop("nodeName")?a(b).append('<div class="wpuf-error-msg">'+d+"</div>"):a(b).after('<div class="wpuf-error-msg">'+d+"</div>")}a(b).focus()},removeErrors:function(b){a(b).find(".has-error").removeClass("has-error"),a(".wpuf-error-msg").remove()},isValidEmail:function(a){return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a)},isValidURL:function(a){return new RegExp("^(http://www.|https://www.|ftp://www.|www.|http://|https://){1}([0-9A-Za-z]+.)").test(a)},insertImage:function(b,c){if(a("#"+b).length){var d=new plupload.Uploader({runtimes:"html5,html4",browse_button:b,container:"wpuf-insert-image-container",multipart:!0,multipart_params:{action:"wpuf_insert_image",form_id:a("#"+b).data("form_id")},multiple_queues:!1,multi_selection:!1,urlstream_upload:!0,file_data_name:"wpuf_file",max_file_size:wpuf_frontend_upload.max_filesize,url:wpuf_frontend_upload.plupload.url,flash_swf_url:wpuf_frontend_upload.flash_swf_url,filters:[{title:"Allowed Files",extensions:"jpg,jpeg,gif,png,bmp"}]});d.bind("Init",function(a,b){}),d.bind("FilesAdded",function(b,c){var d=a("#wpuf-insert-image-container");a.each(c,function(a,b){d.append('<div class="upload-item" id="'+b.id+'"><div class="progress progress-striped active"><div class="bar"></div></div></div>')}),b.refresh(),b.start()}),d.bind("QueueChanged",function(a){d.start()}),d.bind("UploadProgress",function(b,c){var d=a("#"+c.id);a(".bar",d).css({width:c.percent+"%"}),a(".percent",d).html(c.percent+"%")}),d.bind("Error",function(a,b){alert("Error #"+b.code+": "+b.message)}),d.bind("FileUploaded",function(b,d,e){if(a("#"+d.id).remove(),"error"!==e.response){if("undefined"!=typeof tinyMCE)if("function"!=typeof tinyMCE.execInstanceCommand){var f=tinyMCE.get("post_content_"+c);null!==f&&f.insertContent(e.response)}else tinyMCE.execInstanceCommand("post_content_"+c,"mceInsertContent",!1,e.response);var g=a("#post_content_"+c);g.val(g.val()+e.response)}else alert("Something went wrong")}),d.init()}},deleteAvatar:function(b){b.preventDefault(),confirm(a(this).data("confirm"))&&a.post(wpuf_frontend.ajaxurl,{action:"wpuf_delete_avatar",_wpnonce:wpuf_frontend.nonce},function(){a(b.target).parent().remove(),a("[id^=wpuf-avatar]").css("display","")})},editorLimit:{bind:function(b,c,d,e,f){"no"===d?(a("textarea#"+c).keydown(function(a){WP_User_Frontend.editorLimit.textLimit.call(this,a,b,e,f)}),a("input#"+c).keydown(function(a){WP_User_Frontend.editorLimit.textLimit.call(this,a,b,e,f)}),a("textarea#"+c).on("paste",function(c){var d=a(this);setTimeout(function(){WP_User_Frontend.editorLimit.textLimit.call(d,c,b,e,f)},100)}),a("input#"+c).on("paste",function(c){var d=a(this);setTimeout(function(){WP_User_Frontend.editorLimit.textLimit.call(d,c,b,e,f)},100)})):setTimeout(function(){tinyMCE.get(c).onKeyDown.add(function(a,c){WP_User_Frontend.editorLimit.tinymce.onKeyDown(a,c,b,e,f)}),tinyMCE.get(c).onPaste.add(function(a,c){setTimeout(function(){WP_User_Frontend.editorLimit.tinymce.onPaste(a,c,b,e,f)},100)})},1e3)},tinymce:{getStats:function(a){var b=a.getBody(),c=tinymce.trim(b.innerText||b.textContent);return{chars:c.length,words:c.split(/[\w\u2019\'-]+/).length}},onKeyDown:function(b,c,d,e,f){field=a(".post_content");var g=WP_User_Frontend.editorLimit.tinymce.getStats(b).chars+1;"word"===e&&(g=WP_User_Frontend.editorLimit.tinymce.getStats(b).words),d&&g>d&&"max"===f?(WP_User_Frontend.editorLimit.blockTyping(c),WP_User_Frontend.markError(field,"limit"),jQuery(".mce-path-item.mce-last",b.container).html(wpuf_frontend["word_"+f]+g+"/"+d)):d&&g<d&&"min"===f?(WP_User_Frontend.markError(field,"limit"),jQuery(".mce-path-item.mce-last",b.container).html(wpuf_frontend["word_"+f]+g+"/"+d)):(field.removeClass("has-error"),jQuery(".mce-path-item.mce-last",b.container).html(""))},onPaste:function(a,b,c){var d=a.getContent().split(" ").slice(0,c).join(" ");a.setContent(d),WP_User_Frontend.editorLimit.make_media_embed_code(d,a)}},textLimit:function(b,c,d,e){var f=a(this),g=f.val().length+1;"word"===d&&(g=f.val().split(" ").length),c&&g>c&&"max"===e?(WP_User_Frontend.content_limit_message(f,d,e,c),WP_User_Frontend.editorLimit.blockTyping(b)):c&&g<c&&"min"===e?WP_User_Frontend.content_limit_message(f,d,e,c):(f.closest("li").removeClass("has-error"),f.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html("")),"paste"===b.type&&(f.val(content.substring(0,c)),"word"===d&&f.val(content.slice(0,c).join(" ")))},blockTyping:function(b){-1!==a.inArray(b.keyCode,[46,8,9,27,13,110,190,189])||65==b.keyCode&&!0===b.ctrlKey||b.keyCode>=35&&b.keyCode<=40||(b.preventDefault(),b.stopPropagation())},make_media_embed_code:function(b,c){a.post(ajaxurl,{action:"make_media_embed_code",content:b},function(a){c.setContent(c.getContent()+c.setContent(a))})}},doUncheckRadioBtn:function(a){a.checked=!1},content_limit_message:function(a,b,c,d){WP_User_Frontend.markError(a,"limit"),"word"===b&&(limit_message=wpuf_frontend["word_"+c]+d),"character"===b&&(limit_message=wpuf_frontend["char_"+c]+d),a.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html(limit_message)}},a(function(){if(WP_User_Frontend.init(),a("ul.wpuf-payment-gateways").on("click","input[type=radio]",function(b){a(".wpuf-payment-instruction").slideUp(250),a(this).parents("li").find(".wpuf-payment-instruction").slideDown(250)}),a("ul.wpuf-payment-gateways li").find("input[type=radio]").is(":checked")){a("ul.wpuf-payment-gateways li").find("input[type=radio]:checked").parents("li").find(".wpuf-payment-instruction").slideDown(250)}else a("ul.wpuf-payment-gateways li").first().find("input[type=radio]").click()}),a(function(){a('input[name="first_name"], input[name="last_name"]').on("change keyup",function(){var b,c=a.makeArray(a('input[name="first_name"], input[name="last_name"]').map(function(){if(b=a(this).val())return b})).join(" ");a('input[name="display_name"]').val(c)})}),a(function(a){a('.wpuf-form-add input[name="dokan_store_name"]').on("focusout",function(){var b=a(this).val().toLowerCase().replace(/-+/g,"").replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");a('input[name="shopurl"]').val(b),a("#url-alart").text(b),a('input[name="shopurl"]').focus()}),a('.wpuf-form-add input[name="shopurl"]').keydown(function(b){a(this).val();-1!==a.inArray(b.keyCode,[46,8,9,27,13,91,109,110,173,189,190])||65==b.keyCode&&!0===b.ctrlKey||b.keyCode>=35&&b.keyCode<=39||(b.shiftKey||(b.keyCode<65||b.keyCode>90)&&(b.keyCode<48||b.keyCode>57))&&(b.keyCode<96||b.keyCode>105)&&b.preventDefault()}),a('.wpuf-form-add input[name="shopurl"]').keyup(function(b){a("#url-alart").text(a(this).val())}),a('.wpuf-form-add input[name="shopurl"]').on("focusout",function(){var b=a(this),c={action:"shop_url",url_slug:b.val(),_nonce:dokan.nonce};""!==b.val()&&a.post(dokan.ajaxurl,c,function(b){0==b?(a("#url-alart").removeClass("text-success").addClass("text-danger"),a("#url-alart-mgs").removeClass("text-success").addClass("text-danger").text(dokan.seller.notAvailable)):(a("#url-alart").removeClass("text-danger").addClass("text-success"),a("#url-alart-mgs").removeClass("text-danger").addClass("text-success").text(dokan.seller.available))})}),a(".wpuf-form-add #wpuf-map-add-location").attr("name","find_address")})}(jQuery,window);
assets/js/wpuf-form-builder.js CHANGED
@@ -535,6 +535,13 @@
535
  self.is_form_saving = true;
536
  self.set_current_panel('form-fields');
537
 
 
 
 
 
 
 
 
538
  wp.ajax.send('wpuf_form_builder_save_form', {
539
  data: {
540
  form_data: $('#wpuf-form-builder').serialize(),
535
  self.is_form_saving = true;
536
  self.set_current_panel('form-fields');
537
 
538
+ var form_id = $('#wpuf-form-builder [name="wpuf_form_id"]').val();
539
+
540
+ if ( typeof tinyMCE !== 'undefined' ) {
541
+ $('textarea[name="wpuf_settings[notification][verification_body]"]').val(tinyMCE.get('wpuf_verification_body_' + form_id).getContent());
542
+ $('textarea[name="wpuf_settings[notification][welcome_email_body]"]').val(tinyMCE.get('wpuf_welcome_email_body_' + form_id).getContent());
543
+ }
544
+
545
  wp.ajax.send('wpuf_form_builder_save_form', {
546
  data: {
547
  form_data: $('#wpuf-form-builder').serialize(),
assets/less/admin.less CHANGED
@@ -834,7 +834,32 @@ ul.wpuf-form{
834
  .wpuf-xmp-tag{
835
  display: inline;
836
  }
837
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
838
  @import "help.less";
839
  @import "whats-new.less";
840
  @import "metabox-tabs.less";
834
  .wpuf-xmp-tag{
835
  display: inline;
836
  }
837
+ #wpuf-search-section {
838
+ display: flex;
839
+ position: relative;
840
+ align-items: center;
841
+ color: red;
842
+ cursor: pointer;
843
+ justify-content: space-between;
844
+ border-bottom: 1px solid #c8d7e1;
845
+ height: 46px;
846
+ }
847
+ #wpuf-settings-search {
848
+ width: 100%;
849
+ height: 100%;
850
+ background: #f1f1f1;
851
+ border: 0;
852
+ border-radius: 0;
853
+ margin: 0;
854
+ line-height: 20px;
855
+ font-weight: 400;
856
+ padding: 0 15px;
857
+ }
858
+ #wpuf-search-section .dashicons-no-alt{
859
+ display: none;
860
+ position: absolute;
861
+ right: 5px;
862
+ }
863
  @import "help.less";
864
  @import "whats-new.less";
865
  @import "metabox-tabs.less";
assets/less/frontend-forms.less CHANGED
@@ -9,6 +9,10 @@ body {
9
  #wpfooter {
10
  position: fixed !important
11
  }
 
 
 
 
12
  .wpufTable{
13
  display: table;
14
  width: 100%;
@@ -1911,12 +1915,13 @@ ul.wpuf-form .weforms-frontend-field-points{
1911
  }
1912
 
1913
  /* Front End Posts List Tools */
1914
- .wpuf-posts-options{
1915
- display: inline-block;
1916
- padding: 7px 7px;
1917
- border-radius: 100%;
1918
- // margin: 0px 5px;
1919
  }
 
1920
  .wpuf-posts-edit:hover{
1921
  background-color: #5C5CFB;
1922
  }
9
  #wpfooter {
10
  position: fixed !important
11
  }
12
+ .has-error {
13
+ background: #FFE4E4;
14
+ padding: 10px;
15
+ }
16
  .wpufTable{
17
  display: table;
18
  width: 100%;
1915
  }
1916
 
1917
  /* Front End Posts List Tools */
1918
+ .wpuf-posts-edit,
1919
+ .wpuf-posts-delete {
1920
+ float: left;
1921
+ padding: 10px;
1922
+ border-radius: 50%;
1923
  }
1924
+
1925
  .wpuf-posts-edit:hover{
1926
  background-color: #5C5CFB;
1927
  }
changelog.txt CHANGED
@@ -1,3 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  = v3.5.21 (21 Oct, 2021) =
2
 
3
  * Fix - reCaptcha issue with other plugin handled
1
+ = v3.5.22 (28 Oct, 2021) =
2
+
3
+ * Enhancement - Settings page search implemented
4
+ * Enhancement - Featured item for subscriber
5
+ * Enhancement - Warning added for unsaved form data on frontend
6
+ * Enhancement - Editor added for registration form email template
7
+ * Fix - Fallback pay per post not working with when draft enabled
8
+ * Fix - User Dashboard responsive issues fixed
9
+ * Fix - Showing wrong license expire message handled
10
+ * Fix - Remove expire cron handled for once daily
11
+ * Fix - Billing address validation handled
12
+ * Update - Promotion notice restricted for WPUF menu
13
+
14
  = v3.5.21 (21 Oct, 2021) =
15
 
16
  * Fix - reCaptcha issue with other plugin handled
class/subscription.php CHANGED
@@ -298,6 +298,8 @@ class WPUF_Subscription {
298
  $meta['_expired_post_status'] = get_post_meta( $subscription_id, '_expired_post_status', true );
299
  $meta['_enable_mail_after_expired'] = get_post_meta( $subscription_id, '_enable_mail_after_expired', true );
300
  $meta['_post_expiration_message'] = get_post_meta( $subscription_id, '_post_expiration_message', true );
 
 
301
 
302
  $meta = apply_filters( 'wpuf_get_subscription_meta', $meta, $subscription_id );
303
 
@@ -390,6 +392,8 @@ class WPUF_Subscription {
390
  update_post_meta( $subscription_id, '_expired_post_status', ( isset( $post_data['post_expiration_settings']['expired_post_status'] ) ? $post_data['post_expiration_settings']['expired_post_status'] : '' ) );
391
  update_post_meta( $subscription_id, '_enable_mail_after_expired', ( isset( $post_data['post_expiration_settings']['enable_mail_after_expired'] ) ? $post_data['post_expiration_settings']['enable_mail_after_expired'] : '' ) );
392
  update_post_meta( $subscription_id, '_post_expiration_message', ( isset( $post_data['post_expiration_settings']['post_expiration_message'] ) ? $post_data['post_expiration_settings']['post_expiration_message'] : '' ) );
 
 
393
  do_action( 'wpuf_update_subscription_pack', $subscription_id, $post_data );
394
  }
395
 
@@ -523,6 +527,7 @@ class WPUF_Subscription {
523
  $post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
524
  $count = isset( $sub_info['posts'][ $post_type ] ) ? intval( $sub_info['posts'][ $post_type ] ) : 0;
525
  $post_status = isset( $form_settings['post_status'] ) ? $form_settings['post_status'] : 'publish';
 
526
 
527
  $old_status = $post->post_status;
528
  wp_transition_post_status( $post_status, $old_status, $post );
@@ -533,8 +538,11 @@ class WPUF_Subscription {
533
  if ( $wpuf_post_status !== 'new_draft' ) {
534
  if ( $count > 0 ) {
535
  $sub_info['posts'][ $post_type ] = $count - 1;
536
- $this->update_user_subscription_meta( $userdata->ID, $sub_info );
537
  }
 
 
 
 
538
  }
539
 
540
  //meta added to make post have flag if post is published
@@ -571,13 +579,16 @@ class WPUF_Subscription {
571
  }
572
  //phpcs:ignore
573
  $userdata = get_userdata( get_current_user_id() );
 
574
 
575
  if ( self::has_user_error( $form_settings ) ) {
576
- //there is some error and it needs payment
577
- //add a uniqid to track the post easily
578
- $order_id = uniqid( rand( 10, 1000 ), false );
579
  update_post_meta( $post_id, '_wpuf_order_id', $order_id, true );
580
  }
 
 
 
 
 
581
  }
582
 
583
  /**
@@ -1308,11 +1319,37 @@ class WPUF_Subscription {
1308
  }
1309
  );
1310
 
 
 
1311
  foreach ( $non_recurrent as $ns ) {
1312
  $user_id = $ns->user_id;
1313
  $sub_meta = 'cancel';
 
1314
 
1315
  self::update_user_subscription_meta( $user_id, $sub_meta );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1316
  }
1317
  }
1318
  }
298
  $meta['_expired_post_status'] = get_post_meta( $subscription_id, '_expired_post_status', true );
299
  $meta['_enable_mail_after_expired'] = get_post_meta( $subscription_id, '_enable_mail_after_expired', true );
300
  $meta['_post_expiration_message'] = get_post_meta( $subscription_id, '_post_expiration_message', true );
301
+ $meta['_total_feature_item'] = get_post_meta( $subscription_id, '_total_feature_item', true );
302
+ $meta['_remove_feature_item'] = get_post_meta( $subscription_id, '_remove_feature_item', true );
303
 
304
  $meta = apply_filters( 'wpuf_get_subscription_meta', $meta, $subscription_id );
305
 
392
  update_post_meta( $subscription_id, '_expired_post_status', ( isset( $post_data['post_expiration_settings']['expired_post_status'] ) ? $post_data['post_expiration_settings']['expired_post_status'] : '' ) );
393
  update_post_meta( $subscription_id, '_enable_mail_after_expired', ( isset( $post_data['post_expiration_settings']['enable_mail_after_expired'] ) ? $post_data['post_expiration_settings']['enable_mail_after_expired'] : '' ) );
394
  update_post_meta( $subscription_id, '_post_expiration_message', ( isset( $post_data['post_expiration_settings']['post_expiration_message'] ) ? $post_data['post_expiration_settings']['post_expiration_message'] : '' ) );
395
+ update_post_meta( $subscription_id, '_total_feature_item', ( isset( $post_data['total_feature_item'] ) ? $post_data['total_feature_item'] : '' ) );
396
+ update_post_meta( $subscription_id, '_remove_feature_item', ( isset( $post_data['remove_feature_item'] ) ? $post_data['remove_feature_item'] : '' ) );
397
  do_action( 'wpuf_update_subscription_pack', $subscription_id, $post_data );
398
  }
399
 
527
  $post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
528
  $count = isset( $sub_info['posts'][ $post_type ] ) ? intval( $sub_info['posts'][ $post_type ] ) : 0;
529
  $post_status = isset( $form_settings['post_status'] ) ? $form_settings['post_status'] : 'publish';
530
+ $featured_count = ! empty( $sub_info['total_feature_item'] ) ? intval( $sub_info['total_feature_item'] ) : 0;
531
 
532
  $old_status = $post->post_status;
533
  wp_transition_post_status( $post_status, $old_status, $post );
538
  if ( $wpuf_post_status !== 'new_draft' ) {
539
  if ( $count > 0 ) {
540
  $sub_info['posts'][ $post_type ] = $count - 1;
 
541
  }
542
+
543
+ $user_subscription = new WPUF_User_Subscription( $current_user );
544
+ $sub_info = $user_subscription->handle_featured_item( $post_id, $sub_info );
545
+ $this->update_user_subscription_meta( $userdata->ID, $sub_info );
546
  }
547
 
548
  //meta added to make post have flag if post is published
579
  }
580
  //phpcs:ignore
581
  $userdata = get_userdata( get_current_user_id() );
582
+ $order_id = uniqid( rand( 10, 1000 ), false );
583
 
584
  if ( self::has_user_error( $form_settings ) ) {
 
 
 
585
  update_post_meta( $post_id, '_wpuf_order_id', $order_id, true );
586
  }
587
+
588
+ if ( $form->is_enabled_pay_per_post() || ( $form->is_enabled_force_pack() && $form->is_enabled_fallback_cost() && ! wpuf_get_user()->subscription()->has_post_count( $form_settings['post_type'] ) ) ) {
589
+ update_post_meta( $post_id, '_wpuf_order_id', $order_id, true );
590
+ update_post_meta( $post_id, '_wpuf_payment_status', 'pending' );
591
+ }
592
  }
593
 
594
  /**
1319
  }
1320
  );
1321
 
1322
+ $remove_feature_item_by_author = [];
1323
+
1324
  foreach ( $non_recurrent as $ns ) {
1325
  $user_id = $ns->user_id;
1326
  $sub_meta = 'cancel';
1327
+ $meta = maybe_unserialize( $ns->meta_value );
1328
 
1329
  self::update_user_subscription_meta( $user_id, $sub_meta );
1330
+ // remove feature item if sub expire
1331
+ if ( ! empty( $meta['remove_feature_item'] ) && 'on' === $meta['remove_feature_item'] ) {
1332
+ array_push( $remove_feature_item_by_author, $user_id );
1333
+ }
1334
+ }
1335
+
1336
+ if ( ! empty( $remove_feature_item_by_author ) ) {
1337
+ $stickies = get_option( 'sticky_posts' );
1338
+
1339
+ $post_ids = get_posts(
1340
+ [
1341
+ 'author__in' => $remove_feature_item_by_author,
1342
+ 'numberposts' => -1,
1343
+ 'post_status' => [ 'draft', 'pending', 'private', 'publish' ],
1344
+ 'fields' => 'ids',
1345
+ ]
1346
+ );
1347
+
1348
+ foreach ( $post_ids as $post_id ) {
1349
+ if ( in_array( $post_id, $stickies, true ) ) {
1350
+ unstick_post( $post_id );
1351
+ }
1352
+ }
1353
  }
1354
  }
1355
  }
includes/class-frontend-form-post.php CHANGED
@@ -265,11 +265,6 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form {
265
  }
266
  }
267
 
268
- // if pay per post is enabled then update payment status as pending
269
- if ( $pay_per_post ) {
270
- update_post_meta( $post_id, '_wpuf_payment_status', 'pending' );
271
- }
272
-
273
  if ( ! empty( $taxonomy_vars ) ) {
274
  $this->set_custom_taxonomy( $post_id, $taxonomy_vars );
275
  } else {
@@ -431,6 +426,10 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form {
431
  } else {
432
  $postarr['post_status'] = $this->form_settings['edit_post_status'];
433
  }
 
 
 
 
434
  } else {
435
  if ( isset( $this->form_settings['comment_status'] ) ) {
436
  $postarr['comment_status'] = $this->form_settings['comment_status'];
@@ -940,7 +939,8 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form {
940
 
941
  // if user has a subscription pack
942
  $user_wpuf_subscription_pack = get_user_meta( get_current_user_id(), '_wpuf_subscription_pack', true );
943
-
 
944
  if ( ! empty( $user_wpuf_subscription_pack ) && isset( $user_wpuf_subscription_pack['_enable_post_expiration'] )
945
  && isset( $user_wpuf_subscription_pack['expire'] ) && strtotime( $user_wpuf_subscription_pack['expire'] ) >= time() ) {
946
  $expire_date = gmdate( 'Y-m-d', strtotime( '+' . $user_wpuf_subscription_pack['_post_expiration_time'] ) );
@@ -950,8 +950,6 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form {
950
  update_post_meta( $post_id, $this->expired_post_status, $expired_post_status );
951
  // if mail active
952
  if ( isset( $user_wpuf_subscription_pack['_enable_mail_after_expired'] ) && $user_wpuf_subscription_pack['_enable_mail_after_expired'] === 'on' ) {
953
- $wpuf_user = wpuf_get_user();
954
- $user_subscription = new WPUF_User_Subscription( $wpuf_user );
955
  $post_expiration_message = $user_subscription->get_subscription_exp_msg( $user_wpuf_subscription_pack['pack_id'] );
956
  update_post_meta( $post_id, $this->post_expiration_message, $post_expiration_message );
957
  }
@@ -983,6 +981,10 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form {
983
  }
984
  }
985
  }
 
 
 
 
986
  }
987
 
988
  public function send_mail_for_guest( $charging_enabled, $post_id, $form_id, $is_update, $post_author, $meta_vars ) {
265
  }
266
  }
267
 
 
 
 
 
 
268
  if ( ! empty( $taxonomy_vars ) ) {
269
  $this->set_custom_taxonomy( $post_id, $taxonomy_vars );
270
  } else {
426
  } else {
427
  $postarr['post_status'] = $this->form_settings['edit_post_status'];
428
  }
429
+ // handle for falback ppp
430
+ if ( 'pending' === get_post_meta( $post_id, '_wpuf_payment_status', true ) ) {
431
+ $postarr['post_status'] = 'pending';
432
+ }
433
  } else {
434
  if ( isset( $this->form_settings['comment_status'] ) ) {
435
  $postarr['comment_status'] = $this->form_settings['comment_status'];
939
 
940
  // if user has a subscription pack
941
  $user_wpuf_subscription_pack = get_user_meta( get_current_user_id(), '_wpuf_subscription_pack', true );
942
+ $wpuf_user = wpuf_get_user();
943
+ $user_subscription = new WPUF_User_Subscription( $wpuf_user );
944
  if ( ! empty( $user_wpuf_subscription_pack ) && isset( $user_wpuf_subscription_pack['_enable_post_expiration'] )
945
  && isset( $user_wpuf_subscription_pack['expire'] ) && strtotime( $user_wpuf_subscription_pack['expire'] ) >= time() ) {
946
  $expire_date = gmdate( 'Y-m-d', strtotime( '+' . $user_wpuf_subscription_pack['_post_expiration_time'] ) );
950
  update_post_meta( $post_id, $this->expired_post_status, $expired_post_status );
951
  // if mail active
952
  if ( isset( $user_wpuf_subscription_pack['_enable_mail_after_expired'] ) && $user_wpuf_subscription_pack['_enable_mail_after_expired'] === 'on' ) {
 
 
953
  $post_expiration_message = $user_subscription->get_subscription_exp_msg( $user_wpuf_subscription_pack['pack_id'] );
954
  update_post_meta( $post_id, $this->post_expiration_message, $post_expiration_message );
955
  }
981
  }
982
  }
983
  }
984
+
985
+ //Handle featured item when edit
986
+ $sub_meta = $user_subscription->handle_featured_item( $post_id, $user_wpuf_subscription_pack );
987
+ $user_subscription->update_meta( $sub_meta );
988
  }
989
 
990
  public function send_mail_for_guest( $charging_enabled, $post_id, $form_id, $is_update, $post_author, $meta_vars ) {
includes/class-frontend-render-form.php CHANGED
@@ -366,6 +366,8 @@ class WPUF_Frontend_Render_Form {
366
  $this->guest_fields( $this->form_settings );
367
  }
368
 
 
 
369
  wpuf()->fields->render_fields( $this->form_fields, $form_id, $atts, $type = 'post', $post_id );
370
 
371
  $this->submit_button( $form_id, $this->form_settings, $post_id );
@@ -884,4 +886,45 @@ class WPUF_Frontend_Render_Form {
884
  $this->validate_re_captcha( $no_captcha, $invisible_captcha );
885
  }
886
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
887
  }
366
  $this->guest_fields( $this->form_settings );
367
  }
368
 
369
+ $this->render_featured_field( $post_id );
370
+
371
  wpuf()->fields->render_fields( $this->form_fields, $form_id, $atts, $type = 'post', $post_id );
372
 
373
  $this->submit_button( $form_id, $this->form_settings, $post_id );
886
  $this->validate_re_captcha( $no_captcha, $invisible_captcha );
887
  }
888
  }
889
+
890
+ /**
891
+ * Render a checkbox for enabling feature item
892
+ */
893
+ public function render_featured_field( $post_id = null ) {
894
+ $user_sub = WPUF_Subscription::get_user_pack( get_current_user_id() );
895
+ $is_featured = false;
896
+ if ( $post_id ) {
897
+ $stickies = get_option( 'sticky_posts' );
898
+ $is_featured = in_array( intval( $post_id ), $stickies, true );
899
+ }
900
+
901
+ if ( ! empty( $user_sub['total_feature_item'] ) || $is_featured ) {
902
+ ?>
903
+ <li class="wpuf-el field-size-large" data-label="Is featured">
904
+ <div class="wpuf-label">
905
+ <label for="wpuf_is_featured"><?php esc_html_e( 'Featured', 'wp-user-frontend' ); ?></label>
906
+ </div>
907
+ <div >
908
+ <label >
909
+ <input type="checkbox" class="wpuf_is_featured" name="is_featured_item" value="1" <?php echo $is_featured ? 'checked' : ''; ?> >
910
+ <span class="wpuf-items-table-containermessage-box" id="remaining-feature-item"> <?php echo sprintf( __( 'Mark the %s as featured (remaining %d)', 'wp-user-frontend' ), $this->form_settings['post_type'], $user_sub['total_feature_item'] ); ?></span>
911
+ </label>
912
+ </div>
913
+ </li>
914
+ <script>
915
+ (function ($) {
916
+ $('.wpuf_is_featured').on('change', function (e) {
917
+ var counter = $('.wpuf-message-box');
918
+ var count = parseInt( counter.text().match(/\d+/) );
919
+ if ($(this).is(':checked')) {
920
+ counter.text( counter.text().replace( /\d+/, count - 1 ) );
921
+ } else {
922
+ counter.text( counter.text().replace( /\d+/, count + 1 ) );
923
+ }
924
+ })
925
+ })(jQuery)
926
+ </script>
927
+ <?php
928
+ }
929
+ }
930
  }
includes/class-user-subscription.php CHANGED
@@ -38,7 +38,7 @@ class WPUF_User_Subscription {
38
  * @return void
39
  */
40
  public function populate_data() {
41
- if ( !$this->pack ) {
42
  $this->pack = get_user_meta( $this->user->id, '_wpuf_subscription_pack', true );
43
  }
44
  }
@@ -51,7 +51,7 @@ class WPUF_User_Subscription {
51
  public function current_pack() {
52
  $pack = $this->pack;
53
 
54
- if ( !isset( $this->pack['pack_id'] ) ) {
55
  $pack_page = get_permalink( wpuf_get_option( 'subscription_page', 'wpuf_payment' ) );
56
 
57
  return new WP_Error( 'no-pack', sprintf( __( 'You must <a href="%s">purchase a subscription package</a> before posting', 'wp-user-frontend' ), $pack_page ) );
@@ -73,7 +73,7 @@ class WPUF_User_Subscription {
73
  public function expired() {
74
 
75
  // if no data found, take it as expired
76
- if ( !isset( $this->pack['expire'] ) ) {
77
  return true;
78
  }
79
 
@@ -174,13 +174,15 @@ class WPUF_User_Subscription {
174
  $user_meta = [
175
  'pack_id' => $pack_id,
176
  'posts' => $subscription->meta_value['post_type_name'],
 
 
177
  'status' => $status,
178
  ];
179
 
180
  // $recurring = get_post_meta( $pack_id, '_recurring_pay', true );
181
 
182
  if ( $recurring ) {
183
- $totla_date = date( 'd-m-Y', strtotime( '+' . $subscription->meta_value['billing_cycle_number'] . $subscription->meta_value['cycle_period'] . 's' ) );
184
  $user_meta['expire'] = '';
185
  $user_meta['profile_id'] = $profile_id;
186
  $user_meta['recurring'] = 'yes';
@@ -205,9 +207,11 @@ class WPUF_User_Subscription {
205
 
206
  $this->update_meta( $user_meta );
207
 
208
- if ( !$this->is_free_pack( $pack_id ) ) {
209
- $sql = $wpdb->prepare( 'SELECT * FROM ' . $wpdb->prefix . 'wpuf_transaction
210
- WHERE user_id = %d AND pack_id = %d ORDER BY id DESC LIMIT 1', $this->user->id, $pack_id );
 
 
211
 
212
  $result = $wpdb->get_row( $sql );
213
  }
@@ -279,7 +283,7 @@ class WPUF_User_Subscription {
279
  $has_used = get_user_meta( $this->user->id, 'wpuf_fp_used', true );
280
  $has_used = is_array( $has_used ) ? $has_used : [];
281
 
282
- $has_used[$pack_id] = $pack_id;
283
 
284
  update_user_meta( $user_id, 'wpuf_fp_used', $has_used );
285
  }
@@ -288,7 +292,7 @@ class WPUF_User_Subscription {
288
  $form = new WPUF_Form( $form_id );
289
  $payment_options = $form->is_charging_enabled();
290
 
291
- if ( !$payment_options || !is_user_logged_in() ) {
292
  return;
293
  }
294
 
@@ -306,7 +310,7 @@ class WPUF_User_Subscription {
306
 
307
  if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
308
  $recurring_des = sprintf( 'For each %s %s', $pack->meta_value['billing_cycle_number'], WPUF_Subscription::get_cycle_label( $pack->meta_value['cycle_period'], $pack->meta_value['billing_cycle_number'] ), $pack->meta_value['trial_duration_type'] );
309
- $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? sprintf( ', for %s installments', $pack->meta_value['billing_limit'] ) : '';
310
  $recurring_des = $recurring_des;
311
  } else {
312
  $recurring_des = '';
@@ -338,28 +342,33 @@ class WPUF_User_Subscription {
338
 
339
  $post_type_obj = get_post_type_object( $key );
340
 
341
- if ( !$post_type_obj ) {
342
  continue;
343
  }
344
- $value = ( $value == '-1' ) ? __( 'Unlimited', 'wp-user-frontend' ) : $value; ?>
 
345
  <div><?php echo esc_html( $post_type_obj->labels->name . ': ' . $value ); ?></div>
346
  <?php
347
- } ?>
 
348
  </div>
349
  <?php
350
  if ( $this->pack['recurring'] != 'yes' ) {
351
- if ( !empty( $this->pack['expire'] ) ) {
352
- $expire = ( $this->pack['expire'] == 'unlimited' ) ? ucfirst( 'unlimited' ) : wpuf_date2mysql( $this->pack['expire'] ); ?>
 
353
  <div class="wpuf-expire">
354
  <strong><?php esc_html_e( 'Expire date:', 'wp-user-frontend' ); ?></strong> <?php echo esc_html( wpuf_get_date( $expire ) ); ?>
355
  </div>
356
  <?php
357
  }
358
- } ?>
 
359
  </div>
360
  <?php
361
  if ( $this->pack['recurring'] == 'yes' ) {
362
- $payment_page = get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ); ?>
 
363
  <form action="" method="post">
364
  <?php wp_nonce_field( '_wpnonce', 'wpuf_payment_cancel' ); ?>
365
  <input type="hidden" name="user_id" value="<?php echo esc_attr( $this->user->id ); ?>">
@@ -371,11 +380,11 @@ class WPUF_User_Subscription {
371
  <a href="<?php echo esc_attr( get_permalink( $subscription_page ) ); ?>"><?php esc_html_e( 'Change', 'wp-user-frontend' ); ?></a>
372
  <?php
373
  }
374
- echo wp_kses_post( '</div>' );
375
 
376
- $content = ob_get_clean();
377
 
378
- return apply_filters( 'wpuf_sub_info', $content, $this->user, $this->pack, $pack );
379
  }
380
 
381
  /**
@@ -393,17 +402,20 @@ class WPUF_User_Subscription {
393
 
394
  $sub_info = $this->pack;
395
  $post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
396
- $count = isset( $sub_info['posts'][$post_type] ) ? intval( $sub_info['posts'][$post_type] ) : 0;
397
 
398
  // decrease the post count, if not umlimited
399
  $wpuf_post_status = get_post_meta( $post_id, 'wpuf_post_status', true );
400
 
401
  if ( $wpuf_post_status != 'published' && $wpuf_post_status != 'new_draft' ) {
402
  if ( $count > 0 ) {
403
- $sub_info['posts'][$post_type] = $count - 1;
404
- $this->update_meta( $sub_info );
405
  }
406
 
 
 
 
 
407
  update_post_meta( $post_id, 'wpuf_post_status', 'new_draft' );
408
  }
409
  }
@@ -416,14 +428,14 @@ class WPUF_User_Subscription {
416
  * @return bool
417
  */
418
  public function has_error( $form_settings = null ) {
419
- if ( !$this->current_pack_id() ) {
420
  return false;
421
  }
422
 
423
  $user_sub_meta = $this->pack;
424
  $fallback_ppp_enable = isset( $form_settings['fallback_ppp_enable'] ) ? $form_settings['fallback_ppp_enable'] : 'false';
425
  $form_post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
426
- $post_count = isset( $user_sub_meta['posts'][$form_post_type] ) ? $user_sub_meta['posts'][$form_post_type] : 0;
427
 
428
  if ( isset( $user_sub_meta['recurring'] ) && $user_sub_meta['recurring'] == 'yes' ) {
429
 
@@ -474,7 +486,7 @@ class WPUF_User_Subscription {
474
  public static function is_free_pack( $pack_id ) {
475
  $subs = new WPUF_Subscription();
476
  $pack = $subs->get_subscription( $pack_id );
477
- $billing_amount = ( $pack->meta_value['billing_amount'] >= 0 && !empty( $pack->meta_value['billing_amount'] ) ) ? $pack->meta_value['billing_amount'] : false;
478
 
479
  if ( $billing_amount === false ) {
480
  return true;
@@ -496,8 +508,35 @@ class WPUF_User_Subscription {
496
  $sub_pack = WPUF_Subscription::get_subscription( $pack_id );
497
  $sub_info = $this->pack;
498
 
499
- $exp_message = !empty( $sub_pack->meta_value['_post_expiration_message'] ) ? $sub_pack->meta_value['_post_expiration_message'] : $sub_info['_post_expiration_message'];
500
 
501
  return $exp_message;
502
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  }
38
  * @return void
39
  */
40
  public function populate_data() {
41
+ if ( ! $this->pack ) {
42
  $this->pack = get_user_meta( $this->user->id, '_wpuf_subscription_pack', true );
43
  }
44
  }
51
  public function current_pack() {
52
  $pack = $this->pack;
53
 
54
+ if ( ! isset( $this->pack['pack_id'] ) ) {
55
  $pack_page = get_permalink( wpuf_get_option( 'subscription_page', 'wpuf_payment' ) );
56
 
57
  return new WP_Error( 'no-pack', sprintf( __( 'You must <a href="%s">purchase a subscription package</a> before posting', 'wp-user-frontend' ), $pack_page ) );
73
  public function expired() {
74
 
75
  // if no data found, take it as expired
76
+ if ( ! isset( $this->pack['expire'] ) ) {
77
  return true;
78
  }
79
 
174
  $user_meta = [
175
  'pack_id' => $pack_id,
176
  'posts' => $subscription->meta_value['post_type_name'],
177
+ 'total_feature_item' => $subscription->meta_value['_total_feature_item'],
178
+ 'remove_feature_item' => $subscription->meta_value['_remove_feature_item'],
179
  'status' => $status,
180
  ];
181
 
182
  // $recurring = get_post_meta( $pack_id, '_recurring_pay', true );
183
 
184
  if ( $recurring ) {
185
+ $totla_date = date( 'd-m-Y', strtotime( '+' . $subscription->meta_value['billing_cycle_number'] . $subscription->meta_value['cycle_period'] . 's' ) );
186
  $user_meta['expire'] = '';
187
  $user_meta['profile_id'] = $profile_id;
188
  $user_meta['recurring'] = 'yes';
207
 
208
  $this->update_meta( $user_meta );
209
 
210
+ if ( ! $this->is_free_pack( $pack_id ) ) {
211
+ $sql = $wpdb->prepare(
212
+ 'SELECT * FROM ' . $wpdb->prefix . 'wpuf_transaction
213
+ WHERE user_id = %d AND pack_id = %d ORDER BY id DESC LIMIT 1', $this->user->id, $pack_id
214
+ );
215
 
216
  $result = $wpdb->get_row( $sql );
217
  }
283
  $has_used = get_user_meta( $this->user->id, 'wpuf_fp_used', true );
284
  $has_used = is_array( $has_used ) ? $has_used : [];
285
 
286
+ $has_used[ $pack_id ] = $pack_id;
287
 
288
  update_user_meta( $user_id, 'wpuf_fp_used', $has_used );
289
  }
292
  $form = new WPUF_Form( $form_id );
293
  $payment_options = $form->is_charging_enabled();
294
 
295
+ if ( ! $payment_options || ! is_user_logged_in() ) {
296
  return;
297
  }
298
 
310
 
311
  if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
312
  $recurring_des = sprintf( 'For each %s %s', $pack->meta_value['billing_cycle_number'], WPUF_Subscription::get_cycle_label( $pack->meta_value['cycle_period'], $pack->meta_value['billing_cycle_number'] ), $pack->meta_value['trial_duration_type'] );
313
+ $recurring_des .= ! empty( $pack->meta_value['billing_limit'] ) ? sprintf( ', for %s installments', $pack->meta_value['billing_limit'] ) : '';
314
  $recurring_des = $recurring_des;
315
  } else {
316
  $recurring_des = '';
342
 
343
  $post_type_obj = get_post_type_object( $key );
344
 
345
+ if ( ! $post_type_obj ) {
346
  continue;
347
  }
348
+ $value = ( $value == '-1' ) ? __( 'Unlimited', 'wp-user-frontend' ) : $value;
349
+ ?>
350
  <div><?php echo esc_html( $post_type_obj->labels->name . ': ' . $value ); ?></div>
351
  <?php
352
+ }
353
+ ?>
354
  </div>
355
  <?php
356
  if ( $this->pack['recurring'] != 'yes' ) {
357
+ if ( ! empty( $this->pack['expire'] ) ) {
358
+ $expire = ( $this->pack['expire'] == 'unlimited' ) ? ucfirst( 'unlimited' ) : wpuf_date2mysql( $this->pack['expire'] );
359
+ ?>
360
  <div class="wpuf-expire">
361
  <strong><?php esc_html_e( 'Expire date:', 'wp-user-frontend' ); ?></strong> <?php echo esc_html( wpuf_get_date( $expire ) ); ?>
362
  </div>
363
  <?php
364
  }
365
+ }
366
+ ?>
367
  </div>
368
  <?php
369
  if ( $this->pack['recurring'] == 'yes' ) {
370
+ $payment_page = get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) );
371
+ ?>
372
  <form action="" method="post">
373
  <?php wp_nonce_field( '_wpnonce', 'wpuf_payment_cancel' ); ?>
374
  <input type="hidden" name="user_id" value="<?php echo esc_attr( $this->user->id ); ?>">
380
  <a href="<?php echo esc_attr( get_permalink( $subscription_page ) ); ?>"><?php esc_html_e( 'Change', 'wp-user-frontend' ); ?></a>
381
  <?php
382
  }
383
+ echo wp_kses_post( '</div>' );
384
 
385
+ $content = ob_get_clean();
386
 
387
+ return apply_filters( 'wpuf_sub_info', $content, $this->user, $this->pack, $pack );
388
  }
389
 
390
  /**
402
 
403
  $sub_info = $this->pack;
404
  $post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
405
+ $count = isset( $sub_info['posts'][ $post_type ] ) ? intval( $sub_info['posts'][ $post_type ] ) : 0;
406
 
407
  // decrease the post count, if not umlimited
408
  $wpuf_post_status = get_post_meta( $post_id, 'wpuf_post_status', true );
409
 
410
  if ( $wpuf_post_status != 'published' && $wpuf_post_status != 'new_draft' ) {
411
  if ( $count > 0 ) {
412
+ $sub_info['posts'][ $post_type ] = $count - 1;
 
413
  }
414
 
415
+ $sub_info = $this->handle_featured_item( $post_id, $sub_info );
416
+
417
+ $this->update_meta( $sub_info );
418
+
419
  update_post_meta( $post_id, 'wpuf_post_status', 'new_draft' );
420
  }
421
  }
428
  * @return bool
429
  */
430
  public function has_error( $form_settings = null ) {
431
+ if ( ! $this->current_pack_id() ) {
432
  return false;
433
  }
434
 
435
  $user_sub_meta = $this->pack;
436
  $fallback_ppp_enable = isset( $form_settings['fallback_ppp_enable'] ) ? $form_settings['fallback_ppp_enable'] : 'false';
437
  $form_post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
438
+ $post_count = isset( $user_sub_meta['posts'][ $form_post_type ] ) ? $user_sub_meta['posts'][ $form_post_type ] : 0;
439
 
440
  if ( isset( $user_sub_meta['recurring'] ) && $user_sub_meta['recurring'] == 'yes' ) {
441
 
486
  public static function is_free_pack( $pack_id ) {
487
  $subs = new WPUF_Subscription();
488
  $pack = $subs->get_subscription( $pack_id );
489
+ $billing_amount = ( $pack->meta_value['billing_amount'] >= 0 && ! empty( $pack->meta_value['billing_amount'] ) ) ? $pack->meta_value['billing_amount'] : false;
490
 
491
  if ( $billing_amount === false ) {
492
  return true;
508
  $sub_pack = WPUF_Subscription::get_subscription( $pack_id );
509
  $sub_info = $this->pack;
510
 
511
+ $exp_message = ! empty( $sub_pack->meta_value['_post_expiration_message'] ) ? $sub_pack->meta_value['_post_expiration_message'] : $sub_info['_post_expiration_message'];
512
 
513
  return $exp_message;
514
  }
515
+
516
+ /**
517
+ * Handle feature item count for add, edit
518
+ *
519
+ * @param $post_id
520
+ * @param $sub_info
521
+ *
522
+ * @return array
523
+ */
524
+ public function handle_featured_item( $post_id, $sub_info ) {
525
+ $featured_count = ! empty( $sub_info['total_feature_item'] ) ? intval( $sub_info['total_feature_item'] ) : 0;
526
+ $stickies = get_option( 'sticky_posts' );
527
+ $is_featured = in_array( intval( $post_id ), $stickies, true );
528
+
529
+ if ( $featured_count > 0 && array_key_exists( 'is_featured_item', $_POST ) && ! $is_featured ) {
530
+ stick_post( $post_id );
531
+ $sub_info['total_feature_item'] = $featured_count - 1;
532
+ }
533
+
534
+ if ( $featured_count > 0 && ! array_key_exists( 'is_featured_item', $_POST ) && $is_featured ) {
535
+ $sub_info['total_feature_item'] = $featured_count + 1;
536
+ unstick_post( $post_id );
537
+ }
538
+
539
+ return $sub_info;
540
+ }
541
+
542
  }
languages/wp-user-frontend.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP User Frontend 3.5.21\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2021-10-21 08:45:09+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -61,7 +61,7 @@ msgstr ""
61
  msgid "<span style=\"color:#f18500\">Help</span>"
62
  msgstr ""
63
 
64
- #: admin/class-admin-settings.php:116 admin/class-admin-settings.php:156
65
  #: admin/form-builder/views/form-builder.php:9 includes/setup-wizard.php:125
66
  msgid "Settings"
67
  msgstr ""
@@ -71,39 +71,39 @@ msgstr ""
71
  msgid "Subscribers"
72
  msgstr ""
73
 
74
- #: admin/class-admin-settings.php:372
75
  msgid "Number of items per page:"
76
  msgstr ""
77
 
78
- #: admin/class-admin-settings.php:402
79
  msgid "Post lock has been cleared"
80
  msgstr ""
81
 
82
- #: admin/class-admin-settings.php:430
83
  msgid "WPUF Import Forms"
84
  msgstr ""
85
 
86
- #: admin/class-admin-settings.php:431
87
  msgid "Add JSON file"
88
  msgstr ""
89
 
90
- #: admin/class-admin-settings.php:432
91
  msgid "Could not import forms."
92
  msgstr ""
93
 
94
- #: admin/class-admin-settings.php:512
95
  msgid "Missing file_id param"
96
  msgstr ""
97
 
98
- #: admin/class-admin-settings.php:522
99
  msgid "JSON file not found"
100
  msgstr ""
101
 
102
- #: admin/class-admin-settings.php:531
103
  msgid "Provided file is not a JSON file."
104
  msgstr ""
105
 
106
- #: admin/class-admin-settings.php:547
107
  msgid "Forms imported successfully."
108
  msgstr ""
109
 
@@ -143,7 +143,7 @@ msgstr ""
143
  msgid "Subscription pack draft updated."
144
  msgstr ""
145
 
146
- #: admin/class-admin-subscription.php:202 class/subscription.php:345
147
  msgid "Pack Name"
148
  msgstr ""
149
 
@@ -161,8 +161,8 @@ msgid "Duration"
161
  msgstr ""
162
 
163
  #: admin/class-admin-subscription.php:225
164
- #: admin/class-admin-subscription.php:599 class/frontend-account.php:263
165
- #: class/subscription.php:927 includes/class-user-subscription.php:305
166
  #: templates/subscriptions/pack-details.php:24
167
  msgid "Free"
168
  msgstr ""
@@ -178,7 +178,7 @@ msgstr ""
178
  #: includes/fields/class-abstract-fields.php:456
179
  #: includes/fields/class-field-checkbox.php:74
180
  #: includes/fields/class-field-radio.php:83 includes/free/form-element.php:499
181
- #: wpuf.php:718
182
  msgid "Yes"
183
  msgstr ""
184
 
@@ -193,166 +193,183 @@ msgstr ""
193
  #: includes/fields/class-abstract-fields.php:457
194
  #: includes/fields/class-field-checkbox.php:75
195
  #: includes/fields/class-field-radio.php:84 includes/free/form-element.php:500
196
- #: wpuf.php:719
197
  msgid "No"
198
  msgstr ""
199
 
200
- #: admin/class-admin-subscription.php:337 admin/form.php:225
201
  msgid "Payment Settings"
202
  msgstr ""
203
 
204
- #: admin/class-admin-subscription.php:344
205
  msgid "Posting Restriction"
206
  msgstr ""
207
 
208
- #: admin/class-admin-subscription.php:358
209
  msgid "Billing amount:"
210
  msgstr ""
211
 
212
- #: admin/class-admin-subscription.php:359
213
  msgid "Billing amount each cycle:"
214
  msgstr ""
215
 
216
- #: admin/class-admin-subscription.php:367
217
  msgid "Expires In:"
218
  msgstr ""
219
 
220
- #: admin/class-admin-subscription.php:416 admin/form.php:227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  #: includes/free/form-element.php:57
222
  msgid "Post Expiration"
223
  msgstr ""
224
 
225
- #: admin/class-admin-subscription.php:421 includes/free/form-element.php:61
226
  msgid "Enable Post Expiration"
227
  msgstr ""
228
 
229
- #: admin/class-admin-subscription.php:433
230
- #: admin/class-admin-subscription.php:700 includes/free/form-element.php:67
231
  msgid "Post Expiration Time"
232
  msgstr ""
233
 
234
- #: admin/class-admin-subscription.php:450 admin/html/form-settings-post.php:56
235
  #: admin/post-forms-list-table.php:313
236
  msgid "Post Status"
237
  msgstr ""
238
 
239
- #: admin/class-admin-subscription.php:463 includes/free/form-element.php:118
240
  msgid "Status of post after post expiration time is over "
241
  msgstr ""
242
 
243
- #: admin/class-admin-subscription.php:468
244
  msgid "Expiration Mail"
245
  msgstr ""
246
 
247
- #: admin/class-admin-subscription.php:473
248
  msgid "Send Expiration Email to Post Author"
249
  msgstr ""
250
 
251
- #: admin/class-admin-subscription.php:477
252
  msgid "Send Mail to Author After Exceeding Post Expiration Time"
253
  msgstr ""
254
 
255
- #: admin/class-admin-subscription.php:482
256
  msgid "Expiration Message"
257
  msgstr ""
258
 
259
- #: admin/class-admin-subscription.php:485 includes/free/form-element.php:137
260
  msgid "You may use: {post_author} {post_url} {blogname} {post_title} {post_status}"
261
  msgstr ""
262
 
263
- #: admin/class-admin-subscription.php:546
264
  msgid "Day(s)"
265
  msgstr ""
266
 
267
- #: admin/class-admin-subscription.php:547
268
  msgid "Week(s)"
269
  msgstr ""
270
 
271
- #: admin/class-admin-subscription.php:548
272
  msgid "Month(s)"
273
  msgstr ""
274
 
275
- #: admin/class-admin-subscription.php:549
276
  msgid "Year(s)"
277
  msgstr ""
278
 
279
- #: admin/class-admin-subscription.php:591
280
  msgid "WPUF Subscription Information"
281
  msgstr ""
282
 
283
- #: admin/class-admin-subscription.php:603
284
  msgid "For each %1$s %2$s"
285
  msgstr ""
286
 
287
- #: admin/class-admin-subscription.php:604 class/frontend-account.php:269
288
  #. translators: %s: number of installments
289
  msgid ", for %s installments"
290
  msgstr ""
291
 
292
- #: admin/class-admin-subscription.php:615
293
  msgid "Subcription Name"
294
  msgstr ""
295
 
296
- #: admin/class-admin-subscription.php:625
297
  msgid "Billing Info"
298
  msgstr ""
299
 
300
- #: admin/class-admin-subscription.php:639
301
  msgid "This user is using recurring subscription pack"
302
  msgstr ""
303
 
304
- #: admin/class-admin-subscription.php:645
305
  msgid "Remaining Posting Count"
306
  msgstr ""
307
 
308
- #: admin/class-admin-subscription.php:667
309
  msgid "Subscription Expiration Info"
310
  msgstr ""
311
 
312
- #: admin/class-admin-subscription.php:676
313
- #: includes/class-user-subscription.php:354
314
- #: templates/dashboard/subscription.php:46
315
  msgid "Expire date:"
316
  msgstr ""
317
 
318
- #: admin/class-admin-subscription.php:689
319
  msgid "Post Expiration Enabled"
320
  msgstr ""
321
 
322
- #: admin/class-admin-subscription.php:726
323
  msgid "Allowed Taxonomy Terms"
324
  msgstr ""
325
 
326
- #: admin/class-admin-subscription.php:796
327
  msgid "Assign Package"
328
  msgstr ""
329
 
330
- #: admin/class-admin-subscription.php:797
331
  #: admin/form-builder/class-wpuf-admin-form-builder.php:284
332
- #: class/payment.php:225 class/subscription.php:825
333
  #: includes/class-list-table-subscribers.php:138 lib/appsero/Insights.php:764
334
- #: templates/dashboard/subscription.php:64
335
  msgid "Cancel"
336
  msgstr ""
337
 
338
- #: admin/class-admin-subscription.php:803
339
  msgid "Select Package:"
340
  msgstr ""
341
 
342
- #: admin/class-admin-subscription.php:806 admin/settings-options.php:580
343
  #: wpuf-functions.php:210 wpuf-functions.php:1808 wpuf-functions.php:2056
344
  msgid "&mdash; Select &mdash;"
345
  msgstr ""
346
 
347
- #: admin/class-admin-subscription.php:810
348
  msgid "Only non-recurring pack can be assigned"
349
  msgstr ""
350
 
351
- #: admin/class-admin-subscription.php:821
352
  msgid "Delete Package"
353
  msgstr ""
354
 
355
- #: admin/class-admin-subscription.php:875
356
  msgid "Learn more about <a href=\"%s\" target=\"_blank\">Subscription</a>"
357
  msgstr ""
358
 
@@ -571,8 +588,8 @@ msgstr ""
571
 
572
  #: admin/form-builder/class-wpuf-admin-form-builder-ajax.php:35
573
  #: admin/form-builder/class-wpuf-admin-form-builder-ajax.php:82
574
- #: admin/promotion.php:183 admin/promotion.php:187 admin/promotion.php:249
575
- #: admin/promotion.php:253
576
  msgid "Unauthorized operation"
577
  msgstr ""
578
 
@@ -593,12 +610,12 @@ msgid "Are you sure you want to delete this field?"
593
  msgstr ""
594
 
595
  #: admin/form-builder/class-wpuf-admin-form-builder.php:281
596
- #: admin/posting.php:73 class/asset-loader.php:56 wpuf.php:739
597
  msgid "Yes, delete it"
598
  msgstr ""
599
 
600
  #: admin/form-builder/class-wpuf-admin-form-builder.php:282
601
- #: admin/posting.php:74 class/asset-loader.php:57 wpuf.php:740
602
  msgid "No, cancel it"
603
  msgstr ""
604
 
@@ -757,9 +774,8 @@ msgid "Add New Form"
757
  msgstr ""
758
 
759
  #: admin/form.php:71 admin/form.php:109 admin/installer.php:86
760
- #: admin/post-forms-list-table.php:406 class/subscription.php:431
761
  #: includes/free/admin/shortcode-button.php:87 includes/free/edit-user.php:104
762
- #: templates/dashboard.php:268
763
  msgid "Edit"
764
  msgstr ""
765
 
@@ -1421,761 +1437,797 @@ msgid "Contact Support"
1421
  msgstr ""
1422
 
1423
  #: admin/html/whats-new.php:9
1424
- msgid "reCaptcha issue with other plugin handled"
1425
  msgstr ""
1426
 
1427
  #: admin/html/whats-new.php:13
1428
- msgid "Multiple post type for wpuf dashboard not working fixed"
1429
  msgstr ""
1430
 
1431
  #: admin/html/whats-new.php:17
1432
- msgid "Billing address ajax request issue handled"
1433
  msgstr ""
1434
 
1435
  #: admin/html/whats-new.php:21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1436
  msgid "Halloween promotion notice added"
1437
  msgstr ""
1438
 
1439
- #: admin/html/whats-new.php:32
1440
  msgid "Content restriction for minimum, maximum value enhanced"
1441
  msgstr ""
1442
 
1443
- #: admin/html/whats-new.php:36
1444
  msgid "New option for redirection after pay per post payment in form setting"
1445
  msgstr ""
1446
 
1447
- #: admin/html/whats-new.php:40
1448
  msgid "Controller added for various email notification"
1449
  msgstr ""
1450
 
1451
- #: admin/html/whats-new.php:44
1452
  msgid "Placeholder added for unauth message option"
1453
  msgstr ""
1454
 
1455
- #: admin/html/whats-new.php:48
1456
  msgid "Subscription Post expiration option change to input field"
1457
  msgstr ""
1458
 
1459
- #: admin/html/whats-new.php:52
1460
  msgid "Content restriction message translatable"
1461
  msgstr ""
1462
 
1463
- #: admin/html/whats-new.php:56
1464
  msgid "ACF integration inconsistency handled"
1465
  msgstr ""
1466
 
1467
- #: admin/html/whats-new.php:60
1468
  msgid "Enable payment checkbox handled for child option"
1469
  msgstr ""
1470
 
1471
- #: admin/html/whats-new.php:64
1472
  msgid "Broken asset link handled for custom field popup"
1473
  msgstr ""
1474
 
1475
- #: admin/html/whats-new.php:68
1476
  msgid "Rollback inconsistency for CPT handled"
1477
  msgstr ""
1478
 
1479
- #: admin/html/whats-new.php:72
1480
  msgid "Login form loaded after resetting password"
1481
  msgstr ""
1482
 
1483
- #: admin/html/whats-new.php:76
1484
  msgid "Billing address inconsistency handled"
1485
  msgstr ""
1486
 
1487
- #: admin/html/whats-new.php:80
1488
  msgid "Form duplication on creation handled"
1489
  msgstr ""
1490
 
1491
- #: admin/html/whats-new.php:84
1492
  msgid "Field Dragging inconsistency fixed"
1493
  msgstr ""
1494
 
1495
- #: admin/html/whats-new.php:95
1496
  msgid "Google Map field enhanced along with acf google map"
1497
  msgstr ""
1498
 
1499
- #: admin/html/whats-new.php:99
1500
  msgid "Filter added for dashboard account menu"
1501
  msgstr ""
1502
 
1503
- #: admin/html/whats-new.php:103
1504
  msgid "Fallback Pay Per Post inconsistency handled"
1505
  msgstr ""
1506
 
1507
- #: admin/html/whats-new.php:107
1508
  msgid "Google map search field not showing"
1509
  msgstr ""
1510
 
1511
- #: admin/html/whats-new.php:111
1512
  msgid "Form preview page inconsistency with builder"
1513
  msgstr ""
1514
 
1515
- #: admin/html/whats-new.php:115
1516
  msgid "Category not showing as hierarchy"
1517
  msgstr ""
1518
 
1519
- #: admin/html/whats-new.php:119
1520
  msgid "TOC field randering issue with registration form"
1521
  msgstr ""
1522
 
1523
- #: admin/html/whats-new.php:123
1524
  msgid "Custom plupload filter inconsistency with file upload handled"
1525
  msgstr ""
1526
 
1527
- #: admin/html/whats-new.php:127
1528
  msgid "Guest Pay Per Post inconsistency handled"
1529
  msgstr ""
1530
 
1531
- #: admin/html/whats-new.php:131
1532
  msgid "Responsive and font issue handled"
1533
  msgstr ""
1534
 
1535
- #: admin/html/whats-new.php:142
1536
  msgid "Preview page added for post form and registration form"
1537
  msgstr ""
1538
 
1539
- #: admin/html/whats-new.php:146
1540
  msgid "Post types menu on account page added"
1541
  msgstr ""
1542
 
1543
- #: admin/html/whats-new.php:150
1544
  msgid "Dashboard shortcode attributes enhanced"
1545
  msgstr ""
1546
 
1547
- #: admin/html/whats-new.php:154
1548
  msgid "Account page post type list new design"
1549
  msgstr ""
1550
 
1551
- #: admin/html/whats-new.php:158
1552
  msgid "Payment page restricted from direct unauthenticated access"
1553
  msgstr ""
1554
 
1555
- #: admin/html/whats-new.php:162
1556
  msgid "Timepicker conflict with dokan handled"
1557
  msgstr ""
1558
 
1559
- #: admin/html/whats-new.php:166
1560
  msgid "Trial inconsistency with paypal fixed"
1561
  msgstr ""
1562
 
1563
- #: admin/html/whats-new.php:170
1564
  msgid "Subscription does not cancel with paypal due to profile missing id"
1565
  msgstr ""
1566
 
1567
- #: admin/html/whats-new.php:174
1568
  msgid "Subscription email notification inconsistency fixed"
1569
  msgstr ""
1570
 
1571
- #: admin/html/whats-new.php:178
1572
  msgid "Various issues on payment page for non-logged in user handled"
1573
  msgstr ""
1574
 
1575
- #: admin/html/whats-new.php:182
1576
  msgid "Column inner field cloning inconsistency fixed"
1577
  msgstr ""
1578
 
1579
- #: admin/html/whats-new.php:186
1580
  msgid "Popup z-index changed due to other plugin z-index"
1581
  msgstr ""
1582
 
1583
- #: admin/html/whats-new.php:198
1584
  msgid "Added Mauritian Rupee for currency"
1585
  msgstr ""
1586
 
1587
- #: admin/html/whats-new.php:202
1588
  msgid "Added eid promotional offer notice"
1589
  msgstr ""
1590
 
1591
- #: admin/html/whats-new.php:206
1592
  msgid "Multiple google map validation for same form"
1593
  msgstr ""
1594
 
1595
- #: admin/html/whats-new.php:210
1596
  msgid "Various issues on verification, autologin payments & address field"
1597
  msgstr ""
1598
 
1599
- #: admin/html/whats-new.php:214
1600
  msgid "Docs update for file & attachments feature which is pro only"
1601
  msgstr ""
1602
 
1603
- #: admin/html/whats-new.php:225
1604
  msgid "Overflow footer on form builder page"
1605
  msgstr ""
1606
 
1607
- #: admin/html/whats-new.php:229
1608
  msgid "WordPress 5.7 compatibility"
1609
  msgstr ""
1610
 
1611
- #: admin/html/whats-new.php:233
1612
  msgid "Limited time promotion for weDevs birthday"
1613
  msgstr ""
1614
 
1615
- #: admin/html/whats-new.php:244
1616
  msgid "Meta key will not change if label update"
1617
  msgstr ""
1618
 
1619
- #: admin/html/whats-new.php:248
1620
  msgid "Login redirect empty previous url"
1621
  msgstr ""
1622
 
1623
- #: admin/html/whats-new.php:252
1624
  msgid "Email doesnt set as username"
1625
  msgstr ""
1626
 
1627
- #: admin/html/whats-new.php:256
1628
  msgid "Post redirection to payment doesn't work"
1629
  msgstr ""
1630
 
1631
- #: admin/html/whats-new.php:260
1632
  msgid "Address field not working when used with conditional logic"
1633
  msgstr ""
1634
 
1635
- #: admin/html/whats-new.php:264
1636
  msgid "Ajax type category child of not working"
1637
  msgstr ""
1638
 
1639
- #: admin/html/whats-new.php:268
1640
  msgid "Non recurring subscription did not work"
1641
  msgstr ""
1642
 
1643
- #: admin/html/whats-new.php:279
1644
  msgid "Menu position has chenged due to dokan has same menu position"
1645
  msgstr ""
1646
 
1647
- #: admin/html/whats-new.php:283
1648
  msgid "Drag and drop not working properly for new field"
1649
  msgstr ""
1650
 
1651
- #: admin/html/whats-new.php:294
1652
  msgid "QR and math captcha added to pro feature list"
1653
  msgstr ""
1654
 
1655
- #: admin/html/whats-new.php:298
1656
  msgid "Tooltip for category navigate"
1657
  msgstr ""
1658
 
1659
- #: admin/html/whats-new.php:302
1660
  msgid "Understandable guest payment notice"
1661
  msgstr ""
1662
 
1663
- #: admin/html/whats-new.php:306
1664
  msgid "Paypal non recurring pack id does not set"
1665
  msgstr ""
1666
 
1667
- #: admin/html/whats-new.php:317
1668
  msgid "Once trial subscription is used, it couldn't reset"
1669
  msgstr ""
1670
 
1671
- #: admin/html/whats-new.php:321
1672
  msgid "Subscription cancel doesn't work"
1673
  msgstr ""
1674
 
1675
- #: admin/html/whats-new.php:325
1676
  msgid "The tax rate was not calculated with the total amount"
1677
  msgstr ""
1678
 
1679
- #: admin/html/whats-new.php:329
1680
  msgid "The width of the column field was breaking"
1681
  msgstr ""
1682
 
1683
- #: admin/html/whats-new.php:333
1684
  msgid "Paypal recurring payment"
1685
  msgstr ""
1686
 
1687
- #: admin/html/whats-new.php:344
1688
  msgid "Updated codebase to fix timezone mismatch"
1689
  msgstr ""
1690
 
1691
- #: admin/html/whats-new.php:355
1692
  msgid "Custom html content field's width"
1693
  msgstr ""
1694
 
1695
- #: admin/html/whats-new.php:359
1696
  msgid "All states of New Zealand are added"
1697
  msgstr ""
1698
 
1699
- #: admin/html/whats-new.php:370
1700
  msgid "Get appropriate user id when role based conditions are present"
1701
  msgstr ""
1702
 
1703
- #: admin/html/whats-new.php:374
1704
  msgid "Show Invalid subscription message if wrong pack id passed"
1705
  msgstr ""
1706
 
1707
- #: admin/html/whats-new.php:378
1708
  msgid "URL field new window not working"
1709
  msgstr ""
1710
 
1711
- #: admin/html/whats-new.php:382
1712
  msgid "Option label not working when & use"
1713
  msgstr ""
1714
 
1715
- #: admin/html/whats-new.php:386
1716
  msgid "Ajax type category not showing on edit"
1717
  msgstr ""
1718
 
1719
- #: admin/html/whats-new.php:390
1720
  msgid "Multiple file image can't select"
1721
  msgstr ""
1722
 
1723
- #: admin/html/whats-new.php:394
1724
  msgid "Subscription pack PayPal Checkout gets \"Error: Access Denied\""
1725
  msgstr ""
1726
 
1727
- #: admin/html/whats-new.php:398
1728
  msgid "Conflict image field with acf image field"
1729
  msgstr ""
1730
 
1731
- #: admin/html/whats-new.php:402
1732
  msgid "Missing Auckland State for New Zealand country"
1733
  msgstr ""
1734
 
1735
- #: admin/html/whats-new.php:406
1736
  msgid "Added support for WooCommerce product category value replacemen"
1737
  msgstr ""
1738
 
1739
- #: admin/html/whats-new.php:416
1740
  msgid "Add character restriction feature"
1741
  msgstr ""
1742
 
1743
- #: admin/html/whats-new.php:420
1744
  msgid "Make sure post author edit link works only in frontend"
1745
  msgstr ""
1746
 
1747
- #: admin/html/whats-new.php:424
1748
  msgid "Inconsistency in lost password reset email message"
1749
  msgstr ""
1750
 
1751
- #: admin/html/whats-new.php:428
1752
  msgid "Saving custom taxonomy terms when input type is text"
1753
  msgstr ""
1754
 
1755
- #: admin/html/whats-new.php:432
1756
  msgid "Taxonomy field JS error in builder"
1757
  msgstr ""
1758
 
1759
- #: admin/html/whats-new.php:436
1760
  msgid "Showing WPUF edit link for WP default roles"
1761
  msgstr ""
1762
 
1763
- #: admin/html/whats-new.php:440
1764
  msgid "Upload button unresponsive issue in iOS"
1765
  msgstr ""
1766
 
1767
- #: admin/html/whats-new.php:450
1768
  msgid "Add post edit link for post authors in single or archive pages"
1769
  msgstr ""
1770
 
1771
- #: admin/html/whats-new.php:454
1772
  msgid "Enhance post delete message"
1773
  msgstr ""
1774
 
1775
- #: admin/html/whats-new.php:458
1776
  msgid "Refactor control buttons visibility in form builder"
1777
  msgstr ""
1778
 
1779
- #: admin/html/whats-new.php:462
1780
  msgid "Add missing colons after field label"
1781
  msgstr ""
1782
 
1783
- #: admin/html/whats-new.php:466
1784
  msgid "Post edit map capability condition"
1785
  msgstr ""
1786
 
1787
- #: admin/html/whats-new.php:470
1788
  msgid "Role based permission for accessing a post form"
1789
  msgstr ""
1790
 
1791
- #: admin/html/whats-new.php:474
1792
  msgid "Section-break field alignment"
1793
  msgstr ""
1794
 
1795
- #: admin/html/whats-new.php:478
1796
  msgid "Pay per post doesn't work if subscription pack is activated"
1797
  msgstr ""
1798
 
1799
- #: admin/html/whats-new.php:482
1800
  msgid "Mime type for uploading JSON files"
1801
  msgstr ""
1802
 
1803
- #: admin/html/whats-new.php:486
1804
  msgid "File upload with same file name"
1805
  msgstr ""
1806
 
1807
- #: admin/html/whats-new.php:490
1808
  msgid "Post preview missing fields"
1809
  msgstr ""
1810
 
1811
- #: admin/html/whats-new.php:494
1812
  msgid "Illigal variable declartion"
1813
  msgstr ""
1814
 
1815
- #: admin/html/whats-new.php:498
1816
  msgid "Featured image updating issue"
1817
  msgstr ""
1818
 
1819
- #: admin/html/whats-new.php:502
1820
  msgid "Conflict with Phlox theme"
1821
  msgstr ""
1822
 
1823
- #: admin/html/whats-new.php:506
1824
  msgid "Textarea custom field data sanitization"
1825
  msgstr ""
1826
 
1827
- #: admin/html/whats-new.php:510
1828
  msgid "exclude_type warning in wpuf_category_checklist"
1829
  msgstr ""
1830
 
1831
- #: admin/html/whats-new.php:514
1832
  msgid "Category field not showing all child categories for selection type child of"
1833
  msgstr ""
1834
 
1835
- #: admin/html/whats-new.php:518
1836
  msgid "Conflict between image and file upload custom fields"
1837
  msgstr ""
1838
 
1839
- #: admin/html/whats-new.php:522
1840
  msgid "Login url when login page is not set"
1841
  msgstr ""
1842
 
1843
- #: admin/html/whats-new.php:532
1844
  msgid ""
1845
  "Use common names for Ivory Coast, North Korea and Sourth Korea instead of "
1846
  "their official names"
1847
  msgstr ""
1848
 
1849
- #: admin/html/whats-new.php:536
1850
  msgid "Fix condition to use default avatar"
1851
  msgstr ""
1852
 
1853
- #: admin/html/whats-new.php:540
1854
  msgid "Make Email and URL fields clickable"
1855
  msgstr ""
1856
 
1857
- #: admin/html/whats-new.php:544
1858
  msgid "Fix redirect after user login"
1859
  msgstr ""
1860
 
1861
- #: admin/html/whats-new.php:548
1862
  msgid "Sanitize textarea field data"
1863
  msgstr ""
1864
 
1865
- #: admin/html/whats-new.php:552
1866
  msgid ""
1867
  "Fix missing colon to email, URL, text and textarea labels when renders "
1868
  "their data"
1869
  msgstr ""
1870
 
1871
- #: admin/html/whats-new.php:556
1872
  msgid "Prevent showing empty labels for fields that have render_field_data method"
1873
  msgstr ""
1874
 
1875
- #: admin/html/whats-new.php:566
1876
  msgid "Add Namibian Dollar in currency list"
1877
  msgstr ""
1878
 
1879
- #: admin/html/whats-new.php:570
1880
  msgid "Add sync values option for option data fields"
1881
  msgstr ""
1882
 
1883
- #: admin/html/whats-new.php:574
1884
  msgid "Allow uploading image that having filesize meets php ini settings"
1885
  msgstr ""
1886
 
1887
- #: admin/html/whats-new.php:578
1888
  msgid "Limit the selection of one image at a time"
1889
  msgstr ""
1890
 
1891
- #: admin/html/whats-new.php:582
1892
  msgid "Use file name and size to generate hash to prevent duplicant image upload"
1893
  msgstr ""
1894
 
1895
- #: admin/html/whats-new.php:586
1896
  msgid "Sanitize text and textarea field data"
1897
  msgstr ""
1898
 
1899
- #: admin/html/whats-new.php:590
1900
  msgid ""
1901
  "Show label instead of values for radio, checkbox, dropdown and multiselect "
1902
  "data"
1903
  msgstr ""
1904
 
1905
- #: admin/html/whats-new.php:594
1906
  msgid "Saving custom taxonomies for type text input"
1907
  msgstr ""
1908
 
1909
- #: admin/html/whats-new.php:598
1910
  msgid "Admin settings link for recaptcha helper text"
1911
  msgstr ""
1912
 
1913
- #: admin/html/whats-new.php:602
1914
  msgid "Undefined name property for Custom HTML fields"
1915
  msgstr ""
1916
 
1917
- #: admin/html/whats-new.php:606
1918
  msgid "Delete attachment process"
1919
  msgstr ""
1920
 
1921
- #: admin/html/whats-new.php:610
1922
  msgid "Missing billing address in invoice PDF"
1923
  msgstr ""
1924
 
1925
- #: admin/html/whats-new.php:614
1926
  msgid "Showing country field value in frontend post content"
1927
  msgstr ""
1928
 
1929
- #: admin/html/whats-new.php:618
1930
  msgid "Avatar size display not complying with admin settings size"
1931
  msgstr ""
1932
 
1933
- #: admin/html/whats-new.php:622
1934
  msgid "Display default avatars on admin settings discussion page"
1935
  msgstr ""
1936
 
1937
- #: admin/html/whats-new.php:626
1938
  msgid "Redirect to subscription page at registration"
1939
  msgstr ""
1940
 
1941
- #: admin/html/whats-new.php:630
1942
  msgid "Error notice regarding registration page redirect"
1943
  msgstr ""
1944
 
1945
- #: admin/html/whats-new.php:634
1946
  msgid "Escaping html in registration errors"
1947
  msgstr ""
1948
 
1949
- #: admin/html/whats-new.php:638
1950
  msgid "Default login redirect link"
1951
  msgstr ""
1952
 
1953
- #: admin/html/whats-new.php:642
1954
  msgid "Implementing default WP login page override option"
1955
  msgstr ""
1956
 
1957
- #: admin/html/whats-new.php:646
1958
  msgid "Transparent background of autosuggestion dropdown"
1959
  msgstr ""
1960
 
1961
- #: admin/html/whats-new.php:656
1962
  msgid "Import forms system"
1963
  msgstr ""
1964
 
1965
- #: admin/html/whats-new.php:660
1966
  msgid "Password reset system"
1967
  msgstr ""
1968
 
1969
- #: admin/html/whats-new.php:664
1970
  msgid "Updated url validation regex to support modern tlds"
1971
  msgstr ""
1972
 
1973
- #: admin/html/whats-new.php:668
1974
  msgid "Export WPUF forms individually from admin tools page"
1975
  msgstr ""
1976
 
1977
- #: admin/html/whats-new.php:672
1978
  msgid "Subscription cycle label translation issue"
1979
  msgstr ""
1980
 
1981
- #: admin/html/whats-new.php:676
1982
  msgid "ACF integration for checkbox fields"
1983
  msgstr ""
1984
 
1985
- #: admin/html/whats-new.php:680
1986
  msgid "Illegal string offset warning while updating settings"
1987
  msgstr ""
1988
 
1989
- #: admin/html/whats-new.php:684
1990
  msgid "Conditional logic for Section Break field"
1991
  msgstr ""
1992
 
1993
- #: admin/html/whats-new.php:688
1994
  msgid "Subscriptions cannot be deleted from backend"
1995
  msgstr ""
1996
 
1997
- #: admin/html/whats-new.php:692
1998
  msgid "A regression regarding saving checkbox data"
1999
  msgstr ""
2000
 
2001
- #: admin/html/whats-new.php:696
2002
  msgid "Default value of multi-select fields is not showing"
2003
  msgstr ""
2004
 
2005
- #: admin/html/whats-new.php:706
2006
  msgid "Hide post edit option when subscription is expired"
2007
  msgstr ""
2008
 
2009
- #: admin/html/whats-new.php:708
2010
  msgid "Hide post edit option from users whose subscription pack is expired."
2011
  msgstr ""
2012
 
2013
- #: admin/html/whats-new.php:711
2014
  msgid "Check files to prevent duplicity in media upload"
2015
  msgstr ""
2016
 
2017
- #: admin/html/whats-new.php:713
2018
  msgid ""
2019
  "A simple measure has been taken to prevent maliciously flooding the site by "
2020
  "uploading same file multiple times. Though this won't work with already "
2021
  "uploaded medias."
2022
  msgstr ""
2023
 
2024
- #: admin/html/whats-new.php:716
2025
  msgid "Refactor address fields in Account section"
2026
  msgstr ""
2027
 
2028
- #: admin/html/whats-new.php:718
2029
  msgid "Address edit section from Account section has been rewritten to improve UX."
2030
  msgstr ""
2031
 
2032
- #: admin/html/whats-new.php:721
2033
  msgid "Update Paypal payment gateway"
2034
  msgstr ""
2035
 
2036
- #: admin/html/whats-new.php:723
2037
  msgid "Paypal payment gateway has seen some improvements."
2038
  msgstr ""
2039
 
2040
- #: admin/html/whats-new.php:726
2041
  msgid "Default Category selection improvements"
2042
  msgstr ""
2043
 
2044
- #: admin/html/whats-new.php:728
2045
  msgid ""
2046
  "An intuitive way of selecting default category of a selected post type has "
2047
  "been introduced."
2048
  msgstr ""
2049
 
2050
- #: admin/html/whats-new.php:731
2051
  msgid "Compatibility issue with ACF date time field"
2052
  msgstr ""
2053
 
2054
- #: admin/html/whats-new.php:733
2055
  msgid "A Compatibility issue with ACF date time field has been addressed."
2056
  msgstr ""
2057
 
2058
- #: admin/html/whats-new.php:736
2059
  msgid "Media title, caption & description not saving"
2060
  msgstr ""
2061
 
2062
- #: admin/html/whats-new.php:738
2063
  msgid ""
2064
  "Media title, caption & description were not saving from frontend. They will "
2065
  "now."
2066
  msgstr ""
2067
 
2068
- #: admin/html/whats-new.php:741
2069
  msgid ""
2070
  "The Events Calendar venue and organizer fields issue in WPUF Custom Fields "
2071
  "metabox"
2072
  msgstr ""
2073
 
2074
- #: admin/html/whats-new.php:743
2075
  msgid ""
2076
  "A workaround has been introduced to save The Events Calendar Venue and "
2077
  "Organizer fields properly from WPUF Custom Fields metabox."
2078
  msgstr ""
2079
 
2080
- #: admin/html/whats-new.php:746
2081
  msgid "Checkbox data not saving from WPUF Custom Fields metabox"
2082
  msgstr ""
2083
 
2084
- #: admin/html/whats-new.php:748
2085
  msgid ""
2086
  "Checkboxe data from WPUF Custom Fields metabox were not saving. It has been "
2087
  "fixed."
2088
  msgstr ""
2089
 
2090
- #: admin/html/whats-new.php:751
2091
  msgid "Multi-column Repeater field data saving issue"
2092
  msgstr ""
2093
 
2094
- #: admin/html/whats-new.php:753
2095
  msgid ""
2096
  "Multi-column Repeater field data from a form was not saving. It has been "
2097
  "fixed."
2098
  msgstr ""
2099
 
2100
- #: admin/html/whats-new.php:756
2101
  msgid "Multistep form conflict with Elementor"
2102
  msgstr ""
2103
 
2104
- #: admin/html/whats-new.php:758
2105
  msgid "Multistep form had a conflict with Elementor. It has been fixed."
2106
  msgstr ""
2107
 
2108
- #: admin/html/whats-new.php:761
2109
  msgid "Multiple images showing issue in frontend"
2110
  msgstr ""
2111
 
2112
- #: admin/html/whats-new.php:763
2113
  msgid "Multiple images in a post were not showing in frontend. Now they will."
2114
  msgstr ""
2115
 
2116
- #: admin/html/whats-new.php:772
2117
  msgid "Nonce not verify on login"
2118
  msgstr ""
2119
 
2120
- #: admin/html/whats-new.php:774
2121
  msgid "Return of function wp_verify_nonce() was ignored."
2122
  msgstr ""
2123
 
2124
- #: admin/html/whats-new.php:783
2125
  msgid "Option to set which tab shows as active on the account page"
2126
  msgstr ""
2127
 
2128
- #: admin/html/whats-new.php:785
2129
  msgid ""
2130
  "Option to set which tab shows as active on the account page. To configure "
2131
  "this setting navigate to wp-admin->User Frontend->Settings->My "
2132
  "Account->Active Tab "
2133
  msgstr ""
2134
 
2135
- #: admin/html/whats-new.php:788
2136
  msgid "Unlock option was unavailable after the post being locked"
2137
  msgstr ""
2138
 
2139
- #: admin/html/whats-new.php:790
2140
  msgid "Unlock option was unavailable after the post being locked."
2141
  msgstr ""
2142
 
2143
- #: admin/html/whats-new.php:793
2144
  msgid "Gutenberg block of WPUF didn't work on bedrock installation"
2145
  msgstr ""
2146
 
2147
- #: admin/html/whats-new.php:795
2148
  msgid "Gutenberg block of WPUF didn't work on bedrock installation."
2149
  msgstr ""
2150
 
2151
- #: admin/html/whats-new.php:798
2152
  msgid "Sending admin payment received email twice"
2153
  msgstr ""
2154
 
2155
- #: admin/html/whats-new.php:800
2156
  msgid ""
2157
  "After processing payment admin & user was receiving payment received email "
2158
  "twice."
2159
  msgstr ""
2160
 
2161
- #: admin/html/whats-new.php:803
2162
  msgid ""
2163
  "Add shortcode support to display post information in the Post Expiration "
2164
  "Message"
2165
  msgstr ""
2166
 
2167
- #: admin/html/whats-new.php:805
2168
  msgid ""
2169
  "Add shortcode support to display post information in the Post Expiration "
2170
  "Message. You can use: <strong>{post_author} {post_url} {blogname} "
2171
  "{post_title} {post_status}</strong>"
2172
  msgstr ""
2173
 
2174
- #: admin/html/whats-new.php:808
2175
  msgid "Add optin on the setup wizard"
2176
  msgstr ""
2177
 
2178
- #: admin/html/whats-new.php:810
2179
  msgid ""
2180
  "Added optin on the setup wizard, admin can choose whether he/she wants to "
2181
  "share server environment details (php, mysql, server, WordPress versions), "
@@ -2183,126 +2235,126 @@ msgid ""
2183
  "name and url, admin name and email address. No sensitive data is tracked"
2184
  msgstr ""
2185
 
2186
- #: admin/html/whats-new.php:819
2187
  msgid "Post Owner problem"
2188
  msgstr ""
2189
 
2190
- #: admin/html/whats-new.php:821
2191
  msgid ""
2192
  "Posts were not assigned to the selected default post owner, this issue has "
2193
  "been fixed."
2194
  msgstr ""
2195
 
2196
- #: admin/html/whats-new.php:824
2197
  msgid "Google reCaptcha was not working"
2198
  msgstr ""
2199
 
2200
- #: admin/html/whats-new.php:826
2201
  msgid ""
2202
  "Google reCaptcha was not working, users could submit the form without "
2203
  "reCaptcha validation."
2204
  msgstr ""
2205
 
2206
- #: admin/html/whats-new.php:835
2207
  msgid "Added column field"
2208
  msgstr ""
2209
 
2210
- #: admin/html/whats-new.php:840
2211
  msgid "Unable to render the events on the front-end dashboard"
2212
  msgstr ""
2213
 
2214
- #: admin/html/whats-new.php:842
2215
  msgid ""
2216
  "On the frontend dashboard, the submitted events were not showing, you will "
2217
  "get it fixed in this version."
2218
  msgstr ""
2219
 
2220
- #: admin/html/whats-new.php:845
2221
  msgid "Page order getting 0(zero) after editing from the frontend"
2222
  msgstr ""
2223
 
2224
- #: admin/html/whats-new.php:847
2225
  msgid ""
2226
  "Page order was not saving while editing a post using WPUF form, it has been "
2227
  "fixed."
2228
  msgstr ""
2229
 
2230
- #: admin/html/whats-new.php:850
2231
  msgid "Text input field for taxonomies not working"
2232
  msgstr ""
2233
 
2234
- #: admin/html/whats-new.php:852
2235
  msgid ""
2236
  "When taxonomy field type is set to `Text Input` then a fatal error was "
2237
  "showing on the frontend, no error with taxonomy field in the latest version."
2238
  msgstr ""
2239
 
2240
- #: admin/html/whats-new.php:855
2241
  msgid ""
2242
  "In radio and checkbox field use conditional logic that value does not save "
2243
  "in database"
2244
  msgstr ""
2245
 
2246
- #: admin/html/whats-new.php:857
2247
  msgid ""
2248
  "The selected value of radio and checkbox field were not showing while "
2249
  "editing posts from the backend or frontend, you can see the selected value "
2250
  "in this version."
2251
  msgstr ""
2252
 
2253
- #: admin/html/whats-new.php:860
2254
  msgid "The args param not working with get_avatar filter"
2255
  msgstr ""
2256
 
2257
- #: admin/html/whats-new.php:862
2258
  msgid "The args parameter did not exist with get_avatar filter, which now exists."
2259
  msgstr ""
2260
 
2261
- #: admin/html/whats-new.php:865
2262
  msgid "The item in ajax taxonomy field was not selected"
2263
  msgstr ""
2264
 
2265
- #: admin/html/whats-new.php:867
2266
  msgid ""
2267
  "When the taxonomy field type is set to Ajax, the submitted terms were not "
2268
  "showing in the backend and frontend which have been fixed."
2269
  msgstr ""
2270
 
2271
- #: admin/html/whats-new.php:876
2272
  msgid "Unable to send new user registration email"
2273
  msgstr ""
2274
 
2275
- #: admin/html/whats-new.php:878
2276
  msgid ""
2277
  "WP User Frontend default registration form `[wpuf-registration]` was unable "
2278
  "to send the new user registration email."
2279
  msgstr ""
2280
 
2281
- #: admin/html/whats-new.php:881
2282
  msgid "WPUF forms block compatibility issue with the latest WP version"
2283
  msgstr ""
2284
 
2285
- #: admin/html/whats-new.php:883
2286
  msgid ""
2287
  "With the latest version of WordPress the gutenberg block of WP User "
2288
  "Frontend were not working. In this version, you will get it fixed."
2289
  msgstr ""
2290
 
2291
- #: admin/html/whats-new.php:886
2292
  msgid "Page not update where `[wpuf_dashboard]` shortcode exist"
2293
  msgstr ""
2294
 
2295
- #: admin/html/whats-new.php:888
2296
  msgid ""
2297
  "While using Gutenberg, the page were not being updated with WPUF shortcode "
2298
  "[wpuf dashboard]"
2299
  msgstr ""
2300
 
2301
- #: admin/html/whats-new.php:891
2302
  msgid "Retain default when determining whether to display the admin bar"
2303
  msgstr ""
2304
 
2305
- #: admin/html/whats-new.php:893
2306
  msgid ""
2307
  "From the User Frontend Settings, set that Administrator, Editor, Vendor can "
2308
  "see the admin bar. Now, the super admin want, one specific user ( who has "
@@ -2312,11 +2364,11 @@ msgid ""
2312
  "frontend."
2313
  msgstr ""
2314
 
2315
- #: admin/html/whats-new.php:896
2316
  msgid "Fatal error when use PHP lower version (5.4 or lower)"
2317
  msgstr ""
2318
 
2319
- #: admin/html/whats-new.php:898
2320
  msgid ""
2321
  "It was unable to install WP User Frontend with PHP 5.4 or lower version. "
2322
  "Here is the error details: <br><br><strong>Fatal error: Can't use method "
@@ -2324,42 +2376,42 @@ msgid ""
2324
  "/wp-user-frontend/class/frontend-form-post.php on line 194</strong>"
2325
  msgstr ""
2326
 
2327
- #: admin/html/whats-new.php:901
2328
  msgid "Product form was unable to show the single gallery image"
2329
  msgstr ""
2330
 
2331
- #: admin/html/whats-new.php:903
2332
  msgid ""
2333
  "When user upload single image for product gallery using WPUF WooCommerce "
2334
  "product form, that image were not showing on the frontend."
2335
  msgstr ""
2336
 
2337
- #: admin/html/whats-new.php:912
2338
  msgid "WooCommerce gallery images not getting saved"
2339
  msgstr ""
2340
 
2341
- #: admin/html/whats-new.php:914
2342
  msgid ""
2343
  "After releasing version 2.9.3, WooCommerce gallery image field stopped "
2344
  "working. You will get it fixed in this version."
2345
  msgstr ""
2346
 
2347
- #: admin/html/whats-new.php:923
2348
  msgid "The Events Calendar Integration Form"
2349
  msgstr ""
2350
 
2351
- #: admin/html/whats-new.php:925
2352
  msgid ""
2353
  "Now admin can allow users to create event from the frontend. Currently WPUF "
2354
  "has a one click pre-build event form that has been integrated with The "
2355
  "Events Calendar plugin"
2356
  msgstr ""
2357
 
2358
- #: admin/html/whats-new.php:928
2359
  msgid "Post Submission Facility From Account Page"
2360
  msgstr ""
2361
 
2362
- #: admin/html/whats-new.php:930
2363
  msgid ""
2364
  "On the frontend account page, added a new menu item named <b>Submit "
2365
  "Post</b>. Now admin can allow users to submit post from their default "
@@ -2368,504 +2420,504 @@ msgid ""
2368
  "you can assign any post form that will use to submit posts."
2369
  msgstr ""
2370
 
2371
- #: admin/html/whats-new.php:933
2372
  msgid "Login/Lost Password Link Under Registration Form"
2373
  msgstr ""
2374
 
2375
- #: admin/html/whats-new.php:935
2376
  msgid "Added Login/Lost Password link under registration form"
2377
  msgstr ""
2378
 
2379
- #: admin/html/whats-new.php:944
2380
  msgid "Added drag and drop image ordering on image upload"
2381
  msgstr ""
2382
 
2383
- #: admin/html/whats-new.php:946
2384
  msgid ""
2385
  "Now frontend users can drag & drop the images/files to change the order "
2386
  "while uploading."
2387
  msgstr ""
2388
 
2389
- #: admin/html/whats-new.php:949
2390
  msgid "Added reCAPTCHA field in login form"
2391
  msgstr ""
2392
 
2393
- #: admin/html/whats-new.php:951
2394
  msgid ""
2395
  "Admin has the option to show reCAPTCHA field in login form. Check the "
2396
  "related settings from <strong>User Frontend > Settings > "
2397
  "Login/Registration</strong>"
2398
  msgstr ""
2399
 
2400
- #: admin/html/whats-new.php:954
2401
  msgid "Added preview option in forms"
2402
  msgstr ""
2403
 
2404
- #: admin/html/whats-new.php:956
2405
  msgid ""
2406
  "You can see a nice <strong>Preview</strong> button with <strong>Save "
2407
  "Form</strong> button, admin can take a quick look of the form without using "
2408
  "shortcode"
2409
  msgstr ""
2410
 
2411
- #: admin/html/whats-new.php:959
2412
  msgid "Fixed hiding “Select Image” button while uploading multiple images."
2413
  msgstr ""
2414
 
2415
- #: admin/html/whats-new.php:961
2416
  msgid ""
2417
  "The upload button will not be hidden until the user selects max number of "
2418
  "files "
2419
  msgstr ""
2420
 
2421
- #: admin/html/whats-new.php:964
2422
  msgid "Added form limit notice before form submission"
2423
  msgstr ""
2424
 
2425
- #: admin/html/whats-new.php:966
2426
  msgid ""
2427
  "Limit notice message was showing after submission, now it is showing when "
2428
  "rendering the form"
2429
  msgstr ""
2430
 
2431
- #: admin/html/whats-new.php:969
2432
  msgid "Fixed: default post category not saving"
2433
  msgstr ""
2434
 
2435
- #: admin/html/whats-new.php:971
2436
  msgid ""
2437
  "From the form <strong>Settings > Post Settings</strong>, default post "
2438
  "category options were not saving. Now, it's fixed."
2439
  msgstr ""
2440
 
2441
- #: admin/html/whats-new.php:974
2442
  msgid ""
2443
  "WPUF dashboard shortcode with form_id attribute was not showing posts "
2444
  "properly"
2445
  msgstr ""
2446
 
2447
- #: admin/html/whats-new.php:976
2448
  msgid ""
2449
  "Now you can list posts on the frontend by using <strong>form_id<strong/> "
2450
  "attribute with <strong>[wpuf_dashboard]</strong> shortcode"
2451
  msgstr ""
2452
 
2453
- #: admin/html/whats-new.php:985
2454
  msgid "Changed text domain to `wp-user-frontend` from `wpuf` "
2455
  msgstr ""
2456
 
2457
- #: admin/html/whats-new.php:987
2458
  msgid ""
2459
  "If you are using other language than English. Please <b>rename</b> your "
2460
  "<i>.po and .mo </i> files to `wp-user-frontend_` from `wpuf_` <br> This "
2461
  "change was made to support translations from translate.wordpress.org"
2462
  msgstr ""
2463
 
2464
- #: admin/html/whats-new.php:990
2465
  msgid "Added WP User Frontend Data export and erase functionality."
2466
  msgstr ""
2467
 
2468
- #: admin/html/whats-new.php:992
2469
  msgid "Added functionality to export WP User Frontend Data to comply with GDPR."
2470
  msgstr ""
2471
 
2472
- #: admin/html/whats-new.php:995
2473
  msgid "Added billing address customizer."
2474
  msgstr ""
2475
 
2476
- #: admin/html/whats-new.php:997
2477
  msgid "Added customizer options for billing address in payment page."
2478
  msgstr ""
2479
 
2480
- #: admin/html/whats-new.php:1000
2481
  msgid "Make the payment page responsive."
2482
  msgstr ""
2483
 
2484
- #: admin/html/whats-new.php:1002
2485
  msgid "Some css adjustments are made in payment page to make it responsive."
2486
  msgstr ""
2487
 
2488
- #: admin/html/whats-new.php:1005
2489
  msgid "Fixed image upload issue in Safari."
2490
  msgstr ""
2491
 
2492
- #: admin/html/whats-new.php:1007
2493
  msgid "Images were not showing after upload in safari, it is fixed now."
2494
  msgstr ""
2495
 
2496
- #: admin/html/whats-new.php:1010
2497
  msgid "Post update issue after updating or removing post images."
2498
  msgstr ""
2499
 
2500
- #: admin/html/whats-new.php:1012
2501
  msgid ""
2502
  "Posts cannot be updated after updating or removing post images, it is fixed "
2503
  "now."
2504
  msgstr ""
2505
 
2506
- #: admin/html/whats-new.php:1021
2507
  msgid "Allow overriding form input styles using theme styling."
2508
  msgstr ""
2509
 
2510
- #: admin/html/whats-new.php:1023
2511
  msgid "Overriding form input styles using theme style is now possible."
2512
  msgstr ""
2513
 
2514
- #: admin/html/whats-new.php:1026
2515
  msgid "Fixed Auto Login after registration."
2516
  msgstr ""
2517
 
2518
- #: admin/html/whats-new.php:1028
2519
  msgid "Auto Login after registration was not working is fixed now."
2520
  msgstr ""
2521
 
2522
- #: admin/html/whats-new.php:1031
2523
  msgid "Fixed fallback cost calculation"
2524
  msgstr ""
2525
 
2526
- #: admin/html/whats-new.php:1033
2527
  msgid "Fallback cost calculation was inaccurate for some cases, it is fixed now."
2528
  msgstr ""
2529
 
2530
- #: admin/html/whats-new.php:1036
2531
  msgid "Removal of subscription from User Profile gets reverted if updated"
2532
  msgstr ""
2533
 
2534
- #: admin/html/whats-new.php:1038
2535
  msgid "User subscription deletion gets reverted if updated is fixed."
2536
  msgstr ""
2537
 
2538
- #: admin/html/whats-new.php:1041
2539
  msgid "Show Free pack users in subscribers list."
2540
  msgstr ""
2541
 
2542
- #: admin/html/whats-new.php:1043
2543
  msgid "Free pack users were not showing in subscribers list, now they will."
2544
  msgstr ""
2545
 
2546
- #: admin/html/whats-new.php:1052
2547
  msgid "WP User Frontend Guten Block is added"
2548
  msgstr ""
2549
 
2550
- #: admin/html/whats-new.php:1054
2551
  msgid ""
2552
  "WPUF Form Block is now available to be used within gutenberg editor with "
2553
  "preview of the form. "
2554
  msgstr ""
2555
 
2556
- #: admin/html/whats-new.php:1057
2557
  msgid "Advanced Custom Fields plugin compatibility"
2558
  msgstr ""
2559
 
2560
- #: admin/html/whats-new.php:1059
2561
  msgid "Now all your ACF fields can be used within WPUF Post forms. "
2562
  msgstr ""
2563
 
2564
- #: admin/html/whats-new.php:1062
2565
  msgid "Taxonomy Terms not showing for custom post types"
2566
  msgstr ""
2567
 
2568
- #: admin/html/whats-new.php:1064
2569
  msgid ""
2570
  "Fixed an issue with taxonomy terms not appearing for Custom Post types "
2571
  "within Form Settings and Dashboard Post Listing"
2572
  msgstr ""
2573
 
2574
- #: admin/html/whats-new.php:1067
2575
  msgid "Various other code optimizations"
2576
  msgstr ""
2577
 
2578
- #: admin/html/whats-new.php:1069 admin/html/whats-new.php:1126
2579
  msgid "Code structure organization and optimization for better performance"
2580
  msgstr ""
2581
 
2582
- #: admin/html/whats-new.php:1078
2583
  msgid "WoooCommerce billing address Sync"
2584
  msgstr ""
2585
 
2586
- #: admin/html/whats-new.php:1080
2587
  msgid ""
2588
  "If an existing customer has previously set his billing address, that will "
2589
  "be imported into WPUF Billing address "
2590
  msgstr ""
2591
 
2592
- #: admin/html/whats-new.php:1083
2593
  msgid "Trial subscription message not showing properly"
2594
  msgstr ""
2595
 
2596
- #: admin/html/whats-new.php:1085
2597
  msgid "Subscriptions with Trial now shows trial notices"
2598
  msgstr ""
2599
 
2600
- #: admin/html/whats-new.php:1088
2601
  msgid "Reset email Key not working"
2602
  msgstr ""
2603
 
2604
- #: admin/html/whats-new.php:1090
2605
  msgid "Reset Email key was not working in some cases"
2606
  msgstr ""
2607
 
2608
- #: admin/html/whats-new.php:1093
2609
  msgid "Post count not showing on the frontend dashboard"
2610
  msgstr ""
2611
 
2612
- #: admin/html/whats-new.php:1095
2613
  msgid ""
2614
  "Dashboard with multiple post type was not showing post counts properly, is "
2615
  "now fixed and shows count for each post type"
2616
  msgstr ""
2617
 
2618
- #: admin/html/whats-new.php:1098
2619
  msgid "Login Redirect showing blank page is fixed"
2620
  msgstr ""
2621
 
2622
- #: admin/html/whats-new.php:1100
2623
  msgid ""
2624
  "If \"Previous Page\" was set for redirection, login redirect was "
2625
  "redirecting to blank page for users who hit login page directly"
2626
  msgstr ""
2627
 
2628
- #: admin/html/whats-new.php:1109
2629
  msgid "Enhanced Login Redirect to redirect users to previous page"
2630
  msgstr ""
2631
 
2632
- #: admin/html/whats-new.php:1111
2633
  msgid ""
2634
  "You can choose Previous Page as Login Redirect page settings now to "
2635
  "redirect users to the page from which they went for Login. "
2636
  msgstr ""
2637
 
2638
- #: admin/html/whats-new.php:1114
2639
  msgid "Email HTML links not Rendreing properly issue is fixed"
2640
  msgstr ""
2641
 
2642
- #: admin/html/whats-new.php:1116
2643
  msgid ""
2644
  "For some clients emails were not rendering the HTML links properly, this is "
2645
  "now fixed"
2646
  msgstr ""
2647
 
2648
- #: admin/html/whats-new.php:1119
2649
  msgid "Form Builder : Form Field's Help text styles not showing properly"
2650
  msgstr ""
2651
 
2652
- #: admin/html/whats-new.php:1121
2653
  msgid "Help texts styling is now fixed and much easier to read and understand"
2654
  msgstr ""
2655
 
2656
- #: admin/html/whats-new.php:1124
2657
  msgid "Various other code improvements"
2658
  msgstr ""
2659
 
2660
- #: admin/html/whats-new.php:1135
2661
  msgid "Dashboard Post Listing now supports multiple post types"
2662
  msgstr ""
2663
 
2664
- #: admin/html/whats-new.php:1137
2665
  msgid ""
2666
  "Now you can show multiple post type in user dashboard using shortcode like "
2667
  "this : <br><b>[wpuf_dashboard post_type=\"post,page,custom_type\"]</b> "
2668
  msgstr ""
2669
 
2670
- #: admin/html/whats-new.php:1140
2671
  msgid "Added Login Redirect Settings"
2672
  msgstr ""
2673
 
2674
- #: admin/html/whats-new.php:1142
2675
  msgid ""
2676
  "You can now set a page from <i>WPUF Settings > Login/Registration > "
2677
  "Redirect after Login</i>. When login redirection is active the user will be "
2678
  "redirected to this page after login."
2679
  msgstr ""
2680
 
2681
- #: admin/html/whats-new.php:1145
2682
  msgid "Image Upload field button text can be changed"
2683
  msgstr ""
2684
 
2685
- #: admin/html/whats-new.php:1147
2686
  msgid ""
2687
  "The upload button text can now be changed for image upload fields which "
2688
  "defaults to \"Select Image\" if not set. "
2689
  msgstr ""
2690
 
2691
- #: admin/html/whats-new.php:1150
2692
  msgid "Multi Step Form styles made compatible with more themes"
2693
  msgstr ""
2694
 
2695
- #: admin/html/whats-new.php:1152
2696
  msgid "Multi Step form can now be styled more easily with other themes "
2697
  msgstr ""
2698
 
2699
- #: admin/html/whats-new.php:1155
2700
  msgid "Required field condition for google map not working is fixed"
2701
  msgstr ""
2702
 
2703
- #: admin/html/whats-new.php:1157
2704
  msgid ""
2705
  "If Google Map field was set as required users were able to submit form "
2706
  "without changing the default value."
2707
  msgstr ""
2708
 
2709
- #: admin/html/whats-new.php:1166
2710
  msgid "Admin form builder is now fully responsive."
2711
  msgstr ""
2712
 
2713
- #: admin/html/whats-new.php:1168
2714
  msgid ""
2715
  "Now you can edit forms from your mobile devices directly. Our improved "
2716
  "responsive layouts of form builder makes it easy for you to build forms on "
2717
  "the go."
2718
  msgstr ""
2719
 
2720
- #: admin/html/whats-new.php:1171
2721
  msgid "Added color schemes for creating attractive form layouts."
2722
  msgstr ""
2723
 
2724
- #: admin/html/whats-new.php:1173
2725
  msgid ""
2726
  "We have added 3 new color schemes for the form layouts which you can choose "
2727
  "from each form's new display settings."
2728
  msgstr ""
2729
 
2730
- #: admin/html/whats-new.php:1176
2731
  msgid "Restrict Free subscription pack to be enabled multiple times "
2732
  msgstr ""
2733
 
2734
- #: admin/html/whats-new.php:1178
2735
  msgid ""
2736
  "Free subscription packs now can only be purchased once and the limit "
2737
  "applies properly"
2738
  msgstr ""
2739
 
2740
- #: admin/html/whats-new.php:1181
2741
  msgid "Various other bug fixes and improvements were made "
2742
  msgstr ""
2743
 
2744
- #: admin/html/whats-new.php:1183
2745
  msgid "Please see the change log to see full details."
2746
  msgstr ""
2747
 
2748
- #: admin/html/whats-new.php:1192
2749
  msgid "Added upgrade function for default category"
2750
  msgstr ""
2751
 
2752
- #: admin/html/whats-new.php:1194
2753
  msgid "Upgrader added to upgrade previously set default post category."
2754
  msgstr ""
2755
 
2756
- #: admin/html/whats-new.php:1197
2757
  msgid "Subscription pack cannot be canceled"
2758
  msgstr ""
2759
 
2760
- #: admin/html/whats-new.php:1199
2761
  msgid ""
2762
  "Fixed recurring subscription pack cannot be canceled from my account page "
2763
  "in subscription details section."
2764
  msgstr ""
2765
 
2766
- #: admin/html/whats-new.php:1202
2767
  msgid "page installer admin notice logic issue"
2768
  msgstr ""
2769
 
2770
- #: admin/html/whats-new.php:1204
2771
  msgid ""
2772
  "Fixed page installer admin notice logic problem due to new payment settings "
2773
  "default value not set."
2774
  msgstr ""
2775
 
2776
- #: admin/html/whats-new.php:1214
2777
  msgid "Setup Wizard"
2778
  msgstr ""
2779
 
2780
- #: admin/html/whats-new.php:1216
2781
  msgid "Setup Wizard added to turn off payment options and install pages."
2782
  msgstr ""
2783
 
2784
- #: admin/html/whats-new.php:1220
2785
  msgid "Multi-select Category"
2786
  msgstr ""
2787
 
2788
- #: admin/html/whats-new.php:1222
2789
  msgid "Add multi-select to default category in post form settings."
2790
  msgstr ""
2791
 
2792
- #: admin/html/whats-new.php:1226
2793
  msgid "Select Text option for Taxonomy"
2794
  msgstr ""
2795
 
2796
- #: admin/html/whats-new.php:1228
2797
  msgid ""
2798
  "Add Select Text option for taxonomy fields. Now you can add default text "
2799
  "with empty value as first option for Taxonomy dropdown."
2800
  msgstr ""
2801
 
2802
- #: admin/html/whats-new.php:1231
2803
  msgid "Taxonomy Checkbox Inline"
2804
  msgstr ""
2805
 
2806
- #: admin/html/whats-new.php:1233
2807
  msgid ""
2808
  "Added checkbox inline option to taxonomy checkbox. You can now display "
2809
  "Taxonomy checkbox fields inline."
2810
  msgstr ""
2811
 
2812
- #: admin/html/whats-new.php:1243
2813
  msgid "Manage schedule for form submission"
2814
  msgstr ""
2815
 
2816
- #: admin/html/whats-new.php:1245
2817
  msgid ""
2818
  "Do not accept form submission if the current date is not between the date "
2819
  "range of the schedule."
2820
  msgstr ""
2821
 
2822
- #: admin/html/whats-new.php:1249
2823
  msgid "Restrict form submission based on the user roles"
2824
  msgstr ""
2825
 
2826
- #: admin/html/whats-new.php:1251
2827
  msgid ""
2828
  "Restrict form submission based on the user roles. Now you can manage user "
2829
  "role base permission on form submission."
2830
  msgstr ""
2831
 
2832
- #: admin/html/whats-new.php:1255
2833
  msgid "Limit how many entries a form will accept"
2834
  msgstr ""
2835
 
2836
- #: admin/html/whats-new.php:1257
2837
  msgid ""
2838
  "Limit how many entries a form will accept and display a custom message when "
2839
  "that limit is reached."
2840
  msgstr ""
2841
 
2842
- #: admin/html/whats-new.php:1261
2843
  msgid "Show/hide Admin Bar"
2844
  msgstr ""
2845
 
2846
- #: admin/html/whats-new.php:1263
2847
  msgid "Control the admin bar visibility based on user roles."
2848
  msgstr ""
2849
 
2850
- #: admin/html/whats-new.php:1267
2851
  msgid "Ajax Login widget"
2852
  msgstr ""
2853
 
2854
- #: admin/html/whats-new.php:1269
2855
  msgid ""
2856
  "Login user is more simple now with Ajax Login Widget. The simple ajax login "
2857
  "form do not required page loading for login."
2858
  msgstr ""
2859
 
2860
- #: admin/html/whats-new.php:1273
2861
  msgid "Form submission with Captcha field"
2862
  msgstr ""
2863
 
2864
- #: admin/html/whats-new.php:1275
2865
  msgid "Form field validation process updated if form submits with captcha field."
2866
  msgstr ""
2867
 
2868
- #: admin/html/whats-new.php:1289
2869
  msgid "What's New in WPUF?"
2870
  msgstr ""
2871
 
@@ -2901,8 +2953,8 @@ msgstr ""
2901
  msgid "Login"
2902
  msgstr ""
2903
 
2904
- #: admin/installer.php:95 class/subscription.php:406 class/subscription.php:426
2905
- #: class/subscription.php:427 class/subscription.php:428
2906
  #: includes/free/admin/shortcode-button.php:99 wpuf-functions.php:2022
2907
  msgid "Subscription"
2908
  msgstr ""
@@ -2911,8 +2963,8 @@ msgstr ""
2911
  msgid "[wpuf_sub_pack]"
2912
  msgstr ""
2913
 
2914
- #: admin/installer.php:96 templates/dashboard/posts.php:116
2915
- #: templates/dashboard.php:136
2916
  msgid "Payment"
2917
  msgstr ""
2918
 
@@ -2999,23 +3051,23 @@ msgid "Draft"
2999
  msgstr ""
3000
 
3001
  #: admin/posting.php:72 class/asset-loader.php:55 class/render-form.php:1673
3002
- #: wpuf.php:738
3003
  msgid "Are you sure?"
3004
  msgstr ""
3005
 
3006
- #: admin/posting.php:80 class/asset-loader.php:63 wpuf.php:749
3007
  msgid "Allowed Files"
3008
  msgstr ""
3009
 
3010
- #: admin/posting.php:83 class/asset-loader.php:66 wpuf.php:755
3011
  msgid "Maximum number of files reached!"
3012
  msgstr ""
3013
 
3014
- #: admin/posting.php:84 class/asset-loader.php:67 wpuf.php:756
3015
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
3016
  msgstr ""
3017
 
3018
- #: admin/posting.php:85 class/asset-loader.php:68 wpuf.php:757
3019
  msgid "You have uploaded an incorrect file type. Please try again."
3020
  msgstr ""
3021
 
@@ -3310,27 +3362,29 @@ msgstr ""
3310
  msgid "WP User Frontend Pro is the most powerful solution for your frontend needs."
3311
  msgstr ""
3312
 
3313
- #: admin/promotion.php:34
3314
- msgid "Get Yourself a Spooky Delight ! Get Up To 40% OFF on WP User Frontend Pro."
 
 
3315
  msgstr ""
3316
 
3317
- #: admin/promotion.php:34
3318
  msgid "Get Now"
3319
  msgstr ""
3320
 
3321
- #: admin/promotion.php:84
3322
  msgid "Sure! I'd love to!"
3323
  msgstr ""
3324
 
3325
- #: admin/promotion.php:85
3326
  msgid "I've already left a review"
3327
  msgstr ""
3328
 
3329
- #: admin/promotion.php:86
3330
  msgid "Never show again"
3331
  msgstr ""
3332
 
3333
- #: admin/promotion.php:222 includes/class-whats-new.php:107
3334
  msgid "Dismiss this notice."
3335
  msgstr ""
3336
 
@@ -4129,7 +4183,7 @@ msgstr ""
4129
 
4130
  #: admin/template.php:377 admin/template.php:401 admin/template.php:432
4131
  #: admin/template.php:463 includes/fields/class-abstract-fields.php:612
4132
- #: templates/dashboard/posts.php:119 templates/dashboard.php:139
4133
  msgid "Options"
4134
  msgstr ""
4135
 
@@ -4150,7 +4204,7 @@ msgstr ""
4150
  #: admin/template.php:520 admin/template.php:578 admin/template.php:656
4151
  #: class/upload.php:275 includes/fields/class-field-recaptcha.php:147
4152
  #: includes/fields/class-field-sectionbreak.php:55
4153
- #: templates/dashboard/posts.php:110 templates/dashboard.php:104
4154
  #: wpuf-functions.php:1024
4155
  msgid "Title"
4156
  msgstr ""
@@ -4202,27 +4256,27 @@ msgstr ""
4202
  msgid "Import"
4203
  msgstr ""
4204
 
4205
- #: class/asset-loader.php:32 wpuf.php:635
4206
  msgid "is required"
4207
  msgstr ""
4208
 
4209
- #: class/asset-loader.php:33 wpuf.php:636
4210
  msgid "does not match"
4211
  msgstr ""
4212
 
4213
- #: class/asset-loader.php:34 wpuf.php:637
4214
  msgid "is not valid"
4215
  msgstr ""
4216
 
4217
- #: class/asset-loader.php:46 wpuf.php:715
4218
  msgid "Please fix the errors to proceed"
4219
  msgstr ""
4220
 
4221
- #: class/asset-loader.php:48 wpuf.php:722
4222
  msgid "Word limit reached"
4223
  msgstr ""
4224
 
4225
- #: class/asset-loader.php:49 wpuf.php:717
4226
  msgid "Are you sure you want to cancel your current subscription ?"
4227
  msgstr ""
4228
 
@@ -4435,7 +4489,7 @@ msgstr ""
4435
  msgid "Please enter your post name"
4436
  msgstr ""
4437
 
4438
- #: class/post-form-templates/post.php:36 templates/dashboard.php:108
4439
  msgid "Category"
4440
  msgstr ""
4441
 
@@ -4464,7 +4518,7 @@ msgstr ""
4464
  #: includes/fields/class-field-featured-image.php:142
4465
  #: includes/free/post-form-templates/the_events_calendar.php:125
4466
  #: includes/free/post-form-templates/the_events_calendar.php:126
4467
- #: templates/dashboard/posts.php:107 templates/dashboard.php:102
4468
  msgid "Featured Image"
4469
  msgstr ""
4470
 
@@ -4474,7 +4528,6 @@ msgstr ""
4474
 
4475
  #: class/post-form-templates/post.php:91
4476
  #: includes/free/post-form-templates/the_events_calendar.php:138
4477
- #: templates/dashboard.php:128
4478
  msgid "Excerpt"
4479
  msgstr ""
4480
 
@@ -4551,137 +4604,136 @@ msgstr ""
4551
 
4552
  #: class/render-form.php:1673 class/transactions-list-table.php:122
4553
  #: class/transactions-list-table.php:199 includes/free/edit-user.php:105
4554
- #: templates/dashboard.php:277
4555
  msgid "Delete"
4556
  msgstr ""
4557
 
4558
- #: class/subscription.php:429
4559
  msgid "Add Subscription"
4560
  msgstr ""
4561
 
4562
- #: class/subscription.php:430
4563
  msgid "Add New Subscription"
4564
  msgstr ""
4565
 
4566
- #: class/subscription.php:432
4567
  msgid "Edit Subscription"
4568
  msgstr ""
4569
 
4570
- #: class/subscription.php:433
4571
  msgid "New Subscription"
4572
  msgstr ""
4573
 
4574
- #: class/subscription.php:434 class/subscription.php:435
4575
  msgid "View Subscription"
4576
  msgstr ""
4577
 
4578
- #: class/subscription.php:436
4579
  msgid "Search Subscription"
4580
  msgstr ""
4581
 
4582
- #: class/subscription.php:437
4583
  msgid "No Subscription Found"
4584
  msgstr ""
4585
 
4586
- #: class/subscription.php:438
4587
  msgid "No Subscription Found in Trash"
4588
  msgstr ""
4589
 
4590
- #: class/subscription.php:439
4591
  msgid "Parent Subscription"
4592
  msgstr ""
4593
 
4594
- #: class/subscription.php:787
4595
  msgid "Payment is complete"
4596
  msgstr ""
4597
 
4598
- #: class/subscription.php:787
4599
  msgid "Congratulations, your payment has been completed!"
4600
  msgstr ""
4601
 
4602
- #: class/subscription.php:791 class/subscription.php:795
4603
  msgid "Please buy a subscription pack to post"
4604
  msgstr ""
4605
 
4606
- #: class/subscription.php:814
4607
  msgid "<p><i>You have a subscription pack activated. </i></p>"
4608
  msgstr ""
4609
 
4610
- #: class/subscription.php:816
4611
  #. translators: %s: pack title
4612
  msgid "<p><i>Pack name: %s </i></p>"
4613
  msgstr ""
4614
 
4615
- #: class/subscription.php:818
4616
  msgid "To cancel the pack, press the following cancel button"
4617
  msgstr ""
4618
 
4619
- #: class/subscription.php:865
4620
  msgid "Day"
4621
  msgid_plural "Days"
4622
  msgstr[0] ""
4623
  msgstr[1] ""
4624
 
4625
- #: class/subscription.php:866
4626
  msgid "Week"
4627
  msgid_plural "Weeks"
4628
  msgstr[0] ""
4629
  msgstr[1] ""
4630
 
4631
- #: class/subscription.php:867
4632
  msgid "Month"
4633
  msgid_plural "Months"
4634
  msgstr[0] ""
4635
  msgstr[1] ""
4636
 
4637
- #: class/subscription.php:868
4638
  msgid "Year"
4639
  msgid_plural "Years"
4640
  msgstr[0] ""
4641
  msgstr[1] ""
4642
 
4643
- #: class/subscription.php:900
4644
  msgid "One time payment"
4645
  msgstr ""
4646
 
4647
- #: class/subscription.php:907
4648
  msgid "Every"
4649
  msgstr ""
4650
 
4651
- #: class/subscription.php:908
4652
  msgid "for"
4653
  msgstr ""
4654
 
4655
- #: class/subscription.php:908
4656
  msgid "installments"
4657
  msgstr ""
4658
 
4659
- #: class/subscription.php:916
4660
  #. translators: %s: trial days
4661
  msgid "Trial available for first %1$s %2$s"
4662
  msgstr ""
4663
 
4664
- #: class/subscription.php:920
4665
  msgid "Buy Now"
4666
  msgstr ""
4667
 
4668
- #: class/subscription.php:924
4669
  msgid "Sign Up"
4670
  msgstr ""
4671
 
4672
- #: class/subscription.php:992
4673
  #. translators: %s: amount
4674
  msgid "There is a <strong>%s</strong> charge to add a new post."
4675
  msgstr ""
4676
 
4677
- #: class/subscription.php:1009
4678
  #. translators: %s: amount
4679
  msgid ""
4680
  "Your Subscription pack is exhausted. There is a <strong>%s</strong> charge "
4681
  "to add a new post."
4682
  msgstr ""
4683
 
4684
- #: class/subscription.php:1055
4685
  #. translators: %s: subscription link
4686
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
4687
  msgstr ""
@@ -4699,8 +4751,8 @@ msgid "ID"
4699
  msgstr ""
4700
 
4701
  #: class/transactions-list-table.php:44
4702
- #: includes/class-list-table-subscribers.php:44
4703
- #: templates/dashboard/posts.php:111 templates/dashboard.php:131
4704
  msgid "Status"
4705
  msgstr ""
4706
 
@@ -4824,6 +4876,7 @@ msgstr ""
4824
 
4825
  #: includes/class-billing-address.php:161 includes/class-customizer.php:22
4826
  #: includes/class-customizer.php:66 includes/class-privacy.php:265
 
4827
  #: templates/dashboard/billing-address.php:52
4828
  msgid "Country"
4829
  msgstr ""
@@ -4834,28 +4887,30 @@ msgid "Choose a country"
4834
  msgstr ""
4835
 
4836
  #: includes/class-billing-address.php:203 includes/class-customizer.php:23
4837
- #: includes/class-customizer.php:67 templates/dashboard/billing-address.php:93
 
4838
  msgid "State/Province/Region"
4839
  msgstr ""
4840
 
4841
  #: includes/class-billing-address.php:217
4842
- #: templates/dashboard/billing-address.php:113
4843
  msgid "Choose a state"
4844
  msgstr ""
4845
 
4846
  #: includes/class-billing-address.php:236
4847
- #: templates/dashboard/billing-address.php:133
4848
  msgid "Address Line 1 "
4849
  msgstr ""
4850
 
4851
  #: includes/class-billing-address.php:247
4852
- #: templates/dashboard/billing-address.php:142
4853
  msgid "Address Line 2 "
4854
  msgstr ""
4855
 
4856
  #: includes/class-billing-address.php:258 includes/class-customizer.php:26
4857
  #: includes/class-customizer.php:70 includes/class-privacy.php:253
4858
- #: templates/dashboard/billing-address.php:150
 
4859
  msgid "City"
4860
  msgstr ""
4861
 
@@ -4865,7 +4920,7 @@ msgid "Postal Code/ZIP"
4865
  msgstr ""
4866
 
4867
  #: includes/class-billing-address.php:278
4868
- #: templates/dashboard/billing-address.php:169
4869
  msgid "Update Billing Address"
4870
  msgstr ""
4871
 
@@ -4995,15 +5050,15 @@ msgstr ""
4995
  msgid "You can't edit a post while in pending mode."
4996
  msgstr ""
4997
 
4998
- #: includes/class-frontend-form-post.php:535
4999
  msgid "Something went wrong"
5000
  msgstr ""
5001
 
5002
- #: includes/class-frontend-form-post.php:556
5003
  msgid "Invalid email address."
5004
  msgstr ""
5005
 
5006
- #: includes/class-frontend-form-post.php:567
5007
  msgid ""
5008
  "You already have an account in our site. Please login to continue.\n"
5009
  "\n"
@@ -5012,27 +5067,36 @@ msgid ""
5012
  "Click 'Cancel' to stay at this page."
5013
  msgstr ""
5014
 
5015
- #: includes/class-frontend-form-post.php:621
5016
  #: includes/class-frontend-render-form.php:327
5017
  msgid "You do not have sufficient permissions to access this form."
5018
  msgstr ""
5019
 
5020
- #: includes/class-frontend-form-post.php:933
5021
  msgid "Email successfully verified. Please Login."
5022
  msgstr ""
5023
 
5024
- #: includes/class-frontend-form-post.php:1057
5025
- #: includes/class-frontend-form-post.php:1063
5026
  msgid ""
5027
  "Thank you for posting on our site. We have sent you an confirmation email. "
5028
  "Please check your inbox!"
5029
  msgstr ""
5030
 
5031
- #: includes/class-frontend-render-form.php:870
5032
  #: includes/free/class-login.php:449
5033
  msgid "Empty reCaptcha Field"
5034
  msgstr ""
5035
 
 
 
 
 
 
 
 
 
 
5036
  #: includes/class-list-table-subscribers.php:30
5037
  msgid "No subscribers found"
5038
  msgstr ""
@@ -5062,7 +5126,7 @@ msgid "Expire date"
5062
  msgstr ""
5063
 
5064
  #: includes/class-list-table-subscribers.php:137
5065
- #: templates/dashboard/posts.php:178 templates/dashboard.php:237
5066
  msgid "Completed"
5067
  msgstr ""
5068
 
@@ -5539,32 +5603,32 @@ msgstr ""
5539
  msgid "The subscription pack has expired. Please buy a pack."
5540
  msgstr ""
5541
 
5542
- #: includes/class-user-subscription.php:315
5543
  #: templates/dashboard/subscription.php:3
5544
  msgid "Subscription Details"
5545
  msgstr ""
5546
 
5547
- #: includes/class-user-subscription.php:317
5548
  #: templates/dashboard/subscription.php:5
5549
  msgid "Subcription Name: "
5550
  msgstr ""
5551
 
5552
- #: includes/class-user-subscription.php:319
5553
  #: templates/dashboard/subscription.php:7
5554
  msgid "Package & billing details: "
5555
  msgstr ""
5556
 
5557
- #: includes/class-user-subscription.php:330
5558
- #: templates/dashboard/subscription.php:17
5559
  msgid "Remaining post: "
5560
  msgstr ""
5561
 
5562
- #: includes/class-user-subscription.php:344
5563
- #: templates/dashboard/subscription.php:33
5564
  msgid "Unlimited"
5565
  msgstr ""
5566
 
5567
- #: includes/class-user-subscription.php:371
5568
  msgid "Change"
5569
  msgstr ""
5570
 
@@ -6728,7 +6792,16 @@ msgstr ""
6728
  msgid "PayPal API signature"
6729
  msgstr ""
6730
 
6731
- #: templates/dashboard/billing-address.php:159
 
 
 
 
 
 
 
 
 
6732
  msgid "Postal/ZIP Code"
6733
  msgstr ""
6734
 
@@ -6772,59 +6845,59 @@ msgstr ""
6772
  msgid "Confirm New Password"
6773
  msgstr ""
6774
 
6775
- #: templates/dashboard/posts.php:42
6776
- msgid "Item Deleted successfully !"
6777
- msgstr ""
6778
-
6779
- #: templates/dashboard/posts.php:132
6780
  msgid "Featured Image: "
6781
  msgstr ""
6782
 
6783
- #: templates/dashboard/posts.php:139 templates/dashboard.php:159
6784
  msgid "No Image"
6785
  msgstr ""
6786
 
6787
- #: templates/dashboard/posts.php:149
6788
  msgid "Title: "
6789
  msgstr ""
6790
 
6791
- #: templates/dashboard/posts.php:156 templates/dashboard.php:173
6792
  msgid "Permalink to %s"
6793
  msgstr ""
6794
 
6795
- #: templates/dashboard/posts.php:165
6796
  msgid "Status: "
6797
  msgstr ""
6798
 
6799
- #: templates/dashboard/posts.php:172
6800
- msgid "Payment: "
6801
- msgstr ""
6802
-
6803
- #: templates/dashboard/posts.php:174 templates/dashboard.php:233
6804
  msgid "Not Applicable"
6805
  msgstr ""
6806
 
6807
- #: templates/dashboard/posts.php:176 templates/dashboard.php:235
6808
  msgid "Pay Now"
6809
  msgstr ""
6810
 
6811
- #: templates/dashboard/posts.php:183
6812
  msgid "Options: "
6813
  msgstr ""
6814
 
6815
- #: templates/dashboard/posts.php:214
6816
  msgid "Are you sure to delete?"
6817
  msgstr ""
6818
 
6819
- #: templates/dashboard/posts.php:235 templates/dashboard.php:296
 
 
 
 
 
 
 
 
6820
  msgid "&laquo;"
6821
  msgstr ""
6822
 
6823
- #: templates/dashboard/posts.php:236 templates/dashboard.php:297
6824
  msgid "&raquo;"
6825
  msgstr ""
6826
 
6827
- #: templates/dashboard/posts.php:259 templates/dashboard.php:319
6828
  msgid "No %s found"
6829
  msgstr ""
6830
 
@@ -6840,7 +6913,11 @@ msgstr ""
6840
  msgid "Subscription Expired!"
6841
  msgstr ""
6842
 
6843
- #: templates/dashboard/subscription.php:60
 
 
 
 
6844
  msgid "To cancel the pack, press the following cancel button."
6845
  msgstr ""
6846
 
@@ -6852,10 +6929,6 @@ msgstr ""
6852
  msgid "You have created <span>%d</span> (%s)"
6853
  msgstr ""
6854
 
6855
- #: templates/dashboard.php:276
6856
- msgid "Are you sure you want to delete this post ?"
6857
- msgstr ""
6858
-
6859
  #: templates/dokan/new-post.php:7 templates/wc-marketplace/new-post.php:7
6860
  #: templates/wc-vendors/new-post.php:7
6861
  msgid "You are not allowed to submit post. Please contact admin"
@@ -7218,7 +7291,7 @@ msgstr ""
7218
  msgid "Your Post Has Been Expired"
7219
  msgstr ""
7220
 
7221
- #: wpuf.php:456
7222
  msgid ""
7223
  "<p style=\"font-size: 13px\">\n"
7224
  " <strong class=\"highlight-text\" "
@@ -7231,31 +7304,31 @@ msgid ""
7231
  " </p>"
7232
  msgstr ""
7233
 
7234
- #: wpuf.php:473
7235
  msgid "Update WP User Frontend Pro Now"
7236
  msgstr ""
7237
 
7238
- #: wpuf.php:477
7239
  msgid "Update WP User Frontend Pro NOW"
7240
  msgstr ""
7241
 
7242
- #: wpuf.php:720
7243
  msgid "Character limit reached"
7244
  msgstr ""
7245
 
7246
- #: wpuf.php:721
7247
  msgid "Minimum character required "
7248
  msgstr ""
7249
 
7250
- #: wpuf.php:723
7251
  msgid "Minimum word required "
7252
  msgstr ""
7253
 
7254
- #: wpuf.php:731
7255
  msgid "Please Cancel Your Currently Active Pack first!"
7256
  msgstr ""
7257
 
7258
- #: wpuf.php:902
7259
  msgid "Error: Nonce verification failed"
7260
  msgstr ""
7261
 
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP User Frontend 3.5.22\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2021-11-09 06:21:43+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
61
  msgid "<span style=\"color:#f18500\">Help</span>"
62
  msgstr ""
63
 
64
+ #: admin/class-admin-settings.php:116 admin/class-admin-settings.php:157
65
  #: admin/form-builder/views/form-builder.php:9 includes/setup-wizard.php:125
66
  msgid "Settings"
67
  msgstr ""
71
  msgid "Subscribers"
72
  msgstr ""
73
 
74
+ #: admin/class-admin-settings.php:454
75
  msgid "Number of items per page:"
76
  msgstr ""
77
 
78
+ #: admin/class-admin-settings.php:485
79
  msgid "Post lock has been cleared"
80
  msgstr ""
81
 
82
+ #: admin/class-admin-settings.php:515
83
  msgid "WPUF Import Forms"
84
  msgstr ""
85
 
86
+ #: admin/class-admin-settings.php:516
87
  msgid "Add JSON file"
88
  msgstr ""
89
 
90
+ #: admin/class-admin-settings.php:517
91
  msgid "Could not import forms."
92
  msgstr ""
93
 
94
+ #: admin/class-admin-settings.php:598
95
  msgid "Missing file_id param"
96
  msgstr ""
97
 
98
+ #: admin/class-admin-settings.php:608
99
  msgid "JSON file not found"
100
  msgstr ""
101
 
102
+ #: admin/class-admin-settings.php:617
103
  msgid "Provided file is not a JSON file."
104
  msgstr ""
105
 
106
+ #: admin/class-admin-settings.php:634
107
  msgid "Forms imported successfully."
108
  msgstr ""
109
 
143
  msgid "Subscription pack draft updated."
144
  msgstr ""
145
 
146
+ #: admin/class-admin-subscription.php:202 class/subscription.php:347
147
  msgid "Pack Name"
148
  msgstr ""
149
 
161
  msgstr ""
162
 
163
  #: admin/class-admin-subscription.php:225
164
+ #: admin/class-admin-subscription.php:618 class/frontend-account.php:263
165
+ #: class/subscription.php:938 includes/class-user-subscription.php:309
166
  #: templates/subscriptions/pack-details.php:24
167
  msgid "Free"
168
  msgstr ""
178
  #: includes/fields/class-abstract-fields.php:456
179
  #: includes/fields/class-field-checkbox.php:74
180
  #: includes/fields/class-field-radio.php:83 includes/free/form-element.php:499
181
+ #: wpuf.php:719
182
  msgid "Yes"
183
  msgstr ""
184
 
193
  #: includes/fields/class-abstract-fields.php:457
194
  #: includes/fields/class-field-checkbox.php:75
195
  #: includes/fields/class-field-radio.php:84 includes/free/form-element.php:500
196
+ #: wpuf.php:720
197
  msgid "No"
198
  msgstr ""
199
 
200
+ #: admin/class-admin-subscription.php:339 admin/form.php:225
201
  msgid "Payment Settings"
202
  msgstr ""
203
 
204
+ #: admin/class-admin-subscription.php:346
205
  msgid "Posting Restriction"
206
  msgstr ""
207
 
208
+ #: admin/class-admin-subscription.php:360
209
  msgid "Billing amount:"
210
  msgstr ""
211
 
212
+ #: admin/class-admin-subscription.php:361
213
  msgid "Billing amount each cycle:"
214
  msgstr ""
215
 
216
+ #: admin/class-admin-subscription.php:369
217
  msgid "Expires In:"
218
  msgstr ""
219
 
220
+ #: admin/class-admin-subscription.php:388
221
+ #: admin/class-admin-subscription.php:669
222
+ msgid "Number of featured item"
223
+ msgstr ""
224
+
225
+ #: admin/class-admin-subscription.php:392
226
+ msgid "How many items a user can set as featured, including all post types"
227
+ msgstr ""
228
+
229
+ #: admin/class-admin-subscription.php:396
230
+ msgid "Remove featured item on subscription expiry"
231
+ msgstr ""
232
+
233
+ #: admin/class-admin-subscription.php:400
234
+ msgid "The featured item will be removed if the subscription expires"
235
+ msgstr ""
236
+
237
+ #: admin/class-admin-subscription.php:435 admin/form.php:227
238
  #: includes/free/form-element.php:57
239
  msgid "Post Expiration"
240
  msgstr ""
241
 
242
+ #: admin/class-admin-subscription.php:440 includes/free/form-element.php:61
243
  msgid "Enable Post Expiration"
244
  msgstr ""
245
 
246
+ #: admin/class-admin-subscription.php:452
247
+ #: admin/class-admin-subscription.php:724 includes/free/form-element.php:67
248
  msgid "Post Expiration Time"
249
  msgstr ""
250
 
251
+ #: admin/class-admin-subscription.php:469 admin/html/form-settings-post.php:56
252
  #: admin/post-forms-list-table.php:313
253
  msgid "Post Status"
254
  msgstr ""
255
 
256
+ #: admin/class-admin-subscription.php:482 includes/free/form-element.php:118
257
  msgid "Status of post after post expiration time is over "
258
  msgstr ""
259
 
260
+ #: admin/class-admin-subscription.php:487
261
  msgid "Expiration Mail"
262
  msgstr ""
263
 
264
+ #: admin/class-admin-subscription.php:492
265
  msgid "Send Expiration Email to Post Author"
266
  msgstr ""
267
 
268
+ #: admin/class-admin-subscription.php:496
269
  msgid "Send Mail to Author After Exceeding Post Expiration Time"
270
  msgstr ""
271
 
272
+ #: admin/class-admin-subscription.php:501
273
  msgid "Expiration Message"
274
  msgstr ""
275
 
276
+ #: admin/class-admin-subscription.php:504 includes/free/form-element.php:137
277
  msgid "You may use: {post_author} {post_url} {blogname} {post_title} {post_status}"
278
  msgstr ""
279
 
280
+ #: admin/class-admin-subscription.php:565
281
  msgid "Day(s)"
282
  msgstr ""
283
 
284
+ #: admin/class-admin-subscription.php:566
285
  msgid "Week(s)"
286
  msgstr ""
287
 
288
+ #: admin/class-admin-subscription.php:567
289
  msgid "Month(s)"
290
  msgstr ""
291
 
292
+ #: admin/class-admin-subscription.php:568
293
  msgid "Year(s)"
294
  msgstr ""
295
 
296
+ #: admin/class-admin-subscription.php:610
297
  msgid "WPUF Subscription Information"
298
  msgstr ""
299
 
300
+ #: admin/class-admin-subscription.php:622
301
  msgid "For each %1$s %2$s"
302
  msgstr ""
303
 
304
+ #: admin/class-admin-subscription.php:623 class/frontend-account.php:269
305
  #. translators: %s: number of installments
306
  msgid ", for %s installments"
307
  msgstr ""
308
 
309
+ #: admin/class-admin-subscription.php:634
310
  msgid "Subcription Name"
311
  msgstr ""
312
 
313
+ #: admin/class-admin-subscription.php:644
314
  msgid "Billing Info"
315
  msgstr ""
316
 
317
+ #: admin/class-admin-subscription.php:658
318
  msgid "This user is using recurring subscription pack"
319
  msgstr ""
320
 
321
+ #: admin/class-admin-subscription.php:664
322
  msgid "Remaining Posting Count"
323
  msgstr ""
324
 
325
+ #: admin/class-admin-subscription.php:691
326
  msgid "Subscription Expiration Info"
327
  msgstr ""
328
 
329
+ #: admin/class-admin-subscription.php:700
330
+ #: includes/class-user-subscription.php:361
331
+ #: templates/dashboard/subscription.php:49
332
  msgid "Expire date:"
333
  msgstr ""
334
 
335
+ #: admin/class-admin-subscription.php:713
336
  msgid "Post Expiration Enabled"
337
  msgstr ""
338
 
339
+ #: admin/class-admin-subscription.php:750
340
  msgid "Allowed Taxonomy Terms"
341
  msgstr ""
342
 
343
+ #: admin/class-admin-subscription.php:820
344
  msgid "Assign Package"
345
  msgstr ""
346
 
347
+ #: admin/class-admin-subscription.php:821
348
  #: admin/form-builder/class-wpuf-admin-form-builder.php:284
349
+ #: class/payment.php:225 class/subscription.php:836
350
  #: includes/class-list-table-subscribers.php:138 lib/appsero/Insights.php:764
351
+ #: templates/dashboard/subscription.php:67
352
  msgid "Cancel"
353
  msgstr ""
354
 
355
+ #: admin/class-admin-subscription.php:827
356
  msgid "Select Package:"
357
  msgstr ""
358
 
359
+ #: admin/class-admin-subscription.php:830 admin/settings-options.php:580
360
  #: wpuf-functions.php:210 wpuf-functions.php:1808 wpuf-functions.php:2056
361
  msgid "&mdash; Select &mdash;"
362
  msgstr ""
363
 
364
+ #: admin/class-admin-subscription.php:834
365
  msgid "Only non-recurring pack can be assigned"
366
  msgstr ""
367
 
368
+ #: admin/class-admin-subscription.php:845
369
  msgid "Delete Package"
370
  msgstr ""
371
 
372
+ #: admin/class-admin-subscription.php:899
373
  msgid "Learn more about <a href=\"%s\" target=\"_blank\">Subscription</a>"
374
  msgstr ""
375
 
588
 
589
  #: admin/form-builder/class-wpuf-admin-form-builder-ajax.php:35
590
  #: admin/form-builder/class-wpuf-admin-form-builder-ajax.php:82
591
+ #: admin/promotion.php:187 admin/promotion.php:191 admin/promotion.php:253
592
+ #: admin/promotion.php:257
593
  msgid "Unauthorized operation"
594
  msgstr ""
595
 
610
  msgstr ""
611
 
612
  #: admin/form-builder/class-wpuf-admin-form-builder.php:281
613
+ #: admin/posting.php:73 class/asset-loader.php:56 wpuf.php:740
614
  msgid "Yes, delete it"
615
  msgstr ""
616
 
617
  #: admin/form-builder/class-wpuf-admin-form-builder.php:282
618
+ #: admin/posting.php:74 class/asset-loader.php:57 wpuf.php:741
619
  msgid "No, cancel it"
620
  msgstr ""
621
 
774
  msgstr ""
775
 
776
  #: admin/form.php:71 admin/form.php:109 admin/installer.php:86
777
+ #: admin/post-forms-list-table.php:406 class/subscription.php:435
778
  #: includes/free/admin/shortcode-button.php:87 includes/free/edit-user.php:104
 
779
  msgid "Edit"
780
  msgstr ""
781
 
1437
  msgstr ""
1438
 
1439
  #: admin/html/whats-new.php:9
1440
+ msgid "Featured item for subscriber"
1441
  msgstr ""
1442
 
1443
  #: admin/html/whats-new.php:13
1444
+ msgid "Warning added for unsaved form data on frontend"
1445
  msgstr ""
1446
 
1447
  #: admin/html/whats-new.php:17
1448
+ msgid "Settings page search implemented"
1449
  msgstr ""
1450
 
1451
  #: admin/html/whats-new.php:21
1452
+ msgid "Editor added for registration form email template"
1453
+ msgstr ""
1454
+
1455
+ #: admin/html/whats-new.php:25
1456
+ msgid "Fallback pay per post not working with when draft enabled"
1457
+ msgstr ""
1458
+
1459
+ #: admin/html/whats-new.php:29
1460
+ msgid "User Dashboard responsive issues fixed"
1461
+ msgstr ""
1462
+
1463
+ #: admin/html/whats-new.php:33
1464
+ msgid "Showing wrong license expire message handled"
1465
+ msgstr ""
1466
+
1467
+ #: admin/html/whats-new.php:37
1468
+ msgid "Remove expire cron handled for once daily"
1469
+ msgstr ""
1470
+
1471
+ #: admin/html/whats-new.php:41
1472
+ msgid "Billing address validation handled"
1473
+ msgstr ""
1474
+
1475
+ #: admin/html/whats-new.php:52
1476
+ msgid "reCaptcha issue with other plugin handled"
1477
+ msgstr ""
1478
+
1479
+ #: admin/html/whats-new.php:56
1480
+ msgid "Multiple post type for wpuf dashboard not working fixed"
1481
+ msgstr ""
1482
+
1483
+ #: admin/html/whats-new.php:60
1484
+ msgid "Billing address ajax request issue handled"
1485
+ msgstr ""
1486
+
1487
+ #: admin/html/whats-new.php:64
1488
  msgid "Halloween promotion notice added"
1489
  msgstr ""
1490
 
1491
+ #: admin/html/whats-new.php:75
1492
  msgid "Content restriction for minimum, maximum value enhanced"
1493
  msgstr ""
1494
 
1495
+ #: admin/html/whats-new.php:79
1496
  msgid "New option for redirection after pay per post payment in form setting"
1497
  msgstr ""
1498
 
1499
+ #: admin/html/whats-new.php:83
1500
  msgid "Controller added for various email notification"
1501
  msgstr ""
1502
 
1503
+ #: admin/html/whats-new.php:87
1504
  msgid "Placeholder added for unauth message option"
1505
  msgstr ""
1506
 
1507
+ #: admin/html/whats-new.php:91
1508
  msgid "Subscription Post expiration option change to input field"
1509
  msgstr ""
1510
 
1511
+ #: admin/html/whats-new.php:95
1512
  msgid "Content restriction message translatable"
1513
  msgstr ""
1514
 
1515
+ #: admin/html/whats-new.php:99
1516
  msgid "ACF integration inconsistency handled"
1517
  msgstr ""
1518
 
1519
+ #: admin/html/whats-new.php:103
1520
  msgid "Enable payment checkbox handled for child option"
1521
  msgstr ""
1522
 
1523
+ #: admin/html/whats-new.php:107
1524
  msgid "Broken asset link handled for custom field popup"
1525
  msgstr ""
1526
 
1527
+ #: admin/html/whats-new.php:111
1528
  msgid "Rollback inconsistency for CPT handled"
1529
  msgstr ""
1530
 
1531
+ #: admin/html/whats-new.php:115
1532
  msgid "Login form loaded after resetting password"
1533
  msgstr ""
1534
 
1535
+ #: admin/html/whats-new.php:119
1536
  msgid "Billing address inconsistency handled"
1537
  msgstr ""
1538
 
1539
+ #: admin/html/whats-new.php:123
1540
  msgid "Form duplication on creation handled"
1541
  msgstr ""
1542
 
1543
+ #: admin/html/whats-new.php:127
1544
  msgid "Field Dragging inconsistency fixed"
1545
  msgstr ""
1546
 
1547
+ #: admin/html/whats-new.php:138
1548
  msgid "Google Map field enhanced along with acf google map"
1549
  msgstr ""
1550
 
1551
+ #: admin/html/whats-new.php:142
1552
  msgid "Filter added for dashboard account menu"
1553
  msgstr ""
1554
 
1555
+ #: admin/html/whats-new.php:146
1556
  msgid "Fallback Pay Per Post inconsistency handled"
1557
  msgstr ""
1558
 
1559
+ #: admin/html/whats-new.php:150
1560
  msgid "Google map search field not showing"
1561
  msgstr ""
1562
 
1563
+ #: admin/html/whats-new.php:154
1564
  msgid "Form preview page inconsistency with builder"
1565
  msgstr ""
1566
 
1567
+ #: admin/html/whats-new.php:158
1568
  msgid "Category not showing as hierarchy"
1569
  msgstr ""
1570
 
1571
+ #: admin/html/whats-new.php:162
1572
  msgid "TOC field randering issue with registration form"
1573
  msgstr ""
1574
 
1575
+ #: admin/html/whats-new.php:166
1576
  msgid "Custom plupload filter inconsistency with file upload handled"
1577
  msgstr ""
1578
 
1579
+ #: admin/html/whats-new.php:170
1580
  msgid "Guest Pay Per Post inconsistency handled"
1581
  msgstr ""
1582
 
1583
+ #: admin/html/whats-new.php:174
1584
  msgid "Responsive and font issue handled"
1585
  msgstr ""
1586
 
1587
+ #: admin/html/whats-new.php:185
1588
  msgid "Preview page added for post form and registration form"
1589
  msgstr ""
1590
 
1591
+ #: admin/html/whats-new.php:189
1592
  msgid "Post types menu on account page added"
1593
  msgstr ""
1594
 
1595
+ #: admin/html/whats-new.php:193
1596
  msgid "Dashboard shortcode attributes enhanced"
1597
  msgstr ""
1598
 
1599
+ #: admin/html/whats-new.php:197
1600
  msgid "Account page post type list new design"
1601
  msgstr ""
1602
 
1603
+ #: admin/html/whats-new.php:201
1604
  msgid "Payment page restricted from direct unauthenticated access"
1605
  msgstr ""
1606
 
1607
+ #: admin/html/whats-new.php:205
1608
  msgid "Timepicker conflict with dokan handled"
1609
  msgstr ""
1610
 
1611
+ #: admin/html/whats-new.php:209
1612
  msgid "Trial inconsistency with paypal fixed"
1613
  msgstr ""
1614
 
1615
+ #: admin/html/whats-new.php:213
1616
  msgid "Subscription does not cancel with paypal due to profile missing id"
1617
  msgstr ""
1618
 
1619
+ #: admin/html/whats-new.php:217
1620
  msgid "Subscription email notification inconsistency fixed"
1621
  msgstr ""
1622
 
1623
+ #: admin/html/whats-new.php:221
1624
  msgid "Various issues on payment page for non-logged in user handled"
1625
  msgstr ""
1626
 
1627
+ #: admin/html/whats-new.php:225
1628
  msgid "Column inner field cloning inconsistency fixed"
1629
  msgstr ""
1630
 
1631
+ #: admin/html/whats-new.php:229
1632
  msgid "Popup z-index changed due to other plugin z-index"
1633
  msgstr ""
1634
 
1635
+ #: admin/html/whats-new.php:241
1636
  msgid "Added Mauritian Rupee for currency"
1637
  msgstr ""
1638
 
1639
+ #: admin/html/whats-new.php:245
1640
  msgid "Added eid promotional offer notice"
1641
  msgstr ""
1642
 
1643
+ #: admin/html/whats-new.php:249
1644
  msgid "Multiple google map validation for same form"
1645
  msgstr ""
1646
 
1647
+ #: admin/html/whats-new.php:253
1648
  msgid "Various issues on verification, autologin payments & address field"
1649
  msgstr ""
1650
 
1651
+ #: admin/html/whats-new.php:257
1652
  msgid "Docs update for file & attachments feature which is pro only"
1653
  msgstr ""
1654
 
1655
+ #: admin/html/whats-new.php:268
1656
  msgid "Overflow footer on form builder page"
1657
  msgstr ""
1658
 
1659
+ #: admin/html/whats-new.php:272
1660
  msgid "WordPress 5.7 compatibility"
1661
  msgstr ""
1662
 
1663
+ #: admin/html/whats-new.php:276
1664
  msgid "Limited time promotion for weDevs birthday"
1665
  msgstr ""
1666
 
1667
+ #: admin/html/whats-new.php:287
1668
  msgid "Meta key will not change if label update"
1669
  msgstr ""
1670
 
1671
+ #: admin/html/whats-new.php:291
1672
  msgid "Login redirect empty previous url"
1673
  msgstr ""
1674
 
1675
+ #: admin/html/whats-new.php:295
1676
  msgid "Email doesnt set as username"
1677
  msgstr ""
1678
 
1679
+ #: admin/html/whats-new.php:299
1680
  msgid "Post redirection to payment doesn't work"
1681
  msgstr ""
1682
 
1683
+ #: admin/html/whats-new.php:303
1684
  msgid "Address field not working when used with conditional logic"
1685
  msgstr ""
1686
 
1687
+ #: admin/html/whats-new.php:307
1688
  msgid "Ajax type category child of not working"
1689
  msgstr ""
1690
 
1691
+ #: admin/html/whats-new.php:311
1692
  msgid "Non recurring subscription did not work"
1693
  msgstr ""
1694
 
1695
+ #: admin/html/whats-new.php:322
1696
  msgid "Menu position has chenged due to dokan has same menu position"
1697
  msgstr ""
1698
 
1699
+ #: admin/html/whats-new.php:326
1700
  msgid "Drag and drop not working properly for new field"
1701
  msgstr ""
1702
 
1703
+ #: admin/html/whats-new.php:337
1704
  msgid "QR and math captcha added to pro feature list"
1705
  msgstr ""
1706
 
1707
+ #: admin/html/whats-new.php:341
1708
  msgid "Tooltip for category navigate"
1709
  msgstr ""
1710
 
1711
+ #: admin/html/whats-new.php:345
1712
  msgid "Understandable guest payment notice"
1713
  msgstr ""
1714
 
1715
+ #: admin/html/whats-new.php:349
1716
  msgid "Paypal non recurring pack id does not set"
1717
  msgstr ""
1718
 
1719
+ #: admin/html/whats-new.php:360
1720
  msgid "Once trial subscription is used, it couldn't reset"
1721
  msgstr ""
1722
 
1723
+ #: admin/html/whats-new.php:364
1724
  msgid "Subscription cancel doesn't work"
1725
  msgstr ""
1726
 
1727
+ #: admin/html/whats-new.php:368
1728
  msgid "The tax rate was not calculated with the total amount"
1729
  msgstr ""
1730
 
1731
+ #: admin/html/whats-new.php:372
1732
  msgid "The width of the column field was breaking"
1733
  msgstr ""
1734
 
1735
+ #: admin/html/whats-new.php:376
1736
  msgid "Paypal recurring payment"
1737
  msgstr ""
1738
 
1739
+ #: admin/html/whats-new.php:387
1740
  msgid "Updated codebase to fix timezone mismatch"
1741
  msgstr ""
1742
 
1743
+ #: admin/html/whats-new.php:398
1744
  msgid "Custom html content field's width"
1745
  msgstr ""
1746
 
1747
+ #: admin/html/whats-new.php:402
1748
  msgid "All states of New Zealand are added"
1749
  msgstr ""
1750
 
1751
+ #: admin/html/whats-new.php:413
1752
  msgid "Get appropriate user id when role based conditions are present"
1753
  msgstr ""
1754
 
1755
+ #: admin/html/whats-new.php:417
1756
  msgid "Show Invalid subscription message if wrong pack id passed"
1757
  msgstr ""
1758
 
1759
+ #: admin/html/whats-new.php:421
1760
  msgid "URL field new window not working"
1761
  msgstr ""
1762
 
1763
+ #: admin/html/whats-new.php:425
1764
  msgid "Option label not working when & use"
1765
  msgstr ""
1766
 
1767
+ #: admin/html/whats-new.php:429
1768
  msgid "Ajax type category not showing on edit"
1769
  msgstr ""
1770
 
1771
+ #: admin/html/whats-new.php:433
1772
  msgid "Multiple file image can't select"
1773
  msgstr ""
1774
 
1775
+ #: admin/html/whats-new.php:437
1776
  msgid "Subscription pack PayPal Checkout gets \"Error: Access Denied\""
1777
  msgstr ""
1778
 
1779
+ #: admin/html/whats-new.php:441
1780
  msgid "Conflict image field with acf image field"
1781
  msgstr ""
1782
 
1783
+ #: admin/html/whats-new.php:445
1784
  msgid "Missing Auckland State for New Zealand country"
1785
  msgstr ""
1786
 
1787
+ #: admin/html/whats-new.php:449
1788
  msgid "Added support for WooCommerce product category value replacemen"
1789
  msgstr ""
1790
 
1791
+ #: admin/html/whats-new.php:459
1792
  msgid "Add character restriction feature"
1793
  msgstr ""
1794
 
1795
+ #: admin/html/whats-new.php:463
1796
  msgid "Make sure post author edit link works only in frontend"
1797
  msgstr ""
1798
 
1799
+ #: admin/html/whats-new.php:467
1800
  msgid "Inconsistency in lost password reset email message"
1801
  msgstr ""
1802
 
1803
+ #: admin/html/whats-new.php:471
1804
  msgid "Saving custom taxonomy terms when input type is text"
1805
  msgstr ""
1806
 
1807
+ #: admin/html/whats-new.php:475
1808
  msgid "Taxonomy field JS error in builder"
1809
  msgstr ""
1810
 
1811
+ #: admin/html/whats-new.php:479
1812
  msgid "Showing WPUF edit link for WP default roles"
1813
  msgstr ""
1814
 
1815
+ #: admin/html/whats-new.php:483
1816
  msgid "Upload button unresponsive issue in iOS"
1817
  msgstr ""
1818
 
1819
+ #: admin/html/whats-new.php:493
1820
  msgid "Add post edit link for post authors in single or archive pages"
1821
  msgstr ""
1822
 
1823
+ #: admin/html/whats-new.php:497
1824
  msgid "Enhance post delete message"
1825
  msgstr ""
1826
 
1827
+ #: admin/html/whats-new.php:501
1828
  msgid "Refactor control buttons visibility in form builder"
1829
  msgstr ""
1830
 
1831
+ #: admin/html/whats-new.php:505
1832
  msgid "Add missing colons after field label"
1833
  msgstr ""
1834
 
1835
+ #: admin/html/whats-new.php:509
1836
  msgid "Post edit map capability condition"
1837
  msgstr ""
1838
 
1839
+ #: admin/html/whats-new.php:513
1840
  msgid "Role based permission for accessing a post form"
1841
  msgstr ""
1842
 
1843
+ #: admin/html/whats-new.php:517
1844
  msgid "Section-break field alignment"
1845
  msgstr ""
1846
 
1847
+ #: admin/html/whats-new.php:521
1848
  msgid "Pay per post doesn't work if subscription pack is activated"
1849
  msgstr ""
1850
 
1851
+ #: admin/html/whats-new.php:525
1852
  msgid "Mime type for uploading JSON files"
1853
  msgstr ""
1854
 
1855
+ #: admin/html/whats-new.php:529
1856
  msgid "File upload with same file name"
1857
  msgstr ""
1858
 
1859
+ #: admin/html/whats-new.php:533
1860
  msgid "Post preview missing fields"
1861
  msgstr ""
1862
 
1863
+ #: admin/html/whats-new.php:537
1864
  msgid "Illigal variable declartion"
1865
  msgstr ""
1866
 
1867
+ #: admin/html/whats-new.php:541
1868
  msgid "Featured image updating issue"
1869
  msgstr ""
1870
 
1871
+ #: admin/html/whats-new.php:545
1872
  msgid "Conflict with Phlox theme"
1873
  msgstr ""
1874
 
1875
+ #: admin/html/whats-new.php:549
1876
  msgid "Textarea custom field data sanitization"
1877
  msgstr ""
1878
 
1879
+ #: admin/html/whats-new.php:553
1880
  msgid "exclude_type warning in wpuf_category_checklist"
1881
  msgstr ""
1882
 
1883
+ #: admin/html/whats-new.php:557
1884
  msgid "Category field not showing all child categories for selection type child of"
1885
  msgstr ""
1886
 
1887
+ #: admin/html/whats-new.php:561
1888
  msgid "Conflict between image and file upload custom fields"
1889
  msgstr ""
1890
 
1891
+ #: admin/html/whats-new.php:565
1892
  msgid "Login url when login page is not set"
1893
  msgstr ""
1894
 
1895
+ #: admin/html/whats-new.php:575
1896
  msgid ""
1897
  "Use common names for Ivory Coast, North Korea and Sourth Korea instead of "
1898
  "their official names"
1899
  msgstr ""
1900
 
1901
+ #: admin/html/whats-new.php:579
1902
  msgid "Fix condition to use default avatar"
1903
  msgstr ""
1904
 
1905
+ #: admin/html/whats-new.php:583
1906
  msgid "Make Email and URL fields clickable"
1907
  msgstr ""
1908
 
1909
+ #: admin/html/whats-new.php:587
1910
  msgid "Fix redirect after user login"
1911
  msgstr ""
1912
 
1913
+ #: admin/html/whats-new.php:591
1914
  msgid "Sanitize textarea field data"
1915
  msgstr ""
1916
 
1917
+ #: admin/html/whats-new.php:595
1918
  msgid ""
1919
  "Fix missing colon to email, URL, text and textarea labels when renders "
1920
  "their data"
1921
  msgstr ""
1922
 
1923
+ #: admin/html/whats-new.php:599
1924
  msgid "Prevent showing empty labels for fields that have render_field_data method"
1925
  msgstr ""
1926
 
1927
+ #: admin/html/whats-new.php:609
1928
  msgid "Add Namibian Dollar in currency list"
1929
  msgstr ""
1930
 
1931
+ #: admin/html/whats-new.php:613
1932
  msgid "Add sync values option for option data fields"
1933
  msgstr ""
1934
 
1935
+ #: admin/html/whats-new.php:617
1936
  msgid "Allow uploading image that having filesize meets php ini settings"
1937
  msgstr ""
1938
 
1939
+ #: admin/html/whats-new.php:621
1940
  msgid "Limit the selection of one image at a time"
1941
  msgstr ""
1942
 
1943
+ #: admin/html/whats-new.php:625
1944
  msgid "Use file name and size to generate hash to prevent duplicant image upload"
1945
  msgstr ""
1946
 
1947
+ #: admin/html/whats-new.php:629
1948
  msgid "Sanitize text and textarea field data"
1949
  msgstr ""
1950
 
1951
+ #: admin/html/whats-new.php:633
1952
  msgid ""
1953
  "Show label instead of values for radio, checkbox, dropdown and multiselect "
1954
  "data"
1955
  msgstr ""
1956
 
1957
+ #: admin/html/whats-new.php:637
1958
  msgid "Saving custom taxonomies for type text input"
1959
  msgstr ""
1960
 
1961
+ #: admin/html/whats-new.php:641
1962
  msgid "Admin settings link for recaptcha helper text"
1963
  msgstr ""
1964
 
1965
+ #: admin/html/whats-new.php:645
1966
  msgid "Undefined name property for Custom HTML fields"
1967
  msgstr ""
1968
 
1969
+ #: admin/html/whats-new.php:649
1970
  msgid "Delete attachment process"
1971
  msgstr ""
1972
 
1973
+ #: admin/html/whats-new.php:653
1974
  msgid "Missing billing address in invoice PDF"
1975
  msgstr ""
1976
 
1977
+ #: admin/html/whats-new.php:657
1978
  msgid "Showing country field value in frontend post content"
1979
  msgstr ""
1980
 
1981
+ #: admin/html/whats-new.php:661
1982
  msgid "Avatar size display not complying with admin settings size"
1983
  msgstr ""
1984
 
1985
+ #: admin/html/whats-new.php:665
1986
  msgid "Display default avatars on admin settings discussion page"
1987
  msgstr ""
1988
 
1989
+ #: admin/html/whats-new.php:669
1990
  msgid "Redirect to subscription page at registration"
1991
  msgstr ""
1992
 
1993
+ #: admin/html/whats-new.php:673
1994
  msgid "Error notice regarding registration page redirect"
1995
  msgstr ""
1996
 
1997
+ #: admin/html/whats-new.php:677
1998
  msgid "Escaping html in registration errors"
1999
  msgstr ""
2000
 
2001
+ #: admin/html/whats-new.php:681
2002
  msgid "Default login redirect link"
2003
  msgstr ""
2004
 
2005
+ #: admin/html/whats-new.php:685
2006
  msgid "Implementing default WP login page override option"
2007
  msgstr ""
2008
 
2009
+ #: admin/html/whats-new.php:689
2010
  msgid "Transparent background of autosuggestion dropdown"
2011
  msgstr ""
2012
 
2013
+ #: admin/html/whats-new.php:699
2014
  msgid "Import forms system"
2015
  msgstr ""
2016
 
2017
+ #: admin/html/whats-new.php:703
2018
  msgid "Password reset system"
2019
  msgstr ""
2020
 
2021
+ #: admin/html/whats-new.php:707
2022
  msgid "Updated url validation regex to support modern tlds"
2023
  msgstr ""
2024
 
2025
+ #: admin/html/whats-new.php:711
2026
  msgid "Export WPUF forms individually from admin tools page"
2027
  msgstr ""
2028
 
2029
+ #: admin/html/whats-new.php:715
2030
  msgid "Subscription cycle label translation issue"
2031
  msgstr ""
2032
 
2033
+ #: admin/html/whats-new.php:719
2034
  msgid "ACF integration for checkbox fields"
2035
  msgstr ""
2036
 
2037
+ #: admin/html/whats-new.php:723
2038
  msgid "Illegal string offset warning while updating settings"
2039
  msgstr ""
2040
 
2041
+ #: admin/html/whats-new.php:727
2042
  msgid "Conditional logic for Section Break field"
2043
  msgstr ""
2044
 
2045
+ #: admin/html/whats-new.php:731
2046
  msgid "Subscriptions cannot be deleted from backend"
2047
  msgstr ""
2048
 
2049
+ #: admin/html/whats-new.php:735
2050
  msgid "A regression regarding saving checkbox data"
2051
  msgstr ""
2052
 
2053
+ #: admin/html/whats-new.php:739
2054
  msgid "Default value of multi-select fields is not showing"
2055
  msgstr ""
2056
 
2057
+ #: admin/html/whats-new.php:749
2058
  msgid "Hide post edit option when subscription is expired"
2059
  msgstr ""
2060
 
2061
+ #: admin/html/whats-new.php:751
2062
  msgid "Hide post edit option from users whose subscription pack is expired."
2063
  msgstr ""
2064
 
2065
+ #: admin/html/whats-new.php:754
2066
  msgid "Check files to prevent duplicity in media upload"
2067
  msgstr ""
2068
 
2069
+ #: admin/html/whats-new.php:756
2070
  msgid ""
2071
  "A simple measure has been taken to prevent maliciously flooding the site by "
2072
  "uploading same file multiple times. Though this won't work with already "
2073
  "uploaded medias."
2074
  msgstr ""
2075
 
2076
+ #: admin/html/whats-new.php:759
2077
  msgid "Refactor address fields in Account section"
2078
  msgstr ""
2079
 
2080
+ #: admin/html/whats-new.php:761
2081
  msgid "Address edit section from Account section has been rewritten to improve UX."
2082
  msgstr ""
2083
 
2084
+ #: admin/html/whats-new.php:764
2085
  msgid "Update Paypal payment gateway"
2086
  msgstr ""
2087
 
2088
+ #: admin/html/whats-new.php:766
2089
  msgid "Paypal payment gateway has seen some improvements."
2090
  msgstr ""
2091
 
2092
+ #: admin/html/whats-new.php:769
2093
  msgid "Default Category selection improvements"
2094
  msgstr ""
2095
 
2096
+ #: admin/html/whats-new.php:771
2097
  msgid ""
2098
  "An intuitive way of selecting default category of a selected post type has "
2099
  "been introduced."
2100
  msgstr ""
2101
 
2102
+ #: admin/html/whats-new.php:774
2103
  msgid "Compatibility issue with ACF date time field"
2104
  msgstr ""
2105
 
2106
+ #: admin/html/whats-new.php:776
2107
  msgid "A Compatibility issue with ACF date time field has been addressed."
2108
  msgstr ""
2109
 
2110
+ #: admin/html/whats-new.php:779
2111
  msgid "Media title, caption & description not saving"
2112
  msgstr ""
2113
 
2114
+ #: admin/html/whats-new.php:781
2115
  msgid ""
2116
  "Media title, caption & description were not saving from frontend. They will "
2117
  "now."
2118
  msgstr ""
2119
 
2120
+ #: admin/html/whats-new.php:784
2121
  msgid ""
2122
  "The Events Calendar venue and organizer fields issue in WPUF Custom Fields "
2123
  "metabox"
2124
  msgstr ""
2125
 
2126
+ #: admin/html/whats-new.php:786
2127
  msgid ""
2128
  "A workaround has been introduced to save The Events Calendar Venue and "
2129
  "Organizer fields properly from WPUF Custom Fields metabox."
2130
  msgstr ""
2131
 
2132
+ #: admin/html/whats-new.php:789
2133
  msgid "Checkbox data not saving from WPUF Custom Fields metabox"
2134
  msgstr ""
2135
 
2136
+ #: admin/html/whats-new.php:791
2137
  msgid ""
2138
  "Checkboxe data from WPUF Custom Fields metabox were not saving. It has been "
2139
  "fixed."
2140
  msgstr ""
2141
 
2142
+ #: admin/html/whats-new.php:794
2143
  msgid "Multi-column Repeater field data saving issue"
2144
  msgstr ""
2145
 
2146
+ #: admin/html/whats-new.php:796
2147
  msgid ""
2148
  "Multi-column Repeater field data from a form was not saving. It has been "
2149
  "fixed."
2150
  msgstr ""
2151
 
2152
+ #: admin/html/whats-new.php:799
2153
  msgid "Multistep form conflict with Elementor"
2154
  msgstr ""
2155
 
2156
+ #: admin/html/whats-new.php:801
2157
  msgid "Multistep form had a conflict with Elementor. It has been fixed."
2158
  msgstr ""
2159
 
2160
+ #: admin/html/whats-new.php:804
2161
  msgid "Multiple images showing issue in frontend"
2162
  msgstr ""
2163
 
2164
+ #: admin/html/whats-new.php:806
2165
  msgid "Multiple images in a post were not showing in frontend. Now they will."
2166
  msgstr ""
2167
 
2168
+ #: admin/html/whats-new.php:815
2169
  msgid "Nonce not verify on login"
2170
  msgstr ""
2171
 
2172
+ #: admin/html/whats-new.php:817
2173
  msgid "Return of function wp_verify_nonce() was ignored."
2174
  msgstr ""
2175
 
2176
+ #: admin/html/whats-new.php:826
2177
  msgid "Option to set which tab shows as active on the account page"
2178
  msgstr ""
2179
 
2180
+ #: admin/html/whats-new.php:828
2181
  msgid ""
2182
  "Option to set which tab shows as active on the account page. To configure "
2183
  "this setting navigate to wp-admin->User Frontend->Settings->My "
2184
  "Account->Active Tab "
2185
  msgstr ""
2186
 
2187
+ #: admin/html/whats-new.php:831
2188
  msgid "Unlock option was unavailable after the post being locked"
2189
  msgstr ""
2190
 
2191
+ #: admin/html/whats-new.php:833
2192
  msgid "Unlock option was unavailable after the post being locked."
2193
  msgstr ""
2194
 
2195
+ #: admin/html/whats-new.php:836
2196
  msgid "Gutenberg block of WPUF didn't work on bedrock installation"
2197
  msgstr ""
2198
 
2199
+ #: admin/html/whats-new.php:838
2200
  msgid "Gutenberg block of WPUF didn't work on bedrock installation."
2201
  msgstr ""
2202
 
2203
+ #: admin/html/whats-new.php:841
2204
  msgid "Sending admin payment received email twice"
2205
  msgstr ""
2206
 
2207
+ #: admin/html/whats-new.php:843
2208
  msgid ""
2209
  "After processing payment admin & user was receiving payment received email "
2210
  "twice."
2211
  msgstr ""
2212
 
2213
+ #: admin/html/whats-new.php:846
2214
  msgid ""
2215
  "Add shortcode support to display post information in the Post Expiration "
2216
  "Message"
2217
  msgstr ""
2218
 
2219
+ #: admin/html/whats-new.php:848
2220
  msgid ""
2221
  "Add shortcode support to display post information in the Post Expiration "
2222
  "Message. You can use: <strong>{post_author} {post_url} {blogname} "
2223
  "{post_title} {post_status}</strong>"
2224
  msgstr ""
2225
 
2226
+ #: admin/html/whats-new.php:851
2227
  msgid "Add optin on the setup wizard"
2228
  msgstr ""
2229
 
2230
+ #: admin/html/whats-new.php:853
2231
  msgid ""
2232
  "Added optin on the setup wizard, admin can choose whether he/she wants to "
2233
  "share server environment details (php, mysql, server, WordPress versions), "
2235
  "name and url, admin name and email address. No sensitive data is tracked"
2236
  msgstr ""
2237
 
2238
+ #: admin/html/whats-new.php:862
2239
  msgid "Post Owner problem"
2240
  msgstr ""
2241
 
2242
+ #: admin/html/whats-new.php:864
2243
  msgid ""
2244
  "Posts were not assigned to the selected default post owner, this issue has "
2245
  "been fixed."
2246
  msgstr ""
2247
 
2248
+ #: admin/html/whats-new.php:867
2249
  msgid "Google reCaptcha was not working"
2250
  msgstr ""
2251
 
2252
+ #: admin/html/whats-new.php:869
2253
  msgid ""
2254
  "Google reCaptcha was not working, users could submit the form without "
2255
  "reCaptcha validation."
2256
  msgstr ""
2257
 
2258
+ #: admin/html/whats-new.php:878
2259
  msgid "Added column field"
2260
  msgstr ""
2261
 
2262
+ #: admin/html/whats-new.php:883
2263
  msgid "Unable to render the events on the front-end dashboard"
2264
  msgstr ""
2265
 
2266
+ #: admin/html/whats-new.php:885
2267
  msgid ""
2268
  "On the frontend dashboard, the submitted events were not showing, you will "
2269
  "get it fixed in this version."
2270
  msgstr ""
2271
 
2272
+ #: admin/html/whats-new.php:888
2273
  msgid "Page order getting 0(zero) after editing from the frontend"
2274
  msgstr ""
2275
 
2276
+ #: admin/html/whats-new.php:890
2277
  msgid ""
2278
  "Page order was not saving while editing a post using WPUF form, it has been "
2279
  "fixed."
2280
  msgstr ""
2281
 
2282
+ #: admin/html/whats-new.php:893
2283
  msgid "Text input field for taxonomies not working"
2284
  msgstr ""
2285
 
2286
+ #: admin/html/whats-new.php:895
2287
  msgid ""
2288
  "When taxonomy field type is set to `Text Input` then a fatal error was "
2289
  "showing on the frontend, no error with taxonomy field in the latest version."
2290
  msgstr ""
2291
 
2292
+ #: admin/html/whats-new.php:898
2293
  msgid ""
2294
  "In radio and checkbox field use conditional logic that value does not save "
2295
  "in database"
2296
  msgstr ""
2297
 
2298
+ #: admin/html/whats-new.php:900
2299
  msgid ""
2300
  "The selected value of radio and checkbox field were not showing while "
2301
  "editing posts from the backend or frontend, you can see the selected value "
2302
  "in this version."
2303
  msgstr ""
2304
 
2305
+ #: admin/html/whats-new.php:903
2306
  msgid "The args param not working with get_avatar filter"
2307
  msgstr ""
2308
 
2309
+ #: admin/html/whats-new.php:905
2310
  msgid "The args parameter did not exist with get_avatar filter, which now exists."
2311
  msgstr ""
2312
 
2313
+ #: admin/html/whats-new.php:908
2314
  msgid "The item in ajax taxonomy field was not selected"
2315
  msgstr ""
2316
 
2317
+ #: admin/html/whats-new.php:910
2318
  msgid ""
2319
  "When the taxonomy field type is set to Ajax, the submitted terms were not "
2320
  "showing in the backend and frontend which have been fixed."
2321
  msgstr ""
2322
 
2323
+ #: admin/html/whats-new.php:919
2324
  msgid "Unable to send new user registration email"
2325
  msgstr ""
2326
 
2327
+ #: admin/html/whats-new.php:921
2328
  msgid ""
2329
  "WP User Frontend default registration form `[wpuf-registration]` was unable "
2330
  "to send the new user registration email."
2331
  msgstr ""
2332
 
2333
+ #: admin/html/whats-new.php:924
2334
  msgid "WPUF forms block compatibility issue with the latest WP version"
2335
  msgstr ""
2336
 
2337
+ #: admin/html/whats-new.php:926
2338
  msgid ""
2339
  "With the latest version of WordPress the gutenberg block of WP User "
2340
  "Frontend were not working. In this version, you will get it fixed."
2341
  msgstr ""
2342
 
2343
+ #: admin/html/whats-new.php:929
2344
  msgid "Page not update where `[wpuf_dashboard]` shortcode exist"
2345
  msgstr ""
2346
 
2347
+ #: admin/html/whats-new.php:931
2348
  msgid ""
2349
  "While using Gutenberg, the page were not being updated with WPUF shortcode "
2350
  "[wpuf dashboard]"
2351
  msgstr ""
2352
 
2353
+ #: admin/html/whats-new.php:934
2354
  msgid "Retain default when determining whether to display the admin bar"
2355
  msgstr ""
2356
 
2357
+ #: admin/html/whats-new.php:936
2358
  msgid ""
2359
  "From the User Frontend Settings, set that Administrator, Editor, Vendor can "
2360
  "see the admin bar. Now, the super admin want, one specific user ( who has "
2364
  "frontend."
2365
  msgstr ""
2366
 
2367
+ #: admin/html/whats-new.php:939
2368
  msgid "Fatal error when use PHP lower version (5.4 or lower)"
2369
  msgstr ""
2370
 
2371
+ #: admin/html/whats-new.php:941
2372
  msgid ""
2373
  "It was unable to install WP User Frontend with PHP 5.4 or lower version. "
2374
  "Here is the error details: <br><br><strong>Fatal error: Can't use method "
2376
  "/wp-user-frontend/class/frontend-form-post.php on line 194</strong>"
2377
  msgstr ""
2378
 
2379
+ #: admin/html/whats-new.php:944
2380
  msgid "Product form was unable to show the single gallery image"
2381
  msgstr ""
2382
 
2383
+ #: admin/html/whats-new.php:946
2384
  msgid ""
2385
  "When user upload single image for product gallery using WPUF WooCommerce "
2386
  "product form, that image were not showing on the frontend."
2387
  msgstr ""
2388
 
2389
+ #: admin/html/whats-new.php:955
2390
  msgid "WooCommerce gallery images not getting saved"
2391
  msgstr ""
2392
 
2393
+ #: admin/html/whats-new.php:957
2394
  msgid ""
2395
  "After releasing version 2.9.3, WooCommerce gallery image field stopped "
2396
  "working. You will get it fixed in this version."
2397
  msgstr ""
2398
 
2399
+ #: admin/html/whats-new.php:966
2400
  msgid "The Events Calendar Integration Form"
2401
  msgstr ""
2402
 
2403
+ #: admin/html/whats-new.php:968
2404
  msgid ""
2405
  "Now admin can allow users to create event from the frontend. Currently WPUF "
2406
  "has a one click pre-build event form that has been integrated with The "
2407
  "Events Calendar plugin"
2408
  msgstr ""
2409
 
2410
+ #: admin/html/whats-new.php:971
2411
  msgid "Post Submission Facility From Account Page"
2412
  msgstr ""
2413
 
2414
+ #: admin/html/whats-new.php:973
2415
  msgid ""
2416
  "On the frontend account page, added a new menu item named <b>Submit "
2417
  "Post</b>. Now admin can allow users to submit post from their default "
2420
  "you can assign any post form that will use to submit posts."
2421
  msgstr ""
2422
 
2423
+ #: admin/html/whats-new.php:976
2424
  msgid "Login/Lost Password Link Under Registration Form"
2425
  msgstr ""
2426
 
2427
+ #: admin/html/whats-new.php:978
2428
  msgid "Added Login/Lost Password link under registration form"
2429
  msgstr ""
2430
 
2431
+ #: admin/html/whats-new.php:987
2432
  msgid "Added drag and drop image ordering on image upload"
2433
  msgstr ""
2434
 
2435
+ #: admin/html/whats-new.php:989
2436
  msgid ""
2437
  "Now frontend users can drag & drop the images/files to change the order "
2438
  "while uploading."
2439
  msgstr ""
2440
 
2441
+ #: admin/html/whats-new.php:992
2442
  msgid "Added reCAPTCHA field in login form"
2443
  msgstr ""
2444
 
2445
+ #: admin/html/whats-new.php:994
2446
  msgid ""
2447
  "Admin has the option to show reCAPTCHA field in login form. Check the "
2448
  "related settings from <strong>User Frontend > Settings > "
2449
  "Login/Registration</strong>"
2450
  msgstr ""
2451
 
2452
+ #: admin/html/whats-new.php:997
2453
  msgid "Added preview option in forms"
2454
  msgstr ""
2455
 
2456
+ #: admin/html/whats-new.php:999
2457
  msgid ""
2458
  "You can see a nice <strong>Preview</strong> button with <strong>Save "
2459
  "Form</strong> button, admin can take a quick look of the form without using "
2460
  "shortcode"
2461
  msgstr ""
2462
 
2463
+ #: admin/html/whats-new.php:1002
2464
  msgid "Fixed hiding “Select Image” button while uploading multiple images."
2465
  msgstr ""
2466
 
2467
+ #: admin/html/whats-new.php:1004
2468
  msgid ""
2469
  "The upload button will not be hidden until the user selects max number of "
2470
  "files "
2471
  msgstr ""
2472
 
2473
+ #: admin/html/whats-new.php:1007
2474
  msgid "Added form limit notice before form submission"
2475
  msgstr ""
2476
 
2477
+ #: admin/html/whats-new.php:1009
2478
  msgid ""
2479
  "Limit notice message was showing after submission, now it is showing when "
2480
  "rendering the form"
2481
  msgstr ""
2482
 
2483
+ #: admin/html/whats-new.php:1012
2484
  msgid "Fixed: default post category not saving"
2485
  msgstr ""
2486
 
2487
+ #: admin/html/whats-new.php:1014
2488
  msgid ""
2489
  "From the form <strong>Settings > Post Settings</strong>, default post "
2490
  "category options were not saving. Now, it's fixed."
2491
  msgstr ""
2492
 
2493
+ #: admin/html/whats-new.php:1017
2494
  msgid ""
2495
  "WPUF dashboard shortcode with form_id attribute was not showing posts "
2496
  "properly"
2497
  msgstr ""
2498
 
2499
+ #: admin/html/whats-new.php:1019
2500
  msgid ""
2501
  "Now you can list posts on the frontend by using <strong>form_id<strong/> "
2502
  "attribute with <strong>[wpuf_dashboard]</strong> shortcode"
2503
  msgstr ""
2504
 
2505
+ #: admin/html/whats-new.php:1028
2506
  msgid "Changed text domain to `wp-user-frontend` from `wpuf` "
2507
  msgstr ""
2508
 
2509
+ #: admin/html/whats-new.php:1030
2510
  msgid ""
2511
  "If you are using other language than English. Please <b>rename</b> your "
2512
  "<i>.po and .mo </i> files to `wp-user-frontend_` from `wpuf_` <br> This "
2513
  "change was made to support translations from translate.wordpress.org"
2514
  msgstr ""
2515
 
2516
+ #: admin/html/whats-new.php:1033
2517
  msgid "Added WP User Frontend Data export and erase functionality."
2518
  msgstr ""
2519
 
2520
+ #: admin/html/whats-new.php:1035
2521
  msgid "Added functionality to export WP User Frontend Data to comply with GDPR."
2522
  msgstr ""
2523
 
2524
+ #: admin/html/whats-new.php:1038
2525
  msgid "Added billing address customizer."
2526
  msgstr ""
2527
 
2528
+ #: admin/html/whats-new.php:1040
2529
  msgid "Added customizer options for billing address in payment page."
2530
  msgstr ""
2531
 
2532
+ #: admin/html/whats-new.php:1043
2533
  msgid "Make the payment page responsive."
2534
  msgstr ""
2535
 
2536
+ #: admin/html/whats-new.php:1045
2537
  msgid "Some css adjustments are made in payment page to make it responsive."
2538
  msgstr ""
2539
 
2540
+ #: admin/html/whats-new.php:1048
2541
  msgid "Fixed image upload issue in Safari."
2542
  msgstr ""
2543
 
2544
+ #: admin/html/whats-new.php:1050
2545
  msgid "Images were not showing after upload in safari, it is fixed now."
2546
  msgstr ""
2547
 
2548
+ #: admin/html/whats-new.php:1053
2549
  msgid "Post update issue after updating or removing post images."
2550
  msgstr ""
2551
 
2552
+ #: admin/html/whats-new.php:1055
2553
  msgid ""
2554
  "Posts cannot be updated after updating or removing post images, it is fixed "
2555
  "now."
2556
  msgstr ""
2557
 
2558
+ #: admin/html/whats-new.php:1064
2559
  msgid "Allow overriding form input styles using theme styling."
2560
  msgstr ""
2561
 
2562
+ #: admin/html/whats-new.php:1066
2563
  msgid "Overriding form input styles using theme style is now possible."
2564
  msgstr ""
2565
 
2566
+ #: admin/html/whats-new.php:1069
2567
  msgid "Fixed Auto Login after registration."
2568
  msgstr ""
2569
 
2570
+ #: admin/html/whats-new.php:1071
2571
  msgid "Auto Login after registration was not working is fixed now."
2572
  msgstr ""
2573
 
2574
+ #: admin/html/whats-new.php:1074
2575
  msgid "Fixed fallback cost calculation"
2576
  msgstr ""
2577
 
2578
+ #: admin/html/whats-new.php:1076
2579
  msgid "Fallback cost calculation was inaccurate for some cases, it is fixed now."
2580
  msgstr ""
2581
 
2582
+ #: admin/html/whats-new.php:1079
2583
  msgid "Removal of subscription from User Profile gets reverted if updated"
2584
  msgstr ""
2585
 
2586
+ #: admin/html/whats-new.php:1081
2587
  msgid "User subscription deletion gets reverted if updated is fixed."
2588
  msgstr ""
2589
 
2590
+ #: admin/html/whats-new.php:1084
2591
  msgid "Show Free pack users in subscribers list."
2592
  msgstr ""
2593
 
2594
+ #: admin/html/whats-new.php:1086
2595
  msgid "Free pack users were not showing in subscribers list, now they will."
2596
  msgstr ""
2597
 
2598
+ #: admin/html/whats-new.php:1095
2599
  msgid "WP User Frontend Guten Block is added"
2600
  msgstr ""
2601
 
2602
+ #: admin/html/whats-new.php:1097
2603
  msgid ""
2604
  "WPUF Form Block is now available to be used within gutenberg editor with "
2605
  "preview of the form. "
2606
  msgstr ""
2607
 
2608
+ #: admin/html/whats-new.php:1100
2609
  msgid "Advanced Custom Fields plugin compatibility"
2610
  msgstr ""
2611
 
2612
+ #: admin/html/whats-new.php:1102
2613
  msgid "Now all your ACF fields can be used within WPUF Post forms. "
2614
  msgstr ""
2615
 
2616
+ #: admin/html/whats-new.php:1105
2617
  msgid "Taxonomy Terms not showing for custom post types"
2618
  msgstr ""
2619
 
2620
+ #: admin/html/whats-new.php:1107
2621
  msgid ""
2622
  "Fixed an issue with taxonomy terms not appearing for Custom Post types "
2623
  "within Form Settings and Dashboard Post Listing"
2624
  msgstr ""
2625
 
2626
+ #: admin/html/whats-new.php:1110
2627
  msgid "Various other code optimizations"
2628
  msgstr ""
2629
 
2630
+ #: admin/html/whats-new.php:1112 admin/html/whats-new.php:1169
2631
  msgid "Code structure organization and optimization for better performance"
2632
  msgstr ""
2633
 
2634
+ #: admin/html/whats-new.php:1121
2635
  msgid "WoooCommerce billing address Sync"
2636
  msgstr ""
2637
 
2638
+ #: admin/html/whats-new.php:1123
2639
  msgid ""
2640
  "If an existing customer has previously set his billing address, that will "
2641
  "be imported into WPUF Billing address "
2642
  msgstr ""
2643
 
2644
+ #: admin/html/whats-new.php:1126
2645
  msgid "Trial subscription message not showing properly"
2646
  msgstr ""
2647
 
2648
+ #: admin/html/whats-new.php:1128
2649
  msgid "Subscriptions with Trial now shows trial notices"
2650
  msgstr ""
2651
 
2652
+ #: admin/html/whats-new.php:1131
2653
  msgid "Reset email Key not working"
2654
  msgstr ""
2655
 
2656
+ #: admin/html/whats-new.php:1133
2657
  msgid "Reset Email key was not working in some cases"
2658
  msgstr ""
2659
 
2660
+ #: admin/html/whats-new.php:1136
2661
  msgid "Post count not showing on the frontend dashboard"
2662
  msgstr ""
2663
 
2664
+ #: admin/html/whats-new.php:1138
2665
  msgid ""
2666
  "Dashboard with multiple post type was not showing post counts properly, is "
2667
  "now fixed and shows count for each post type"
2668
  msgstr ""
2669
 
2670
+ #: admin/html/whats-new.php:1141
2671
  msgid "Login Redirect showing blank page is fixed"
2672
  msgstr ""
2673
 
2674
+ #: admin/html/whats-new.php:1143
2675
  msgid ""
2676
  "If \"Previous Page\" was set for redirection, login redirect was "
2677
  "redirecting to blank page for users who hit login page directly"
2678
  msgstr ""
2679
 
2680
+ #: admin/html/whats-new.php:1152
2681
  msgid "Enhanced Login Redirect to redirect users to previous page"
2682
  msgstr ""
2683
 
2684
+ #: admin/html/whats-new.php:1154
2685
  msgid ""
2686
  "You can choose Previous Page as Login Redirect page settings now to "
2687
  "redirect users to the page from which they went for Login. "
2688
  msgstr ""
2689
 
2690
+ #: admin/html/whats-new.php:1157
2691
  msgid "Email HTML links not Rendreing properly issue is fixed"
2692
  msgstr ""
2693
 
2694
+ #: admin/html/whats-new.php:1159
2695
  msgid ""
2696
  "For some clients emails were not rendering the HTML links properly, this is "
2697
  "now fixed"
2698
  msgstr ""
2699
 
2700
+ #: admin/html/whats-new.php:1162
2701
  msgid "Form Builder : Form Field's Help text styles not showing properly"
2702
  msgstr ""
2703
 
2704
+ #: admin/html/whats-new.php:1164
2705
  msgid "Help texts styling is now fixed and much easier to read and understand"
2706
  msgstr ""
2707
 
2708
+ #: admin/html/whats-new.php:1167
2709
  msgid "Various other code improvements"
2710
  msgstr ""
2711
 
2712
+ #: admin/html/whats-new.php:1178
2713
  msgid "Dashboard Post Listing now supports multiple post types"
2714
  msgstr ""
2715
 
2716
+ #: admin/html/whats-new.php:1180
2717
  msgid ""
2718
  "Now you can show multiple post type in user dashboard using shortcode like "
2719
  "this : <br><b>[wpuf_dashboard post_type=\"post,page,custom_type\"]</b> "
2720
  msgstr ""
2721
 
2722
+ #: admin/html/whats-new.php:1183
2723
  msgid "Added Login Redirect Settings"
2724
  msgstr ""
2725
 
2726
+ #: admin/html/whats-new.php:1185
2727
  msgid ""
2728
  "You can now set a page from <i>WPUF Settings > Login/Registration > "
2729
  "Redirect after Login</i>. When login redirection is active the user will be "
2730
  "redirected to this page after login."
2731
  msgstr ""
2732
 
2733
+ #: admin/html/whats-new.php:1188
2734
  msgid "Image Upload field button text can be changed"
2735
  msgstr ""
2736
 
2737
+ #: admin/html/whats-new.php:1190
2738
  msgid ""
2739
  "The upload button text can now be changed for image upload fields which "
2740
  "defaults to \"Select Image\" if not set. "
2741
  msgstr ""
2742
 
2743
+ #: admin/html/whats-new.php:1193
2744
  msgid "Multi Step Form styles made compatible with more themes"
2745
  msgstr ""
2746
 
2747
+ #: admin/html/whats-new.php:1195
2748
  msgid "Multi Step form can now be styled more easily with other themes "
2749
  msgstr ""
2750
 
2751
+ #: admin/html/whats-new.php:1198
2752
  msgid "Required field condition for google map not working is fixed"
2753
  msgstr ""
2754
 
2755
+ #: admin/html/whats-new.php:1200
2756
  msgid ""
2757
  "If Google Map field was set as required users were able to submit form "
2758
  "without changing the default value."
2759
  msgstr ""
2760
 
2761
+ #: admin/html/whats-new.php:1209
2762
  msgid "Admin form builder is now fully responsive."
2763
  msgstr ""
2764
 
2765
+ #: admin/html/whats-new.php:1211
2766
  msgid ""
2767
  "Now you can edit forms from your mobile devices directly. Our improved "
2768
  "responsive layouts of form builder makes it easy for you to build forms on "
2769
  "the go."
2770
  msgstr ""
2771
 
2772
+ #: admin/html/whats-new.php:1214
2773
  msgid "Added color schemes for creating attractive form layouts."
2774
  msgstr ""
2775
 
2776
+ #: admin/html/whats-new.php:1216
2777
  msgid ""
2778
  "We have added 3 new color schemes for the form layouts which you can choose "
2779
  "from each form's new display settings."
2780
  msgstr ""
2781
 
2782
+ #: admin/html/whats-new.php:1219
2783
  msgid "Restrict Free subscription pack to be enabled multiple times "
2784
  msgstr ""
2785
 
2786
+ #: admin/html/whats-new.php:1221
2787
  msgid ""
2788
  "Free subscription packs now can only be purchased once and the limit "
2789
  "applies properly"
2790
  msgstr ""
2791
 
2792
+ #: admin/html/whats-new.php:1224
2793
  msgid "Various other bug fixes and improvements were made "
2794
  msgstr ""
2795
 
2796
+ #: admin/html/whats-new.php:1226
2797
  msgid "Please see the change log to see full details."
2798
  msgstr ""
2799
 
2800
+ #: admin/html/whats-new.php:1235
2801
  msgid "Added upgrade function for default category"
2802
  msgstr ""
2803
 
2804
+ #: admin/html/whats-new.php:1237
2805
  msgid "Upgrader added to upgrade previously set default post category."
2806
  msgstr ""
2807
 
2808
+ #: admin/html/whats-new.php:1240
2809
  msgid "Subscription pack cannot be canceled"
2810
  msgstr ""
2811
 
2812
+ #: admin/html/whats-new.php:1242
2813
  msgid ""
2814
  "Fixed recurring subscription pack cannot be canceled from my account page "
2815
  "in subscription details section."
2816
  msgstr ""
2817
 
2818
+ #: admin/html/whats-new.php:1245
2819
  msgid "page installer admin notice logic issue"
2820
  msgstr ""
2821
 
2822
+ #: admin/html/whats-new.php:1247
2823
  msgid ""
2824
  "Fixed page installer admin notice logic problem due to new payment settings "
2825
  "default value not set."
2826
  msgstr ""
2827
 
2828
+ #: admin/html/whats-new.php:1257
2829
  msgid "Setup Wizard"
2830
  msgstr ""
2831
 
2832
+ #: admin/html/whats-new.php:1259
2833
  msgid "Setup Wizard added to turn off payment options and install pages."
2834
  msgstr ""
2835
 
2836
+ #: admin/html/whats-new.php:1263
2837
  msgid "Multi-select Category"
2838
  msgstr ""
2839
 
2840
+ #: admin/html/whats-new.php:1265
2841
  msgid "Add multi-select to default category in post form settings."
2842
  msgstr ""
2843
 
2844
+ #: admin/html/whats-new.php:1269
2845
  msgid "Select Text option for Taxonomy"
2846
  msgstr ""
2847
 
2848
+ #: admin/html/whats-new.php:1271
2849
  msgid ""
2850
  "Add Select Text option for taxonomy fields. Now you can add default text "
2851
  "with empty value as first option for Taxonomy dropdown."
2852
  msgstr ""
2853
 
2854
+ #: admin/html/whats-new.php:1274
2855
  msgid "Taxonomy Checkbox Inline"
2856
  msgstr ""
2857
 
2858
+ #: admin/html/whats-new.php:1276
2859
  msgid ""
2860
  "Added checkbox inline option to taxonomy checkbox. You can now display "
2861
  "Taxonomy checkbox fields inline."
2862
  msgstr ""
2863
 
2864
+ #: admin/html/whats-new.php:1286
2865
  msgid "Manage schedule for form submission"
2866
  msgstr ""
2867
 
2868
+ #: admin/html/whats-new.php:1288
2869
  msgid ""
2870
  "Do not accept form submission if the current date is not between the date "
2871
  "range of the schedule."
2872
  msgstr ""
2873
 
2874
+ #: admin/html/whats-new.php:1292
2875
  msgid "Restrict form submission based on the user roles"
2876
  msgstr ""
2877
 
2878
+ #: admin/html/whats-new.php:1294
2879
  msgid ""
2880
  "Restrict form submission based on the user roles. Now you can manage user "
2881
  "role base permission on form submission."
2882
  msgstr ""
2883
 
2884
+ #: admin/html/whats-new.php:1298
2885
  msgid "Limit how many entries a form will accept"
2886
  msgstr ""
2887
 
2888
+ #: admin/html/whats-new.php:1300
2889
  msgid ""
2890
  "Limit how many entries a form will accept and display a custom message when "
2891
  "that limit is reached."
2892
  msgstr ""
2893
 
2894
+ #: admin/html/whats-new.php:1304
2895
  msgid "Show/hide Admin Bar"
2896
  msgstr ""
2897
 
2898
+ #: admin/html/whats-new.php:1306
2899
  msgid "Control the admin bar visibility based on user roles."
2900
  msgstr ""
2901
 
2902
+ #: admin/html/whats-new.php:1310
2903
  msgid "Ajax Login widget"
2904
  msgstr ""
2905
 
2906
+ #: admin/html/whats-new.php:1312
2907
  msgid ""
2908
  "Login user is more simple now with Ajax Login Widget. The simple ajax login "
2909
  "form do not required page loading for login."
2910
  msgstr ""
2911
 
2912
+ #: admin/html/whats-new.php:1316
2913
  msgid "Form submission with Captcha field"
2914
  msgstr ""
2915
 
2916
+ #: admin/html/whats-new.php:1318
2917
  msgid "Form field validation process updated if form submits with captcha field."
2918
  msgstr ""
2919
 
2920
+ #: admin/html/whats-new.php:1332
2921
  msgid "What's New in WPUF?"
2922
  msgstr ""
2923
 
2953
  msgid "Login"
2954
  msgstr ""
2955
 
2956
+ #: admin/installer.php:95 class/subscription.php:410 class/subscription.php:430
2957
+ #: class/subscription.php:431 class/subscription.php:432
2958
  #: includes/free/admin/shortcode-button.php:99 wpuf-functions.php:2022
2959
  msgid "Subscription"
2960
  msgstr ""
2963
  msgid "[wpuf_sub_pack]"
2964
  msgstr ""
2965
 
2966
+ #: admin/installer.php:96 templates/dashboard/list.php:16
2967
+ #: templates/dashboard/posts.php:116
2968
  msgid "Payment"
2969
  msgstr ""
2970
 
3051
  msgstr ""
3052
 
3053
  #: admin/posting.php:72 class/asset-loader.php:55 class/render-form.php:1673
3054
+ #: wpuf.php:739
3055
  msgid "Are you sure?"
3056
  msgstr ""
3057
 
3058
+ #: admin/posting.php:80 class/asset-loader.php:63 wpuf.php:750
3059
  msgid "Allowed Files"
3060
  msgstr ""
3061
 
3062
+ #: admin/posting.php:83 class/asset-loader.php:66 wpuf.php:756
3063
  msgid "Maximum number of files reached!"
3064
  msgstr ""
3065
 
3066
+ #: admin/posting.php:84 class/asset-loader.php:67 wpuf.php:757
3067
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
3068
  msgstr ""
3069
 
3070
+ #: admin/posting.php:85 class/asset-loader.php:68 wpuf.php:758
3071
  msgid "You have uploaded an incorrect file type. Please try again."
3072
  msgstr ""
3073
 
3362
  msgid "WP User Frontend Pro is the most powerful solution for your frontend needs."
3363
  msgstr ""
3364
 
3365
+ #: admin/promotion.php:38
3366
+ msgid ""
3367
+ "Irresistible Black Friday & Cyber Monday Deals. Enjoy Up To 50% OFF on WP "
3368
+ "User Frontend Pro."
3369
  msgstr ""
3370
 
3371
+ #: admin/promotion.php:38
3372
  msgid "Get Now"
3373
  msgstr ""
3374
 
3375
+ #: admin/promotion.php:88
3376
  msgid "Sure! I'd love to!"
3377
  msgstr ""
3378
 
3379
+ #: admin/promotion.php:89
3380
  msgid "I've already left a review"
3381
  msgstr ""
3382
 
3383
+ #: admin/promotion.php:90
3384
  msgid "Never show again"
3385
  msgstr ""
3386
 
3387
+ #: admin/promotion.php:226 includes/class-whats-new.php:107
3388
  msgid "Dismiss this notice."
3389
  msgstr ""
3390
 
4183
 
4184
  #: admin/template.php:377 admin/template.php:401 admin/template.php:432
4185
  #: admin/template.php:463 includes/fields/class-abstract-fields.php:612
4186
+ #: templates/dashboard/list.php:19 templates/dashboard/posts.php:119
4187
  msgid "Options"
4188
  msgstr ""
4189
 
4204
  #: admin/template.php:520 admin/template.php:578 admin/template.php:656
4205
  #: class/upload.php:275 includes/fields/class-field-recaptcha.php:147
4206
  #: includes/fields/class-field-sectionbreak.php:55
4207
+ #: templates/dashboard/list.php:10 templates/dashboard/posts.php:110
4208
  #: wpuf-functions.php:1024
4209
  msgid "Title"
4210
  msgstr ""
4256
  msgid "Import"
4257
  msgstr ""
4258
 
4259
+ #: class/asset-loader.php:32 wpuf.php:636
4260
  msgid "is required"
4261
  msgstr ""
4262
 
4263
+ #: class/asset-loader.php:33 wpuf.php:637
4264
  msgid "does not match"
4265
  msgstr ""
4266
 
4267
+ #: class/asset-loader.php:34 wpuf.php:638
4268
  msgid "is not valid"
4269
  msgstr ""
4270
 
4271
+ #: class/asset-loader.php:46 wpuf.php:716
4272
  msgid "Please fix the errors to proceed"
4273
  msgstr ""
4274
 
4275
+ #: class/asset-loader.php:48 wpuf.php:723
4276
  msgid "Word limit reached"
4277
  msgstr ""
4278
 
4279
+ #: class/asset-loader.php:49 wpuf.php:718
4280
  msgid "Are you sure you want to cancel your current subscription ?"
4281
  msgstr ""
4282
 
4489
  msgid "Please enter your post name"
4490
  msgstr ""
4491
 
4492
+ #: class/post-form-templates/post.php:36
4493
  msgid "Category"
4494
  msgstr ""
4495
 
4518
  #: includes/fields/class-field-featured-image.php:142
4519
  #: includes/free/post-form-templates/the_events_calendar.php:125
4520
  #: includes/free/post-form-templates/the_events_calendar.php:126
4521
+ #: templates/dashboard/list.php:7 templates/dashboard/posts.php:107
4522
  msgid "Featured Image"
4523
  msgstr ""
4524
 
4528
 
4529
  #: class/post-form-templates/post.php:91
4530
  #: includes/free/post-form-templates/the_events_calendar.php:138
 
4531
  msgid "Excerpt"
4532
  msgstr ""
4533
 
4604
 
4605
  #: class/render-form.php:1673 class/transactions-list-table.php:122
4606
  #: class/transactions-list-table.php:199 includes/free/edit-user.php:105
 
4607
  msgid "Delete"
4608
  msgstr ""
4609
 
4610
+ #: class/subscription.php:433
4611
  msgid "Add Subscription"
4612
  msgstr ""
4613
 
4614
+ #: class/subscription.php:434
4615
  msgid "Add New Subscription"
4616
  msgstr ""
4617
 
4618
+ #: class/subscription.php:436
4619
  msgid "Edit Subscription"
4620
  msgstr ""
4621
 
4622
+ #: class/subscription.php:437
4623
  msgid "New Subscription"
4624
  msgstr ""
4625
 
4626
+ #: class/subscription.php:438 class/subscription.php:439
4627
  msgid "View Subscription"
4628
  msgstr ""
4629
 
4630
+ #: class/subscription.php:440
4631
  msgid "Search Subscription"
4632
  msgstr ""
4633
 
4634
+ #: class/subscription.php:441
4635
  msgid "No Subscription Found"
4636
  msgstr ""
4637
 
4638
+ #: class/subscription.php:442
4639
  msgid "No Subscription Found in Trash"
4640
  msgstr ""
4641
 
4642
+ #: class/subscription.php:443
4643
  msgid "Parent Subscription"
4644
  msgstr ""
4645
 
4646
+ #: class/subscription.php:798
4647
  msgid "Payment is complete"
4648
  msgstr ""
4649
 
4650
+ #: class/subscription.php:798
4651
  msgid "Congratulations, your payment has been completed!"
4652
  msgstr ""
4653
 
4654
+ #: class/subscription.php:802 class/subscription.php:806
4655
  msgid "Please buy a subscription pack to post"
4656
  msgstr ""
4657
 
4658
+ #: class/subscription.php:825
4659
  msgid "<p><i>You have a subscription pack activated. </i></p>"
4660
  msgstr ""
4661
 
4662
+ #: class/subscription.php:827
4663
  #. translators: %s: pack title
4664
  msgid "<p><i>Pack name: %s </i></p>"
4665
  msgstr ""
4666
 
4667
+ #: class/subscription.php:829
4668
  msgid "To cancel the pack, press the following cancel button"
4669
  msgstr ""
4670
 
4671
+ #: class/subscription.php:876
4672
  msgid "Day"
4673
  msgid_plural "Days"
4674
  msgstr[0] ""
4675
  msgstr[1] ""
4676
 
4677
+ #: class/subscription.php:877
4678
  msgid "Week"
4679
  msgid_plural "Weeks"
4680
  msgstr[0] ""
4681
  msgstr[1] ""
4682
 
4683
+ #: class/subscription.php:878
4684
  msgid "Month"
4685
  msgid_plural "Months"
4686
  msgstr[0] ""
4687
  msgstr[1] ""
4688
 
4689
+ #: class/subscription.php:879
4690
  msgid "Year"
4691
  msgid_plural "Years"
4692
  msgstr[0] ""
4693
  msgstr[1] ""
4694
 
4695
+ #: class/subscription.php:911
4696
  msgid "One time payment"
4697
  msgstr ""
4698
 
4699
+ #: class/subscription.php:918
4700
  msgid "Every"
4701
  msgstr ""
4702
 
4703
+ #: class/subscription.php:919
4704
  msgid "for"
4705
  msgstr ""
4706
 
4707
+ #: class/subscription.php:919
4708
  msgid "installments"
4709
  msgstr ""
4710
 
4711
+ #: class/subscription.php:927
4712
  #. translators: %s: trial days
4713
  msgid "Trial available for first %1$s %2$s"
4714
  msgstr ""
4715
 
4716
+ #: class/subscription.php:931
4717
  msgid "Buy Now"
4718
  msgstr ""
4719
 
4720
+ #: class/subscription.php:935
4721
  msgid "Sign Up"
4722
  msgstr ""
4723
 
4724
+ #: class/subscription.php:1003
4725
  #. translators: %s: amount
4726
  msgid "There is a <strong>%s</strong> charge to add a new post."
4727
  msgstr ""
4728
 
4729
+ #: class/subscription.php:1020
4730
  #. translators: %s: amount
4731
  msgid ""
4732
  "Your Subscription pack is exhausted. There is a <strong>%s</strong> charge "
4733
  "to add a new post."
4734
  msgstr ""
4735
 
4736
+ #: class/subscription.php:1066
4737
  #. translators: %s: subscription link
4738
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
4739
  msgstr ""
4751
  msgstr ""
4752
 
4753
  #: class/transactions-list-table.php:44
4754
+ #: includes/class-list-table-subscribers.php:44 templates/dashboard/list.php:11
4755
+ #: templates/dashboard/posts.php:111
4756
  msgid "Status"
4757
  msgstr ""
4758
 
4876
 
4877
  #: includes/class-billing-address.php:161 includes/class-customizer.php:22
4878
  #: includes/class-customizer.php:66 includes/class-privacy.php:265
4879
+ #: templates/dashboard/billing-address.php:51
4880
  #: templates/dashboard/billing-address.php:52
4881
  msgid "Country"
4882
  msgstr ""
4887
  msgstr ""
4888
 
4889
  #: includes/class-billing-address.php:203 includes/class-customizer.php:23
4890
+ #: includes/class-customizer.php:67 templates/dashboard/billing-address.php:95
4891
+ #: templates/dashboard/billing-address.php:96
4892
  msgid "State/Province/Region"
4893
  msgstr ""
4894
 
4895
  #: includes/class-billing-address.php:217
4896
+ #: templates/dashboard/billing-address.php:116
4897
  msgid "Choose a state"
4898
  msgstr ""
4899
 
4900
  #: includes/class-billing-address.php:236
4901
+ #: templates/dashboard/billing-address.php:139
4902
  msgid "Address Line 1 "
4903
  msgstr ""
4904
 
4905
  #: includes/class-billing-address.php:247
4906
+ #: templates/dashboard/billing-address.php:147
4907
  msgid "Address Line 2 "
4908
  msgstr ""
4909
 
4910
  #: includes/class-billing-address.php:258 includes/class-customizer.php:26
4911
  #: includes/class-customizer.php:70 includes/class-privacy.php:253
4912
+ #: templates/dashboard/billing-address.php:153
4913
+ #: templates/dashboard/billing-address.php:154
4914
  msgid "City"
4915
  msgstr ""
4916
 
4920
  msgstr ""
4921
 
4922
  #: includes/class-billing-address.php:278
4923
+ #: templates/dashboard/billing-address.php:172
4924
  msgid "Update Billing Address"
4925
  msgstr ""
4926
 
5050
  msgid "You can't edit a post while in pending mode."
5051
  msgstr ""
5052
 
5053
+ #: includes/class-frontend-form-post.php:534
5054
  msgid "Something went wrong"
5055
  msgstr ""
5056
 
5057
+ #: includes/class-frontend-form-post.php:555
5058
  msgid "Invalid email address."
5059
  msgstr ""
5060
 
5061
+ #: includes/class-frontend-form-post.php:566
5062
  msgid ""
5063
  "You already have an account in our site. Please login to continue.\n"
5064
  "\n"
5067
  "Click 'Cancel' to stay at this page."
5068
  msgstr ""
5069
 
5070
+ #: includes/class-frontend-form-post.php:620
5071
  #: includes/class-frontend-render-form.php:327
5072
  msgid "You do not have sufficient permissions to access this form."
5073
  msgstr ""
5074
 
5075
+ #: includes/class-frontend-form-post.php:932
5076
  msgid "Email successfully verified. Please Login."
5077
  msgstr ""
5078
 
5079
+ #: includes/class-frontend-form-post.php:1059
5080
+ #: includes/class-frontend-form-post.php:1065
5081
  msgid ""
5082
  "Thank you for posting on our site. We have sent you an confirmation email. "
5083
  "Please check your inbox!"
5084
  msgstr ""
5085
 
5086
+ #: includes/class-frontend-render-form.php:872
5087
  #: includes/free/class-login.php:449
5088
  msgid "Empty reCaptcha Field"
5089
  msgstr ""
5090
 
5091
+ #: includes/class-frontend-render-form.php:905
5092
+ #: templates/dashboard/posts.php:130
5093
+ msgid "Featured"
5094
+ msgstr ""
5095
+
5096
+ #: includes/class-frontend-render-form.php:910
5097
+ msgid "Mark the %s as featured (remaining %d)"
5098
+ msgstr ""
5099
+
5100
  #: includes/class-list-table-subscribers.php:30
5101
  msgid "No subscribers found"
5102
  msgstr ""
5126
  msgstr ""
5127
 
5128
  #: includes/class-list-table-subscribers.php:137
5129
+ #: templates/dashboard/list.php:81 templates/dashboard/posts.php:181
5130
  msgid "Completed"
5131
  msgstr ""
5132
 
5603
  msgid "The subscription pack has expired. Please buy a pack."
5604
  msgstr ""
5605
 
5606
+ #: includes/class-user-subscription.php:319
5607
  #: templates/dashboard/subscription.php:3
5608
  msgid "Subscription Details"
5609
  msgstr ""
5610
 
5611
+ #: includes/class-user-subscription.php:321
5612
  #: templates/dashboard/subscription.php:5
5613
  msgid "Subcription Name: "
5614
  msgstr ""
5615
 
5616
+ #: includes/class-user-subscription.php:323
5617
  #: templates/dashboard/subscription.php:7
5618
  msgid "Package & billing details: "
5619
  msgstr ""
5620
 
5621
+ #: includes/class-user-subscription.php:334
5622
+ #: templates/dashboard/subscription.php:20
5623
  msgid "Remaining post: "
5624
  msgstr ""
5625
 
5626
+ #: includes/class-user-subscription.php:348
5627
+ #: templates/dashboard/subscription.php:36
5628
  msgid "Unlimited"
5629
  msgstr ""
5630
 
5631
+ #: includes/class-user-subscription.php:380
5632
  msgid "Change"
5633
  msgstr ""
5634
 
6792
  msgid "PayPal API signature"
6793
  msgstr ""
6794
 
6795
+ #: templates/dashboard/billing-address.php:138
6796
+ msgid "Address Line 1"
6797
+ msgstr ""
6798
+
6799
+ #: templates/dashboard/billing-address.php:146
6800
+ msgid "Address Line 2"
6801
+ msgstr ""
6802
+
6803
+ #: templates/dashboard/billing-address.php:161
6804
+ #: templates/dashboard/billing-address.php:163
6805
  msgid "Postal/ZIP Code"
6806
  msgstr ""
6807
 
6845
  msgid "Confirm New Password"
6846
  msgstr ""
6847
 
6848
+ #: templates/dashboard/list.php:33 templates/dashboard/posts.php:135
 
 
 
 
6849
  msgid "Featured Image: "
6850
  msgstr ""
6851
 
6852
+ #: templates/dashboard/list.php:40 templates/dashboard/posts.php:142
6853
  msgid "No Image"
6854
  msgstr ""
6855
 
6856
+ #: templates/dashboard/list.php:50 templates/dashboard/posts.php:152
6857
  msgid "Title: "
6858
  msgstr ""
6859
 
6860
+ #: templates/dashboard/list.php:57 templates/dashboard/posts.php:159
6861
  msgid "Permalink to %s"
6862
  msgstr ""
6863
 
6864
+ #: templates/dashboard/list.php:66 templates/dashboard/posts.php:168
6865
  msgid "Status: "
6866
  msgstr ""
6867
 
6868
+ #: templates/dashboard/list.php:77 templates/dashboard/posts.php:177
 
 
 
 
6869
  msgid "Not Applicable"
6870
  msgstr ""
6871
 
6872
+ #: templates/dashboard/list.php:79 templates/dashboard/posts.php:179
6873
  msgid "Pay Now"
6874
  msgstr ""
6875
 
6876
+ #: templates/dashboard/list.php:88 templates/dashboard/posts.php:186
6877
  msgid "Options: "
6878
  msgstr ""
6879
 
6880
+ #: templates/dashboard/list.php:121 templates/dashboard/posts.php:217
6881
  msgid "Are you sure to delete?"
6882
  msgstr ""
6883
 
6884
+ #: templates/dashboard/posts.php:42
6885
+ msgid "Item Deleted successfully !"
6886
+ msgstr ""
6887
+
6888
+ #: templates/dashboard/posts.php:175
6889
+ msgid "Payment: "
6890
+ msgstr ""
6891
+
6892
+ #: templates/dashboard/posts.php:238 templates/dashboard.php:102
6893
  msgid "&laquo;"
6894
  msgstr ""
6895
 
6896
+ #: templates/dashboard/posts.php:239 templates/dashboard.php:103
6897
  msgid "&raquo;"
6898
  msgstr ""
6899
 
6900
+ #: templates/dashboard/posts.php:262 templates/dashboard.php:126
6901
  msgid "No %s found"
6902
  msgstr ""
6903
 
6913
  msgid "Subscription Expired!"
6914
  msgstr ""
6915
 
6916
+ #: templates/dashboard/subscription.php:17
6917
+ msgid "Number of featured item: "
6918
+ msgstr ""
6919
+
6920
+ #: templates/dashboard/subscription.php:63
6921
  msgid "To cancel the pack, press the following cancel button."
6922
  msgstr ""
6923
 
6929
  msgid "You have created <span>%d</span> (%s)"
6930
  msgstr ""
6931
 
 
 
 
 
6932
  #: templates/dokan/new-post.php:7 templates/wc-marketplace/new-post.php:7
6933
  #: templates/wc-vendors/new-post.php:7
6934
  msgid "You are not allowed to submit post. Please contact admin"
7291
  msgid "Your Post Has Been Expired"
7292
  msgstr ""
7293
 
7294
+ #: wpuf.php:457
7295
  msgid ""
7296
  "<p style=\"font-size: 13px\">\n"
7297
  " <strong class=\"highlight-text\" "
7304
  " </p>"
7305
  msgstr ""
7306
 
7307
+ #: wpuf.php:474
7308
  msgid "Update WP User Frontend Pro Now"
7309
  msgstr ""
7310
 
7311
+ #: wpuf.php:478
7312
  msgid "Update WP User Frontend Pro NOW"
7313
  msgstr ""
7314
 
7315
+ #: wpuf.php:721
7316
  msgid "Character limit reached"
7317
  msgstr ""
7318
 
7319
+ #: wpuf.php:722
7320
  msgid "Minimum character required "
7321
  msgstr ""
7322
 
7323
+ #: wpuf.php:724
7324
  msgid "Minimum word required "
7325
  msgstr ""
7326
 
7327
+ #: wpuf.php:732
7328
  msgid "Please Cancel Your Currently Active Pack first!"
7329
  msgstr ""
7330
 
7331
+ #: wpuf.php:903
7332
  msgid "Error: Nonce verification failed"
7333
  msgstr ""
7334
 
lib/class.settings-api.php CHANGED
@@ -483,7 +483,10 @@ class WeDevs_Settings_API {
483
  */
484
  function show_navigation() {
485
  $html = '<h2 class="nav-tab-wrapper">';
486
-
 
 
 
487
  $count = count( $this->settings_sections );
488
 
489
  // don't show the navigation if only one section exists
483
  */
484
  function show_navigation() {
485
  $html = '<h2 class="nav-tab-wrapper">';
486
+ $html .= '<div id="wpuf-search-section">
487
+ <input type="text" id="wpuf-settings-search" placeholder="Search in settings">
488
+ <span class="dashicons dashicons-no-alt"></span>
489
+ </div>';
490
  $count = count( $this->settings_sections );
491
 
492
  // don't show the navigation if only one section exists
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Forms, registration, profile-builder, login, membership, frontend-post
5
  Requires at least: 4.0
6
  Tested up to: 5.8.1
7
  Requires PHP: 5.6
8
- Stable tag: 3.5.21
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -263,6 +263,19 @@ First you need to go to the dashboard, then when you click "edit", you'll be
263
  redirected to the edit page with that post id. Then you'll see the edit post form.
264
 
265
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
266
  = v3.5.21 (21 Oct, 2021) =
267
 
268
  * Fix - reCaptcha issue with other plugin handled
5
  Requires at least: 4.0
6
  Tested up to: 5.8.1
7
  Requires PHP: 5.6
8
+ Stable tag: 3.5.22
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
263
  redirected to the edit page with that post id. Then you'll see the edit post form.
264
 
265
  == Changelog ==
266
+ = v3.5.22 (28 Oct, 2021) =
267
+
268
+ * Enhancement - Settings page search implemented
269
+ * Enhancement - Featured item for subscriber
270
+ * Enhancement - Warning added for unsaved form data on frontend
271
+ * Enhancement - Editor added for registration form email template
272
+ * Fix - Fallback pay per post not working with when draft enabled
273
+ * Fix - User Dashboard responsive issues fixed
274
+ * Fix - Showing wrong license expire message handled
275
+ * Fix - Remove expire cron handled for once daily
276
+ * Fix - Billing address validation handled
277
+ * Update - Promotion notice restricted for WPUF menu
278
+
279
  = v3.5.21 (21 Oct, 2021) =
280
 
281
  * Fix - reCaptcha issue with other plugin handled
templates/dashboard.php CHANGED
@@ -43,8 +43,8 @@
43
  $meta_key[] = trim( $mkey );
44
  }
45
  }
46
- ?>
47
- <?php if ( $dashboard_query->have_posts() ) {
48
  $args = [
49
  'post_status' => 'publish',
50
  'post_type' => [ 'wpuf_forms' ],
@@ -91,238 +91,46 @@
91
  } else {
92
  $subs_expired = false;
93
  }
94
- ?>
95
-
96
- <div class="items-table-container">
97
- <table class="items-table <?php echo wp_kses_post( implode( ' ', $post_type ) ); ?>" cellpadding="0" cellspacing="0">
98
- <thead>
99
- <tr class="items-list-header">
100
- <?php
101
- 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 ) ) {
102
- echo wp_kses_post( '<th>' . __( 'Featured Image', 'wp-user-frontend' ) . '</th>' );
103
- } ?>
104
- <th><?php esc_html_e( 'Title', 'wp-user-frontend' ); ?></th>
105
-
106
- <?php
107
- if ( 'on' == $category ) {
108
- echo wp_kses_post( '<th>' . __( 'Category', 'wp-user-frontend' ) . '</th>' );
109
- } ?>
110
-
111
- <?php
112
- // populate meta column headers
113
-
114
- if ( $meta != 'off' ) {
115
- for ( $i = 0; $i < $len_label; $i++ ) {
116
- for ( $j = 0; $j < $len; $j++ ) {
117
- if ( $meta_key[$j] == $meta_name[$i] ) {
118
- echo wp_kses_post( '<th>' );
119
- echo wp_kses_post( __( $meta_label[$i], 'wp-user-frontend' ) );
120
- echo wp_kses_post( '</th>' );
121
- }
122
- }
123
- }
124
- } ?>
125
-
126
- <?php
127
- if ( 'on' == $excerpt ) {
128
- echo wp_kses_post( '<th>' . __( 'Excerpt', 'wp-user-frontend' ) . '</th>' );
129
- } ?>
130
-
131
- <th><?php esc_html_e( 'Status', 'wp-user-frontend' ); ?></th>
132
-
133
- <?php do_action( 'wpuf_dashboard_head_col', $args ); ?>
134
-
135
- <?php if ( 'on' == $enable_payment && 'off' != $payment_column ) { ?>
136
- <th><?php esc_html_e( 'Payment', 'wp-user-frontend' ); ?></th>
137
- <?php } ?>
138
-
139
- <th><?php esc_html_e( 'Options', 'wp-user-frontend' ); ?></th>
140
- </tr>
141
- </thead>
142
- <tbody>
143
- <?php
144
- global $post;
145
-
146
- while ( $dashboard_query->have_posts() ) {
147
- $dashboard_query->the_post();
148
- $show_link = !in_array( $post->post_status, ['draft', 'future', 'pending'] );
149
- $payment_status = get_post_meta( $post->ID, '_wpuf_payment_status', true ); ?>
150
- <tr>
151
- <?php 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 ) ) { ?>
152
- <td>
153
- <?php
154
- echo $show_link ? wp_kses_post( '<a href="' . get_permalink( $post->ID ) . '">' ) : '';
155
-
156
- if ( has_post_thumbnail() ) {
157
- the_post_thumbnail( $featured_img_size );
158
- } else {
159
- printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', esc_attr( apply_filters( 'wpuf_no_image', plugins_url( '/assets/images/no-image.png', __DIR__ ) ) ), esc_html( __( 'No Image', 'wp-user-frontend' ) ) );
160
- }
161
-
162
- echo $show_link ? '</a>' : '';
163
- ?>
164
- </td>
165
- <?php } ?>
166
- <td>
167
- <?php if ( !$show_link ) { ?>
168
-
169
- <?php the_title(); ?>
170
-
171
- <?php } else { ?>
172
-
173
- <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>
174
-
175
- <?php } ?>
176
- </td>
177
-
178
- <?php if ( 'on' == $category ) { ?>
179
- <td>
180
- <?php
181
-
182
- $taxonomies = get_object_taxonomies( get_post_type(), 'objects' );
183
- $post_tax_terms = [];
184
-
185
- foreach ( $taxonomies as $taxonomy_slug => $taxonomy ) {
186
- if ( $taxonomy->hierarchical == 1 ) {
187
- $terms = get_the_terms( $post->ID, $taxonomy_slug );
188
-
189
- if ( !empty( $terms ) ) {
190
- foreach ( $terms as $term ) {
191
- $post_tax_terms[] = sprintf( '<a href="%1$s">%2$s</a>',
192
- esc_url_raw( get_term_link( $term->slug, $taxonomy_slug ) ),
193
- esc_html( $term->name )
194
- );
195
- }
196
- }
197
- }
198
- }
199
- echo wp_kses_post( apply_filters( 'wpuf_dashboard_post_taxonomy', implode( ',', $post_tax_terms ) ) );
200
-
201
- ?>
202
- </td>
203
- <?php }
204
-
205
- // populate meta column fields ?>
206
- <?php if ( $meta != 'off' ) {
207
- for ( $i = 0; $i < $len_label; $i++ ) {
208
- for ( $j = 0; $j < $len; $j++ ) {
209
- if ( $meta_key[$j] == $meta_name[$i] ) {
210
- echo wp_kses_post( '<td>' );
211
- $m_val = get_post_meta( $post->ID, $meta_name[$i], true );
212
- echo esc_html( $m_val );
213
- echo wp_kses_post( '</td>' );
214
- }
215
- }
216
- }
217
- } ?>
218
-
219
- <?php if ( 'on' == $excerpt ) { ?>
220
- <td>
221
- <?php the_excerpt(); ?>
222
- </td>
223
- <?php } ?>
224
- <td>
225
- <?php wpuf_show_post_status( $post->post_status ); ?>
226
- </td>
227
-
228
- <?php do_action( 'wpuf_dashboard_row_col', $args, $post ); ?>
229
-
230
- <?php if ( 'on' == $enable_payment && 'off' != $payment_column ) { ?>
231
- <td>
232
- <?php if ( empty( $payment_status ) ) { ?>
233
- <?php esc_html_e( 'Not Applicable', 'wp-user-frontend' ); ?>
234
- <?php } elseif ( $payment_status != 'completed' ) { ?>
235
- <a href="<?php echo esc_url( trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ) ); ?>?action=wpuf_pay&type=post&post_id=<?php echo esc_attr( $post->ID ); ?>"><?php esc_html_e( 'Pay Now', 'wp-user-frontend' ); ?></a>
236
- <?php } elseif ( $payment_status == 'completed' ) { ?>
237
- <?php esc_html_e( 'Completed', 'wp-user-frontend' ); ?>
238
- <?php } ?>
239
- </td>
240
- <?php } ?>
241
-
242
- <td>
243
- <?php
244
- if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
245
- $disable_pending_edit = wpuf_get_option( 'disable_pending_edit', 'wpuf_dashboard', 'on' );
246
- $edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_frontend_posting' );
247
- $post_id = $post->ID;
248
- $url = add_query_arg( ['pid' => $post->ID], get_permalink( $edit_page ) );
249
-
250
- $edit_page_url = apply_filters( 'wpuf_edit_post_link', $url );
251
-
252
- $show_edit = true;
253
-
254
- if ( $post->post_status == 'pending' && $disable_pending_edit == 'on' ) {
255
- $show_edit = false;
256
- }
257
-
258
- if ( ( $post->post_status == 'draft' || $post->post_status == 'pending' ) && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
259
- $show_edit = false;
260
- }
261
-
262
- if ( $subs_expired ) {
263
- $show_edit = false;
264
- }
265
-
266
- if ( $show_edit ) {
267
- ?>
268
- <a href="<?php echo esc_url( wp_nonce_url( $edit_page_url, 'wpuf_edit' ) ); ?>"><?php esc_html_e( 'Edit', 'wp-user-frontend' ); ?></a>
269
- <?php
270
- }
271
- } ?>
272
-
273
- <?php
274
- if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
275
- $del_url = add_query_arg( ['action' => 'del', 'pid' => $post->ID] );
276
- $message = __( 'Are you sure you want to delete this post ?', 'wp-user-frontend' ); ?>
277
- <a href="<?php echo esc_url( wp_nonce_url( $del_url, 'wpuf_del' ) ); ?>" onclick="return confirm('<?php echo esc_attr( $message ); ?>');"><span style="color: red;"><?php esc_html_e( 'Delete', 'wp-user-frontend' ); ?></span></a>
278
- <?php
279
- } ?>
280
- </td>
281
- </tr>
282
- <?php
283
- }
284
-
285
- wp_reset_postdata(); ?>
286
-
287
- </tbody>
288
- </table>
289
- </div>
290
 
291
- <div class="wpuf-pagination">
292
- <?php
293
- $pagination = paginate_links( [
294
- 'base' => add_query_arg( 'pagenum', '%#%' ),
295
- 'format' => '',
296
- 'prev_text' => __( '&laquo;', 'wp-user-frontend' ),
297
- 'next_text' => __( '&raquo;', 'wp-user-frontend' ),
298
- 'total' => $dashboard_query->max_num_pages,
299
- 'current' => $pagenum,
300
- 'add_args' => false,
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  ] );
302
-
303
- if ( $pagination ) {
304
- echo wp_kses( $pagination, [
305
- 'span' => [
306
- 'aria-current' => [],
307
- 'class' => [],
308
- ],
309
- 'a' => [
310
- 'href' => [],
311
- 'class' => [],
312
- ]
313
- ] );
314
- } ?>
315
- </div>
316
- <?php
317
- } else {
318
- if ( !empty( $post_type_obj ) && !empty( $labels ) ) {
319
- printf( '<div class="wpuf-message">' . wp_kses_post( __( 'No %s found', 'wp-user-frontend' ) ) . '</div>', esc_html( implode( ', ', $labels ) ) );
320
- do_action( 'wpuf_dashboard_nopost', $userdata->ID, $post_type_obj );
321
  }
 
 
 
 
 
 
 
322
  }
 
323
 
324
- if ( !empty( $post_type_obj ) ) {
325
- do_action( 'wpuf_dashboard_bottom', $userdata->ID, $post_type_obj );
326
- } ?>
 
327
 
328
- </div>
43
  $meta_key[] = trim( $mkey );
44
  }
45
  }
46
+
47
+ if ( $dashboard_query->have_posts() ) {
48
  $args = [
49
  'post_status' => 'publish',
50
  'post_type' => [ 'wpuf_forms' ],
91
  } else {
92
  $subs_expired = false;
93
  }
94
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
+ <?php include WPUF_ROOT . '/templates/dashboard/list.php'; ?>
97
+ <div class="wpuf-pagination">
98
+ <?php
99
+ $pagination = paginate_links( [
100
+ 'base' => add_query_arg( 'pagenum', '%#%' ),
101
+ 'format' => '',
102
+ 'prev_text' => __( '&laquo;', 'wp-user-frontend' ),
103
+ 'next_text' => __( '&raquo;', 'wp-user-frontend' ),
104
+ 'total' => $dashboard_query->max_num_pages,
105
+ 'current' => $pagenum,
106
+ 'add_args' => false,
107
+ ] );
108
+
109
+ if ( $pagination ) {
110
+ echo wp_kses( $pagination, [
111
+ 'span' => [
112
+ 'aria-current' => [],
113
+ 'class' => [],
114
+ ],
115
+ 'a' => [
116
+ 'href' => [],
117
+ 'class' => [],
118
+ ]
119
  ] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  }
121
+ ?>
122
+ </div>
123
+ <?php
124
+ } else {
125
+ if ( !empty( $post_type_obj ) && !empty( $labels ) ) {
126
+ printf( '<div class="wpuf-message">' . wp_kses_post( __( 'No %s found', 'wp-user-frontend' ) ) . '</div>', esc_html( implode( ', ', $labels ) ) );
127
+ do_action( 'wpuf_dashboard_nopost', $userdata->ID, $post_type_obj );
128
  }
129
+ }
130
 
131
+ if ( !empty( $post_type_obj ) ) {
132
+ do_action( 'wpuf_dashboard_bottom', $userdata->ID, $post_type_obj );
133
+ }
134
+ ?>
135
 
136
+ </div>
templates/dashboard/billing-address.php CHANGED
@@ -40,7 +40,7 @@ if ( isset( $_POST['update_billing_address'] ) ) {
40
  }
41
  ?>
42
 
43
- <form class="wpuf-form form-label-above" action="" method="post">
44
  <div class="wpuf-fields">
45
  <?php
46
  wp_nonce_field( 'wpuf-ajax-address' );
@@ -48,7 +48,7 @@ if ( isset( $_POST['update_billing_address'] ) ) {
48
  ?>
49
  <ul class="wpuf-form form-label-above">
50
 
51
- <li>
52
  <label class="wpuf-fields wpuf-label"><?php esc_html_e( 'Country', 'wp-user-frontend' ); ?><span
53
  class="required">*</span></label>
54
  <?php
@@ -72,13 +72,16 @@ if ( isset( $_POST['update_billing_address'] ) ) {
72
  'class' => 'wpuf_biiling_country',
73
  'chosen' => false,
74
  'placeholder' => __( 'Choose a country', 'wp-user-frontend' ),
 
75
  ]
76
  ), [
77
  'select' => [
78
  'class' => [],
79
  'name' => [],
80
  'id' => [],
81
- 'data-placeholder' => []
 
 
82
  ],
83
  'option' => [
84
  'value' => [],
@@ -89,7 +92,7 @@ if ( isset( $_POST['update_billing_address'] ) ) {
89
  ] ); ?>
90
  </li>
91
 
92
- <li>
93
  <div class="wpuf-label"><?php esc_html_e( 'State/Province/Region', 'wp-user-frontend' ); ?> <span
94
  class="required">*</span></div>
95
  <div class="wpuf-fields">
@@ -111,13 +114,16 @@ if ( isset( $_POST['update_billing_address'] ) ) {
111
  'class' => 'wpuf_biiling_state',
112
  'chosen' => false,
113
  'placeholder' => __( 'Choose a state', 'wp-user-frontend' ),
 
114
  ]
115
  ), [
116
  'select' => [
117
  'class' => [],
118
  'name' => [],
119
  'id' => [],
120
- 'data-placeholder' => []
 
 
121
  ],
122
  'option' => [
123
  'value' => [],
@@ -129,38 +135,35 @@ if ( isset( $_POST['update_billing_address'] ) ) {
129
  </div>
130
  </li>
131
 
132
- <li>
133
  <div class="wpuf-label"><?php esc_html_e( 'Address Line 1 ', 'wp-user-frontend' ); ?><span
134
  class="required">*</span></div>
135
  <div class="wpuf-fields">
136
- <input type="text" class="input" name="wpuf_biiling_add_line_1" id="wpuf_biiling_add_line_1"
137
- value="<?php echo $add_line_1; ?>"/>
138
  </div>
139
  </li>
140
 
141
- <li>
142
  <div class="wpuf-label"><?php esc_html_e( 'Address Line 2 ', 'wp-user-frontend' ); ?></div>
143
  <div class="wpuf-fields">
144
- <input type="text" class="input" name="wpuf_biiling_add_line_2" id="wpuf_biiling_add_line_2"
145
- value="<?php echo $add_line_2; ?>"/>
146
  </div>
147
  </li>
148
 
149
- <li>
150
  <div class="wpuf-label"><?php esc_html_e( 'City', 'wp-user-frontend' ); ?> <span
151
  class="required">*</span></div>
152
  <div class="wpuf-fields">
153
- <input type="text" class="input" name="wpuf_biiling_city" id="wpuf_biiling_city"
154
- value="<?php echo $city; ?>"/>
155
  </div>
156
  </li>
157
 
158
- <li>
159
- <div class="wpuf-label"><?php esc_html_e( 'Postal/ZIP Code', 'wp-user-frontend' ); ?> <span
 
160
  class="required">*</span></div>
161
  <div class="wpuf-fields">
162
- <input type="text" class="input" name="wpuf_biiling_zip_code" id="wpuf_biiling_zip_code"
163
- value="<?php echo $zip_code; ?>"/>
164
  </div>
165
  </li>
166
 
40
  }
41
  ?>
42
 
43
+ <form class="wpuf-form form-label-above" action="" method="post" id="wpuf-payment-gateway">
44
  <div class="wpuf-fields">
45
  <?php
46
  wp_nonce_field( 'wpuf-ajax-address' );
48
  ?>
49
  <ul class="wpuf-form form-label-above">
50
 
51
+ <li class="wpuf-el" data-label="<?php esc_attr_e( 'Country', 'wp-user-frontend' ); ?>">
52
  <label class="wpuf-fields wpuf-label"><?php esc_html_e( 'Country', 'wp-user-frontend' ); ?><span
53
  class="required">*</span></label>
54
  <?php
72
  'class' => 'wpuf_biiling_country',
73
  'chosen' => false,
74
  'placeholder' => __( 'Choose a country', 'wp-user-frontend' ),
75
+ 'data' => [ 'required' => 'yes', 'type' => 'select' ],
76
  ]
77
  ), [
78
  'select' => [
79
  'class' => [],
80
  'name' => [],
81
  'id' => [],
82
+ 'data-placeholder' => [],
83
+ 'data-required' => [],
84
+ 'data-type' => [],
85
  ],
86
  'option' => [
87
  'value' => [],
92
  ] ); ?>
93
  </li>
94
 
95
+ <li class="wpuf-el" data-label="<?php esc_attr_e( 'State/Province/Region', 'wp-user-frontend' ); ?>">
96
  <div class="wpuf-label"><?php esc_html_e( 'State/Province/Region', 'wp-user-frontend' ); ?> <span
97
  class="required">*</span></div>
98
  <div class="wpuf-fields">
114
  'class' => 'wpuf_biiling_state',
115
  'chosen' => false,
116
  'placeholder' => __( 'Choose a state', 'wp-user-frontend' ),
117
+ 'data' => [ 'required' => 'yes', 'type' => 'select' ],
118
  ]
119
  ), [
120
  'select' => [
121
  'class' => [],
122
  'name' => [],
123
  'id' => [],
124
+ 'data-placeholder' => [],
125
+ 'data-required' => [],
126
+ 'data-type' => [],
127
  ],
128
  'option' => [
129
  'value' => [],
135
  </div>
136
  </li>
137
 
138
+ <li class="wpuf-el" data-label="<?php esc_attr_e( 'Address Line 1', 'wp-user-frontend' ); ?>">
139
  <div class="wpuf-label"><?php esc_html_e( 'Address Line 1 ', 'wp-user-frontend' ); ?><span
140
  class="required">*</span></div>
141
  <div class="wpuf-fields">
142
+ <input data-required="yes" data-type="text" type="text" class="input" name="wpuf_biiling_add_line_1" id="wpuf_biiling_add_line_1" value="<?php echo $add_line_1; ?>"/>
 
143
  </div>
144
  </li>
145
 
146
+ <li class="wpuf-el" data-label="<?php esc_attr_e( 'Address Line 2', 'wp-user-frontend' ); ?>">
147
  <div class="wpuf-label"><?php esc_html_e( 'Address Line 2 ', 'wp-user-frontend' ); ?></div>
148
  <div class="wpuf-fields">
149
+ <input data-required="no" type="text" class="input" name="wpuf_biiling_add_line_2" id="wpuf_biiling_add_line_2" data-type="text" value="<?php echo $add_line_2; ?>"/>
 
150
  </div>
151
  </li>
152
 
153
+ <li class="wpuf-el" data-label="<?php esc_attr_e( 'City', 'wp-user-frontend' ); ?>">
154
  <div class="wpuf-label"><?php esc_html_e( 'City', 'wp-user-frontend' ); ?> <span
155
  class="required">*</span></div>
156
  <div class="wpuf-fields">
157
+ <input data-required="yes" type="text" class="input" name="wpuf_biiling_city" id="wpuf_biiling_city" data-type="text" value="<?php echo $city; ?>"/>
 
158
  </div>
159
  </li>
160
 
161
+ <li class="wpuf-el" data-label="<?php esc_attr_e( 'Postal/ZIP Code', 'wp-user-frontend' ); ?>">
162
+ <div class="wpuf-label">
163
+ <?php esc_html_e( 'Postal/ZIP Code', 'wp-user-frontend' ); ?> <span
164
  class="required">*</span></div>
165
  <div class="wpuf-fields">
166
+ <input data-required="yes" type="text" class="input" name="wpuf_biiling_zip_code" id="wpuf_biiling_zip_code" data-type="text" value="<?php echo $zip_code; ?>"/>
 
167
  </div>
168
  </li>
169
 
templates/dashboard/list.php ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="items-table-container">
2
+ <table class="items-table <?php echo esc_attr( $post_type ); ?>">
3
+ <thead>
4
+ <tr class="items-list-header">
5
+ <?php
6
+ if ( 'on' === $featured_img ) {
7
+ echo wp_kses_post( '<th>' . __( 'Featured Image', 'wp-user-frontend' ) . '</th>' );
8
+ }
9
+ ?>
10
+ <th><?php esc_html_e( 'Title', 'wp-user-frontend' ); ?></th>
11
+ <th><?php esc_html_e( 'Status', 'wp-user-frontend' ); ?></th>
12
+
13
+ <?php do_action( 'wpuf_account_posts_head_col', $args ); ?>
14
+
15
+ <?php if ( 'on' === $enable_payment && 'off' !== $payment_column ) { ?>
16
+ <th><?php esc_html_e( 'Payment', 'wp-user-frontend' ); ?></th>
17
+ <?php } ?>
18
+
19
+ <th><?php esc_html_e( 'Options', 'wp-user-frontend' ); ?></th>
20
+ </tr>
21
+ </thead>
22
+ <tbody>
23
+ <?php
24
+ global $post;
25
+
26
+ while ( $dashboard_query->have_posts() ) {
27
+ $dashboard_query->the_post();
28
+ $show_link = ! in_array( $post->post_status, ['draft', 'future', 'pending'] );
29
+ $payment_status = get_post_meta( $post->ID, '_wpuf_payment_status', true );
30
+ ?>
31
+ <tr>
32
+ <?php if ( 'on' === $featured_img ) { ?>
33
+ <td data-label="<?php esc_attr_e( 'Featured Image: ', 'wp-user-frontend' ); ?>">
34
+ <?php
35
+ echo $show_link ? wp_kses_post( '<a href="' . get_permalink( $post->ID ) . '">' ) : '';
36
+
37
+ if ( has_post_thumbnail() ) {
38
+ the_post_thumbnail( $featured_img_size );
39
+ } else {
40
+ printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', esc_attr( apply_filters( 'wpuf_no_image', plugins_url( '../assets/images/no-image.png', __DIR__ ) ) ), esc_html( __( 'No Image', 'wp-user-frontend' ) ) );
41
+ }
42
+
43
+ echo $show_link ? '</a>' : '';
44
+ ?>
45
+ <span class="post-edit-icon">
46
+ &#x25BE;
47
+ </span>
48
+ </td>
49
+ <?php } ?>
50
+ <td data-label="<?php esc_attr_e( 'Title: ', 'wp-user-frontend' ); ?>" class="<?php echo 'on' === $featured_img ? 'data-column' : '' ; ?>">
51
+ <?php if ( ! $show_link ) { ?>
52
+
53
+ <?php echo wp_trim_words( get_the_title(), 5 ); ?>
54
+
55
+ <?php } else { ?>
56
+
57
+ <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wp-user-frontend' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo wp_trim_words( get_the_title(), 5 ); ?></a>
58
+
59
+ <?php } ?>
60
+ <?php if ( 'on' !== $featured_img ) { ?>
61
+ <span class="post-edit-icon">
62
+ &#x25BE;
63
+ </span>
64
+ <?php } ?>
65
+ </td>
66
+ <td data-label="<?php esc_attr_e( 'Status: ', 'wp-user-frontend' ); ?>" class="data-column">
67
+ <?php wpuf_show_post_status( $post->post_status ); ?>
68
+ </td>
69
+
70
+ <?php
71
+ do_action( 'wpuf_account_posts_row_col', $args, $post );
72
+
73
+ if ( 'on' === $enable_payment && 'off' != $payment_column ) {
74
+ echo '<td data-label="' . esc_attr( 'Payment: ' ) . '" class="data-column">';
75
+
76
+ if ( empty( $payment_status ) ) {
77
+ esc_html_e( 'Not Applicable', 'wp-user-frontend' );
78
+ } elseif ( $payment_status !== 'completed' ) {
79
+ echo '<a href="' . esc_attr( trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ) ) . '?action=wpuf_pay&type=post&post_id=' . esc_attr( $post->ID ) . '">' . esc_html__( 'Pay Now', 'wp-user-frontend' ) . '</a>';
80
+ } elseif ( 'completed' === $payment_status ) {
81
+ esc_html_e( 'Completed', 'wp-user-frontend' );
82
+ }
83
+
84
+ echo '</td>';
85
+ }
86
+ ?>
87
+
88
+ <td data-label="<?php esc_attr_e( 'Options: ', 'wp-user-frontend' ); ?>" class="data-column">
89
+ <?php
90
+ if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
91
+ $disable_pending_edit = wpuf_get_option( 'disable_pending_edit', 'wpuf_dashboard', 'on' );
92
+ $edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_frontend_posting' );
93
+ $url = add_query_arg( ['pid' => $post->ID], get_permalink( $edit_page ) );
94
+
95
+ $show_edit = true;
96
+
97
+ if ( 'pending' === $post->post_status && 'on' === $disable_pending_edit ) {
98
+ $show_edit = false;
99
+ }
100
+
101
+ if ( ( 'draft' === $post->post_status || 'pending' === $post->post_status ) && ( ! empty( $payment_status ) && 'completed' === $payment_status ) ) {
102
+ $show_edit = false;
103
+ }
104
+
105
+ if ( $subs_expired ) {
106
+ $show_edit = false;
107
+ }
108
+
109
+ if ( $show_edit ) {
110
+ ?>
111
+ <a class="wpuf-posts-options wpuf-posts-edit" href="<?php echo esc_url( wp_nonce_url( $url, 'wpuf_edit' ) ); ?>">
112
+ <img src="<?php echo WPUF_ASSET_URI . '/images/edit.svg'; ?>" alt="Edit">
113
+ </a>
114
+ <?php
115
+ }
116
+ } ?>
117
+
118
+ <?php
119
+ if ( 'yes' === wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) ) {
120
+ $del_url = add_query_arg( ['action' => 'del', 'pid' => $post->ID] );
121
+ $message = __( 'Are you sure to delete?', 'wp-user-frontend' ); ?>
122
+ <a class="wpuf-posts-options wpuf-posts-delete" style="color: red;" href="<?php echo esc_url_raw( wp_nonce_url( $del_url, 'wpuf_del' ) ); ?>" onclick="return confirm('<?php echo esc_attr( $message ); ?>');">
123
+ <img src="<?php echo WPUF_ASSET_URI . '/images/trash.svg'; ?>" alt="Delete">
124
+ </a>
125
+ <?php
126
+ } ?>
127
+ </td>
128
+ </tr>
129
+ <?php
130
+ }
131
+
132
+ wp_reset_postdata();
133
+ ?>
134
+ </tbody>
135
+ </table>
136
+ </div>
templates/dashboard/posts.php CHANGED
@@ -122,11 +122,14 @@ $post_type_obj = get_post_type_object( $post_type );
122
  <tbody>
123
  <?php
124
  global $post;
125
-
126
  while ( $dashboard_query->have_posts() ) {
127
  $dashboard_query->the_post();
128
  $show_link = !in_array( $post->post_status, ['draft', 'future', 'pending'] );
129
- $payment_status = get_post_meta( $post->ID, '_wpuf_payment_status', true ); ?>
 
 
 
130
  <tr>
131
  <?php if ( 'on' == $featured_img ) { ?>
132
  <td data-label="<?php esc_attr_e( 'Featured Image: ', 'wp-user-frontend' ); ?>">
@@ -149,11 +152,11 @@ $post_type_obj = get_post_type_object( $post_type );
149
  <td data-label="<?php esc_attr_e( 'Title: ', 'wp-user-frontend' ); ?>" class="<?php echo 'on' === $featured_img ? 'data-column' : '' ; ?>">
150
  <?php if ( ! $show_link ) { ?>
151
 
152
- <?php echo wp_trim_words( get_the_title(), 5 ); ?>
153
 
154
  <?php } else { ?>
155
 
156
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wp-user-frontend' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo wp_trim_words( get_the_title(), 5 ); ?></a>
157
 
158
  <?php } ?>
159
  <?php if ( 'on' !== $featured_img ){?>
122
  <tbody>
123
  <?php
124
  global $post;
125
+ $stickies = get_option( 'sticky_posts' );
126
  while ( $dashboard_query->have_posts() ) {
127
  $dashboard_query->the_post();
128
  $show_link = !in_array( $post->post_status, ['draft', 'future', 'pending'] );
129
+ $payment_status = get_post_meta( $post->ID, '_wpuf_payment_status', true );
130
+ $is_featured = in_array( intval( $post->ID ), $stickies, true ) ? ' - ' . esc_html__( 'Featured', 'wp-user-frontend' ) . ucfirst( $post_type ) : '';
131
+ $title = wp_trim_words( get_the_title(), 5 ) . $is_featured;
132
+ ?>
133
  <tr>
134
  <?php if ( 'on' == $featured_img ) { ?>
135
  <td data-label="<?php esc_attr_e( 'Featured Image: ', 'wp-user-frontend' ); ?>">
152
  <td data-label="<?php esc_attr_e( 'Title: ', 'wp-user-frontend' ); ?>" class="<?php echo 'on' === $featured_img ? 'data-column' : '' ; ?>">
153
  <?php if ( ! $show_link ) { ?>
154
 
155
+ <?php echo $title ?>
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 echo $title ?></a>
160
 
161
  <?php } ?>
162
  <?php if ( 'on' !== $featured_img ){?>
templates/dashboard/subscription.php CHANGED
@@ -12,7 +12,10 @@
12
  <strong><?php esc_html_e( 'Subscription Status: ', 'wp-user-frontend' ); ?></strong>
13
  <?php esc_html_e( 'Subscription Expired!', 'wp-user-frontend' ); ?>
14
  </div>
15
- <?php } else { ?>
 
 
 
16
  <div>
17
  <strong><?php esc_html_e( 'Remaining post: ', 'wp-user-frontend' ); ?></strong>
18
  <?php
12
  <strong><?php esc_html_e( 'Subscription Status: ', 'wp-user-frontend' ); ?></strong>
13
  <?php esc_html_e( 'Subscription Expired!', 'wp-user-frontend' ); ?>
14
  </div>
15
+ <?php } else {
16
+ if ( ! empty( $user_sub['total_feature_item'] ) ) { ?>
17
+ <div><strong><?php esc_html_e( 'Number of featured item: ', 'wp-user-frontend' ); ?></strong><?php echo $user_sub['total_feature_item']; ?></div>
18
+ <?php } ?>
19
  <div>
20
  <strong><?php esc_html_e( 'Remaining post: ', 'wp-user-frontend' ); ?></strong>
21
  <?php
wpuf-functions.php CHANGED
@@ -2035,7 +2035,7 @@ function wpuf_get_account_sections() {
2035
  }
2036
 
2037
  $sections = array_merge(
2038
- // dashboard should be the first item
2039
  [ 'dashboard' => __( 'Dashboard', 'wp-user-frontend' ) ],
2040
  $cpt_sections,
2041
  $sections
@@ -2562,17 +2562,17 @@ function wpuf_trim_zeros( $price ) {
2562
  */
2563
  function wpuf_format_price( $price, $formated = true, $args = [] ) {
2564
 
2565
- $price_args = apply_filters(
2566
- 'wpuf_price_args', wp_parse_args(
2567
- $args, [
2568
- 'currency' => $formated ? wpuf_get_currency( 'symbol' ) : '',
2569
- 'decimal_separator' => wpuf_get_price_decimal_separator(),
2570
- 'thousand_separator' => $formated ? wpuf_get_price_thousand_separator() : '',
2571
- 'decimals' => wpuf_get_price_decimals(),
2572
- 'price_format' => get_wpuf_price_format(),
2573
- ]
2574
- )
2575
- );
2576
 
2577
  $currency = $price_args['currency'];
2578
  $decimal_separator = $price_args['decimal_separator'];
@@ -3561,9 +3561,27 @@ function wpuf_ajax_get_states_field() {
3561
  'options' => $states,
3562
  'show_option_all' => false,
3563
  'show_option_none' => false,
 
3564
  ];
3565
 
3566
- $response = wpuf_select( $args );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3567
  } else {
3568
  $response = 'nostates';
3569
  }
@@ -3728,11 +3746,11 @@ function wpuf_show_form_schedule_message( $form_id ) {
3728
  echo wp_kses_post( '<div class="wpuf-message">' . $form_settings['form_expired_message'] . '</div>' );
3729
  }
3730
  ?>
3731
- <script>
3732
- jQuery( function($) {
3733
- $(".wpuf-submit-button").attr("disabled", "disabled");
3734
- });
3735
- </script>
3736
  <?php
3737
  return;
3738
  }
2035
  }
2036
 
2037
  $sections = array_merge(
2038
+ // dashboard should be the first item
2039
  [ 'dashboard' => __( 'Dashboard', 'wp-user-frontend' ) ],
2040
  $cpt_sections,
2041
  $sections
2562
  */
2563
  function wpuf_format_price( $price, $formated = true, $args = [] ) {
2564
 
2565
+ $price_args = apply_filters(
2566
+ 'wpuf_price_args', wp_parse_args(
2567
+ $args, [
2568
+ 'currency' => $formated ? wpuf_get_currency( 'symbol' ) : '',
2569
+ 'decimal_separator' => wpuf_get_price_decimal_separator(),
2570
+ 'thousand_separator' => $formated ? wpuf_get_price_thousand_separator() : '',
2571
+ 'decimals' => wpuf_get_price_decimals(),
2572
+ 'price_format' => get_wpuf_price_format(),
2573
+ ]
2574
+ )
2575
+ );
2576
 
2577
  $currency = $price_args['currency'];
2578
  $decimal_separator = $price_args['decimal_separator'];
3561
  'options' => $states,
3562
  'show_option_all' => false,
3563
  'show_option_none' => false,
3564
+ 'data' => [ 'required' => 'yes', 'type' => 'select' ],
3565
  ];
3566
 
3567
+ $allowed_html = [
3568
+ 'select' => [
3569
+ 'class' => [],
3570
+ 'name' => [],
3571
+ 'id' => [],
3572
+ 'data-placeholder' => [],
3573
+ 'data-required' => [],
3574
+ 'data-type' => [],
3575
+ ],
3576
+ 'option' => [
3577
+ 'value' => [],
3578
+ 'class' => [],
3579
+ 'id' => [],
3580
+ 'selected' => []
3581
+ ],
3582
+ ];
3583
+
3584
+ $response = wp_kses( wpuf_select( $args ), $allowed_html );
3585
  } else {
3586
  $response = 'nostates';
3587
  }
3746
  echo wp_kses_post( '<div class="wpuf-message">' . $form_settings['form_expired_message'] . '</div>' );
3747
  }
3748
  ?>
3749
+ <script>
3750
+ jQuery( function($) {
3751
+ $(".wpuf-submit-button").attr("disabled", "disabled");
3752
+ });
3753
+ </script>
3754
  <?php
3755
  return;
3756
  }
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: weDevs
7
- Version: 3.5.21
8
  Author URI: https://wedevs.com/?utm_source=WPUF_Author_URI
9
  License: GPL2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -12,7 +12,7 @@ Text Domain: wp-user-frontend
12
  Domain Path: /languages
13
  */
14
 
15
- define( 'WPUF_VERSION', '3.5.21' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', __DIR__ );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
@@ -172,7 +172,9 @@ final class WP_User_Frontend {
172
  * @since 2.2.7
173
  */
174
  public static function set_schedule_events() {
175
- wp_schedule_event( time(), 'daily', 'wpuf_remove_expired_post_hook' );
 
 
176
  }
177
 
178
  /**
@@ -345,6 +347,7 @@ final class WP_User_Frontend {
345
 
346
  $this->container['subscription'] = WPUF_Subscription::init();
347
  $this->container['account'] = new WPUF_Frontend_Account();
 
348
  $this->container['forms'] = new WPUF_Form_Manager();
349
  $this->container['preview'] = new WPUF_Form_Preview();
350
  $this->container['block'] = new WPUF_Form_Block();
@@ -426,13 +429,8 @@ final class WP_User_Frontend {
426
  * @since 2.5.4
427
  */
428
  public function wpuf_loader() {
429
- $is_expired = wpuf_is_license_expired();
430
  $has_pro = class_exists( 'WP_User_Frontend_Pro' );
431
 
432
- if ( $has_pro && $is_expired ) {
433
- add_action( 'admin_notices', [ $this, 'license_expired' ] );
434
- }
435
-
436
  if ( $has_pro ) {
437
  $this->is_pro = true;
438
  add_action( 'admin_notices', [ $this, 'wpuf_latest_pro_activation_notice' ] );
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: weDevs
7
+ Version: 3.5.22
8
  Author URI: https://wedevs.com/?utm_source=WPUF_Author_URI
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', '3.5.22' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', __DIR__ );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
172
  * @since 2.2.7
173
  */
174
  public static function set_schedule_events() {
175
+ if ( ! wp_next_scheduled( 'wpuf_remove_expired_post_hook' ) ) {
176
+ wp_schedule_event(time(), 'daily', 'wpuf_remove_expired_post_hook');
177
+ }
178
  }
179
 
180
  /**
347
 
348
  $this->container['subscription'] = WPUF_Subscription::init();
349
  $this->container['account'] = new WPUF_Frontend_Account();
350
+ $this->container['billing_address'] = new WPUF_Ajax_Address_Form();
351
  $this->container['forms'] = new WPUF_Form_Manager();
352
  $this->container['preview'] = new WPUF_Form_Preview();
353
  $this->container['block'] = new WPUF_Form_Block();
429
  * @since 2.5.4
430
  */
431
  public function wpuf_loader() {
 
432
  $has_pro = class_exists( 'WP_User_Frontend_Pro' );
433
 
 
 
 
 
434
  if ( $has_pro ) {
435
  $this->is_pro = true;
436
  add_action( 'admin_notices', [ $this, 'wpuf_latest_pro_activation_notice' ] );