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

Version Description

Download this release

Release Info

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

Code changes from version 2.4.1 to 2.4.2

.svnignore CHANGED
@@ -3,4 +3,5 @@ nbproject
3
  Gruntfile.js
4
  package.json
5
  docs.md
6
- changelog.txt
 
3
  Gruntfile.js
4
  package.json
5
  docs.md
6
+ changelog.txt
7
+ plugin-deploy.sh
admin/form.php CHANGED
@@ -735,7 +735,8 @@ class WPUF_Admin_Form {
735
  'hierarchical' => true,
736
  'selected' => $default_cat,
737
  'name' => 'wpuf_settings[default_cat]',
738
- 'show_option_none' => __( '- None -', 'wpuf' )
 
739
  ) );
740
  ?>
741
  <p class="description"><?php echo __( 'If users are not allowed to choose any category, this category will be used instead (if post type supports)', 'wpuf' ); ?></p>
735
  'hierarchical' => true,
736
  'selected' => $default_cat,
737
  'name' => 'wpuf_settings[default_cat]',
738
+ 'show_option_none' => __( '- None -', 'wpuf' ),
739
+ 'taxonomy' => ( $post_type_selected == 'product' ) ? 'product_cat' : 'category'
740
  ) );
741
  ?>
742
  <p class="description"><?php echo __( 'If users are not allowed to choose any category, this category will be used instead (if post type supports)', 'wpuf' ); ?></p>
admin/installer.php CHANGED
@@ -71,6 +71,7 @@ class WPUF_Admin_Installer {
71
 
72
  // create a dashboard page
73
  $dashboard_page = $this->create_page( __( 'Dashboard', 'wpuf' ), '[wpuf_dashboard]' );
 
74
  $edit_page = $this->create_page( __( 'Edit', 'wpuf' ), '[wpuf_edit]' );
75
 
76
  // login page
71
 
72
  // create a dashboard page
73
  $dashboard_page = $this->create_page( __( 'Dashboard', 'wpuf' ), '[wpuf_dashboard]' );
74
+ $account_page = $this->create_page( __( 'Account', 'wpuf' ), '[wpuf_account]' );
75
  $edit_page = $this->create_page( __( 'Edit', 'wpuf' ), '[wpuf_edit]' );
76
 
77
  // login page
admin/settings-options.php CHANGED
@@ -37,6 +37,15 @@ function wpuf_settings_fields() {
37
  $pages = wpuf_get_pages();
38
  $users = wpuf_list_users();
39
 
 
 
 
 
 
 
 
 
 
40
  $settings_fields = array(
41
  'wpuf_general' => apply_filters( 'wpuf_options_others', array(
42
  array(
@@ -294,38 +303,19 @@ function wpuf_settings_fields() {
294
  'label' => __( 'Currency', 'wpuf' ),
295
  'type' => 'select',
296
  'default' => 'USD',
297
- 'options' => array(
298
- 'AUD' => 'Australian Dollar',
299
- 'CAD' => 'Canadian Dollar',
300
- 'EUR' => 'Euro',
301
- 'GBP' => 'British Pound',
302
- 'JPY' => 'Japanese Yen',
303
- 'USD' => 'U.S. Dollar',
304
- 'NZD' => 'New Zealand Dollar',
305
- 'CHF' => 'Swiss Franc',
306
- 'HKD' => 'Hong Kong Dollar',
307
- 'SGD' => 'Singapore Dollar',
308
- 'SEK' => 'Swedish Krona',
309
- 'DKK' => 'Danish Krone',
310
- 'PLN' => 'Polish Zloty',
311
- 'NOK' => 'Norwegian Krone',
312
- 'HUF' => 'Hungarian Forint',
313
- 'CZK' => 'Czech Koruna',
314
- 'ILS' => 'Israeli New Shekel',
315
- 'MXN' => 'Mexican Peso',
316
- 'BRL' => 'Brazilian Real',
317
- 'MYR' => 'Malaysian Ringgit',
318
- 'PHP' => 'Philippine Peso',
319
- 'TWD' => 'New Taiwan Dollar',
320
- 'THB' => 'Thai Baht',
321
- 'TRY' => 'Turkish Lira'
322
- )
323
  ),
324
  array(
325
- 'name' => 'currency_symbol',
326
- 'label' => __( 'Currency Symbol', 'wpuf' ),
327
- 'type' => 'text',
328
- 'default' => '$'
 
 
 
 
 
 
329
  ),
330
  array(
331
  'name' => 'cost_per_post',
37
  $pages = wpuf_get_pages();
38
  $users = wpuf_list_users();
39
 
40
+ $all_currencies = wpuf_get_currencies();
41
+
42
+ $currencies = array();
43
+ foreach ( $all_currencies as $currency ) {
44
+ $currencies[ $currency['currency'] ] = $currency['label'] . ' (' . $currency['symbol'] . ')';
45
+ }
46
+
47
+ $default_currency_symbol = wpuf_get_currency( 'symbol' );
48
+
49
  $settings_fields = array(
50
  'wpuf_general' => apply_filters( 'wpuf_options_others', array(
51
  array(
303
  'label' => __( 'Currency', 'wpuf' ),
304
  'type' => 'select',
305
  'default' => 'USD',
306
+ 'options' => $currencies
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
307
  ),
308
  array(
309
+ 'name' => 'currency_position',
310
+ 'label' => __( 'Currency Position', 'wpuf' ),
311
+ 'type' => 'select',
312
+ 'default' => 'left',
313
+ 'options' => array(
314
+ 'left' => sprintf( '%1$s (%2$s99.99)', __( 'Left', 'wpuf' ), $default_currency_symbol ),
315
+ 'right' => sprintf( '%1$s (99.99%2$s)', __( 'Right', 'wpuf' ), $default_currency_symbol ),
316
+ 'left_space' => sprintf( '%1$s (%2$s 99.99)', __( 'Left with space', 'wpuf' ), $default_currency_symbol ),
317
+ 'right_space' => sprintf( '%1$s (99.99 %2$s)', __( 'Right with space', 'wpuf' ), $default_currency_symbol ),
318
+ )
319
  ),
320
  array(
321
  'name' => 'cost_per_post',
admin/settings.php CHANGED
@@ -12,7 +12,7 @@ class WPUF_Admin_Settings {
12
 
13
  function __construct() {
14
 
15
- if ( !class_exists( 'WeDevs_Settings_API' ) ) {
16
  require_once dirname( dirname( __FILE__ ) ) . '/lib/class.settings-api.php';
17
  }
18
 
@@ -59,14 +59,17 @@ class WPUF_Admin_Settings {
59
  */
60
  do_action( 'wpuf_admin_menu_top' );
61
 
62
- add_submenu_page( 'wpuf-admin-opt', __( 'Subscription', 'wpuf' ), __( 'Subscription', 'wpuf' ), $capability, 'edit.php?post_type=wpuf_subscription' );
63
 
64
  do_action( 'wpuf_admin_menu' );
65
 
66
- add_submenu_page( 'wpuf-admin-opt', __( 'Transaction', 'wpuf' ), __( 'Transaction', 'wpuf' ), $capability, 'wpuf_transaction', array($this, 'transaction_page') );
67
  add_submenu_page( 'wpuf-admin-opt', __( 'Add-ons', 'wpuf' ), __( 'Add-ons', 'wpuf' ), $capability, 'wpuf_addons', array($this, 'addons_page') );
68
  add_submenu_page( 'wpuf-admin-opt', __( 'Tools', 'wpuf' ), __( 'Tools', 'wpuf' ), $capability, 'wpuf_tools', array($this, 'tools_page') );
69
  add_submenu_page( 'wpuf-admin-opt', __( 'Settings', 'wpuf' ), __( 'Settings', 'wpuf' ), $capability, 'wpuf-settings', array($this, 'plugin_page') );
 
 
 
70
  }
71
 
72
  /**
@@ -105,8 +108,8 @@ class WPUF_Admin_Settings {
105
  <?php
106
  }
107
 
108
- function transaction_page() {
109
- require_once dirname( dirname( __FILE__ ) ) . '/admin/transaction.php';
110
  }
111
 
112
  function subscription_page() {
@@ -225,4 +228,31 @@ class WPUF_Admin_Settings {
225
  }
226
  }
227
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  }
12
 
13
  function __construct() {
14
 
15
+ if ( ! class_exists( 'WeDevs_Settings_API' ) ) {
16
  require_once dirname( dirname( __FILE__ ) ) . '/lib/class.settings-api.php';
17
  }
18
 
59
  */
60
  do_action( 'wpuf_admin_menu_top' );
61
 
62
+ add_submenu_page( 'wpuf-admin-opt', __( 'Subscriptions', 'wpuf' ), __( 'Subscriptions', 'wpuf' ), $capability, 'edit.php?post_type=wpuf_subscription' );
63
 
64
  do_action( 'wpuf_admin_menu' );
65
 
66
+ $transactions_page = add_submenu_page( 'wpuf-admin-opt', __( 'Transactions', 'wpuf' ), __( 'Transactions', 'wpuf' ), $capability, 'wpuf_transaction', array($this, 'transactions_page') );
67
  add_submenu_page( 'wpuf-admin-opt', __( 'Add-ons', 'wpuf' ), __( 'Add-ons', 'wpuf' ), $capability, 'wpuf_addons', array($this, 'addons_page') );
68
  add_submenu_page( 'wpuf-admin-opt', __( 'Tools', 'wpuf' ), __( 'Tools', 'wpuf' ), $capability, 'wpuf_tools', array($this, 'tools_page') );
69
  add_submenu_page( 'wpuf-admin-opt', __( 'Settings', 'wpuf' ), __( 'Settings', 'wpuf' ), $capability, 'wpuf-settings', array($this, 'plugin_page') );
70
+
71
+ add_action( "load-$transactions_page", array( $this, 'transactions_screen_option' ) );
72
+ add_action( "load-$transactions_page", array( $this, 'enqueue_styles' ) );
73
  }
74
 
75
  /**
108
  <?php
109
  }
110
 
111
+ function transactions_page() {
112
+ require_once dirname( dirname( __FILE__ ) ) . '/admin/transactions.php';
113
  }
114
 
115
  function subscription_page() {
228
  }
229
  }
230
  }
231
+
232
+ /**
233
+ * Screen options.
234
+ *
235
+ * @return void
236
+ */
237
+ public function transactions_screen_option() {
238
+ $option = 'per_page';
239
+ $args = array(
240
+ 'label' => __( 'Number of items per page:', 'wpuf' ),
241
+ 'default' => 20,
242
+ 'option' => 'transactions_per_page'
243
+ );
244
+
245
+ add_screen_option( $option, $args );
246
+
247
+ $this->transactions_list_table_obj = new WPUF_Transactions_List_Table();
248
+ }
249
+
250
+ /**
251
+ * Enqueue styles
252
+ *
253
+ * @return void
254
+ */
255
+ public function enqueue_styles() {
256
+ wp_enqueue_style( 'wpuf-admin', WPUF_ASSET_URI . '/css/admin.css' );
257
+ }
258
  }
admin/subscription.php CHANGED
@@ -133,8 +133,7 @@ class WPUF_Admin_Subscription {
133
  if ( intval($amount) == 0 ) {
134
  $amount = __( 'Free', 'wpuf' );
135
  } else {
136
- $currency = wpuf_get_option( 'currency_symbol', 'wpuf_payment' );
137
- $amount = $currency . $amount;
138
  }
139
  echo $amount;
140
  break;
@@ -220,7 +219,7 @@ class WPUF_Admin_Subscription {
220
  <tr valign="top" <?php echo ( ($count % 2) == 0) ? 'class="alternate"' : ''; ?>>
221
  <td><?php echo stripslashes( htmlspecialchars( $row->name ) ); ?></td>
222
  <td><?php echo stripslashes( htmlspecialchars( $row->description ) ); ?></td>
223
- <td><?php echo $row->cost; ?> <?php echo get_option( 'wpuf_sub_currency' ); ?></td>
224
  <td><?php echo ( $row->pack_length == 0 ) ? 'Unlimited' : $row->pack_length . ' days'; ?></td>
225
  <td><?php echo ( $row->count == 0 ) ? 'Unlimited' : $row->count; ?></td>
226
  <td>
@@ -297,7 +296,8 @@ class WPUF_Admin_Subscription {
297
  <span class="wpuf-biling-amount wpuf-subcription-expire" style="display: <?php echo $hidden_expire; ?>;"><?php _e( 'Billing amount:', 'wpuf' ); ?></span>
298
  <span class="wpuf-billing-cycle wpuf-recurring-child" style="display: <?php echo $hidden_recurring_class; ?>;"><?php _e( 'Billing amount each cycle:', 'wpuf' ); ?></span></label></th>
299
  <td>
300
- <?php echo wpuf_get_option( 'currency_symbol', 'wpuf_payment', '$' ); ?><input type="text" size="20" style="" id="wpuf-billing-amount" value="<?php echo esc_attr( $sub_meta['billing_amount'] ); ?>" name="billing_amount" />
 
301
  <div><span class="description"></span></div>
302
  </td>
303
  </tr>
133
  if ( intval($amount) == 0 ) {
134
  $amount = __( 'Free', 'wpuf' );
135
  } else {
136
+ $amount = wpuf_format_price( $amount, true );
 
137
  }
138
  echo $amount;
139
  break;
219
  <tr valign="top" <?php echo ( ($count % 2) == 0) ? 'class="alternate"' : ''; ?>>
220
  <td><?php echo stripslashes( htmlspecialchars( $row->name ) ); ?></td>
221
  <td><?php echo stripslashes( htmlspecialchars( $row->description ) ); ?></td>
222
+ <td><?php echo wpuf_format_price( $row->cost ); ?></td>
223
  <td><?php echo ( $row->pack_length == 0 ) ? 'Unlimited' : $row->pack_length . ' days'; ?></td>
224
  <td><?php echo ( $row->count == 0 ) ? 'Unlimited' : $row->count; ?></td>
225
  <td>
296
  <span class="wpuf-biling-amount wpuf-subcription-expire" style="display: <?php echo $hidden_expire; ?>;"><?php _e( 'Billing amount:', 'wpuf' ); ?></span>
297
  <span class="wpuf-billing-cycle wpuf-recurring-child" style="display: <?php echo $hidden_recurring_class; ?>;"><?php _e( 'Billing amount each cycle:', 'wpuf' ); ?></span></label></th>
298
  <td>
299
+ <?php echo wpuf_get_currency( 'symbol' ); ?>
300
+ <input type="text" size="20" style="" id="wpuf-billing-amount" value="<?php echo esc_attr( $sub_meta['billing_amount'] ); ?>" name="billing_amount" />
301
  <div><span class="description"></span></div>
302
  </td>
303
  </tr>
admin/transaction.php DELETED
@@ -1,227 +0,0 @@
1
- <?php
2
- global $wpdb;
3
-
4
- $base_url = admin_url( 'admin.php?page=wpuf_transaction' );
5
-
6
- if ( isset( $_GET['action'] ) && $_GET['action'] == 'order_accept' ) {
7
-
8
- if ( ! current_user_can( 'manage_options' ) ) {
9
- return;
10
- }
11
-
12
- $order_id = isset( $_GET['id'] ) ? intval( $_GET['id'] ) : 0;
13
- $info = get_post_meta( $order_id, '_data', true );
14
-
15
- if ( $info ) {
16
-
17
- switch ($info['type']) {
18
- case 'post':
19
- $post_id = $info['item_number'];
20
- $pack_id = 0;
21
- break;
22
-
23
- case 'pack':
24
- $post_id = 0;
25
- $pack_id = $info['item_number'];
26
- break;
27
- }
28
-
29
- $transaction = array(
30
- 'user_id' => $info['user_info']['id'],
31
- 'status' => 'completed',
32
- 'cost' => $info['price'],
33
- 'post_id' => $post_id,
34
- 'pack_id' => $pack_id,
35
- 'payer_first_name' => $info['user_info']['first_name'],
36
- 'payer_last_name' => $info['user_info']['last_name'],
37
- 'payer_email' => $info['user_info']['email'],
38
- 'payment_type' => 'Bank/Manual',
39
- 'transaction_id' => $order_id,
40
- 'created' => current_time( 'mysql' )
41
- );
42
-
43
- do_action( 'wpuf_gateway_bank_order_complete', $transaction, $order_id );
44
-
45
- WPUF_Payment::insert_payment( $transaction );
46
- wp_delete_post( $order_id, true );
47
- }
48
- }
49
-
50
- if ( isset( $_GET['action'] ) && $_GET['action'] == 'order_reject' ) {
51
- $order_id = isset( $_GET['id'] ) ? intval( $_GET['id'] ) : 0;
52
- do_action( 'wpuf_gateway_bank_order_reject', $order_id );
53
- wp_delete_post( $order_id, true );
54
- }
55
-
56
- if ( isset( $_POST['delete_selected'] ) ) {
57
-
58
- if ( !wp_verify_nonce( $_POST['_wpnonce'], 'wpuf_delete_transactions' ) ) {
59
- wp_die("Cheating?");
60
- }
61
-
62
- if ( isset( $_POST['tr_id'] ) ) {
63
- foreach ($_POST['tr_id'] as $tr_id) {
64
- $wpdb->delete( $wpdb->prefix . 'wpuf_transaction', array('id' => $tr_id), array('%d') );
65
- }
66
-
67
- $transaction_deleted = true;
68
- }
69
- }
70
-
71
- $total_income = $wpdb->get_var( "SELECT SUM(cost) FROM {$wpdb->prefix}wpuf_transaction WHERE status = 'completed'" );
72
- $month_income = $wpdb->get_var( "SELECT SUM(cost) FROM {$wpdb->prefix}wpuf_transaction WHERE YEAR(`created`) = YEAR(NOW()) AND MONTH(`created`) = MONTH(NOW()) AND status = 'completed'" );
73
- $transactions = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}wpuf_transaction ORDER BY `created` DESC LIMIT 0, 60", OBJECT );
74
- ?>
75
- <div class="wrap">
76
- <?php screen_icon( 'options-general' ); ?>
77
- <h2><?php _e( 'WP User Frontend: Payments Received', 'wpuf' ); ?></h2>
78
-
79
- <ul>
80
- <li>
81
- <strong><?php _e( 'Total Income:', 'wpuf' ); ?></strong> <?php echo get_option( 'wpuf_sub_currency_sym' ) . $total_income; ?><br />
82
- </li>
83
- <li>
84
- <strong><?php _e( 'This Month:', 'wpuf' ); ?></strong> <?php echo get_option( 'wpuf_sub_currency_sym' ) . $month_income; ?>
85
- </li>
86
- </ul>
87
-
88
- <?php if ( isset( $transaction_deleted ) && $transaction_deleted == true ) { ?>
89
- <div class="updated">
90
- <p><strong><?php _e( 'Transaction(s) deleted', 'wpuf' ); ?></strong></p>
91
- </div>
92
- <?php } ?>
93
-
94
- <form method="post" action="">
95
- <?php wp_nonce_field( 'wpuf_delete_transactions' ); ?>
96
-
97
- <table class="widefat meta" style="margin-top: 20px;">
98
- <thead>
99
- <tr>
100
- <th scope="col" class="manage-column column-cb check-column"><input type="checkbox"></th>
101
- <th scope="col"><?php _e( 'User ID', 'wpuf' ); ?></th>
102
- <th scope="col"><?php _e( 'Status', 'wpuf' ); ?></th>
103
- <th scope="col"><?php _e( 'Cost', 'wpuf' ); ?></th>
104
- <th scope="col"><?php _e( 'Post', 'wpuf' ); ?></th>
105
- <th scope="col"><?php _e( 'Pack ID', 'wpuf' ); ?></th>
106
- <th scope="col"><?php _e( 'Payer', 'wpuf' ); ?></th>
107
- <th scope="col"><?php _e( 'Email', 'wpuf' ); ?></th>
108
- <th scope="col"><?php _e( 'Type', 'wpuf' ); ?></th>
109
- <th scope="col"><?php _e( 'Transaction ID', 'wpuf' ); ?></th>
110
- <th scope="col"><?php _e( 'Created', 'wpuf' ); ?></th>
111
- </tr>
112
- </thead>
113
- <?php
114
- if ( $transactions ) {
115
- $count = 0;
116
- foreach ($transactions as $row) {
117
- ?>
118
- <tr valign="top" <?php echo ( ($count % 2) == 0) ? 'class="alternate"' : ''; ?>>
119
- <th scope="row" class="check-column">
120
- <input id="cb-select-8231" type="checkbox" name="tr_id[]" value="<?php echo $row->id; ?>">
121
- </th>
122
- <td>
123
- <?php printf( '<a href="%s">%d</a>', admin_url( 'user-edit.php?user_id=' . $row->user_id ), $row->user_id ); ?>
124
- </td>
125
- <td><?php echo stripslashes( htmlspecialchars( $row->status ) ); ?></td>
126
- <td><?php echo stripslashes( htmlspecialchars( $row->cost ) ); ?></td>
127
- <td>
128
- <?php
129
- if ( $row->post_id ) {
130
- $post = WPUF_Subscription::post_by_orderid( $row->post_id );
131
- if ( $post) {
132
- printf( '<a href="%s">%s</a>', get_permalink( $post->ID ), $post->post_title );
133
- }
134
- } else {
135
- echo '&mdash;';
136
- }
137
- ?>
138
- </td>
139
- <td>
140
- <?php printf( '<a href="%s">%s</a>', admin_url( 'post.php?action=edit&post=' . $row->pack_id ), get_post_field( 'post_title', $row->pack_id ) ); ?>
141
- </td>
142
- <td><?php echo $row->payer_first_name . ' ' . $row->payer_last_name; ?></td>
143
- <td><?php echo stripslashes( htmlspecialchars( $row->payer_email ) ); ?></td>
144
- <td><?php echo stripslashes( htmlspecialchars( $row->payment_type ) ); ?></td>
145
- <td><?php echo stripslashes( htmlspecialchars( $row->transaction_id ) ); ?></td>
146
- <td><?php echo stripslashes( htmlspecialchars( $row->created ) ); ?></td>
147
-
148
- </tr>
149
- <?php
150
- $count++;
151
- }
152
- ?>
153
- <?php } else { ?>
154
- <tr>
155
- <td colspan="11"><?php _e( 'Nothing Found', 'wpuf' ); ?></td>
156
- </tr>
157
- <?php } ?>
158
-
159
- </table>
160
-
161
- <br>
162
- <input type="submit" class="button" name="delete_selected" value="<?php esc_attr_e( 'Delete Selected', 'wpuf' ); ?>">
163
- </form>
164
-
165
-
166
- <h2 style="margin-top: 30px;"><?php _e( 'Pending Orders', 'wpuf' ); ?></h2>
167
- <?php
168
- $args = array(
169
- 'post_type' => 'wpuf_order',
170
- 'post_status' => array( 'publish', 'pending' ),
171
- 'posts_per_page' => -1
172
- );
173
- $wpuf_order_query = new WP_Query( apply_filters( 'wpuf_order_query', $args ) );
174
- $orders = $wpuf_order_query->get_posts();
175
-
176
- if ( $orders ) {
177
- ?>
178
-
179
- <table class="widefat meta" style="margin-top: 10px;">
180
- <thead>
181
- <tr>
182
- <th scope="col"><?php _e( 'ID', 'wpuf' ); ?></th>
183
- <th scope="col"><?php _e( 'User', 'wpuf' ); ?></th>
184
- <th scope="col"><?php _e( 'Type', 'wpuf' ); ?></th>
185
- <th scope="col"><?php _e( 'Cost', 'wpuf' ); ?></th>
186
- <th scope="col"><?php _e( 'Item Details', 'wpuf' ); ?></th>
187
- <th scope="col"><?php _e( 'Date', 'wpuf' ); ?></th>
188
- <th scope="col"><?php _e( 'Action', 'wpuf' ); ?></th>
189
- </tr>
190
- </thead>
191
- <?php
192
- if ( $orders ) {
193
- $count = 0;
194
- foreach ($orders as $order) {
195
- $data = get_post_meta( $order->ID, '_data', true );
196
- // var_dump( $data );
197
- ?>
198
- <tr valign="top" <?php echo ( ($count % 2) == 0) ? 'class="alternate"' : ''; ?>>
199
- <td>#<?php echo $order->ID; ?></td>
200
- <td><?php printf('<a href="%s">[%d] %s %s</a>', admin_url( 'user-edit.php?user_id=' . $data['user_info']['id'] ), $data['user_info']['id'], $data['user_info']['first_name'], $data['user_info']['last_name'] ); ?></td>
201
- <td><?php echo ucfirst( $data['type'] ); ?></td>
202
- <td><?php echo $data['price'] . ' ' . $data['currency']; ?></td>
203
- <td><?php echo $data['item_name']; ?></td>
204
- <td><?php echo $data['date']; ?></td>
205
- <td>
206
- <a class="button" onclick="return confirm('Are you sure?');" href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'order_accept', 'id' => $order->ID ), $base_url), 'wpuf_order_accept' ); ?>"><?php _e( 'Accept', 'wpuf' ); ?></a>
207
- <a class="button" onclick="return confirm('Are you sure?');" href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'order_reject', 'id' => $order->ID ), $base_url), 'wpuf_order_accept' ); ?>"><?php _e( 'Reject', 'wpuf' ); ?></a>
208
- </td>
209
-
210
- </tr>
211
- <?php
212
- $count++;
213
- }
214
- ?>
215
- <?php } else { ?>
216
- <tr>
217
- <td colspan="11"><?php _e( 'Nothing Found', 'wpuf' ); ?></td>
218
- </tr>
219
- <?php } ?>
220
-
221
- </table>
222
- <?php } else { ?>
223
-
224
- <?php _e( 'No pending orders found', 'wpuf' ); ?>
225
-
226
- <?php } ?>
227
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/transactions.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="wrap">
2
+ <h2><?php _e( 'Transactions', 'wpuf' ); ?></h2>
3
+
4
+ <?php
5
+ global $wpdb;
6
+ $total_income = $wpdb->get_var( "SELECT SUM(cost) FROM {$wpdb->prefix}wpuf_transaction WHERE status = 'completed'" );
7
+ $month_income = $wpdb->get_var( "SELECT SUM(cost) FROM {$wpdb->prefix}wpuf_transaction WHERE YEAR(`created`) = YEAR(NOW()) AND MONTH(`created`) = MONTH(NOW()) AND status = 'completed'" );
8
+ ?>
9
+
10
+ <ul>
11
+ <li>
12
+ <strong><?php _e( 'Total Income:', 'wpuf' ); ?></strong> <?php echo wpuf_format_price( $total_income, true ); ?><br />
13
+ </li>
14
+ <li>
15
+ <strong><?php _e( 'This Month:', 'wpuf' ); ?></strong> <?php echo wpuf_format_price( $month_income, true ); ?>
16
+ </li>
17
+ </ul>
18
+
19
+ <form method="post">
20
+ <input type="hidden" name="page" value="transactions">
21
+ <?php
22
+ $this->transactions_list_table_obj->prepare_items();
23
+ $this->transactions_list_table_obj->views();
24
+ $this->transactions_list_table_obj->display();
25
+ ?>
26
+ </form>
27
+ </div>
assets/css/admin.css CHANGED
@@ -152,3 +152,17 @@ span.wpuf_help{
152
  padding: 0 0 0 20px;
153
  margin-bottom: 10px;
154
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  padding: 0 0 0 20px;
153
  margin-bottom: 10px;
154
  }
155
+ .wpuf-status-completed {
156
+ background: url(../images/completed.png);
157
+ background-size: cover;
158
+ width: 18px;
159
+ height: 18px;
160
+ display: block;
161
+ }
162
+ .wpuf-status-processing {
163
+ background: url(../images/processing.png);
164
+ background-size: cover;
165
+ width: 18px;
166
+ height: 18px;
167
+ display: block;
168
+ }
assets/css/frontend-forms.css CHANGED
@@ -21,12 +21,12 @@
21
  .wpuf-button:hover,
22
  .wpuf-button:focus {
23
  background: #f3f3f3;
24
- background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f3f3f3));
25
- background-image: -webkit-linear-gradient(top, #ffffff, #f3f3f3);
26
- background-image: -moz-linear-gradient(top, #ffffff, #f3f3f3);
27
- background-image: -ms-linear-gradient(top, #ffffff, #f3f3f3);
28
- background-image: -o-linear-gradient(top, #ffffff, #f3f3f3);
29
- background-image: linear-gradient(to bottom, #ffffff, #f3f3f3);
30
  border-color: #999;
31
  color: #222;
32
  }
@@ -89,7 +89,7 @@ ul.wpuf-form li.has-error {
89
  background: #FFE4E4;
90
  }
91
  ul.wpuf-form li .wp-editor-wrap {
92
- border: 1px solid #eeeeee;
93
  }
94
  ul.wpuf-form li .wpuf-label {
95
  float: left;
@@ -135,7 +135,7 @@ ul.wpuf-form li .wpuf-fields input[type=number] {
135
  padding: 5px;
136
  }
137
  ul.wpuf-form li .wpuf-fields select {
138
- border: 1px solid #eeeeee;
139
  padding: 2px;
140
  height: 2em;
141
  -webkit-border-radius: 3px;
@@ -217,7 +217,7 @@ ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list {
217
  }
218
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li {
219
  display: inline-block;
220
- border: 1px solid #eeeeee;
221
  padding: 5px;
222
  width: 150px;
223
  margin-right: 5px;
@@ -230,7 +230,7 @@ ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .wpuf-file-input-wrap {
230
  }
231
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .wpuf-file-input-wrap input,
232
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .wpuf-file-input-wrap textarea {
233
- border: 1px solid #eeeeee;
234
  width: 93%;
235
  }
236
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .attachment-name {
@@ -268,7 +268,7 @@ ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li a.wpuf-delete-avatar:act
268
  *background-color: #a9302a;
269
  }
270
  ul.wpuf-form li .wpuf-fields .progress {
271
- background: -moz-linear-gradient(center bottom, #ffffff 0%, #f7f7f7 100%) repeat scroll 0 0 #ffffff;
272
  border: 1px solid #D1D1D1;
273
  border-radius: 3px 3px 3px 3px;
274
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1) inset;
@@ -282,7 +282,7 @@ ul.wpuf-form li .wpuf-fields .progress {
282
  }
283
  ul.wpuf-form li .wpuf-fields .bar {
284
  background-color: #83B4D8;
285
- background-image: -moz-linear-gradient(center bottom, #72a7cf 0%, #90c5ee 100%);
286
  border-radius: 3px 3px 3px 3px;
287
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
288
  height: 100%;
@@ -402,26 +402,25 @@ ul.wpuf-form .wpuf-submit .wpuf-errors {
402
  .wpuf_sub_info {
403
  padding: 0;
404
  margin: 10px 5px;
405
- border: 1px solid #eeeeee;
406
  border-radius: 3px;
407
  }
408
  .wpuf_sub_info h3 {
 
 
409
  margin: 0 0 5px 0 !important;
410
- background: green;
411
- color: #fff !important;
412
- padding: 3px 10px !important;
413
- font-weight: bold;
414
  }
415
  .wpuf_sub_info .wpuf-text {
416
  padding: 5px 10px;
417
  }
418
  .wpuf_sub_info .wpuf-expire {
419
- border-top: 1px solid #eeeeee;
420
  padding-top: 5px;
421
  margin-top: 5px;
422
  }
423
  .wpuf-coupon-info-wrap {
424
- border: 1px solid #eeeeee;
425
  padding: 15px;
426
  margin-bottom: 20px;
427
  }
@@ -451,12 +450,12 @@ ul.wpuf-form .wpuf-submit .wpuf-errors {
451
  .wpuf-coupon-info-wrap .wpuf-pack-info h3 {
452
  margin: 0 0 10px 0;
453
  padding: 0 0 10px 0;
454
- border-bottom: 1px solid #eeeeee;
455
  }
456
  .wpuf-coupon-info-wrap .wpuf-pack-info h3 a {
457
  float: right;
458
  text-decoration: none;
459
- background: #64c3de;
460
  color: #fff;
461
  padding: 3px 8px;
462
  font-size: 14px;
@@ -518,7 +517,7 @@ ul.wpuf_packs h3 {
518
  }
519
  .entry-content ul.wpuf_packs .wpuf-pricing-wrap,
520
  ul.wpuf_packs .wpuf-pricing-wrap {
521
- background: #64c3de;
522
  }
523
  .entry-content ul.wpuf_packs .wpuf-pricing-wrap .wpuf-sub-amount,
524
  ul.wpuf_packs .wpuf-pricing-wrap .wpuf-sub-amount {
@@ -563,7 +562,7 @@ ul.wpuf_packs .wpuf-sub-button {
563
  }
564
  .entry-content ul.wpuf_packs .wpuf-sub-button a,
565
  ul.wpuf_packs .wpuf-sub-button a {
566
- background: #64c3de;
567
  color: #fff;
568
  text-decoration: none;
569
  padding: 5px 10px;
@@ -919,7 +918,7 @@ fieldset.wpuf-multistep-fieldset .wpuf-multistep-next-btn {
919
  .wpuf-form .wpuf-multistep-progressbar.ui-progressbar {
920
  margin-bottom: 30px;
921
  height: 25px;
922
- border: 1px solid #eeeeee;
923
  position: relative;
924
  }
925
  .wpuf-form .wpuf-multistep-progressbar.ui-progressbar .wpuf-progress-percentage {
@@ -955,3 +954,54 @@ body.rtl ul.wpuf-form li .wpuf-label {
955
  width: 100%;
956
  }
957
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  .wpuf-button:hover,
22
  .wpuf-button:focus {
23
  background: #f3f3f3;
24
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3));
25
+ background-image: -webkit-linear-gradient(top, #fff, #f3f3f3);
26
+ background-image: -moz-linear-gradient(top, #fff, #f3f3f3);
27
+ background-image: -ms-linear-gradient(top, #fff, #f3f3f3);
28
+ background-image: -o-linear-gradient(top, #fff, #f3f3f3);
29
+ background-image: linear-gradient(to bottom, #fff, #f3f3f3);
30
  border-color: #999;
31
  color: #222;
32
  }
89
  background: #FFE4E4;
90
  }
91
  ul.wpuf-form li .wp-editor-wrap {
92
+ border: 1px solid #eee;
93
  }
94
  ul.wpuf-form li .wpuf-label {
95
  float: left;
135
  padding: 5px;
136
  }
137
  ul.wpuf-form li .wpuf-fields select {
138
+ border: 1px solid #eee;
139
  padding: 2px;
140
  height: 2em;
141
  -webkit-border-radius: 3px;
217
  }
218
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li {
219
  display: inline-block;
220
+ border: 1px solid #eee;
221
  padding: 5px;
222
  width: 150px;
223
  margin-right: 5px;
230
  }
231
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .wpuf-file-input-wrap input,
232
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .wpuf-file-input-wrap textarea {
233
+ border: 1px solid #eee;
234
  width: 93%;
235
  }
236
  ul.wpuf-form li .wpuf-fields ul.wpuf-attachment-list li .attachment-name {
268
  *background-color: #a9302a;
269
  }
270
  ul.wpuf-form li .wpuf-fields .progress {
271
+ background: -moz-linear-gradient(center bottom, #FFFFFF 0%, #F7F7F7 100%) repeat scroll 0 0 #FFFFFF;
272
  border: 1px solid #D1D1D1;
273
  border-radius: 3px 3px 3px 3px;
274
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1) inset;
282
  }
283
  ul.wpuf-form li .wpuf-fields .bar {
284
  background-color: #83B4D8;
285
+ background-image: -moz-linear-gradient(center bottom, #72A7CF 0%, #90C5EE 100%);
286
  border-radius: 3px 3px 3px 3px;
287
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
288
  height: 100%;
402
  .wpuf_sub_info {
403
  padding: 0;
404
  margin: 10px 5px;
405
+ border: 1px solid #eee;
406
  border-radius: 3px;
407
  }
408
  .wpuf_sub_info h3 {
409
+ background-color: #f1f1f1;
410
+ padding: 10px;
411
  margin: 0 0 5px 0 !important;
412
+ font-weight: 300 !important;
 
 
 
413
  }
414
  .wpuf_sub_info .wpuf-text {
415
  padding: 5px 10px;
416
  }
417
  .wpuf_sub_info .wpuf-expire {
418
+ border-top: 1px solid #eee;
419
  padding-top: 5px;
420
  margin-top: 5px;
421
  }
422
  .wpuf-coupon-info-wrap {
423
+ border: 1px solid #eee;
424
  padding: 15px;
425
  margin-bottom: 20px;
426
  }
450
  .wpuf-coupon-info-wrap .wpuf-pack-info h3 {
451
  margin: 0 0 10px 0;
452
  padding: 0 0 10px 0;
453
+ border-bottom: 1px solid #eee;
454
  }
455
  .wpuf-coupon-info-wrap .wpuf-pack-info h3 a {
456
  float: right;
457
  text-decoration: none;
458
+ background: #64C3DE;
459
  color: #fff;
460
  padding: 3px 8px;
461
  font-size: 14px;
517
  }
518
  .entry-content ul.wpuf_packs .wpuf-pricing-wrap,
519
  ul.wpuf_packs .wpuf-pricing-wrap {
520
+ background: #64C3DE;
521
  }
522
  .entry-content ul.wpuf_packs .wpuf-pricing-wrap .wpuf-sub-amount,
523
  ul.wpuf_packs .wpuf-pricing-wrap .wpuf-sub-amount {
562
  }
563
  .entry-content ul.wpuf_packs .wpuf-sub-button a,
564
  ul.wpuf_packs .wpuf-sub-button a {
565
+ background: #64C3DE;
566
  color: #fff;
567
  text-decoration: none;
568
  padding: 5px 10px;
918
  .wpuf-form .wpuf-multistep-progressbar.ui-progressbar {
919
  margin-bottom: 30px;
920
  height: 25px;
921
+ border: 1px solid #eee;
922
  position: relative;
923
  }
924
  .wpuf-form .wpuf-multistep-progressbar.ui-progressbar .wpuf-progress-percentage {
954
  width: 100%;
955
  }
956
  }
957
+ .wpuf-form .required {
958
+ color: red;
959
+ font-weight: 700;
960
+ border: 0;
961
+ }
962
+ .wpuf-dashboard-container .wpuf-dashboard-navigation {
963
+ width: 30%;
964
+ float: left;
965
+ }
966
+ .wpuf-dashboard-container .wpuf-dashboard-navigation a {
967
+ text-decoration: none;
968
+ box-shadow: none;
969
+ }
970
+ .wpuf-dashboard-container .wpuf-dashboard-navigation ul {
971
+ list-style: none;
972
+ }
973
+ .wpuf-dashboard-container .wpuf-dashboard-navigation ul li {
974
+ padding-bottom: 2px;
975
+ }
976
+ .wpuf-dashboard-container .wpuf-dashboard-content {
977
+ width: 68%;
978
+ float: right;
979
+ }
980
+ .wpuf-dashboard-container table.items-table {
981
+ border: 0;
982
+ }
983
+ .wpuf-dashboard-container table.items-table a {
984
+ text-decoration: none;
985
+ box-shadow: none;
986
+ }
987
+ .wpuf-dashboard-container table.items-table th,
988
+ .wpuf-dashboard-container table.items-table td {
989
+ border: 0;
990
+ padding: 10px;
991
+ }
992
+ .wpuf-dashboard-container table.items-table tr {
993
+ outline: 1px solid #f1f1f1;
994
+ }
995
+ .wpuf-dashboard-container table.items-table .items-list-header {
996
+ background-color: #f1f1f1;
997
+ }
998
+ .wpuf-dashboard-container .wpuf-update-profile-form .form-row-first {
999
+ float: left;
1000
+ width: 47%;
1001
+ overflow: visible;
1002
+ }
1003
+ .wpuf-dashboard-container .wpuf-update-profile-form .form-row-last {
1004
+ float: right;
1005
+ width: 47%;
1006
+ overflow: visible;
1007
+ }
assets/css/frontend-forms.less CHANGED
@@ -442,11 +442,10 @@ ul.wpuf-form {
442
  border-radius: 3px;
443
 
444
  h3 {
 
 
445
  margin: 0 0 5px 0 !important;
446
- background: green;
447
- color: #fff !important;
448
- padding: 3px 10px !important;
449
- font-weight: bold;
450
  }
451
 
452
  .wpuf-text{
@@ -1029,4 +1028,71 @@ body.rtl{
1029
  }
1030
  }
1031
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  }
442
  border-radius: 3px;
443
 
444
  h3 {
445
+ background-color: #f1f1f1;
446
+ padding: 10px;
447
  margin: 0 0 5px 0 !important;
448
+ font-weight: 300 !important;
 
 
 
449
  }
450
 
451
  .wpuf-text{
1028
  }
1029
  }
1030
  }
1031
+ }
1032
+
1033
+ .wpuf-form {
1034
+ .required {
1035
+ color: red;
1036
+ font-weight: 700;
1037
+ border: 0;
1038
+ }
1039
+ }
1040
+ .wpuf-dashboard-container {
1041
+ .wpuf-dashboard-navigation {
1042
+ width: 30%;
1043
+ float: left;
1044
+
1045
+ a {
1046
+ text-decoration: none;
1047
+ box-shadow: none;
1048
+ }
1049
+
1050
+ ul {
1051
+ list-style: none;
1052
+ li {
1053
+ padding-bottom: 2px;
1054
+ }
1055
+ }
1056
+ }
1057
+
1058
+ .wpuf-dashboard-content {
1059
+ width: 68%;
1060
+ float: right;
1061
+ }
1062
+
1063
+ table.items-table {
1064
+ a {
1065
+ text-decoration: none;
1066
+ box-shadow: none;
1067
+ }
1068
+
1069
+ border: 0;
1070
+
1071
+ th, td {
1072
+ border: 0;
1073
+ padding: 10px;
1074
+ }
1075
+
1076
+ tr {
1077
+ outline: 1px solid #f1f1f1;
1078
+ }
1079
+
1080
+ .items-list-header {
1081
+ background-color: #f1f1f1;
1082
+ }
1083
+ }
1084
+
1085
+ .wpuf-update-profile-form {
1086
+ .form-row-first {
1087
+ float: left;
1088
+ width: 47%;
1089
+ overflow: visible;
1090
+ }
1091
+
1092
+ .form-row-last {
1093
+ float: right;
1094
+ width: 47%;
1095
+ overflow: visible;
1096
+ }
1097
+ }
1098
  }
assets/images/completed.png ADDED
Binary file
assets/images/processing.png ADDED
Binary file
assets/js/conditional-logic.js CHANGED
@@ -91,11 +91,19 @@
91
 
92
  if ( check != '-1') {
93
 
94
- $( '.' + prefix + item.name + '_' + item.form_id).closest('li').show();
 
 
 
 
95
 
96
  } else {
97
 
98
- $( '.' + prefix + item.name + '_' + item.form_id).closest('li').hide();
 
 
 
 
99
 
100
  }
101
 
@@ -105,11 +113,19 @@
105
 
106
  if ( check == '-1') {
107
 
108
- $( '.' + prefix + item.name + '_' + item.form_id).closest('li').show();
 
 
 
 
109
 
110
  } else {
111
 
112
- $( '.' + prefix+item.name + '_' + item.form_id).closest('li').hide();
 
 
 
 
113
  }
114
 
115
  }
91
 
92
  if ( check != '-1') {
93
 
94
+ if ( item.type == 'address' ) {
95
+ $( 'li.wpuf-el.' + item.name ).show();
96
+ } else {
97
+ $( '.' + prefix + item.name + '_' + item.form_id).closest('li').show();
98
+ }
99
 
100
  } else {
101
 
102
+ if ( item.type == 'address' ) {
103
+ $( 'li.wpuf-el.' + item.name ).hide();
104
+ } else {
105
+ $( '.' + prefix + item.name + '_' + item.form_id).closest('li').hide();
106
+ }
107
 
108
  }
109
 
113
 
114
  if ( check == '-1') {
115
 
116
+ if ( item.type == 'address' ) {
117
+ $( 'li.wpuf-el.' + item.name ).show();
118
+ } else {
119
+ $( '.' + prefix + item.name + '_' + item.form_id).closest('li').show();
120
+ }
121
 
122
  } else {
123
 
124
+ if ( item.type == 'address' ) {
125
+ $( 'li.wpuf-el.' + item.name ).hide();
126
+ } else {
127
+ $( '.' + prefix+item.name + '_' + item.form_id).closest('li').hide();
128
+ }
129
  }
130
 
131
  }
assets/js/frontend-form.js CHANGED
@@ -26,6 +26,7 @@
26
  $('.wpuf-form').on('click', 'img.wpuf-remove-field', this.removeField);
27
  $('.wpuf-form').on('click', 'a.wpuf-delete-avatar', this.deleteAvatar);
28
  $('.wpuf-form').on('click', 'a#wpuf-post-draft', this.draftPost);
 
29
 
30
  $('.wpuf-form-add').on('submit', this.formSubmit);
31
  $('form#post').on('submit', this.adminPostSubmit);
@@ -47,9 +48,12 @@
47
  check_pass_strength : function() {
48
  var pass1 = $('#pass1').val(), strength;
49
 
 
 
50
  $('#pass-strength-result').removeClass('short bad good strong');
51
  if ( ! pass1 ) {
52
  $('#pass-strength-result').html( '&nbsp;' );
 
53
  return;
54
  }
55
 
@@ -307,6 +311,23 @@
307
  })
308
  },
309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  formStepCheck : function(e,fieldset) {
311
  var form = fieldset,
312
  submitButton = form.find('input[type=submit]');
26
  $('.wpuf-form').on('click', 'img.wpuf-remove-field', this.removeField);
27
  $('.wpuf-form').on('click', 'a.wpuf-delete-avatar', this.deleteAvatar);
28
  $('.wpuf-form').on('click', 'a#wpuf-post-draft', this.draftPost);
29
+ $('.wpuf-form').on('click', 'button#wpuf-account-update-profile', this.account_update_profile);
30
 
31
  $('.wpuf-form-add').on('submit', this.formSubmit);
32
  $('form#post').on('submit', this.adminPostSubmit);
48
  check_pass_strength : function() {
49
  var pass1 = $('#pass1').val(), strength;
50
 
51
+ $('#pass-strength-result').show();
52
+
53
  $('#pass-strength-result').removeClass('short bad good strong');
54
  if ( ! pass1 ) {
55
  $('#pass-strength-result').html( '&nbsp;' );
56
+ $('#pass-strength-result').hide();
57
  return;
58
  }
59
 
311
  })
312
  },
313
 
314
+ // Frontend account dashboard update profile
315
+ account_update_profile: function (e) {
316
+ e.preventDefault();
317
+ var form = $(this).closest('form');
318
+
319
+ $.post(wpuf_frontend.ajaxurl, form.serialize(), function (res) {
320
+ if (res.success) {
321
+ form.find('.wpuf-error').hide();
322
+ form.find('.wpuf-success').show();
323
+ } else {
324
+ form.find('.wpuf-success').hide();
325
+ form.find('.wpuf-error').show();
326
+ form.find('.wpuf-error').text(res.data);
327
+ }
328
+ });
329
+ },
330
+
331
  formStepCheck : function(e,fieldset) {
332
  var form = fieldset,
333
  submitButton = form.find('input[type=submit]');
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={pass_val:"",retype_pass_val:"",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-add").on("submit",this.formSubmit),a("form#post").on("submit",this.adminPostSubmit),a(".wpuf-form").on("keyup","#pass1",this.check_pass_strength),this.ajaxCategory(),a(':submit[name="wpuf_cancel_subscription"]').click(function(){if(!confirm("Are you sure you want to cancel your current subscription ?"))return!1})},check_pass_strength:function(){var b,c=a("#pass1").val();if(a("#pass-strength-result").removeClass("short bad good strong"),!c)return void a("#pass-strength-result").html("&nbsp;");if("undefined"!=typeof wp.passwordStrength)switch(b=wp.passwordStrength.meter(c,wp.passwordStrength.userInputBlacklist(),c)){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(b){var c=this,d=0,e=a(':hidden[name="wpuf_multistep_type"]').val();if(null!=e){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"==e&&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 f=a(".wpuf-multistep-progressbar"),g=a(".wpuf-progress-percentage");a(".wpuf-multistep-progressbar").progressbar({change:function(){g.text(f.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(d,e),a("fieldset .wpuf-multistep-prev-btn, fieldset .wpuf-multistep-next-btn").click(function(f){if(a(this).hasClass("wpuf-multistep-next-btn")){var g=c.formStepCheck("",a(this).closest("fieldset"));0!=g&&b.change_fieldset(++d,e)}else a(this).hasClass("wpuf-multistep-prev-btn")&&b.change_fieldset(--d,e);return!1})}},change_fieldset:function(b,c){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 d=a("fieldset.wpuf-multistep-fieldset").eq(b).find("legend").text();if(d=a.trim(d),"progressive"==c&&0!=a(".wpuf-form .wpuf-multistep-fieldset").length){var e=100*(b+1)/a("fieldset.wpuf-multistep-fieldset").length,e=Number(e.toFixed(2));a(".wpuf-multistep-progressbar").progressbar({value:e}),a(".wpuf-progress-percentage").text(d+" ("+e+"%)")}a(".wpuf-form").trigger("step-change-fieldset")},ajaxCategory:function(){var b=".cat-ajax",c=".category-wrap";a(c).on("change",b,function(){currentLevel=parseInt(a(this).parent().attr("level")),WP_User_Frontend.getChildCats(a(this),"lvl",currentLevel+1,c,"category")})},getChildCats:function(b,c,d,e,f){cat=a(b).val(),results_div=c+d,f="undefined"!=typeof f?f:"category",field_attr=a(b).siblings("span").data("taxonomy"),a.ajax({type:"post",url:wpuf_frontend.ajaxurl,data:{action:"wpuf_get_child_cat",catID:cat,nonce:wpuf_frontend.nonce,field_attr:field_attr},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="'+c+d+'" level="'+d+'"></div>'),b.parent().parent().find("#"+results_div).html(e).slideDown("fast"))}})},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"),c=b.siblings().andSelf().length;c>1&&b.remove()},adminPostSubmit:function(b){b.preventDefault();var c=a(this),d=WP_User_Frontend.validateForm(c);if(d)return!0},draftPost:function(b){b.preventDefault();var c,d,e=a(this),f=a(this).closest("form"),g=f.serialize()+"&action=wpuf_draft_post",h=f.find('input[type="hidden"][name="post_id"]').val(),i=[];a(".wpuf-rich-validation").each(function(b,e){c=a(e).data("id"),d=a.trim(tinyMCE.get(c).getContent()),i.push(c+"="+encodeURIComponent(d))}),g=g+"&"+i.join("&"),e.after(' <span class="wpuf-loading"></span>'),a.post(wpuf_frontend.ajaxurl,g,function(b){if("undefined"==typeof h){var c='<input type="hidden" name="post_id" value="'+b.post_id+'">';c+='<input type="hidden" name="post_date" value="'+b.date+'">',c+='<input type="hidden" name="post_author" value="'+b.post_author+'">',c+='<input type="hidden" name="comment_status" value="'+b.comment_status+'">',f.append(c)}e.next("span.wpuf-loading").remove(),e.after('<span class="wpuf-draft-saved">&nbsp; Post Saved</span>'),a(".wpuf-draft-saved").delay(2500).fadeOut("fast",function(){a(this).remove()})})},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("undefined"!=typeof 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()));alert(c.error),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);var d=b.find('[data-required="yes"]:visible');if(d.each(function(b,d){var e=a(d).data("type");switch(h="",e){case"rich":var f=a(d).data("id");h=a.trim(tinyMCE.get(f).getContent()),""===h&&(c=!0,WP_User_Frontend.markError(d));break;case"textarea":case"text":if(a(d).hasClass("password")&&(""==WP_User_Frontend.pass_val?WP_User_Frontend.pass_val=a(d).val():WP_User_Frontend.retype_pass_val=a(d).val(),""!=WP_User_Frontend.pass_val&&""!=WP_User_Frontend.retype_pass_val&&WP_User_Frontend.pass_val!=WP_User_Frontend.retype_pass_val)){c=!0,error_type="mismatch",WP_User_Frontend.markError(d,error_type);break}h=a.trim(a(d).val()),""===h&&(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"select":h=a(d).val(),h&&"-1"!==h||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"multiselect":h=a(d).val(),null!==h&&0!==h.length||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"tax-checkbox":var g=a(d).children().find("input:checked").length;g||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"radio":var g=a(d).find("input:checked").length;g||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"file":var g=a(d).find("ul").children().length;g||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"email":var h=a(d).val();""!==h?WP_User_Frontend.isValidEmail(h)||(c=!0,error_type="validation",WP_User_Frontend.markError(d,error_type)):""===h&&(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"url":var h=a(d).val();""!==h&&(WP_User_Frontend.isValidURL(h)||(c=!0,error_type="validation",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":d=d+" "+error_str_obj[c];break;case"mismatch":d=d+" "+error_str_obj[c];break;case"validation":d=d+" "+error_str_obj[c]}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){var b=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);return b.test(a)},isValidURL:function(a){var b=new RegExp("^(http://www.|https://www.|ftp://www.|www.|http://|https://){1}([0-9A-Za-z]+.)");return b.test(a)},insertImage:function(b,c){var d="wpuf-insert-image-container";if(a("#"+b).length){var e=new plupload.Uploader({runtimes:"html5,html4",browse_button:b,container:d,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:"2mb",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"}]});e.bind("Init",function(a,b){}),e.bind("FilesAdded",function(b,c){var e=a("#"+d);a.each(c,function(a,b){e.append('<div class="upload-item" id="'+b.id+'"><div class="progress progress-striped active"><div class="bar"></div></div></div>')}),b.refresh(),b.start()}),e.bind("QueueChanged",function(a){e.start()}),e.bind("UploadProgress",function(b,c){var d=a("#"+c.id);a(".bar",d).css({width:c.percent+"%"}),a(".percent",d).html(c.percent+"%")}),e.bind("Error",function(a,b){alert("Error #"+b.code+": "+b.message)}),e.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")}),e.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()})},editorLimit:{bind:function(b,c,d){"no"===d?(a("textarea#"+c).keydown(function(a){WP_User_Frontend.editorLimit.textareaLimit.call(this,a,b)}),a("textarea#"+c).on("paste",function(c){var d=a(this);setTimeout(function(){WP_User_Frontend.editorLimit.textareaLimit.call(d,c,b)},100)})):setTimeout(function(){tinyMCE.get(c).onKeyDown.add(function(a,c){WP_User_Frontend.editorLimit.tinymce.onKeyDown(a,c,b)}),tinyMCE.get(c).onPaste.add(function(a,c){setTimeout(function(){WP_User_Frontend.editorLimit.tinymce.onPaste(a,c,b)},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){var e=WP_User_Frontend.editorLimit.tinymce.getStats(b).words-1;d?a(".mce-path-item.mce-last",b.container).html("Word Limit : "+e+"/"+d):"",d&&e>d&&(WP_User_Frontend.editorLimit.blockTyping(c),jQuery(".mce-path-item.mce-last",b.container).html(wpuf_frontend.word_limit))},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)}},textareaLimit:function(b,c){var d=a(this),e=d.val().split(" ");c&&e.length>c?(d.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html(wpuf_frontend.word_limit),WP_User_Frontend.editorLimit.blockTyping(b)):d.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html(""),"paste"===b.type&&d.val(e.slice(0,c).join(" "))},blockTyping:function(b){a.inArray(b.keyCode,[46,8,9,27,13,110,190,189])!==-1||65==b.keyCode&&b.ctrlKey===!0||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))})}}},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")){var b=a("ul.wpuf-payment-gateways li").find("input[type=radio]:checked");b.parents("li").find(".wpuf-payment-instruction").slideDown(250)}else a("ul.wpuf-payment-gateways li").first().find("input[type=radio]").click()})}(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={pass_val:"",retype_pass_val:"",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),a(".wpuf-form").on("keyup","#pass1",this.check_pass_strength),this.ajaxCategory(),a(':submit[name="wpuf_cancel_subscription"]').click(function(){if(!confirm("Are you sure you want to cancel your current subscription ?"))return!1})},check_pass_strength:function(){var b,c=a("#pass1").val();if(a("#pass-strength-result").show(),a("#pass-strength-result").removeClass("short bad good strong"),!c)return a("#pass-strength-result").html("&nbsp;"),void a("#pass-strength-result").hide();if("undefined"!=typeof wp.passwordStrength)switch(b=wp.passwordStrength.meter(c,wp.passwordStrength.userInputBlacklist(),c)){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(b){var c=this,d=0,e=a(':hidden[name="wpuf_multistep_type"]').val();if(null!=e){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"==e&&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 f=a(".wpuf-multistep-progressbar"),g=a(".wpuf-progress-percentage");a(".wpuf-multistep-progressbar").progressbar({change:function(){g.text(f.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(d,e),a("fieldset .wpuf-multistep-prev-btn, fieldset .wpuf-multistep-next-btn").click(function(f){if(a(this).hasClass("wpuf-multistep-next-btn")){var g=c.formStepCheck("",a(this).closest("fieldset"));0!=g&&b.change_fieldset(++d,e)}else a(this).hasClass("wpuf-multistep-prev-btn")&&b.change_fieldset(--d,e);return!1})}},change_fieldset:function(b,c){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 d=a("fieldset.wpuf-multistep-fieldset").eq(b).find("legend").text();if(d=a.trim(d),"progressive"==c&&0!=a(".wpuf-form .wpuf-multistep-fieldset").length){var e=100*(b+1)/a("fieldset.wpuf-multistep-fieldset").length,e=Number(e.toFixed(2));a(".wpuf-multistep-progressbar").progressbar({value:e}),a(".wpuf-progress-percentage").text(d+" ("+e+"%)")}a(".wpuf-form").trigger("step-change-fieldset")},ajaxCategory:function(){var b=".cat-ajax",c=".category-wrap";a(c).on("change",b,function(){currentLevel=parseInt(a(this).parent().attr("level")),WP_User_Frontend.getChildCats(a(this),"lvl",currentLevel+1,c,"category")})},getChildCats:function(b,c,d,e,f){cat=a(b).val(),results_div=c+d,f="undefined"!=typeof f?f:"category",field_attr=a(b).siblings("span").data("taxonomy"),a.ajax({type:"post",url:wpuf_frontend.ajaxurl,data:{action:"wpuf_get_child_cat",catID:cat,nonce:wpuf_frontend.nonce,field_attr:field_attr},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="'+c+d+'" level="'+d+'"></div>'),b.parent().parent().find("#"+results_div).html(e).slideDown("fast"))}})},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"),c=b.siblings().andSelf().length;c>1&&b.remove()},adminPostSubmit:function(b){b.preventDefault();var c=a(this),d=WP_User_Frontend.validateForm(c);if(d)return!0},draftPost:function(b){b.preventDefault();var c,d,e=a(this),f=a(this).closest("form"),g=f.serialize()+"&action=wpuf_draft_post",h=f.find('input[type="hidden"][name="post_id"]').val(),i=[];a(".wpuf-rich-validation").each(function(b,e){c=a(e).data("id"),d=a.trim(tinyMCE.get(c).getContent()),i.push(c+"="+encodeURIComponent(d))}),g=g+"&"+i.join("&"),e.after(' <span class="wpuf-loading"></span>'),a.post(wpuf_frontend.ajaxurl,g,function(b){if("undefined"==typeof h){var c='<input type="hidden" name="post_id" value="'+b.post_id+'">';c+='<input type="hidden" name="post_date" value="'+b.date+'">',c+='<input type="hidden" name="post_author" value="'+b.post_author+'">',c+='<input type="hidden" name="comment_status" value="'+b.comment_status+'">',f.append(c)}e.next("span.wpuf-loading").remove(),e.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("undefined"!=typeof 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()));alert(c.error),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);var d=b.find('[data-required="yes"]:visible');if(d.each(function(b,d){var e=a(d).data("type");switch(h="",e){case"rich":var f=a(d).data("id");h=a.trim(tinyMCE.get(f).getContent()),""===h&&(c=!0,WP_User_Frontend.markError(d));break;case"textarea":case"text":if(a(d).hasClass("password")&&(""==WP_User_Frontend.pass_val?WP_User_Frontend.pass_val=a(d).val():WP_User_Frontend.retype_pass_val=a(d).val(),""!=WP_User_Frontend.pass_val&&""!=WP_User_Frontend.retype_pass_val&&WP_User_Frontend.pass_val!=WP_User_Frontend.retype_pass_val)){c=!0,error_type="mismatch",WP_User_Frontend.markError(d,error_type);break}h=a.trim(a(d).val()),""===h&&(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"select":h=a(d).val(),h&&"-1"!==h||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"multiselect":h=a(d).val(),null!==h&&0!==h.length||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"tax-checkbox":var g=a(d).children().find("input:checked").length;g||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"radio":var g=a(d).find("input:checked").length;g||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"file":var g=a(d).find("ul").children().length;g||(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"email":var h=a(d).val();""!==h?WP_User_Frontend.isValidEmail(h)||(c=!0,error_type="validation",WP_User_Frontend.markError(d,error_type)):""===h&&(c=!0,error_type="required",WP_User_Frontend.markError(d,error_type));break;case"url":var h=a(d).val();""!==h&&(WP_User_Frontend.isValidURL(h)||(c=!0,error_type="validation",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":d=d+" "+error_str_obj[c];break;case"mismatch":d=d+" "+error_str_obj[c];break;case"validation":d=d+" "+error_str_obj[c]}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){var b=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);return b.test(a)},isValidURL:function(a){var b=new RegExp("^(http://www.|https://www.|ftp://www.|www.|http://|https://){1}([0-9A-Za-z]+.)");return b.test(a)},insertImage:function(b,c){var d="wpuf-insert-image-container";if(a("#"+b).length){var e=new plupload.Uploader({runtimes:"html5,html4",browse_button:b,container:d,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:"2mb",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"}]});e.bind("Init",function(a,b){}),e.bind("FilesAdded",function(b,c){var e=a("#"+d);a.each(c,function(a,b){e.append('<div class="upload-item" id="'+b.id+'"><div class="progress progress-striped active"><div class="bar"></div></div></div>')}),b.refresh(),b.start()}),e.bind("QueueChanged",function(a){e.start()}),e.bind("UploadProgress",function(b,c){var d=a("#"+c.id);a(".bar",d).css({width:c.percent+"%"}),a(".percent",d).html(c.percent+"%")}),e.bind("Error",function(a,b){alert("Error #"+b.code+": "+b.message)}),e.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")}),e.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()})},editorLimit:{bind:function(b,c,d){"no"===d?(a("textarea#"+c).keydown(function(a){WP_User_Frontend.editorLimit.textareaLimit.call(this,a,b)}),a("textarea#"+c).on("paste",function(c){var d=a(this);setTimeout(function(){WP_User_Frontend.editorLimit.textareaLimit.call(d,c,b)},100)})):setTimeout(function(){tinyMCE.get(c).onKeyDown.add(function(a,c){WP_User_Frontend.editorLimit.tinymce.onKeyDown(a,c,b)}),tinyMCE.get(c).onPaste.add(function(a,c){setTimeout(function(){WP_User_Frontend.editorLimit.tinymce.onPaste(a,c,b)},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){var e=WP_User_Frontend.editorLimit.tinymce.getStats(b).words-1;d?a(".mce-path-item.mce-last",b.container).html("Word Limit : "+e+"/"+d):"",d&&e>d&&(WP_User_Frontend.editorLimit.blockTyping(c),jQuery(".mce-path-item.mce-last",b.container).html(wpuf_frontend.word_limit))},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)}},textareaLimit:function(b,c){var d=a(this),e=d.val().split(" ");c&&e.length>c?(d.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html(wpuf_frontend.word_limit),WP_User_Frontend.editorLimit.blockTyping(b)):d.closest(".wpuf-fields").find("span.wpuf-wordlimit-message").html(""),"paste"===b.type&&d.val(e.slice(0,c).join(" "))},blockTyping:function(b){a.inArray(b.keyCode,[46,8,9,27,13,110,190,189])!==-1||65==b.keyCode&&b.ctrlKey===!0||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))})}}},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")){var b=a("ul.wpuf-payment-gateways li").find("input[type=radio]:checked");b.parents("li").find(".wpuf-payment-instruction").slideDown(250)}else a("ul.wpuf-payment-gateways li").first().find("input[type=radio]").click()})}(jQuery,window);
assets/js/upload.js CHANGED
@@ -119,13 +119,13 @@
119
  $('#' + this.container).find('#' + error.file.id).remove();
120
 
121
  var msg = '';
122
- switch(error.code) {
123
  case -600:
124
- msg = wpuf_frontend_upload.size_error;
125
  break;
126
 
127
  case -601:
128
- msg = wpuf_frontend_upload.type_error;
129
  break;
130
 
131
  default:
119
  $('#' + this.container).find('#' + error.file.id).remove();
120
 
121
  var msg = '';
122
+ switch (error.code) {
123
  case -600:
124
+ msg = wpuf_frontend_upload.plupload.size_error;
125
  break;
126
 
127
  case -601:
128
+ msg = wpuf_frontend_upload.plupload.type_error;
129
  break;
130
 
131
  default:
assets/js/upload.min.js CHANGED
@@ -1 +1 @@
1
- (function(e){window.WPUF_Uploader=function(t,n,r,i,s,o){this.container=n;this.browse_button=t;this.max=r||1;this.count=e("#"+n).find(".wpuf-attachment-list > li").length;if(!e("#"+t).length)return;this.uploader=new plupload.Uploader({runtimes:"html5,html4",browse_button:t,container:n,multipart:!0,multipart_params:{action:"wpuf_file_upload"},multiple_queues:!1,multi_selection:!1,urlstream_upload:!0,file_data_name:"wpuf_file",max_file_size:o+"kb",url:wpuf_frontend_upload.plupload.url+"&type="+i,flash_swf_url:wpuf_frontend_upload.flash_swf_url,filters:[{title:"Allowed Files",extensions:s}]});this.uploader.bind("Init",e.proxy(this,"init"));this.uploader.bind("FilesAdded",e.proxy(this,"added"));this.uploader.bind("QueueChanged",e.proxy(this,"upload"));this.uploader.bind("UploadProgress",e.proxy(this,"progress"));this.uploader.bind("Error",e.proxy(this,"error"));this.uploader.bind("FileUploaded",e.proxy(this,"uploaded"));this.uploader.init();e("#"+n).on("click","a.attachment-delete",e.proxy(this.removeAttachment,this))};WPUF_Uploader.prototype={init:function(e,t){this.showHide()},showHide:function(){if(this.count>=this.max){e("#"+this.container).find(".file-selector").hide();return}e("#"+this.container).find(".file-selector").show()},added:function(t,n){var r=e("#"+this.container).find(".wpuf-attachment-upload-filelist");this.count+=1;this.showHide();e.each(n,function(e,t){r.append('<div class="upload-item" id="'+t.id+'"><div class="progress progress-striped active"><div class="bar"></div></div><div class="filename original">'+t.name+" ("+plupload.formatSize(t.size)+") <b></b>"+"</div></div>")});t.refresh();t.start()},upload:function(e){this.uploader.start()},progress:function(t,n){var r=e("#"+n.id);e(".bar",r).css({width:n.percent+"%"});e(".percent",r).html(n.percent+"%")},error:function(t,n){e("#"+this.container).find("#"+n.file.id).remove();alert("Error #"+n.code+": "+n.message);this.count-=1;this.showHide();this.uploader.refresh()},uploaded:function(t,n,r){e("#"+n.id+" b").html("100%");e("#"+n.id).remove();if(r.response!=="error"){var i=e("#"+this.container).find(".wpuf-attachment-list");i.append(r.response)}else{alert(res.error);this.count-=1;this.showHide()}},removeAttachment:function(t){t.preventDefault();var n=this,r=e(t.currentTarget);if(confirm(wpuf_frontend_upload.confirmMsg)){var i={attach_id:r.data("attach_id"),nonce:wpuf_frontend_upload.nonce,action:"wpuf_file_del"};jQuery.post(wpuf_frontend_upload.ajaxurl,i,function(){r.parent().parent().remove();n.count-=1;n.showHide();n.uploader.refresh()})}}}})(jQuery);
1
+ !function(a){window.WPUF_Uploader=function(b,c,d,e,f,g){this.removed_files=[],this.container=c,this.browse_button=b,this.max=d||1,this.count=a("#"+c).find(".wpuf-attachment-list > li").length,this.perFileCount=0,a("#"+b).length&&(this.uploader=new plupload.Uploader({runtimes:"html5,html4",browse_button:b,container:c,multipart:!0,multipart_params:{action:"wpuf_file_upload",form_id:a("#"+b).data("form_id")},max_file_count:2,multiple_queues:!1,multi_selection:"wpuf-avatar-pickfiles"!=b&&"wpuf-featured_image-pickfiles"!=b,urlstream_upload:!0,file_data_name:"wpuf_file",max_file_size:g+"kb",url:wpuf_frontend_upload.plupload.url+"&type="+e,flash_swf_url:wpuf_frontend_upload.flash_swf_url,filters:[{title:"Allowed Files",extensions:f}]}),this.uploader.bind("Init",a.proxy(this,"init")),this.uploader.bind("FilesAdded",a.proxy(this,"added")),this.uploader.bind("QueueChanged",a.proxy(this,"upload")),this.uploader.bind("UploadProgress",a.proxy(this,"progress")),this.uploader.bind("Error",a.proxy(this,"error")),this.uploader.bind("FileUploaded",a.proxy(this,"uploaded")),this.uploader.init(),a("#"+c).on("click","a.attachment-delete",a.proxy(this.removeAttachment,this)))},WPUF_Uploader.prototype={init:function(b,c){this.showHide(),a("#"+this.container).prepend('<div class="wpuf-file-warning"></div>')},showHide:function(){return this.count>=this.max?(this.count>this.max?a("#"+this.container+" .wpuf-file-warning").html(wpuf_frontend_upload.warning):a("#"+this.container+" .wpuf-file-warning").html(wpuf_frontend_upload.warning),void a("#"+this.container).find(".file-selector").hide()):(a("#"+this.container+" .wpuf-file-warning").html(""),void a("#"+this.container).find(".file-selector").show())},added:function(b,c){var d=a("#"+this.container).find(".wpuf-attachment-upload-filelist");this.showHide(),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 class="filename original">'+b.name+" ("+plupload.formatSize(b.size)+") <b></b></div></div>")}),b.refresh(),b.start()},upload:function(a){this.count=a.files.length-this.removed_files.length,this.showHide()},progress:function(b,c){var d=a("#"+c.id);a(".bar",d).css({width:c.percent+"%"}),a(".percent",d).html(c.percent+"%")},error:function(b,c){a("#"+this.container).find("#"+c.file.id).remove();var d="";switch(c.code){case-600:d=wpuf_frontend_upload.plupload.size_error;break;case-601:d=wpuf_frontend_upload.plupload.type_error;break;default:d="Error #"+c.code+": "+c.message}alert(d),this.count-=1,this.showHide(),this.uploader.refresh()},uploaded:function(b,c,d){var e=this;if(a("#"+c.id+" b").html("100%"),a("#"+c.id).remove(),"error"!==d.response){this.perFileCount++;var f=a("#"+this.container).find(".wpuf-attachment-list");if(f.append(d.response),this.perFileCount>this.max){var g=a(".wpuf-image-wrap:last a.attachment-delete",f).data("attach_id");e.removeExtraAttachment(g),a(".wpuf-image-wrap",f).last().remove(),this.perFileCount--}}else alert(d.error),this.count-=1,this.showHide()},removeAttachment:function(b){b.preventDefault();var c=this,d=a(b.currentTarget);if(confirm(wpuf_frontend_upload.confirmMsg)){var e={attach_id:d.data("attach_id"),nonce:wpuf_frontend_upload.nonce,action:"wpuf_file_del"};this.removed_files.push(e),jQuery.post(wpuf_frontend_upload.ajaxurl,e,function(){c.perFileCount--,d.parent().parent().remove(),c.count-=1,c.showHide(),c.uploader.refresh()})}},removeExtraAttachment:function(a){var b=this,c={attach_id:a,nonce:wpuf_frontend_upload.nonce,action:"wpuf_file_del"};this.removed_files.push(c),jQuery.post(wpuf_frontend_upload.ajaxurl,c,function(){b.count-=1,b.showHide(),b.uploader.refresh()})}}}(jQuery);
class/frontend-account.php ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Dashboard class
5
+ *
6
+ * @author Tareq Hasan
7
+ * @package WP User Frontend
8
+ */
9
+ class WPUF_Frontend_Account {
10
+
11
+ /**
12
+ * Class constructor
13
+ */
14
+ public function __construct() {
15
+ add_shortcode( 'wpuf_account', array( $this, 'shortcode' ) );
16
+ add_action( 'wpuf_account_content_dashboard', array( $this, 'dashboard_section' ), 10, 2 );
17
+ add_action( 'wpuf_account_content_posts', array( $this, 'posts_section' ), 10, 2 );
18
+ add_action( 'wpuf_account_content_subscription', array( $this, 'subscription_section' ), 10, 2 );
19
+ add_action( 'wpuf_account_content_edit-profile', array( $this, 'edit_profile_section' ), 10, 2 );
20
+ add_action( 'wp_ajax_wpuf_account_update_profile', array( $this, 'update_profile' ) );
21
+ }
22
+
23
+ /**
24
+ * Handle's user account functionality
25
+ *
26
+ * Insert shortcode [wpuf_account] in a page to
27
+ * show the user account
28
+ *
29
+ * @since 2.4.2
30
+ */
31
+ function shortcode( $atts ) {
32
+
33
+ extract( shortcode_atts( array(), $atts ) );
34
+
35
+ ob_start();
36
+
37
+ if ( is_user_logged_in() ) {
38
+ $section = isset( $_REQUEST['section'] ) ? $_REQUEST['section'] : 'dashboard';
39
+
40
+ $sections = wpuf_get_account_sections();
41
+ $current_section = array();
42
+
43
+ foreach ( $sections as $account_section ) {
44
+ if ( $section == $account_section['slug'] ) {
45
+ $current_section = $account_section;
46
+ break;
47
+ }
48
+ }
49
+
50
+ wpuf_load_template( 'account.php', array( 'sections' => $sections, 'current_section' => $current_section ) );
51
+ } else {
52
+ $message = wpuf_get_option( 'un_auth_msg', 'wpuf_dashboard' );
53
+ wpuf_load_template( 'unauthorized.php', array( 'message' => $message ) );
54
+ }
55
+
56
+ $content = ob_get_contents();
57
+ ob_end_clean();
58
+
59
+ return $content;
60
+ }
61
+
62
+ /**
63
+ * Display the dashboard section
64
+ *
65
+ * @param array $sections
66
+ * @param string $current_section
67
+ *
68
+ * @since 2.4.2
69
+ *
70
+ * @return void
71
+ */
72
+ public function dashboard_section( $sections, $current_section ) {
73
+ wpuf_load_template(
74
+ "dashboard/dashboard.php",
75
+ array( 'sections' => $sections, 'current_section' => $current_section )
76
+ );
77
+ }
78
+
79
+ /**
80
+ * Display the posts section
81
+ *
82
+ * @param array $sections
83
+ * @param string $current_section
84
+ *
85
+ * @since 2.4.2
86
+ *
87
+ * @return void
88
+ */
89
+ public function posts_section( $sections, $current_section ) {
90
+ wpuf_load_template(
91
+ "dashboard/posts.php",
92
+ array( 'sections' => $sections, 'current_section' => $current_section )
93
+ );
94
+ }
95
+
96
+ /**
97
+ * Display the subscription section
98
+ *
99
+ * @param array $sections
100
+ * @param string $current_section
101
+ *
102
+ * @since 2.4.2
103
+ *
104
+ * @return void
105
+ */
106
+ public function subscription_section( $sections, $current_section ) {
107
+
108
+ if ( wpuf_get_option( 'charge_posting', 'wpuf_payment' ) != 'yes' || ! is_user_logged_in() ) {
109
+ return;
110
+ }
111
+
112
+ global $userdata;
113
+
114
+ $userdata = get_userdata( $userdata->ID ); //wp 3.3 fix
115
+
116
+ $user_sub = WPUF_Subscription::get_user_pack( $userdata->ID );
117
+ if ( ! isset( $user_sub['pack_id'] ) ) {
118
+ die( __( "<p>You've not subscribed any package yet.</p>", 'wpuf' ) );
119
+ }
120
+
121
+ $pack = WPUF_Subscription::get_subscription( $user_sub['pack_id'] );
122
+
123
+ $details_meta['payment_page'] = get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) );
124
+ $details_meta['onclick'] = '';
125
+ $details_meta['symbol'] = wpuf_get_currency( 'symbol' );
126
+
127
+ $billing_amount = ( intval( $pack->meta_value['billing_amount'] ) > 0 ) ? $details_meta['symbol'] . $pack->meta_value['billing_amount'] : __( 'Free', 'wpuf' );
128
+ if ( $pack->meta_value['recurring_pay'] == 'yes' ) {
129
+ $recurring_des = sprintf( 'For each %s %s', $pack->meta_value['billing_cycle_number'], $pack->meta_value['cycle_period'], $pack->meta_value['trial_duration_type'] );
130
+ $recurring_des .= !empty( $pack->meta_value['billing_limit'] ) ? sprintf( ', for %s installments', $pack->meta_value['billing_limit'] ) : '';
131
+ $recurring_des = $recurring_des;
132
+ } else {
133
+ $recurring_des = '';
134
+ }
135
+
136
+ wpuf_load_template(
137
+ "dashboard/subscription.php",
138
+ array(
139
+ 'sections' => $sections,
140
+ 'current_section' => $current_section,
141
+ 'userdata' => $userdata,
142
+ 'user_sub' => $user_sub,
143
+ 'pack' => $pack,
144
+ 'billing_amount' => $billing_amount,
145
+ 'recurring_des' => $recurring_des,
146
+ )
147
+ );
148
+ }
149
+
150
+ /**
151
+ * Display the edit profile section
152
+ *
153
+ * @param array $sections
154
+ * @param string $current_section
155
+ *
156
+ * @since 2.4.2
157
+ *
158
+ * @return void
159
+ */
160
+ public function edit_profile_section( $sections, $current_section ) {
161
+ wpuf_load_template(
162
+ "dashboard/edit-profile.php",
163
+ array( 'sections' => $sections, 'current_section' => $current_section )
164
+ );
165
+ }
166
+
167
+ /**
168
+ * Update profile via Ajax
169
+ *
170
+ * @since 2.4.2
171
+ *
172
+ * @return json
173
+ */
174
+ public function update_profile() {
175
+ if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-account-update-profile' ) ) {
176
+ wp_send_json_error( __( 'Nonce failure', 'wpuf' ) );
177
+ }
178
+
179
+ global $current_user;
180
+
181
+ $first_name = ! empty( $_POST['first_name'] ) ? sanitize_text_field( $_POST['first_name'] ) : '';
182
+ $last_name = ! empty( $_POST['last_name'] ) ? sanitize_text_field( $_POST['last_name'] ) : '';
183
+ $email = ! empty( $_POST['email'] ) ? sanitize_text_field( $_POST['email'] ) : '';
184
+ $current_password = ! empty( $_POST['current_password'] ) ? $_POST['current_password'] : '';
185
+ $pass1 = ! empty( $_POST['pass1'] ) ? $_POST['pass1'] : '';
186
+ $pass2 = ! empty( $_POST['pass2'] ) ? $_POST['pass2'] : '';
187
+ $save_pass = true;
188
+
189
+ if ( empty( $first_name ) ) {
190
+ wp_send_json_error( __( 'First Name is a required field.', 'wpuf' ) );
191
+ }
192
+
193
+ if ( empty( $last_name ) ) {
194
+ wp_send_json_error( __( 'Last Name is a required field.', 'wpuf' ) );
195
+ }
196
+
197
+ if ( empty( $email ) ) {
198
+ wp_send_json_error( __( 'Email is a required field.', 'wpuf' ) );
199
+ }
200
+
201
+ $user = new stdClass();
202
+ $user->ID = $current_user->ID;
203
+ $user->first_name = $first_name;
204
+ $user->last_name = $last_name;
205
+
206
+ if ( $email ) {
207
+ $email = sanitize_email( $email );
208
+ if ( ! is_email( $email ) ) {
209
+ wp_send_json_error( __( 'Please provide a valid email address.', 'wpuf' ) );
210
+ } elseif ( email_exists( $email ) && $email !== $current_user->user_email ) {
211
+ wp_send_json_error( __( 'This email address is already registered.', 'wpuf' ) );
212
+ }
213
+ $user->user_email = $email;
214
+ }
215
+
216
+ if ( ! empty( $current_password ) && empty( $pass1 ) && empty( $pass2 ) ) {
217
+ wp_send_json_error( __( 'Please fill out all password fields.', 'wpuf' ) );
218
+ $save_pass = false;
219
+ } elseif ( ! empty( $pass1 ) && empty( $current_password ) ) {
220
+ wp_send_json_error( __( 'Please enter your current password.', 'wpuf' ) );
221
+ $save_pass = false;
222
+ } elseif ( ! empty( $pass1 ) && empty( $pass2 ) ) {
223
+ wp_send_json_error( __( 'Please re-enter your password.', 'wpuf' ) );
224
+ $save_pass = false;
225
+ } elseif ( ( ! empty( $pass1 ) || ! empty( $pass2 ) ) && $pass1 !== $pass2 ) {
226
+ wp_send_json_error( __( 'New passwords do not match.', 'wpuf' ) );
227
+ $save_pass = false;
228
+ } elseif ( ! empty( $pass1 ) && ! wp_check_password( $current_password, $current_user->user_pass, $current_user->ID ) ) {
229
+ wp_send_json_error( __( 'Your current password is incorrect.', 'wpuf' ) );
230
+ $save_pass = false;
231
+ }
232
+
233
+ if ( $pass1 && $save_pass ) {
234
+ $user->user_pass = $pass1;
235
+ }
236
+
237
+ $result = wp_update_user( $user );
238
+
239
+ if ( is_wp_error( $result ) ) {
240
+ wp_send_json_error( __( 'Your current password is incorrect.', 'wpuf' ) );
241
+ }
242
+
243
+ wp_send_json_success();
244
+ }
245
+
246
+ }
class/frontend-dashboard.php CHANGED
@@ -30,14 +30,7 @@ class WPUF_Frontend_Dashboard {
30
  $this->post_listing( $post_type );
31
  } else {
32
  $message = wpuf_get_option( 'un_auth_msg', 'wpuf_dashboard' );
33
-
34
- if ( empty( $message ) ) {
35
- $msg = '<div class="wpuf-message">' . sprintf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false ) ) . '</div>';
36
- echo apply_filters( 'wpuf_dashboard_unauth', $msg, $post_type );
37
- //wp_login_form();
38
- } else {
39
- echo $message;
40
- }
41
  }
42
 
43
  $content = ob_get_contents();
30
  $this->post_listing( $post_type );
31
  } else {
32
  $message = wpuf_get_option( 'un_auth_msg', 'wpuf_dashboard' );
33
+ wpuf_load_template( 'unauthorized.php', array( 'message' => $message ) );
 
 
 
 
 
 
 
34
  }
35
 
36
  $content = ob_get_contents();
class/frontend-form-post.php CHANGED
@@ -478,7 +478,10 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
478
  //send mail notification
479
  if ( isset( $form_settings['notification'] ) && $form_settings['notification']['edit'] == 'on' ) {
480
  $mail_body = $this->prepare_mail_body( $form_settings['notification']['edit_body'], $post_author, $post_id );
481
- wp_mail( $form_settings['notification']['edit_to'], $form_settings['notification']['edit_subject'], $mail_body );
 
 
 
482
  }
483
  } else {
484
 
@@ -488,7 +491,10 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
488
  // send mail notification
489
  if ( isset( $form_settings['notification'] ) && $form_settings['notification']['new'] == 'on' ) {
490
  $mail_body = $this->prepare_mail_body( $form_settings['notification']['new_body'], $post_author, $post_id );
491
- wp_mail( $form_settings['notification']['new_to'], $form_settings['notification']['new_subject'], $mail_body );
 
 
 
492
  }
493
  }
494
 
@@ -568,7 +574,9 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
568
  $form_vars = $this->get_input_fields( $form_id );
569
  $form_settings = wpuf_get_form_settings( $form_id );
570
 
571
- $content_slug = 'post_content_'.$form_id;
 
 
572
  list( $post_vars, $taxonomy_vars, $meta_vars ) = $form_vars;
573
 
574
  $charging_enabled = wpuf_get_option( 'charge_posting', 'wpuf_payment' );
@@ -577,10 +585,10 @@ class WPUF_Frontend_Form_Post extends WPUF_Render_Form {
577
 
578
  $postarr = array(
579
  'post_type' => $form_settings['post_type'],
580
- 'post_status' => 'draft',
581
  'post_author' => get_current_user_id(),
582
  'post_title' => isset( $_POST['post_title'] ) ? trim( $_POST['post_title'] ) : '',
583
- 'post_content' => isset( $_POST[$content_slug] ) ? trim( $_POST[$content_slug] ) : '',
584
  'post_excerpt' => isset( $_POST['post_excerpt'] ) ? trim( $_POST['post_excerpt'] ) : '',
585
  );
586
 
478
  //send mail notification
479
  if ( isset( $form_settings['notification'] ) && $form_settings['notification']['edit'] == 'on' ) {
480
  $mail_body = $this->prepare_mail_body( $form_settings['notification']['edit_body'], $post_author, $post_id );
481
+ $to = $this->prepare_mail_body( $form_settings['notification']['edit_to'], $post_author, $post_id );
482
+ $subject = $this->prepare_mail_body( $form_settings['notification']['edit_subject'], $post_author, $post_id );
483
+
484
+ wp_mail( $to, $subject, $mail_body );
485
  }
486
  } else {
487
 
491
  // send mail notification
492
  if ( isset( $form_settings['notification'] ) && $form_settings['notification']['new'] == 'on' ) {
493
  $mail_body = $this->prepare_mail_body( $form_settings['notification']['new_body'], $post_author, $post_id );
494
+ $to = $this->prepare_mail_body( $form_settings['notification']['new_to'], $post_author, $post_id );
495
+ $subject = $this->prepare_mail_body( $form_settings['notification']['new_subject'], $post_author, $post_id );
496
+
497
+ wp_mail( $to, $subject, $mail_body );
498
  }
499
  }
500
 
574
  $form_vars = $this->get_input_fields( $form_id );
575
  $form_settings = wpuf_get_form_settings( $form_id );
576
 
577
+ $content_slug = 'post_content_' . $form_id;
578
+ $post_content = isset( $_POST[ $content_slug ] ) ? trim( $_POST[ $content_slug ] ) : $_POST[ 'post_content' ];
579
+
580
  list( $post_vars, $taxonomy_vars, $meta_vars ) = $form_vars;
581
 
582
  $charging_enabled = wpuf_get_option( 'charge_posting', 'wpuf_payment' );
585
 
586
  $postarr = array(
587
  'post_type' => $form_settings['post_type'],
588
+ 'post_status' => ( $charging_enabled == 'yes' && ! isset( $_POST['post_id'] ) ) ? 'pending' : 'draft',
589
  'post_author' => get_current_user_id(),
590
  'post_title' => isset( $_POST['post_title'] ) ? trim( $_POST['post_title'] ) : '',
591
+ 'post_content' => $post_content,
592
  'post_excerpt' => isset( $_POST['post_excerpt'] ) ? trim( $_POST['post_excerpt'] ) : '',
593
  );
594
 
class/payment.php CHANGED
@@ -131,7 +131,7 @@ class WPUF_Payment {
131
  <?php if ( $pack_id ) {
132
  $pack = WPUF_Subscription::init()->get_subscription( $pack_id );
133
  $details_meta = WPUF_Subscription::init()->get_details_meta_value();
134
- $currency = wpuf_get_option( 'currency_symbol', 'wpuf_payment' );
135
  if ( is_user_logged_in() ) {
136
  ?>
137
  <input type="hidden" name="user_id" value="<?php echo $current_user->ID; ?>">
@@ -150,12 +150,9 @@ class WPUF_Payment {
150
  <div class="wpuf-pack-inner">
151
  <?php if ( class_exists( 'WPUF_Coupons' ) ) { ?>
152
  <?php echo WPUF_Coupons::init()->after_apply_coupon( $pack ); ?>
153
- <?php } else {
154
-
155
- $currency = wpuf_get_option( 'currency_symbol', 'wpuf_payment' );
156
- ?>
157
  <div><?php _e( 'Selected Pack ', 'wpuf' ); ?>: <strong><?php echo $pack->post_title; ?></strong></div>
158
- <?php _e( 'Pack Price ', 'wpuf' ); ?>: <strong><?php echo $currency . $pack->meta_value['billing_amount']; ?></strong>
159
  <?php } ?>
160
  </div>
161
  </div>
@@ -273,19 +270,18 @@ class WPUF_Payment {
273
  switch ($type) {
274
  case 'post':
275
  $post = get_post( $post_id );
276
- $amount = wpuf_get_option( 'cost_per_post', 'wpuf_payment' );
277
- $item_number = get_post_meta( $post_id, '_wpuf_order_id', true );
278
  $item_name = $post->post_title;
279
  break;
280
 
281
  case 'pack':
282
-
283
- $pack = WPUF_Subscription::init()->get_subscription( $pack_id );
284
-
285
- $custom = $pack->meta_value;
286
- $amount = $this->coupon_discount( $_POST['coupon_code'], $pack->meta_value['billing_amount'], $pack_id );
287
- $item_name = $pack->post_title;
288
- $item_number = $pack->ID;
289
  break;
290
  }
291
 
@@ -345,7 +341,6 @@ class WPUF_Payment {
345
  }
346
 
347
  if ( $coupon_meta['type'] == 'amount' ) {
348
-
349
  $new_amount = $amount - $coupon_meta['amount'];
350
  } else {
351
  $new_amount = ( $amount * $coupon_meta['amount'] ) / 100;
131
  <?php if ( $pack_id ) {
132
  $pack = WPUF_Subscription::init()->get_subscription( $pack_id );
133
  $details_meta = WPUF_Subscription::init()->get_details_meta_value();
134
+ $currency = wpuf_get_currency( 'symbol' );
135
  if ( is_user_logged_in() ) {
136
  ?>
137
  <input type="hidden" name="user_id" value="<?php echo $current_user->ID; ?>">
150
  <div class="wpuf-pack-inner">
151
  <?php if ( class_exists( 'WPUF_Coupons' ) ) { ?>
152
  <?php echo WPUF_Coupons::init()->after_apply_coupon( $pack ); ?>
153
+ <?php } else { ?>
 
 
 
154
  <div><?php _e( 'Selected Pack ', 'wpuf' ); ?>: <strong><?php echo $pack->post_title; ?></strong></div>
155
+ <?php _e( 'Pack Price ', 'wpuf' ); ?>: <strong><?php echo wpuf_format_price( $pack->meta_value['billing_amount'], true ); ?></strong>
156
  <?php } ?>
157
  </div>
158
  </div>
270
  switch ($type) {
271
  case 'post':
272
  $post = get_post( $post_id );
273
+ $amount = wpuf_format_price( wpuf_get_option( 'cost_per_post', 'wpuf_payment' ) );
274
+ $item_number = $post->ID;
275
  $item_name = $post->post_title;
276
  break;
277
 
278
  case 'pack':
279
+ $pack = WPUF_Subscription::init()->get_subscription( $pack_id );
280
+ $custom = $pack->meta_value;
281
+ $billing_amount = wpuf_format_price( $pack->meta_value['billing_amount'] );
282
+ $amount = $this->coupon_discount( $_POST['coupon_code'], $billing_amount, $pack_id );
283
+ $item_name = $pack->post_title;
284
+ $item_number = $pack->ID;
 
285
  break;
286
  }
287
 
341
  }
342
 
343
  if ( $coupon_meta['type'] == 'amount' ) {
 
344
  $new_amount = $amount - $coupon_meta['amount'];
345
  } else {
346
  $new_amount = ( $amount * $coupon_meta['amount'] ) / 100;
class/subscription.php CHANGED
@@ -62,12 +62,11 @@ class WPUF_Subscription {
62
  $user_id = get_current_user_id();
63
  $current_pack = self::get_user_pack( $user_id );
64
 
65
- if ( $current_pack['recurring'] == 'yes' ) {
66
 
67
- $gateway = sanitize_text_field( $_POST['gateway'] );
68
 
69
- do_action( "wpuf_cancel_subscription_{$gateway}", $_POST );
70
- } else {
71
  WPUF_Subscription::init()->update_user_subscription_meta( $user_id, 'Cancel' );
72
  }
73
 
@@ -218,25 +217,24 @@ class WPUF_Subscription {
218
  */
219
  public static function get_subscription_meta( $subscription_id, $pack_post = null ) {
220
 
221
- $meta['post_content'] = isset( $pack_post->post_content ) ? $pack_post->post_content : '';
222
- $meta['post_title'] = isset( $pack_post->post_title ) ? $pack_post->post_title : '';
223
- $meta['billing_amount'] = get_post_meta( $subscription_id, '_billing_amount', true );
224
- $meta['expiration_number'] = get_post_meta( $subscription_id, '_expiration_number', true );
225
- $meta['expiration_period'] = get_post_meta( $subscription_id, '_expiration_period', true );
226
- $meta['recurring_pay'] = get_post_meta( $subscription_id, '_recurring_pay', true );
227
- $meta['billing_cycle_number'] = get_post_meta( $subscription_id, '_billing_cycle_number', true );
228
- $meta['cycle_period'] = get_post_meta( $subscription_id, '_cycle_period', true );
229
- $meta['billing_limit'] = get_post_meta( $subscription_id, '_billing_limit', true );
230
- $meta['trial_status'] = get_post_meta( $subscription_id, '_trial_status', true );
231
- $meta['trial_duration'] = get_post_meta( $subscription_id, '_trial_duration', true );
232
- $meta['trial_duration_type'] = get_post_meta( $subscription_id, '_trial_duration_type', true );
233
- $meta['post_type_name'] = get_post_meta( $subscription_id, '_post_type_name', true );
234
- $meta['_enable_post_expiration'] = get_post_meta( $subscription_id, '_enable_post_expiration', true );
235
- $meta['_post_expiration_time'] = get_post_meta( $subscription_id, '_post_expiration_time', true );
236
- //
237
- $meta['_expired_post_status'] = get_post_meta( $subscription_id, '_expired_post_status', true );
238
- $meta['_enable_mail_after_expired'] = get_post_meta( $subscription_id, '_enable_mail_after_expired', true );
239
- $meta['_post_expiration_message'] = get_post_meta( $subscription_id, '_post_expiration_message', true );
240
 
241
  $meta = apply_filters( 'wpuf_get_subscription_meta', $meta, $subscription_id );
242
 
@@ -500,17 +498,14 @@ class WPUF_Subscription {
500
  }
501
 
502
  /**
503
- * Checks the posting validity after a new draft post
504
  *
505
  * @global object $userdata
506
  * @global object $wpdb
507
  * @param int $post_id
508
  */
509
  function monitor_new_draft_post( $post_id, $form_id, $form_settings ) {
510
- // check form if subscription is disabled
511
- if ( isset( $form_settings['subscription_disabled'] ) && $form_settings['subscription_disabled'] == 'yes' ) {
512
- return;
513
- }
514
  global $wpdb, $userdata;
515
 
516
  // bail out if charging is not enabled
@@ -525,8 +520,6 @@ class WPUF_Subscription {
525
  //add a uniqid to track the post easily
526
  $order_id = uniqid( rand( 10, 1000 ), false );
527
  update_post_meta( $post_id, '_wpuf_order_id', $order_id, true );
528
-
529
- wp_update_post( array( 'ID' => $post_id, 'status' => 'pending' ) );
530
  }
531
 
532
  }
@@ -566,11 +559,10 @@ class WPUF_Subscription {
566
  * @param array $info payment info
567
  */
568
  function payment_received( $info, $recurring ) {
569
-
570
  if ( $info['post_id'] ) {
 
571
 
572
- $this->handle_post_publish( $info['post_id'] );
573
-
574
  } else if ( $info['pack_id'] ) {
575
  $profile_id = isset( $info['profile_id'] ) ? $info['profile_id'] : null;
576
  $this->new_subscription( $info['user_id'], $info['pack_id'], $profile_id, $recurring, $info['status'] );
@@ -851,7 +843,7 @@ class WPUF_Subscription {
851
 
852
  $meta['payment_page'] = get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) );
853
  $meta['onclick'] = '';
854
- $meta['symbol'] = wpuf_get_option( 'currency_symbol', 'wpuf_payment' );
855
 
856
  return $meta;
857
  }
@@ -938,7 +930,7 @@ class WPUF_Subscription {
938
  ?>
939
  <div class="wpuf-info">
940
  <?php
941
- $text = sprintf( __( 'This will cost you <strong>%s</strong> to add a new post. ', 'wpuf' ), wpuf_get_option( 'currency_symbol', 'wpuf_payment' ) . wpuf_get_option( 'cost_per_post', 'wpuf_payment' ) );
942
 
943
  echo apply_filters( 'wpuf_ppp_notice', $text, $form_id, $form_settings );
944
  ?>
@@ -1112,9 +1104,9 @@ class WPUF_Subscription {
1112
 
1113
  //update_user_meta( 1, 'test_data', $user_wpuf_subscription_pack );
1114
 
1115
- $sub_info = self::get_user_pack( $userdata->ID );
1116
- $post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
1117
- $count = isset( $sub_info['posts'][$post_type] ) ? intval( $sub_info['posts'][$post_type] ) : 0;
1118
 
1119
 
1120
  // decrease the post count, if not umlimited
62
  $user_id = get_current_user_id();
63
  $current_pack = self::get_user_pack( $user_id );
64
 
65
+ $gateway = ( $_POST['gateway'] == 'bank/manual' ) ? 'bank' : sanitize_text_field( $_POST['gateway'] );
66
 
67
+ do_action( "wpuf_cancel_subscription_{$gateway}", $_POST );
68
 
69
+ if ( $_POST['gateway'] == 'bank/manual' ) {
 
70
  WPUF_Subscription::init()->update_user_subscription_meta( $user_id, 'Cancel' );
71
  }
72
 
217
  */
218
  public static function get_subscription_meta( $subscription_id, $pack_post = null ) {
219
 
220
+ $meta['post_content'] = isset( $pack_post->post_content ) ? $pack_post->post_content : '';
221
+ $meta['post_title'] = isset( $pack_post->post_title ) ? $pack_post->post_title : '';
222
+ $meta['billing_amount'] = get_post_meta( $subscription_id, '_billing_amount', true );
223
+ $meta['expiration_number'] = get_post_meta( $subscription_id, '_expiration_number', true );
224
+ $meta['expiration_period'] = get_post_meta( $subscription_id, '_expiration_period', true );
225
+ $meta['recurring_pay'] = get_post_meta( $subscription_id, '_recurring_pay', true );
226
+ $meta['billing_cycle_number'] = get_post_meta( $subscription_id, '_billing_cycle_number', true );
227
+ $meta['cycle_period'] = get_post_meta( $subscription_id, '_cycle_period', true );
228
+ $meta['billing_limit'] = get_post_meta( $subscription_id, '_billing_limit', true );
229
+ $meta['trial_status'] = get_post_meta( $subscription_id, '_trial_status', true );
230
+ $meta['trial_duration'] = get_post_meta( $subscription_id, '_trial_duration', true );
231
+ $meta['trial_duration_type'] = get_post_meta( $subscription_id, '_trial_duration_type', true );
232
+ $meta['post_type_name'] = get_post_meta( $subscription_id, '_post_type_name', true );
233
+ $meta['_enable_post_expiration'] = get_post_meta( $subscription_id, '_enable_post_expiration', true );
234
+ $meta['_post_expiration_time'] = get_post_meta( $subscription_id, '_post_expiration_time', true );
235
+ $meta['_expired_post_status'] = get_post_meta( $subscription_id, '_expired_post_status', true );
236
+ $meta['_enable_mail_after_expired'] = get_post_meta( $subscription_id, '_enable_mail_after_expired', true );
237
+ $meta['_post_expiration_message'] = get_post_meta( $subscription_id, '_post_expiration_message', true );
 
238
 
239
  $meta = apply_filters( 'wpuf_get_subscription_meta', $meta, $subscription_id );
240
 
498
  }
499
 
500
  /**
501
+ * Check if the post is draft and charging is enabled
502
  *
503
  * @global object $userdata
504
  * @global object $wpdb
505
  * @param int $post_id
506
  */
507
  function monitor_new_draft_post( $post_id, $form_id, $form_settings ) {
508
+
 
 
 
509
  global $wpdb, $userdata;
510
 
511
  // bail out if charging is not enabled
520
  //add a uniqid to track the post easily
521
  $order_id = uniqid( rand( 10, 1000 ), false );
522
  update_post_meta( $post_id, '_wpuf_order_id', $order_id, true );
 
 
523
  }
524
 
525
  }
559
  * @param array $info payment info
560
  */
561
  function payment_received( $info, $recurring ) {
 
562
  if ( $info['post_id'] ) {
563
+ $order_id = get_post_meta( $info['post_id'], '_wpuf_order_id', true );
564
 
565
+ $this->handle_post_publish( $order_id );
 
566
  } else if ( $info['pack_id'] ) {
567
  $profile_id = isset( $info['profile_id'] ) ? $info['profile_id'] : null;
568
  $this->new_subscription( $info['user_id'], $info['pack_id'], $profile_id, $recurring, $info['status'] );
843
 
844
  $meta['payment_page'] = get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) );
845
  $meta['onclick'] = '';
846
+ $meta['symbol'] = wpuf_get_currency( 'symbol' );
847
 
848
  return $meta;
849
  }
930
  ?>
931
  <div class="wpuf-info">
932
  <?php
933
+ $text = sprintf( __( 'This will cost you <strong>%s</strong> to add a new post. ', 'wpuf' ), wpuf_format_price( wpuf_get_option( 'cost_per_post', 'wpuf_payment' ) ) );
934
 
935
  echo apply_filters( 'wpuf_ppp_notice', $text, $form_id, $form_settings );
936
  ?>
1104
 
1105
  //update_user_meta( 1, 'test_data', $user_wpuf_subscription_pack );
1106
 
1107
+ $sub_info = self::get_user_pack( $userdata->ID );
1108
+ $post_type = isset( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';
1109
+ $count = isset( $sub_info['posts'][$post_type] ) ? intval( $sub_info['posts'][$post_type] ) : 0;
1110
 
1111
 
1112
  // decrease the post count, if not umlimited
class/transactions-list-table.php ADDED
@@ -0,0 +1,372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'WP_List_Table' ) ) {
4
+ require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
5
+ }
6
+
7
+ class WPUF_Transactions_List_Table extends WP_List_Table {
8
+ /**
9
+ * Constructor.
10
+ */
11
+ public function __construct() {
12
+ parent::__construct( array(
13
+ 'singular' => __( 'transaction', 'wpuf' ),
14
+ 'plural' => __( 'transactions', 'wpuf' ),
15
+ 'ajax' => false
16
+ ) );
17
+ }
18
+
19
+ /**
20
+ * Render the bulk edit checkbox.
21
+ *
22
+ * @param array $item
23
+ *
24
+ * @return string
25
+ */
26
+ public function column_cb( $item ) {
27
+ return sprintf(
28
+ '<input type="checkbox" name="bulk-items[]" value="%s" />', $item->id
29
+ );
30
+ }
31
+
32
+ /**
33
+ * Get a list of columns.
34
+ *
35
+ * @return array
36
+ */
37
+ public function get_columns() {
38
+ $columns = array(
39
+ 'cb' => '<input type="checkbox" />',
40
+ 'id' => __( 'ID', 'wpuf' ),
41
+ 'status' => __( 'Status', 'wpuf' ),
42
+ 'user' => __( 'User', 'wpuf' ),
43
+ 'cost' => __( 'Cost', 'wpuf' ),
44
+ 'post_id' => __( 'Post ID', 'wpuf' ),
45
+ 'pack_id' => __( 'Pack ID', 'wpuf' ),
46
+ 'payment_type' => __( 'Gateway', 'wpuf' ),
47
+ 'payer' => __( 'Payer', 'wpuf' ),
48
+ 'payer_email' => __( 'Email', 'wpuf' ),
49
+ 'transaction_id' => __( 'Trans ID', 'wpuf' ),
50
+ 'created' => __( 'Date', 'wpuf' ),
51
+ );
52
+
53
+ return $columns;
54
+ }
55
+
56
+ /**
57
+ * Get a list of sortable columns.
58
+ *
59
+ * @return array
60
+ */
61
+ public function get_sortable_columns() {
62
+ $sortable_columns = array(
63
+ 'id' => array( 'id', false ),
64
+ 'status' => array( 'status', false ),
65
+ 'created' => array( 'created', false ),
66
+ );
67
+
68
+ return $sortable_columns;
69
+ }
70
+
71
+ /**
72
+ * Set the views
73
+ *
74
+ * @return array
75
+ */
76
+ public function get_views() {
77
+ $status_links = [];
78
+ $base_link = admin_url( 'admin.php?page=wpuf_transaction' );
79
+
80
+ $transactions_count = wpuf_get_transactions( array( 'count' => true ) );
81
+ $transactions_pending_count = wpuf_get_pending_transactions( array( 'count' => true ) );
82
+
83
+ $status = isset( $_REQUEST['status'] ) ? sanitize_text_field( $_REQUEST['status'] ) : 'all';
84
+
85
+ $status_links['all'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'all' ), $base_link ), ( $status == 'all' ) ? 'current' : '', __( 'All', 'wpuf' ), $transactions_count );
86
+ $status_links['pending'] = sprintf( '<a href="%s" class="%s">%s <span class="count">(%s)</span></a>', add_query_arg( array( 'status' => 'pending' ), $base_link ), ( $status == 'pending' ) ? 'current' : '', __( 'Pending', 'wpuf' ), $transactions_pending_count );
87
+
88
+ return $status_links;
89
+ }
90
+
91
+ /**
92
+ * Method for id column.
93
+ *
94
+ * @param array $item an array of DB data
95
+ *
96
+ * @return string
97
+ */
98
+ public function column_id( $item ) {
99
+ $id = $item->id;
100
+
101
+ $delete_nonce = wp_create_nonce( 'wpuf-delete-transaction' );
102
+ $title = '<strong>#' . $id . '</strong>';
103
+
104
+ if ( isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'pending' ) {
105
+ $accept_nonce = wp_create_nonce( 'wpuf-accept-transaction' );
106
+ $reject_nonce = wp_create_nonce( 'wpuf-reject-transaction' );
107
+
108
+ $actions = array(
109
+ 'accept' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'accept', absint( $id ), $accept_nonce, __( 'Accept', 'wpuf' ) ),
110
+ 'reject' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'reject', absint( $id ), $reject_nonce, __( 'Reject', 'wpuf' ) )
111
+ );
112
+ } else {
113
+ $actions = array(
114
+ 'delete' => sprintf( '<a href="?page=%s&action=%s&id=%d&_wpnonce=%s">%s</a>', esc_attr( $_REQUEST['page'] ), 'delete', absint( $id ), $delete_nonce, __( 'Delete', 'wpuf' ) )
115
+ );
116
+ }
117
+
118
+ return $title . $this->row_actions( $actions );
119
+ }
120
+
121
+ /**
122
+ * Define each column of the table.
123
+ *
124
+ * @param array $item
125
+ * @param string $column_name
126
+ *
127
+ * @return mixed
128
+ */
129
+ public function column_default( $item, $column_name ) {
130
+
131
+ switch( $column_name ) {
132
+ case 'status':
133
+ return ( $item->status == 'completed' ) ? '<span class="wpuf-status-completed" title="Completed"></span>' : '<span class="wpuf-status-processing" title="Processing"></span>';
134
+ case 'user':
135
+ $user = get_user_by( 'id', $item->user_id );
136
+ return sprintf( '<a href="%s">%s</a>', admin_url( 'user-edit.php?user_id=' . $item->user_id ), $user->display_name );
137
+ case 'cost':
138
+ return wpuf_format_price( $item->cost, true );
139
+ case 'post_id':
140
+ return ! empty( $item->post_id ) ? sprintf( '<a href="%s">%s</a>', admin_url( 'post.php?post=' . $item->post_id . '&action=edit' ), $item->post_id ) : '-';
141
+ case 'pack_id':
142
+ return ! empty( $item->pack_id ) ? sprintf( '<a href="%s">%s</a>', admin_url( 'post.php?post=' . $item->pack_id . '&action=edit' ), $item->pack_id ) : '-';
143
+ case 'payer':
144
+ return ! empty( $item->payer_first_name ) ? $item->payer_first_name . ' ' . $item->payer_last_name : '-';
145
+ case 'created':
146
+ return ! empty( $item->created ) ? date( 'd-m-Y', strtotime( $item->created ) ) : '-';
147
+ default:
148
+ return ! empty( $item->{$column_name} ) ? $item->{$column_name} : '-';
149
+ break;
150
+ }
151
+ }
152
+
153
+ /**
154
+ * Message to be displayed when there are no items.
155
+ *
156
+ * @return void
157
+ */
158
+ public function no_items() {
159
+ _e( 'No transactions found.', 'wpuf' );
160
+ }
161
+
162
+ /**
163
+ * Set the bulk actions.
164
+ *
165
+ * @return array
166
+ */
167
+ public function get_bulk_actions() {
168
+
169
+ if ( isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'pending' ) {
170
+ $actions = array(
171
+ 'bulk-reject' => __( 'Reject', 'wpuf' ),
172
+ );
173
+ } else {
174
+ $actions = array(
175
+ 'bulk-delete' => __( 'Delete', 'wpuf' ),
176
+ );
177
+ }
178
+
179
+ return $actions;
180
+ }
181
+
182
+ /**
183
+ * Prepares the list of items for displaying.
184
+ *
185
+ * @return void
186
+ */
187
+ public function prepare_items() {
188
+ $per_page = $this->get_items_per_page( 'transactions_per_page', 20 );
189
+ $current_page = $this->get_pagenum();
190
+
191
+ $status = isset( $_REQUEST['status'] ) ? sanitize_text_field( $_REQUEST['status'] ) : 'all';
192
+
193
+ if ( $status == 'pending' ) {
194
+ $total_items = wpuf_get_pending_transactions( array( 'count' => true ) );
195
+ } else {
196
+ $total_items = wpuf_get_transactions( array( 'count' => true ) );
197
+ }
198
+
199
+ $this->set_pagination_args( array(
200
+ 'total_items' => $total_items,
201
+ 'per_page' => $per_page,
202
+ ) );
203
+
204
+ $this->_column_headers = $this->get_column_info();
205
+
206
+ $this->process_actions();
207
+
208
+ $offset = ( $current_page - 1 ) * $per_page;
209
+
210
+ $args = [
211
+ 'offset' => $offset,
212
+ 'number' => $per_page,
213
+ ];
214
+
215
+ if ( isset( $_REQUEST['orderby'] ) && isset( $_REQUEST['order'] ) ) {
216
+ $args['orderby'] = $_REQUEST['orderby'];
217
+ $args['order'] = $_REQUEST['order'] ;
218
+ }
219
+
220
+ if ( $status == 'pending' ) {
221
+ $this->items = wpuf_get_pending_transactions( $args );
222
+ } else {
223
+ $this->items = wpuf_get_transactions( $args );
224
+ }
225
+ }
226
+
227
+ /**
228
+ * Process the actions
229
+ *
230
+ * @return void
231
+ */
232
+ private function process_actions() {
233
+ global $wpdb;
234
+
235
+ $page_url = menu_page_url( 'wpuf_transaction', false );
236
+
237
+ // Delete Transaction
238
+ if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'delete' )
239
+ || ( isset( $_REQUEST['action2'] ) && $_REQUEST['action2'] == 'delete' )
240
+ ) {
241
+ if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-delete-transaction' ) ) {
242
+ return false;
243
+ }
244
+
245
+ $id = absint( esc_sql( $_REQUEST['id'] ) );
246
+
247
+ $wpdb->delete( $wpdb->prefix . 'wpuf_transaction', array( 'id' => $id ), array( '%d' ) );
248
+
249
+ // Redirect
250
+ wp_redirect( $page_url );
251
+ exit;
252
+ }
253
+
254
+ // Delete Transactions
255
+ if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'bulk-delete' )
256
+ || ( isset( $_REQUEST['action2'] ) && $_REQUEST['action2'] == 'bulk-delete' )
257
+ ) {
258
+ if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'bulk-transactions' ) ) {
259
+ return false;
260
+ }
261
+
262
+ $ids = esc_sql( $_REQUEST['bulk-items'] );
263
+
264
+ foreach ( $ids as $id ) {
265
+ $id = absint( $id );
266
+
267
+ $wpdb->delete( $wpdb->prefix . 'wpuf_transaction', array( 'id' => $id ), array( '%d' ) );
268
+ }
269
+
270
+ // Redirect
271
+ wp_redirect( $page_url );
272
+ exit;
273
+ }
274
+
275
+ // Reject Transaction
276
+ if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'reject' )
277
+ || ( isset( $_REQUEST['action2'] ) && $_REQUEST['action2'] == 'reject' )
278
+ ) {
279
+ if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-reject-transaction' ) ) {
280
+ return false;
281
+ }
282
+
283
+ $id = absint( esc_sql( $_REQUEST['id'] ) );
284
+ $info = get_post_meta( $id, '_data', true );
285
+ $gateway = $info['post_data']['wpuf_payment_method'];
286
+
287
+ do_action( "wpuf_{$gateway}_bank_order_reject", $id );
288
+ wp_delete_post( $id, true );
289
+
290
+ // Redirect
291
+ wp_redirect( $page_url );
292
+ exit;
293
+ }
294
+
295
+ // Reject Transactions
296
+ if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'bulk-reject' )
297
+ || ( isset( $_REQUEST['action2'] ) && $_REQUEST['action2'] == 'bulk-reject' )
298
+ ) {
299
+ if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'bulk-transactions' ) ) {
300
+ return false;
301
+ }
302
+
303
+ $ids = esc_sql( $_REQUEST['bulk-items'] );
304
+
305
+ foreach ( $ids as $id ) {
306
+ $id = absint( $id );
307
+ $info = get_post_meta( $id, '_data', true );
308
+ $gateway = $info['post_data']['wpuf_payment_method'];
309
+
310
+ do_action( "wpuf_{$gateway}_bank_order_reject", $id );
311
+
312
+ wp_delete_post( $id, true );
313
+ }
314
+
315
+ // Redirect
316
+ wp_redirect( $page_url );
317
+ exit;
318
+ }
319
+
320
+ // Accept Transaction
321
+ if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'accept' ) {
322
+ if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-accept-transaction' ) ) {
323
+ return false;
324
+ }
325
+
326
+ if ( ! current_user_can( 'manage_options' ) ) {
327
+ return;
328
+ }
329
+
330
+ $id = absint( $_REQUEST['id'] );
331
+ $info = get_post_meta( $id, '_data', true );
332
+
333
+ if ( $info ) {
334
+ switch ( $info['type'] ) {
335
+ case 'post':
336
+ $post_id = $info['item_number'];
337
+ $pack_id = 0;
338
+ break;
339
+
340
+ case 'pack':
341
+ $post_id = 0;
342
+ $pack_id = $info['item_number'];
343
+ break;
344
+ }
345
+
346
+ $transaction = array(
347
+ 'user_id' => $info['user_info']['id'],
348
+ 'status' => 'completed',
349
+ 'cost' => $info['price'],
350
+ 'post_id' => $post_id,
351
+ 'pack_id' => $pack_id,
352
+ 'payer_first_name' => $info['user_info']['first_name'],
353
+ 'payer_last_name' => $info['user_info']['last_name'],
354
+ 'payer_email' => $info['user_info']['email'],
355
+ 'payment_type' => 'Bank/Manual',
356
+ 'transaction_id' => $id,
357
+ 'created' => current_time( 'mysql' )
358
+ );
359
+
360
+ do_action( 'wpuf_gateway_bank_order_complete', $transaction, $id );
361
+
362
+ WPUF_Payment::insert_payment( $transaction );
363
+ wp_delete_post( $id, true );
364
+ }
365
+
366
+ wp_redirect( $page_url );
367
+ exit;
368
+ }
369
+
370
+ }
371
+
372
+ }
includes/free/form.php CHANGED
@@ -273,7 +273,7 @@ class WPUF_form_element extends WPUF_Pro_Prompt {
273
  </tr>
274
  </table>
275
 
276
- <h3><?php _e( 'You may use in message:', 'wpuf' ); ?></h3>
277
  <p>
278
  <code>%post_title%</code>, <code>%post_content%</code>, <code>%post_excerpt%</code>, <code>%tags%</code>, <code>%category%</code>,
279
  <code>%author%</code>, <code>%author_email%</code>, <code>%author_bio%</code>, <code>%sitename%</code>, <code>%siteurl%</code>, <code>%permalink%</code>, <code>%editlink%</code>
273
  </tr>
274
  </table>
275
 
276
+ <h3><?php _e( 'You may use in to, subject & message:', 'wpuf' ); ?></h3>
277
  <p>
278
  <code>%post_title%</code>, <code>%post_content%</code>, <code>%post_excerpt%</code>, <code>%tags%</code>, <code>%category%</code>,
279
  <code>%author%</code>, <code>%author_email%</code>, <code>%author_bio%</code>, <code>%sitename%</code>, <code>%siteurl%</code>, <code>%permalink%</code>, <code>%editlink%</code>
languages/wpuf.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP User Frontend 2.4.1\n"
6
  "Report-Msgid-Bugs-To: "
7
- "https://wedevs.com/support/forum/plugin-support/wp-user-frontend-pro/\n"
8
- "POT-Creation-Date: 2017-01-12 04:34:46+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -48,10 +48,10 @@ msgstr ""
48
  msgid "Add New Form"
49
  msgstr ""
50
 
51
- #: admin/form.php:180 admin/form.php:218 admin/installer.php:74
52
- #: admin/subscription.php:228 class/subscription.php:363
53
- #: includes/free/edit-user.php:100 includes/pro/admin/coupon.php:183
54
- #: templates/dashboard.php:102
55
  msgid "Edit"
56
  msgstr ""
57
 
@@ -87,7 +87,7 @@ msgstr ""
87
  msgid "Registraton Forms"
88
  msgstr ""
89
 
90
- #: admin/form.php:215 includes/free/loader.php:60 includes/pro/loader.php:139
91
  msgid "Registration Forms"
92
  msgstr ""
93
 
@@ -96,12 +96,10 @@ msgid "Form updated."
96
  msgstr ""
97
 
98
  #: admin/form.php:247 admin/subscription.php:53
99
- #: includes/pro/admin/coupon.php:117
100
  msgid "Custom field updated."
101
  msgstr ""
102
 
103
  #: admin/form.php:248 admin/subscription.php:54
104
- #: includes/pro/admin/coupon.php:118
105
  msgid "Custom field deleted."
106
  msgstr ""
107
 
@@ -141,7 +139,7 @@ msgstr ""
141
  msgid "Post Status"
142
  msgstr ""
143
 
144
- #: admin/form.php:288 admin/form.php:746
145
  msgid "Guest Post"
146
  msgstr ""
147
 
@@ -153,17 +151,17 @@ msgstr ""
153
  msgid "User Role"
154
  msgstr ""
155
 
156
- #: admin/form.php:340 admin/settings-options.php:86
157
- #: admin/settings-options.php:165 admin/settings-options.php:176
158
- #: admin/settings-options.php:265 admin/subscription.php:148
159
- #: admin/template.php:74 includes/free/form.php:476 includes/pro/form.php:573
160
  msgid "No"
161
  msgstr ""
162
 
163
- #: admin/form.php:340 admin/settings-options.php:85
164
- #: admin/settings-options.php:164 admin/settings-options.php:175
165
- #: admin/settings-options.php:264 admin/subscription.php:146
166
- #: admin/template.php:73 includes/free/form.php:475 includes/pro/form.php:572
167
  msgid "Yes"
168
  msgstr ""
169
 
@@ -179,8 +177,8 @@ msgstr ""
179
  msgid "WPUF Form"
180
  msgstr ""
181
 
182
- #: admin/form.php:460 admin/form.php:471 admin/form.php:1047
183
- #: admin/form.php:1087
184
  msgid "Form Editor"
185
  msgstr ""
186
 
@@ -216,7 +214,7 @@ msgstr ""
216
  msgid "Submit for Review"
217
  msgstr ""
218
 
219
- #: admin/form.php:562 admin/form.php:563 admin/form.php:899
220
  msgid "Update"
221
  msgstr ""
222
 
@@ -224,12 +222,12 @@ msgstr ""
224
  msgid "This page is restricted. Please Log in / Register to view this page."
225
  msgstr ""
226
 
227
- #: admin/form.php:644 admin/subscription.php:206 admin/template-post.php:177
228
  #: includes/free/edit-profile.php:92
229
  msgid "Name"
230
  msgstr ""
231
 
232
- #: admin/form.php:645 admin/form.php:1119 admin/transaction.php:107
233
  #: includes/free/edit-user.php:153
234
  msgid "Email"
235
  msgstr ""
@@ -238,7 +236,7 @@ msgstr ""
238
  msgid "Post saved"
239
  msgstr ""
240
 
241
- #: admin/form.php:650 admin/form.php:896
242
  msgid "Post updated successfully"
243
  msgstr ""
244
 
@@ -276,309 +274,300 @@ msgstr ""
276
  msgid "Default Post Category"
277
  msgstr ""
278
 
279
- #: admin/form.php:741
280
  msgid ""
281
  "If users are not allowed to choose any category, this category will be used "
282
  "instead (if post type supports)"
283
  msgstr ""
284
 
285
- #: admin/form.php:751
286
  msgid "Enable Guest Post"
287
  msgstr ""
288
 
289
- #: admin/form.php:753
290
  msgid "Unregistered users will be able to submit posts"
291
  msgstr ""
292
 
293
- #: admin/form.php:758
294
  msgid "User Details"
295
  msgstr ""
296
 
297
- #: admin/form.php:763
298
  msgid "Require Name and Email address"
299
  msgstr ""
300
 
301
- #: admin/form.php:765
302
  msgid ""
303
  "If requires, users will be automatically registered to the site using the "
304
  "name and email address"
305
  msgstr ""
306
 
307
- #: admin/form.php:770
308
  msgid "Name Label"
309
  msgstr ""
310
 
311
- #: admin/form.php:775
312
  msgid "Label text for name field"
313
  msgstr ""
314
 
315
- #: admin/form.php:780
316
  msgid "E-Mail Label"
317
  msgstr ""
318
 
319
- #: admin/form.php:785
320
  msgid "Label text for email field"
321
  msgstr ""
322
 
323
- #: admin/form.php:790 admin/settings-options.php:221
324
  msgid "Unauthorized Message"
325
  msgstr ""
326
 
327
- #: admin/form.php:793 admin/settings-options.php:222
328
  msgid "Not logged in users will see this message"
329
  msgstr ""
330
 
331
- #: admin/form.php:798 admin/form.php:922 includes/free/form.php:374
332
- #: includes/pro/form.php:405
333
  msgid "Redirect To"
334
  msgstr ""
335
 
336
- #: admin/form.php:803 admin/form.php:927
337
  msgid "Newly created post"
338
  msgstr ""
339
 
340
- #: admin/form.php:804 admin/form.php:928 includes/free/form.php:379
341
- #: includes/pro/form.php:410
342
  msgid "Same Page"
343
  msgstr ""
344
 
345
- #: admin/form.php:805 admin/form.php:929 includes/free/form.php:380
346
- #: includes/pro/form.php:411
347
  msgid "To a page"
348
  msgstr ""
349
 
350
- #: admin/form.php:806 admin/form.php:930 includes/free/form.php:381
351
- #: includes/pro/form.php:412
352
  msgid "To a custom URL"
353
  msgstr ""
354
 
355
- #: admin/form.php:815 admin/form.php:939 includes/free/form.php:390
356
- #: includes/pro/form.php:421
357
  msgid "After successfull submit, where the page will redirect to"
358
  msgstr ""
359
 
360
- #: admin/form.php:821
361
  msgid "Message to show"
362
  msgstr ""
363
 
364
- #: admin/form.php:829 admin/form.php:952 includes/free/form.php:410
365
- #: includes/pro/form.php:441
366
  msgid "Page"
367
  msgstr ""
368
 
369
- #: admin/form.php:844 admin/form.php:967 includes/free/form.php:425
370
- #: includes/pro/form.php:456
371
  msgid "Custom URL"
372
  msgstr ""
373
 
374
- #: admin/form.php:851
375
  msgid "Comment Status"
376
  msgstr ""
377
 
378
- #: admin/form.php:854
379
  msgid "Open"
380
  msgstr ""
381
 
382
- #: admin/form.php:855
383
  msgid "Closed"
384
  msgstr ""
385
 
386
- #: admin/form.php:861
387
  msgid "Submit Post Button text"
388
  msgstr ""
389
 
390
- #: admin/form.php:868
391
  msgid "Post Draft"
392
  msgstr ""
393
 
394
- #: admin/form.php:873
395
  msgid "Enable Saving as draft"
396
  msgstr ""
397
 
398
- #: admin/form.php:875
399
  msgid "It will show a button to save as draft"
400
  msgstr ""
401
 
402
- #: admin/form.php:905
403
  msgid "Set Post Status to"
404
  msgstr ""
405
 
406
- #: admin/form.php:915
407
  msgid "No Change"
408
  msgstr ""
409
 
410
- #: admin/form.php:945
411
  msgid "Post Update Message"
412
  msgstr ""
413
 
414
- #: admin/form.php:974
415
  msgid "Subscription Title"
416
  msgstr ""
417
 
418
- #: admin/form.php:983
419
  msgid "Update Post Button text"
420
  msgstr ""
421
 
422
- #: admin/form.php:996 admin/form.php:1000
423
  msgid "- Select -"
424
  msgstr ""
425
 
426
- #: admin/form.php:1048
427
  msgid "Post Settings"
428
  msgstr ""
429
 
430
- #: admin/form.php:1049
431
  msgid "Edit Settings"
432
  msgstr ""
433
 
434
- #: admin/form.php:1050 includes/free/form.php:211 includes/free/form.php:248
435
- #: includes/pro/form.php:251 includes/pro/form.php:285
436
  msgid "Notification"
437
  msgstr ""
438
 
439
- #: admin/form.php:1051 includes/free/form.php:55 includes/pro/form.php:53
440
  msgid "Post Expiration"
441
  msgstr ""
442
 
443
- #: admin/form.php:1088 admin/settings.php:69
444
  msgid "Settings"
445
  msgstr ""
446
 
447
- #: admin/form.php:1108 admin/form.php:1149 admin/form.php:1150
448
- #: admin/form.php:1151 admin/form.php:1152 admin/form.php:1153
449
- #: admin/form.php:1154 includes/free/form.php:6 includes/free/form.php:26
450
- #: includes/pro/form.php:9 includes/pro/form.php:27 includes/pro/form.php:520
451
- #: includes/pro/form.php:523
452
  msgid "Click to add to the editor"
453
  msgstr ""
454
 
455
- #: admin/form.php:1110
456
  msgid "Custom Fields"
457
  msgstr ""
458
 
459
- #: admin/form.php:1112
460
  msgid "Text"
461
  msgstr ""
462
 
463
- #: admin/form.php:1113 admin/template.php:185
464
  msgid "Textarea"
465
  msgstr ""
466
 
467
- #: admin/form.php:1114 admin/template-post.php:166
468
  msgid "Dropdown"
469
  msgstr ""
470
 
471
- #: admin/form.php:1115 admin/template-post.php:167
472
  msgid "Multi Select"
473
  msgstr ""
474
 
475
- #: admin/form.php:1116
476
  msgid "Radio"
477
  msgstr ""
478
 
479
- #: admin/form.php:1117 admin/template-post.php:168
480
  msgid "Checkbox"
481
  msgstr ""
482
 
483
- #: admin/form.php:1118
484
  msgid "URL"
485
  msgstr ""
486
 
487
- #: admin/form.php:1120
488
  msgid "Hidden Field"
489
  msgstr ""
490
 
491
- #: admin/form.php:1127
492
  msgid "Others"
493
  msgstr ""
494
 
495
- #: admin/form.php:1129
496
  msgid "Section Break"
497
  msgstr ""
498
 
499
- #: admin/form.php:1130
500
  msgid "HTML"
501
  msgstr ""
502
 
503
- #: admin/form.php:1147
504
  msgid "Post Fields"
505
  msgstr ""
506
 
507
- #: admin/form.php:1149
508
  msgid "Post Title"
509
  msgstr ""
510
 
511
- #: admin/form.php:1150
512
  msgid "Post Body"
513
  msgstr ""
514
 
515
- #: admin/form.php:1151
516
  msgid "Excerpt"
517
  msgstr ""
518
 
519
- #: admin/form.php:1152
520
  msgid "Tags"
521
  msgstr ""
522
 
523
- #: admin/form.php:1153
524
  msgid "Category"
525
  msgstr ""
526
 
527
- #: admin/form.php:1154 templates/dashboard.php:23
 
528
  msgid "Featured Image"
529
  msgstr ""
530
 
531
- #: admin/form.php:1160
532
  msgid "Custom Taxonomies"
533
  msgstr ""
534
 
535
- #: admin/form.php:1184
536
  msgid "Profile Fields"
537
  msgstr ""
538
 
539
- #: admin/form.php:1186 admin/form.php:1600 includes/free/edit-profile.php:96
540
  #: includes/free/edit-user.php:93 includes/free/edit-user.php:145
541
  #: templates/login-form.php:21
542
  msgid "Username"
543
  msgstr ""
544
 
545
- #: admin/form.php:1187 admin/form.php:1604 includes/free/edit-profile.php:100
546
  msgid "First Name"
547
  msgstr ""
548
 
549
- #: admin/form.php:1188 admin/form.php:1608 includes/free/edit-profile.php:105
550
  msgid "Last Name"
551
  msgstr ""
552
 
553
- #: admin/form.php:1189 admin/form.php:1612 includes/free/edit-profile.php:110
554
  msgid "Nickname"
555
  msgstr ""
556
 
557
- #: admin/form.php:1190 admin/form.php:1616 includes/free/edit-profile.php:151
558
  msgid "E-mail"
559
  msgstr ""
560
 
561
- #: admin/form.php:1191 admin/form.php:1620 includes/free/edit-profile.php:156
562
  msgid "Website"
563
  msgstr ""
564
 
565
- #: admin/form.php:1192 admin/form.php:1624 includes/free/edit-profile.php:178
566
  msgid "Biographical Info"
567
  msgstr ""
568
 
569
- #: admin/form.php:1193 admin/form.php:1628 templates/login-form.php:25
570
  msgid "Password"
571
  msgstr ""
572
 
573
- #: admin/form.php:1194 admin/form.php:1632
574
  msgid "Avatar"
575
  msgstr ""
576
 
577
- #: admin/form.php:1354 includes/free/form.php:301 includes/pro/form.php:332
578
  msgid "Toggle All"
579
  msgstr ""
580
 
581
- #: admin/form.php:1358 includes/free/form.php:305 includes/pro/form.php:336
582
  msgid "Click on a form element to add to the editor"
583
  msgstr ""
584
 
@@ -640,77 +629,82 @@ msgid ""
640
  "installed and saved!"
641
  msgstr ""
642
 
643
- #: admin/installer.php:73 admin/settings-options.php:17
644
  msgid "Dashboard"
645
  msgstr ""
646
 
647
- #: admin/installer.php:77
 
 
 
 
648
  msgid "Login"
649
  msgstr ""
650
 
651
- #: admin/installer.php:82 admin/settings.php:62 class/subscription.php:338
652
- #: class/subscription.php:358 class/subscription.php:359
653
- #: class/subscription.php:360
654
  msgid "Subscription"
655
  msgstr ""
656
 
657
- #: admin/installer.php:82
658
  msgid "[wpuf_sub_pack]"
659
  msgstr ""
660
 
661
- #: admin/installer.php:83 templates/dashboard.php:33
 
662
  msgid "Payment"
663
  msgstr ""
664
 
665
- #: admin/installer.php:83
666
  msgid "Please select a gateway for payment"
667
  msgstr ""
668
 
669
- #: admin/installer.php:84
670
  msgid "Thank You"
671
  msgstr ""
672
 
673
- #: admin/installer.php:84
674
  msgid ""
675
  "<h1>Payment is complete</h1><p>Congratulations, your payment has been "
676
  "completed!</p>"
677
  msgstr ""
678
 
679
- #: admin/installer.php:85
680
  msgid "Order Received"
681
  msgstr ""
682
 
683
- #: admin/installer.php:85
684
  msgid ""
685
  "Hi, we have received your order. We will validate the order and will take "
686
  "necessary steps to move forward."
687
  msgstr ""
688
 
689
- #: admin/installer.php:164 includes/pro/admin/pro-page-installer.php:11
690
  msgid "Registration"
691
  msgstr ""
692
 
693
- #: admin/installer.php:229
694
  msgid "Sample Form"
695
  msgstr ""
696
 
697
- #: admin/posting.php:52 class/render-form.php:1419 wpuf.php:349
698
  msgid "Are you sure?"
699
  msgstr ""
700
 
701
- #: admin/posting.php:58 includes/pro/form.php:858 wpuf.php:355
702
  msgid "Allowed Files"
703
  msgstr ""
704
 
705
- #: admin/posting.php:61
706
  msgid "Maximum number of files reached!"
707
  msgstr ""
708
 
709
- #: admin/posting.php:62
710
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
711
  msgstr ""
712
 
713
- #: admin/posting.php:63
714
  msgid "You have uploaded an incorrect file type. Please try again."
715
  msgstr ""
716
 
@@ -738,356 +732,372 @@ msgstr ""
738
  msgid "Support"
739
  msgstr ""
740
 
741
- #: admin/settings-options.php:44
742
  msgid "Fixed Form Elements "
743
  msgstr ""
744
 
745
- #: admin/settings-options.php:45
746
  msgid "Show fixed form elements sidebar in form editor"
747
  msgstr ""
748
 
749
- #: admin/settings-options.php:51
750
  msgid "Edit Page"
751
  msgstr ""
752
 
753
- #: admin/settings-options.php:52
754
  msgid "Select the page where [wpuf_edit] is located"
755
  msgstr ""
756
 
757
- #: admin/settings-options.php:58
758
  msgid "Default Post Owner"
759
  msgstr ""
760
 
761
- #: admin/settings-options.php:59
762
  msgid ""
763
  "If guest post is enabled and user details are OFF, the posts are assigned "
764
  "to this user"
765
  msgstr ""
766
 
767
- #: admin/settings-options.php:66
768
  msgid "Admin area access"
769
  msgstr ""
770
 
771
- #: admin/settings-options.php:67
772
  msgid "Allow you to block specific user role to WordPress admin area."
773
  msgstr ""
774
 
775
- #: admin/settings-options.php:71
776
  msgid "Admin Only"
777
  msgstr ""
778
 
779
- #: admin/settings-options.php:72
780
  msgid "Admins, Editors"
781
  msgstr ""
782
 
783
- #: admin/settings-options.php:73
784
  msgid "Admins, Editors, Authors"
785
  msgstr ""
786
 
787
- #: admin/settings-options.php:74
788
  msgid "Admins, Editors, Authors, Contributors"
789
  msgstr ""
790
 
791
- #: admin/settings-options.php:75
792
  msgid "Default"
793
  msgstr ""
794
 
795
- #: admin/settings-options.php:80
796
  msgid "Override the post edit link"
797
  msgstr ""
798
 
799
- #: admin/settings-options.php:81
800
  msgid ""
801
  "Users see the edit link in post if s/he is capable to edit the post/page. "
802
  "Selecting <strong>Yes</strong> will override the default WordPress edit "
803
  "post link in frontend"
804
  msgstr ""
805
 
806
- #: admin/settings-options.php:91
807
  msgid "Custom Fields in post"
808
  msgstr ""
809
 
810
- #: admin/settings-options.php:92
811
  msgid "Show custom fields on post content area"
812
  msgstr ""
813
 
814
- #: admin/settings-options.php:98
815
  msgid "Load Scripts"
816
  msgstr ""
817
 
818
- #: admin/settings-options.php:99
819
  msgid "Load scripts/styles in all pages"
820
  msgstr ""
821
 
822
- #: admin/settings-options.php:105
823
  msgid "Insert Photo image size"
824
  msgstr ""
825
 
826
- #: admin/settings-options.php:106
827
  msgid ""
828
  "Default image size of \"<strong>Insert Photo</strong>\" button in post "
829
  "content area"
830
  msgstr ""
831
 
832
- #: admin/settings-options.php:113
833
  msgid "Insert Photo image type"
834
  msgstr ""
835
 
836
- #: admin/settings-options.php:114
837
  msgid ""
838
  "Default image type of \"<strong>Insert Photo</strong>\" button in post "
839
  "content area"
840
  msgstr ""
841
 
842
- #: admin/settings-options.php:117
843
  msgid "Image only"
844
  msgstr ""
845
 
846
- #: admin/settings-options.php:118
847
  msgid "Image with link"
848
  msgstr ""
849
 
850
- #: admin/settings-options.php:124
851
  msgid "Enable Image Caption"
852
  msgstr ""
853
 
854
- #: admin/settings-options.php:125
855
  msgid "Allow users to update image/video title, caption and description"
856
  msgstr ""
857
 
858
- #: admin/settings-options.php:131
859
  msgid "Default Post Form"
860
  msgstr ""
861
 
862
- #: admin/settings-options.php:132
863
  msgid "Fallback form for post editing if no associated form found"
864
  msgstr ""
865
 
866
- #: admin/settings-options.php:138
867
  msgid "reCAPTCHA Public Key"
868
  msgstr ""
869
 
870
- #: admin/settings-options.php:142
871
  msgid "reCAPTCHA Private Key"
872
  msgstr ""
873
 
874
- #: admin/settings-options.php:146
875
  msgid "Google Map API"
876
  msgstr ""
877
 
878
- #: admin/settings-options.php:147
879
  msgid ""
880
  "<a target=\"_blank\" "
881
  "href=\"https://developers.google.com/maps/documentation/javascript\">API</a>"
882
  " key is needed to render Google Maps"
883
  msgstr ""
884
 
885
- #: admin/settings-options.php:151
886
  msgid "Custom CSS codes"
887
  msgstr ""
888
 
889
- #: admin/settings-options.php:152
890
  msgid ""
891
  "If you want to add your custom CSS code, it will be added on page header "
892
  "wrapped with style tag"
893
  msgstr ""
894
 
895
- #: admin/settings-options.php:159
896
  msgid "Users can edit post?"
897
  msgstr ""
898
 
899
- #: admin/settings-options.php:160
900
  msgid "Users will be able to edit their own posts"
901
  msgstr ""
902
 
903
- #: admin/settings-options.php:170
904
  msgid "User can delete post?"
905
  msgstr ""
906
 
907
- #: admin/settings-options.php:171
908
  msgid "Users will be able to delete their own posts"
909
  msgstr ""
910
 
911
- #: admin/settings-options.php:181
912
  msgid "Pending Post Edit"
913
  msgstr ""
914
 
915
- #: admin/settings-options.php:182
916
  msgid "Disable post editing while post in \"pending\" status"
917
  msgstr ""
918
 
919
- #: admin/settings-options.php:188
920
  msgid "Posts per page"
921
  msgstr ""
922
 
923
- #: admin/settings-options.php:189
924
  msgid "How many posts will be listed in a page"
925
  msgstr ""
926
 
927
- #: admin/settings-options.php:195
928
  msgid "Show user bio"
929
  msgstr ""
930
 
931
- #: admin/settings-options.php:196
932
  msgid "Users biographical info will be shown"
933
  msgstr ""
934
 
935
- #: admin/settings-options.php:202
936
  msgid "Show post count"
937
  msgstr ""
938
 
939
- #: admin/settings-options.php:203
940
  msgid "Show how many posts are created by the user"
941
  msgstr ""
942
 
943
- #: admin/settings-options.php:209
944
  msgid "Show Featured Image"
945
  msgstr ""
946
 
947
- #: admin/settings-options.php:210
948
  msgid "Show featured image of the post"
949
  msgstr ""
950
 
951
- #: admin/settings-options.php:215
952
  msgid "Featured Image size"
953
  msgstr ""
954
 
955
- #: admin/settings-options.php:229
956
  msgid "Auto Login After Registration"
957
  msgstr ""
958
 
959
- #: admin/settings-options.php:230
960
  msgid "If enabled, users after registration will be logged in to the system"
961
  msgstr ""
962
 
963
- #: admin/settings-options.php:236
964
  msgid "Login/Registration override"
965
  msgstr ""
966
 
967
- #: admin/settings-options.php:237
968
  msgid ""
969
  "If enabled, default login and registration forms will be overridden by WPUF "
970
  "with pages below"
971
  msgstr ""
972
 
973
- #: admin/settings-options.php:243
974
  msgid "Registration Page"
975
  msgstr ""
976
 
977
- #: admin/settings-options.php:244
978
  msgid ""
979
  "Select the page you want to use as registration page override <em>(should "
980
  "have shortcode)</em>"
981
  msgstr ""
982
 
983
- #: admin/settings-options.php:250
984
  msgid "Login Page"
985
  msgstr ""
986
 
987
- #: admin/settings-options.php:251
988
  msgid "Select the page which contains <code>[wpuf-login]</code> shortcode"
989
  msgstr ""
990
 
991
- #: admin/settings-options.php:259
992
  msgid "Charge for posting"
993
  msgstr ""
994
 
995
- #: admin/settings-options.php:260
996
  msgid "Charge user for submitting a post"
997
  msgstr ""
998
 
999
- #: admin/settings-options.php:270
1000
  msgid "Force pack purchase"
1001
  msgstr ""
1002
 
1003
- #: admin/settings-options.php:271
1004
  msgid "When active, users must have to buy a pack for posting"
1005
  msgstr ""
1006
 
1007
- #: admin/settings-options.php:275
1008
  msgid "Disable"
1009
  msgstr ""
1010
 
1011
- #: admin/settings-options.php:276
1012
  msgid "Enable"
1013
  msgstr ""
1014
 
1015
- #: admin/settings-options.php:281
1016
  msgid "Subscription Pack Page"
1017
  msgstr ""
1018
 
1019
- #: admin/settings-options.php:282
1020
  msgid "Select the page where <code>[wpuf_sub_pack]</code> located."
1021
  msgstr ""
1022
 
1023
- #: admin/settings-options.php:288
1024
  msgid "Subscription at registration"
1025
  msgstr ""
1026
 
1027
- #: admin/settings-options.php:289
1028
  msgid "Registration time redirect to subscription page"
1029
  msgstr ""
1030
 
1031
- #: admin/settings-options.php:294
1032
  msgid "Currency"
1033
  msgstr ""
1034
 
1035
- #: admin/settings-options.php:326
1036
- msgid "Currency Symbol"
 
 
 
 
1037
  msgstr ""
1038
 
1039
- #: admin/settings-options.php:332 admin/subscription.php:208
1040
- #: admin/transaction.php:103 admin/transaction.php:185
 
 
 
 
 
 
 
 
 
 
 
 
1041
  msgid "Cost"
1042
  msgstr ""
1043
 
1044
- #: admin/settings-options.php:333
1045
  msgid "Cost per post"
1046
  msgstr ""
1047
 
1048
- #: admin/settings-options.php:339
1049
  msgid "Enable demo/sandbox mode"
1050
  msgstr ""
1051
 
1052
- #: admin/settings-options.php:340
1053
  msgid "When sandbox mode is active, all payment gateway will be used in demo mode"
1054
  msgstr ""
1055
 
1056
- #: admin/settings-options.php:346
1057
  msgid "Payment Page"
1058
  msgstr ""
1059
 
1060
- #: admin/settings-options.php:347
1061
  msgid "This page will be used to process payment options"
1062
  msgstr ""
1063
 
1064
- #: admin/settings-options.php:353
1065
  msgid "Payment Success Page"
1066
  msgstr ""
1067
 
1068
- #: admin/settings-options.php:354 lib/gateway/bank.php:37
1069
  msgid "After payment users will be redirected here"
1070
  msgstr ""
1071
 
1072
- #: admin/settings-options.php:360
1073
  msgid "Payment Gateways"
1074
  msgstr ""
1075
 
1076
- #: admin/settings-options.php:361
1077
  msgid "Active payment gateways"
1078
  msgstr ""
1079
 
1080
- #: admin/settings-options.php:369
1081
  msgid "Need Help?"
1082
  msgstr ""
1083
 
1084
- #: admin/settings-options.php:403
1085
  msgid ""
1086
  "Select profile/registration forms for user roles. These forms will be used "
1087
  "to populate extra edit profile fields in backend."
1088
  msgstr ""
1089
 
1090
- #: admin/settings-options.php:414
1091
  msgid " - select - "
1092
  msgstr ""
1093
 
@@ -1099,8 +1109,12 @@ msgstr ""
1099
  msgid "User Frontend"
1100
  msgstr ""
1101
 
1102
- #: admin/settings.php:66
1103
- msgid "Transaction"
 
 
 
 
1104
  msgstr ""
1105
 
1106
  #: admin/settings.php:67
@@ -1111,6 +1125,10 @@ msgstr ""
1111
  msgid "Tools"
1112
  msgstr ""
1113
 
 
 
 
 
1114
  #: admin/subscription.php:52 admin/subscription.php:55
1115
  msgid "Subscription pack updated."
1116
  msgstr ""
@@ -1136,73 +1154,72 @@ msgid "Subscription pack draft updated."
1136
  msgstr ""
1137
 
1138
  #: admin/subscription.php:134 admin/subscription.php:459
1139
- #: class/subscription.php:704 class/subscription.php:883
1140
- #: class/subscription.php:896
1141
  msgid "Free"
1142
  msgstr ""
1143
 
1144
- #: admin/subscription.php:171 class/subscription.php:279
1145
  msgid "Pack Name"
1146
  msgstr ""
1147
 
1148
- #: admin/subscription.php:172 includes/pro/admin/coupon-element.php:40
1149
- #: includes/pro/admin/coupon.php:99
1150
  msgid "Amount"
1151
  msgstr ""
1152
 
1153
- #: admin/subscription.php:173 includes/free/subscription.php:8
1154
- #: includes/pro/subscription.php:8
1155
  msgid "Recurring"
1156
  msgstr ""
1157
 
1158
- #: admin/subscription.php:174
1159
  msgid "Duration"
1160
  msgstr ""
1161
 
1162
- #: admin/subscription.php:197
1163
  msgid "Pack Deleted"
1164
  msgstr ""
1165
 
1166
- #: admin/subscription.php:207 admin/template.php:599 class/upload.php:166
1167
- #: includes/pro/admin/coupon-element.php:49 wpuf-functions.php:701
1168
  msgid "Description"
1169
  msgstr ""
1170
 
1171
- #: admin/subscription.php:209 includes/pro/admin/coupon-element.php:75
1172
  msgid "Validity"
1173
  msgstr ""
1174
 
1175
- #: admin/subscription.php:210
1176
  msgid "Post Count"
1177
  msgstr ""
1178
 
1179
- #: admin/subscription.php:211 admin/transaction.php:188
1180
- #: includes/free/edit-user.php:94
1181
  msgid "Action"
1182
  msgstr ""
1183
 
1184
- #: admin/subscription.php:231
1185
  msgid "Are you sure to delete this pack?"
1186
  msgstr ""
1187
 
1188
- #: admin/subscription.php:232 class/render-form.php:1419 class/upload.php:171
1189
- #: includes/free/edit-user.php:101 templates/dashboard.php:112
 
 
1190
  msgid "Delete"
1191
  msgstr ""
1192
 
1193
- #: admin/subscription.php:243
1194
  msgid "No subscription pack found"
1195
  msgstr ""
1196
 
1197
- #: admin/subscription.php:290
1198
  msgid "Pack Description"
1199
  msgstr ""
1200
 
1201
- #: admin/subscription.php:297
1202
  msgid "Billing amount:"
1203
  msgstr ""
1204
 
1205
- #: admin/subscription.php:298
1206
  msgid "Billing amount each cycle:"
1207
  msgstr ""
1208
 
@@ -1211,17 +1228,15 @@ msgid "Expires In:"
1211
  msgstr ""
1212
 
1213
  #: admin/subscription.php:328 includes/free/form.php:59
1214
- #: includes/pro/form.php:57
1215
  msgid "Enable Post Expiration"
1216
  msgstr ""
1217
 
1218
  #: admin/subscription.php:341 admin/subscription.php:538
1219
- #: includes/free/form.php:64 includes/pro/form.php:62
1220
  msgid "Post Expiration Time"
1221
  msgstr ""
1222
 
1223
  #: admin/subscription.php:380 includes/free/form.php:110
1224
- #: includes/pro/form.php:108
1225
  msgid "Status of post after post expiration time is over "
1226
  msgstr ""
1227
 
@@ -1245,7 +1260,8 @@ msgstr ""
1245
  msgid "WPUF Subscription"
1246
  msgstr ""
1247
 
1248
- #: admin/subscription.php:471 class/subscription.php:715
 
1249
  msgid "Subscription Details"
1250
  msgstr ""
1251
 
@@ -1253,7 +1269,8 @@ msgstr ""
1253
  msgid "This user is using recurring subscription pack"
1254
  msgstr ""
1255
 
1256
- #: admin/subscription.php:480 class/subscription.php:717
 
1257
  msgid "Subcription Name: "
1258
  msgstr ""
1259
 
@@ -1261,11 +1278,13 @@ msgstr ""
1261
  msgid "Package billing details: "
1262
  msgstr ""
1263
 
1264
- #: admin/subscription.php:491 class/subscription.php:730
 
1265
  msgid "Remaining post: "
1266
  msgstr ""
1267
 
1268
- #: admin/subscription.php:513 class/subscription.php:758
 
1269
  msgid "Expire date:"
1270
  msgstr ""
1271
 
@@ -1302,27 +1321,22 @@ msgid "Enable image upload in post area"
1302
  msgstr ""
1303
 
1304
  #: admin/template-post.php:53 admin/template.php:363
1305
- #: includes/pro/admin/template-profile.php:120
1306
  msgid "Word Restriction"
1307
  msgstr ""
1308
 
1309
  #: admin/template-post.php:57 admin/template.php:367
1310
- #: includes/pro/admin/template-profile.php:124
1311
  msgid "Numebr of words the author to be restricted in"
1312
  msgstr ""
1313
 
1314
  #: admin/template-post.php:103 admin/template.php:624
1315
- #: includes/pro/admin/template-profile.php:199 includes/pro/form.php:836
1316
  msgid "Enter maximum upload size limit in KB"
1317
  msgstr ""
1318
 
1319
  #: admin/template-post.php:115 admin/template.php:636
1320
- #: includes/pro/admin/template-profile.php:211 includes/pro/form.php:848
1321
  msgid "Max. file size"
1322
  msgstr ""
1323
 
1324
- #: admin/template-post.php:164 admin/transaction.php:108
1325
- #: admin/transaction.php:184 includes/pro/admin/coupon-element.php:29
1326
  msgid "Type"
1327
  msgstr ""
1328
 
@@ -1488,7 +1502,7 @@ msgstr ""
1488
  msgid "Add a CSS class name for this field"
1489
  msgstr ""
1490
 
1491
- #: admin/template.php:127 admin/template.php:175 includes/pro/form.php:704
1492
  msgid "Placeholder text"
1493
  msgstr ""
1494
 
@@ -1496,7 +1510,7 @@ msgstr ""
1496
  msgid "Text for HTML5 placeholder attribute"
1497
  msgstr ""
1498
 
1499
- #: admin/template.php:132 admin/template.php:180 includes/pro/form.php:709
1500
  msgid "Default value"
1501
  msgstr ""
1502
 
@@ -1504,7 +1518,7 @@ msgstr ""
1504
  msgid "The default value this field will have"
1505
  msgstr ""
1506
 
1507
- #: admin/template.php:137 includes/pro/form.php:714
1508
  msgid "Size"
1509
  msgstr ""
1510
 
@@ -1516,7 +1530,7 @@ msgstr ""
1516
  msgid "Rows"
1517
  msgstr ""
1518
 
1519
- #: admin/template.php:170 includes/pro/form.php:719
1520
  msgid "Columns"
1521
  msgstr ""
1522
 
@@ -1536,21 +1550,21 @@ msgstr ""
1536
  msgid "Show values"
1537
  msgstr ""
1538
 
1539
- #: admin/template.php:226 admin/template.php:284 includes/pro/form.php:1219
1540
- #: includes/pro/form.php:1574 includes/pro/form.php:1646
1541
  msgid "Label"
1542
  msgstr ""
1543
 
1544
- #: admin/template.php:226 admin/template.php:284 includes/pro/form.php:1646
1545
  msgid "Value"
1546
  msgstr ""
1547
 
1548
- #: admin/template.php:283 includes/pro/form.php:1645
1549
  msgid "show values"
1550
  msgstr ""
1551
 
1552
  #: admin/template.php:388 admin/template.php:412 admin/template.php:444
1553
- #: admin/template.php:476 includes/pro/form.php:1607 templates/dashboard.php:36
 
1554
  msgid "Options"
1555
  msgstr ""
1556
 
@@ -1565,8 +1579,8 @@ msgid "Select Text"
1565
  msgstr ""
1566
 
1567
  #: admin/template.php:534 admin/template.php:594 class/upload.php:164
1568
- #: includes/pro/form.php:1399 includes/pro/form.php:1443
1569
- #: includes/pro/form.php:1491 templates/dashboard.php:26 wpuf-functions.php:695
1570
  msgid "Title"
1571
  msgstr ""
1572
 
@@ -1582,11 +1596,11 @@ msgstr ""
1582
  msgid "Enter the meta value"
1583
  msgstr ""
1584
 
1585
- #: admin/template.php:625 includes/pro/form.php:837
1586
  msgid "Number of images can be uploaded"
1587
  msgstr ""
1588
 
1589
- #: admin/template.php:641 includes/pro/form.php:853
1590
  msgid "Max. files"
1591
  msgstr ""
1592
 
@@ -1594,7 +1608,7 @@ msgstr ""
1594
  msgid "Form Export"
1595
  msgstr ""
1596
 
1597
- #: admin/tools.php:38 admin/tools.php:94
1598
  msgid "All"
1599
  msgstr ""
1600
 
@@ -1704,10 +1718,6 @@ msgstr ""
1704
  msgid "Delete Coupons"
1705
  msgstr ""
1706
 
1707
- #: admin/tools.php:375
1708
- msgid "Transactions"
1709
- msgstr ""
1710
-
1711
  #: admin/tools.php:378
1712
  msgid "This tool will delete all the transactions from the transaction table."
1713
  msgstr ""
@@ -1716,109 +1726,75 @@ msgstr ""
1716
  msgid "Delete Transactions"
1717
  msgstr ""
1718
 
1719
- #: admin/transaction.php:77
1720
- msgid "WP User Frontend: Payments Received"
1721
- msgstr ""
1722
-
1723
- #: admin/transaction.php:81
1724
  msgid "Total Income:"
1725
  msgstr ""
1726
 
1727
- #: admin/transaction.php:84
1728
  msgid "This Month:"
1729
  msgstr ""
1730
 
1731
- #: admin/transaction.php:90
1732
- msgid "Transaction(s) deleted"
1733
- msgstr ""
1734
-
1735
- #: admin/transaction.php:101
1736
- msgid "User ID"
1737
- msgstr ""
1738
-
1739
- #: admin/transaction.php:102 templates/dashboard.php:27
1740
- msgid "Status"
1741
- msgstr ""
1742
-
1743
- #: admin/transaction.php:104
1744
- msgid "Post"
1745
- msgstr ""
1746
-
1747
- #: admin/transaction.php:105
1748
- msgid "Pack ID"
1749
- msgstr ""
1750
-
1751
- #: admin/transaction.php:106
1752
- msgid "Payer"
1753
- msgstr ""
1754
-
1755
- #: admin/transaction.php:109
1756
- msgid "Transaction ID"
1757
- msgstr ""
1758
-
1759
- #: admin/transaction.php:110
1760
- msgid "Created"
1761
  msgstr ""
1762
 
1763
- #: admin/transaction.php:155 admin/transaction.php:217
1764
- msgid "Nothing Found"
1765
  msgstr ""
1766
 
1767
- #: admin/transaction.php:162
1768
- msgid "Delete Selected"
1769
  msgstr ""
1770
 
1771
- #: admin/transaction.php:166
1772
- msgid "Pending Orders"
1773
  msgstr ""
1774
 
1775
- #: admin/transaction.php:182
1776
- msgid "ID"
1777
  msgstr ""
1778
 
1779
- #: admin/transaction.php:183
1780
- msgid "User"
1781
  msgstr ""
1782
 
1783
- #: admin/transaction.php:186
1784
- msgid "Item Details"
1785
  msgstr ""
1786
 
1787
- #: admin/transaction.php:187 includes/free/form.php:12 includes/pro/form.php:12
1788
- msgid "Date"
1789
  msgstr ""
1790
 
1791
- #: admin/transaction.php:206
1792
- msgid "Accept"
1793
  msgstr ""
1794
 
1795
- #: admin/transaction.php:207
1796
- msgid "Reject"
1797
  msgstr ""
1798
 
1799
- #: admin/transaction.php:224
1800
- msgid "No pending orders found"
1801
  msgstr ""
1802
 
1803
- #: class/frontend-dashboard.php:35 includes/free/edit-profile.php:27
1804
- #: includes/free/edit-user.php:37
1805
- msgid "This page is restricted. Please %s to view this page."
1806
  msgstr ""
1807
 
1808
- #: class/frontend-dashboard.php:67
1809
  msgid "Post Deleted"
1810
  msgstr ""
1811
 
1812
- #: class/frontend-dashboard.php:105
1813
  msgid "Author Info"
1814
  msgstr ""
1815
 
1816
- #: class/frontend-dashboard.php:109 includes/free/edit-user.php:98
1817
- #: includes/pro/frontend-form-profile.php:330
1818
  msgid "%s"
1819
  msgstr ""
1820
 
1821
- #: class/frontend-dashboard.php:141
1822
  msgid "You are not the post author. Cheeting huh!"
1823
  msgstr ""
1824
 
@@ -1859,7 +1835,7 @@ msgid ""
1859
  "Click 'Cancel' to stay at this page."
1860
  msgstr ""
1861
 
1862
- #: class/frontend-form-post.php:546 includes/pro/frontend-form-profile.php:310
1863
  msgid "Something went wrong"
1864
  msgstr ""
1865
 
@@ -1891,43 +1867,44 @@ msgstr ""
1891
  msgid "Change Pack"
1892
  msgstr ""
1893
 
1894
- #: class/payment.php:157 includes/pro/coupons.php:117
1895
  msgid "Selected Pack "
1896
  msgstr ""
1897
 
1898
- #: class/payment.php:158 includes/pro/coupons.php:118
1899
  msgid "Pack Price "
1900
  msgstr ""
1901
 
1902
- #: class/payment.php:170
1903
  msgid "Apply Coupon"
1904
  msgstr ""
1905
 
1906
- #: class/payment.php:171 class/subscription.php:828
 
1907
  msgid "Cancel"
1908
  msgstr ""
1909
 
1910
- #: class/payment.php:174
1911
  msgid "Have a discount code?"
1912
  msgstr ""
1913
 
1914
- #: class/payment.php:185
1915
  msgid "Choose Your Payment Method"
1916
  msgstr ""
1917
 
1918
- #: class/payment.php:222
1919
  msgid "Proceed"
1920
  msgstr ""
1921
 
1922
- #: class/payment.php:226
1923
  msgid "No Payment gateway found"
1924
  msgstr ""
1925
 
1926
- #: class/payment.php:407 lib/gateway/bank.php:99
1927
  msgid "[%s] Payment Received"
1928
  msgstr ""
1929
 
1930
- #: class/payment.php:408
1931
  msgid "New payment received at %s"
1932
  msgstr ""
1933
 
@@ -1960,7 +1937,7 @@ msgid "Insert Photo"
1960
  msgstr ""
1961
 
1962
  #: class/render-form.php:1143 class/render-form.php:1148
1963
- #: includes/free/edit-profile.php:198
1964
  msgid "Strength indicator"
1965
  msgstr ""
1966
 
@@ -1992,106 +1969,168 @@ msgstr ""
1992
  msgid "Select Image"
1993
  msgstr ""
1994
 
1995
- #: class/subscription.php:59
1996
- msgid "Nonce failure"
1997
- msgstr ""
1998
-
1999
- #: class/subscription.php:361
2000
  msgid "Add Subscription"
2001
  msgstr ""
2002
 
2003
- #: class/subscription.php:362
2004
  msgid "Add New Subscription"
2005
  msgstr ""
2006
 
2007
- #: class/subscription.php:364
2008
  msgid "Edit Subscription"
2009
  msgstr ""
2010
 
2011
- #: class/subscription.php:365
2012
  msgid "New Subscription"
2013
  msgstr ""
2014
 
2015
- #: class/subscription.php:366 class/subscription.php:367
2016
  msgid "View Subscription"
2017
  msgstr ""
2018
 
2019
- #: class/subscription.php:368
2020
  msgid "Search Subscription"
2021
  msgstr ""
2022
 
2023
- #: class/subscription.php:369
2024
  msgid "No Subscription Found"
2025
  msgstr ""
2026
 
2027
- #: class/subscription.php:370
2028
  msgid "No Subscription Found in Trash"
2029
  msgstr ""
2030
 
2031
- #: class/subscription.php:371
2032
  msgid "Parent Subscription"
2033
  msgstr ""
2034
 
2035
- #: class/subscription.php:400
2036
  msgid "Billing Details"
2037
  msgstr ""
2038
 
2039
- #: class/subscription.php:719
2040
  msgid "Package & billing details: "
2041
  msgstr ""
2042
 
2043
- #: class/subscription.php:743
2044
  msgid "Unlimited"
2045
  msgstr ""
2046
 
2047
- #: class/subscription.php:796
2048
  msgid "Please enable force pack and charge posting from admin panel"
2049
  msgstr ""
2050
 
2051
- #: class/subscription.php:806
2052
  msgid "Payment is complete"
2053
  msgstr ""
2054
 
2055
- #: class/subscription.php:806
2056
  msgid "Congratulations, your payment has been completed!"
2057
  msgstr ""
2058
 
2059
- #: class/subscription.php:821
2060
  msgid "<p><i>You have a subscription pack activated. </i></p>"
2061
  msgstr ""
2062
 
2063
- #: class/subscription.php:823
2064
  msgid "<p><i>To cancel the pack, press the following cancel button</i></p>"
2065
  msgstr ""
2066
 
2067
- #: class/subscription.php:864
2068
  msgid "Every"
2069
  msgstr ""
2070
 
2071
- #: class/subscription.php:868
2072
  msgid "One time payment"
2073
  msgstr ""
2074
 
2075
- #: class/subscription.php:880
2076
  msgid "Sign Up"
2077
  msgstr ""
2078
 
2079
- #: class/subscription.php:885
2080
  msgid "Buy Now"
2081
  msgstr ""
2082
 
2083
- #: class/subscription.php:941
2084
  msgid "This will cost you <strong>%s</strong> to add a new post. "
2085
  msgstr ""
2086
 
2087
- #: class/subscription.php:960
2088
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
2089
  msgstr ""
2090
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2091
  #: class/upload.php:165 wpuf-functions.php:698
2092
  msgid "Caption"
2093
  msgstr ""
2094
 
 
 
 
 
 
2095
  #: includes/free/edit-profile.php:66
2096
  msgid "<strong>Success</strong>: Profile updated"
2097
  msgstr ""
@@ -2122,12 +2161,11 @@ msgid ""
2122
  "be shown publicly."
2123
  msgstr ""
2124
 
2125
- #: includes/free/edit-profile.php:183
2126
  msgid "New Password"
2127
  msgstr ""
2128
 
2129
  #: includes/free/edit-profile.php:189
2130
- #: includes/pro/admin/template-profile.php:144
2131
  msgid "Confirm Password"
2132
  msgstr ""
2133
 
@@ -2140,27 +2178,23 @@ msgid "Password Strength"
2140
  msgstr ""
2141
 
2142
  #: includes/free/edit-profile.php:222 includes/free/form.php:344
2143
- #: includes/pro/form.php:380
2144
  msgid "Update Profile"
2145
  msgstr ""
2146
 
2147
  #: includes/free/edit-profile.php:241
2148
- #: includes/pro/admin/posting-profile.php:135
2149
  msgid "WPUF Post Lock"
2150
  msgstr ""
2151
 
2152
  #: includes/free/edit-profile.php:244
2153
- #: includes/pro/admin/posting-profile.php:138
2154
  msgid "Lock Post:"
2155
  msgstr ""
2156
 
2157
  #: includes/free/edit-profile.php:250
2158
- #: includes/pro/admin/posting-profile.php:144
2159
  msgid "Lock user from creating new post."
2160
  msgstr ""
2161
 
2162
  #: includes/free/edit-profile.php:255
2163
- #: includes/pro/admin/posting-profile.php:149
2164
  msgid "Lock Reason:"
2165
  msgstr ""
2166
 
@@ -2168,7 +2202,7 @@ msgstr ""
2168
  msgid "Post Count:"
2169
  msgstr ""
2170
 
2171
- #: includes/free/edit-profile.php:291 includes/pro/updates.php:417
2172
  msgid "Validity:"
2173
  msgstr ""
2174
 
@@ -2232,158 +2266,151 @@ msgid ""
2232
  "<a href=\"mailto:%s\">webmaster</a> !"
2233
  msgstr ""
2234
 
2235
- #: includes/free/form.php:8 includes/pro/form.php:13
2236
  msgid "Image Upload"
2237
  msgstr ""
2238
 
2239
- #: includes/free/form.php:11 includes/pro/form.php:11
2240
  msgid "Repeat Field"
2241
  msgstr ""
2242
 
2243
- #: includes/free/form.php:13 includes/pro/form.php:14
2244
  msgid "File Upload"
2245
  msgstr ""
2246
 
2247
- #: includes/free/form.php:14 includes/pro/form.php:15
2248
  msgid "Google Maps"
2249
  msgstr ""
2250
 
2251
- #: includes/free/form.php:15 includes/pro/form.php:16
2252
  msgid "Country List"
2253
  msgstr ""
2254
 
2255
- #: includes/free/form.php:16 includes/pro/form.php:17
2256
  msgid "Numeric Field"
2257
  msgstr ""
2258
 
2259
- #: includes/free/form.php:17 includes/pro/form.php:18
2260
  msgid "Address Field"
2261
  msgstr ""
2262
 
2263
- #: includes/free/form.php:18 includes/pro/form.php:19
2264
  msgid "Step Start"
2265
  msgstr ""
2266
 
2267
- #: includes/free/form.php:30 includes/pro/form.php:29
2268
  msgid "reCaptcha"
2269
  msgstr ""
2270
 
2271
- #: includes/free/form.php:31 includes/pro/form.php:30
2272
  msgid "Really Simple Captcha"
2273
  msgstr ""
2274
 
2275
- #: includes/free/form.php:32 includes/pro/form.php:31
2276
  msgid "Action Hook"
2277
  msgstr ""
2278
 
2279
- #: includes/free/form.php:33 includes/pro/form.php:32
2280
  msgid "Term &amp; Conditions"
2281
  msgstr ""
2282
 
2283
- #: includes/free/form.php:121 includes/pro/form.php:119
2284
  msgid "Send Email to Author After Exceeding Post Expiration Time"
2285
  msgstr ""
2286
 
2287
  #: includes/free/form.php:146 includes/free/form.php:150
2288
- #: includes/pro/form.php:149 includes/pro/form.php:153
2289
  msgid "Enable Multistep"
2290
  msgstr ""
2291
 
2292
- #: includes/free/form.php:153 includes/pro/form.php:156
2293
  msgid "If checked, form will be displayed in frontend in multiple steps"
2294
  msgstr ""
2295
 
2296
- #: includes/free/form.php:157 includes/pro/form.php:165
2297
  msgid "Multistep Progressbar Type"
2298
  msgstr ""
2299
 
2300
- #: includes/free/form.php:167 includes/pro/form.php:175
2301
  msgid "Choose how you want the progressbar"
2302
  msgstr ""
2303
 
2304
- #: includes/free/form.php:197 includes/pro/form.php:238
2305
  msgid "New post created"
2306
  msgstr ""
2307
 
2308
- #: includes/free/form.php:202 includes/pro/form.php:243
2309
  msgid "A post has been edited"
2310
  msgstr ""
2311
 
2312
- #: includes/free/form.php:208 includes/pro/form.php:247
2313
  msgid "New Post Notificatoin"
2314
  msgstr ""
2315
 
2316
  #: includes/free/form.php:216 includes/free/form.php:253
2317
- #: includes/pro/form.php:256 includes/pro/form.php:290
2318
  msgid "Enable post notification"
2319
  msgstr ""
2320
 
2321
  #: includes/free/form.php:222 includes/free/form.php:259
2322
- #: includes/pro/form.php:262 includes/pro/form.php:296
2323
  msgid "To"
2324
  msgstr ""
2325
 
2326
  #: includes/free/form.php:230 includes/free/form.php:264
2327
- #: includes/pro/form.php:269 includes/pro/form.php:301
2328
  msgid "Subject"
2329
  msgstr ""
2330
 
2331
  #: includes/free/form.php:236 includes/free/form.php:269
2332
- #: includes/pro/form.php:274 includes/pro/form.php:306
2333
  msgid "Message"
2334
  msgstr ""
2335
 
2336
- #: includes/free/form.php:244 includes/pro/form.php:281
2337
  msgid "Update Post Notificatoin"
2338
  msgstr ""
2339
 
2340
- #: includes/free/form.php:276 includes/pro/form.php:313
2341
- msgid "You may use in message:"
2342
  msgstr ""
2343
 
2344
- #: includes/free/form.php:339 includes/pro/form.php:375
2345
  msgid "Registration successful"
2346
  msgstr ""
2347
 
2348
- #: includes/free/form.php:340 includes/pro/form.php:376
2349
  msgid "Profile updated successfully"
2350
  msgstr ""
2351
 
2352
- #: includes/free/form.php:343 includes/pro/form.php:379
2353
- #: includes/pro/login.php:212
2354
  msgid "Register"
2355
  msgstr ""
2356
 
2357
- #: includes/free/form.php:352 includes/pro/form.php:383
2358
  msgid "Enable Email Verfication"
2359
  msgstr ""
2360
 
2361
- #: includes/free/form.php:360 includes/pro/form.php:391
2362
  msgid "New User Role"
2363
  msgstr ""
2364
 
2365
- #: includes/free/form.php:396 includes/pro/form.php:427
2366
  msgid "Registration success message"
2367
  msgstr ""
2368
 
2369
- #: includes/free/form.php:403 includes/pro/form.php:434
2370
  msgid "Update profile message"
2371
  msgstr ""
2372
 
2373
- #: includes/free/form.php:432 includes/pro/form.php:463
2374
  msgid "Submit Button text"
2375
  msgstr ""
2376
 
2377
- #: includes/free/form.php:439 includes/pro/form.php:470
2378
  msgid "Update Button text"
2379
  msgstr ""
2380
 
2381
- #: includes/free/form.php:472 includes/pro/form.php:569
2382
  msgid "Conditional Logic"
2383
  msgstr ""
2384
 
2385
  #: includes/free/loader.php:66 includes/free/loader.php:95
2386
- #: includes/pro/loader.php:145
2387
  msgid "Coupons"
2388
  msgstr ""
2389
 
@@ -2422,7 +2449,6 @@ msgid "Upgrade to Pro"
2422
  msgstr ""
2423
 
2424
  #: includes/free/post-form-templates/woocommerce.php:12
2425
- #: includes/pro/post-form-templates/woocommerce.php:10
2426
  msgid "WooCommerce Product"
2427
  msgstr ""
2428
 
@@ -2430,1038 +2456,482 @@ msgstr ""
2430
  msgid "Create a simple product form for WooCommerce."
2431
  msgstr ""
2432
 
2433
- #: includes/free/subscription.php:12 includes/pro/subscription.php:12
2434
  msgid "Enable Recurring Payment"
2435
  msgstr ""
2436
 
2437
- #: includes/pro/admin/coupon-element.php:33 includes/pro/admin/coupon.php:49
2438
- msgid "Fixed Price"
2439
- msgstr ""
2440
-
2441
- #: includes/pro/admin/coupon-element.php:34 includes/pro/admin/coupon.php:51
2442
- msgid "Percentage"
2443
- msgstr ""
2444
-
2445
- #: includes/pro/admin/coupon-element.php:44
2446
- msgid "Amount without <code>%</code> or currency symbol"
2447
- msgstr ""
2448
-
2449
- #: includes/pro/admin/coupon-element.php:53
2450
- msgid "Give a description of this coupon"
2451
- msgstr ""
2452
-
2453
- #: includes/pro/admin/coupon-element.php:58
2454
- msgid "Package"
2455
- msgstr ""
2456
-
2457
- #: includes/pro/admin/coupon-element.php:61
2458
- msgid "Select one or more packages to apply coupon"
2459
- msgstr ""
2460
-
2461
- #: includes/pro/admin/coupon-element.php:66
2462
- msgid "Usage Limit"
2463
- msgstr ""
2464
-
2465
- #: includes/pro/admin/coupon-element.php:70
2466
- msgid "How many times the coupon can be used? Give a numeric value."
2467
  msgstr ""
2468
 
2469
- #: includes/pro/admin/coupon-element.php:77
2470
- msgid "Start date"
2471
  msgstr ""
2472
 
2473
- #: includes/pro/admin/coupon-element.php:78
2474
- msgid "End date"
2475
  msgstr ""
2476
 
2477
- #: includes/pro/admin/coupon-element.php:84
2478
- msgid "Email Restriction"
2479
  msgstr ""
2480
 
2481
- #: includes/pro/admin/coupon-element.php:88
2482
- msgid ""
2483
- "Only users with these email addresses will be able to use this coupon. "
2484
- "Enter Email addresses. One per each line."
2485
  msgstr ""
2486
 
2487
- #: includes/pro/admin/coupon.php:68
2488
- msgid "&infin;"
2489
  msgstr ""
2490
 
2491
- #: includes/pro/admin/coupon.php:97
2492
- msgid "Coupon Code"
2493
  msgstr ""
2494
 
2495
- #: includes/pro/admin/coupon.php:98
2496
- msgid "Coupon Type"
2497
  msgstr ""
2498
 
2499
- #: includes/pro/admin/coupon.php:100
2500
- msgid "Usage / Limit"
2501
  msgstr ""
2502
 
2503
- #: includes/pro/admin/coupon.php:101
2504
- msgid "Expire date"
2505
  msgstr ""
2506
 
2507
- #: includes/pro/admin/coupon.php:116 includes/pro/admin/coupon.php:119
2508
- msgid "Coupon updated."
2509
  msgstr ""
2510
 
2511
- #: includes/pro/admin/coupon.php:120
2512
- msgid "Coupon restored to revision from %s"
2513
  msgstr ""
2514
 
2515
- #: includes/pro/admin/coupon.php:121
2516
- msgid "Coupon published."
2517
  msgstr ""
2518
 
2519
- #: includes/pro/admin/coupon.php:122
2520
- msgid "Coupon saved."
2521
  msgstr ""
2522
 
2523
- #: includes/pro/admin/coupon.php:123
2524
- msgid "Coupon submitted."
2525
  msgstr ""
2526
 
2527
- #: includes/pro/admin/coupon.php:125
2528
- msgid "Coupon draft updated."
 
 
 
2529
  msgstr ""
2530
 
2531
- #: includes/pro/admin/coupon.php:143
2532
- msgid "Enter coupon code"
2533
  msgstr ""
2534
 
2535
- #: includes/pro/admin/coupon.php:158 includes/pro/admin/coupon.php:178
2536
- #: includes/pro/admin/coupon.php:179 includes/pro/admin/coupon.php:180
2537
- msgid "Coupon"
2538
  msgstr ""
2539
 
2540
- #: includes/pro/admin/coupon.php:181
2541
- msgid "Add Coupon"
2542
  msgstr ""
2543
 
2544
- #: includes/pro/admin/coupon.php:182
2545
- msgid "Add New Coupon"
2546
  msgstr ""
2547
 
2548
- #: includes/pro/admin/coupon.php:184
2549
- msgid "Edit Coupon"
2550
  msgstr ""
2551
 
2552
- #: includes/pro/admin/coupon.php:185
2553
- msgid "New Coupon"
2554
  msgstr ""
2555
 
2556
- #: includes/pro/admin/coupon.php:186 includes/pro/admin/coupon.php:187
2557
- msgid "View Coupon"
2558
  msgstr ""
2559
 
2560
- #: includes/pro/admin/coupon.php:188
2561
- msgid "Search Coupon"
2562
  msgstr ""
2563
 
2564
- #: includes/pro/admin/coupon.php:189
2565
- msgid "No Coupon Found"
2566
  msgstr ""
2567
 
2568
- #: includes/pro/admin/coupon.php:190
2569
- msgid "No Coupon Found in Trash"
2570
  msgstr ""
2571
 
2572
- #: includes/pro/admin/coupon.php:191
2573
- msgid "Parent Coupon"
2574
  msgstr ""
2575
 
2576
- #: includes/pro/admin/coupon.php:202
2577
- msgid "Coupon Details"
2578
  msgstr ""
2579
 
2580
- #: includes/pro/admin/coupon.php:307
2581
- msgid "All package"
2582
  msgstr ""
2583
 
2584
- #: includes/pro/admin/template-profile.php:156
2585
- msgid "Minimum password length"
2586
  msgstr ""
2587
 
2588
- #: includes/pro/admin/template-profile.php:162
2589
- msgid "Password Re-type"
2590
  msgstr ""
2591
 
2592
- #: includes/pro/admin/template-profile.php:168
2593
- msgid "Require Password repeat"
2594
  msgstr ""
2595
 
2596
- #: includes/pro/admin/template-profile.php:174
2597
- msgid "Re-type password label"
2598
  msgstr ""
2599
 
2600
- #: includes/pro/admin/template-profile.php:180
2601
- msgid "Password Strength Meter"
2602
  msgstr ""
2603
 
2604
- #: includes/pro/admin/template-profile.php:186
2605
- msgid "Show password strength meter"
2606
  msgstr ""
2607
 
2608
- #: includes/pro/content-restriction.php:32
2609
- msgid "WPUF Content Restriction"
2610
  msgstr ""
2611
 
2612
- #: includes/pro/content-restriction.php:53
2613
- msgid "Display to"
2614
  msgstr ""
2615
 
2616
- #: includes/pro/content-restriction.php:55
2617
- msgid "Everyone"
2618
  msgstr ""
2619
 
2620
- #: includes/pro/content-restriction.php:56
2621
- msgid "Logged in users only"
2622
  msgstr ""
2623
 
2624
- #: includes/pro/content-restriction.php:57
2625
- msgid "Subscription users only"
2626
  msgstr ""
2627
 
2628
- #: includes/pro/content-restriction.php:62
2629
- msgid "Subscription Plans"
2630
  msgstr ""
2631
 
2632
- #: includes/pro/content-restriction.php:74
2633
- msgid ""
2634
- "Members subscribed to these subscription plans will be able to view this "
2635
- "page."
2636
  msgstr ""
2637
 
2638
- #: includes/pro/content-restriction.php:76
2639
- msgid "No subscription plan found."
2640
  msgstr ""
2641
 
2642
- #: includes/pro/content-restriction.php:146
2643
- msgid "You must be %s to view the content."
2644
  msgstr ""
2645
 
2646
- #: includes/pro/content-restriction.php:146
2647
- msgid "logged in"
2648
  msgstr ""
2649
 
2650
- #: includes/pro/content-restriction.php:147
2651
- msgid "This content is restricted for your subscription package."
2652
  msgstr ""
2653
 
2654
- #: includes/pro/content-restriction.php:148
2655
- msgid "You don't have a valid subscription package"
2656
  msgstr ""
2657
 
2658
- #: includes/pro/content-restriction.php:149
2659
- msgid "Your subscription pack is invalid or expired."
2660
  msgstr ""
2661
 
2662
- #: includes/pro/content-restriction.php:150
2663
- msgid "Your subscription pack is not allowed to view this content"
2664
  msgstr ""
2665
 
2666
- #: includes/pro/content-restriction.php:151
2667
- msgid "This content is restricted for your user role"
2668
  msgstr ""
2669
 
2670
- #: includes/pro/coupons.php:91
2671
- msgid "Sorry invalid coupon code!"
2672
  msgstr ""
2673
 
2674
- #: includes/pro/coupons.php:149
2675
- msgid "Coupon is not availiable for this package!"
2676
  msgstr ""
2677
 
2678
- #: includes/pro/coupons.php:153
2679
- msgid "Coupon usage limit exceeded!"
2680
  msgstr ""
2681
 
2682
- #: includes/pro/coupons.php:158
2683
- msgid "Sorry, this coupon is not start!"
2684
  msgstr ""
2685
 
2686
- #: includes/pro/coupons.php:165
2687
- msgid "Sorry, this coupon has been expired!"
2688
  msgstr ""
2689
 
2690
- #: includes/pro/coupons.php:170
2691
- msgid "You are not allowed to use this coupon!"
2692
  msgstr ""
2693
 
2694
- #: includes/pro/form.php:33
2695
- msgid "Ratings"
2696
  msgstr ""
2697
 
2698
- #: includes/pro/form.php:161
2699
- msgid "Multistep Form Settings"
2700
  msgstr ""
2701
 
2702
- #: includes/pro/form.php:169
2703
- msgid "Progressbar"
2704
  msgstr ""
2705
 
2706
- #: includes/pro/form.php:170
2707
- msgid "Step by Step"
2708
  msgstr ""
2709
 
2710
- #: includes/pro/form.php:180
2711
- msgid "Active Text Color"
2712
  msgstr ""
2713
 
2714
- #: includes/pro/form.php:187
2715
- msgid "Text color for active step."
2716
  msgstr ""
2717
 
2718
- #: includes/pro/form.php:191
2719
- msgid "Active Background Color"
2720
  msgstr ""
2721
 
2722
- #: includes/pro/form.php:198
2723
- msgid "Background color for progressbar or active step."
2724
  msgstr ""
2725
 
2726
- #: includes/pro/form.php:202
2727
- msgid "Background Color"
2728
  msgstr ""
2729
 
2730
- #: includes/pro/form.php:209
2731
- msgid "Background color for normal steps."
2732
  msgstr ""
2733
 
2734
- #: includes/pro/form.php:536
2735
- msgid "No custom taxonomies found"
2736
  msgstr ""
2737
 
2738
- #: includes/pro/form.php:696
2739
- msgid "Multiple Column"
2740
  msgstr ""
2741
 
2742
- #: includes/pro/form.php:769
2743
- msgid "The date format"
2744
  msgstr ""
2745
 
2746
- #: includes/pro/form.php:780
2747
- msgid "Date Format"
2748
  msgstr ""
2749
 
2750
- #: includes/pro/form.php:785
2751
- msgid "Time"
2752
  msgstr ""
2753
 
2754
- #: includes/pro/form.php:791
2755
- msgid "Enable time input"
2756
  msgstr ""
2757
 
2758
- #: includes/pro/form.php:797
2759
- msgid "Is Publish Time ? : "
2760
  msgstr ""
2761
 
2762
- #: includes/pro/form.php:803
2763
- msgid "Set this as publish time input"
2764
  msgstr ""
2765
 
2766
- #: includes/pro/form.php:895
2767
- msgid "Set the map zoom level"
2768
  msgstr ""
2769
 
2770
- #: includes/pro/form.php:896
2771
- msgid "Enter default latitude and longitude to center the map"
2772
  msgstr ""
2773
 
2774
- #: includes/pro/form.php:907
2775
- msgid "Zoom Level"
2776
  msgstr ""
2777
 
2778
- #: includes/pro/form.php:912
2779
- msgid "Default Co-ordinate"
2780
  msgstr ""
2781
 
2782
- #: includes/pro/form.php:917
2783
- msgid "Address Button"
2784
  msgstr ""
2785
 
2786
- #: includes/pro/form.php:923
2787
- msgid "Show address find button"
2788
  msgstr ""
2789
 
2790
- #: includes/pro/form.php:929
2791
- msgid "Show Latitude/Longitude"
2792
  msgstr ""
2793
 
2794
- #: includes/pro/form.php:935
2795
- msgid "Show latitude and longitude input box value"
2796
  msgstr ""
2797
 
2798
- #: includes/pro/form.php:963
2799
- msgid "The country to be selected by default."
2800
  msgstr ""
2801
 
2802
- #: includes/pro/form.php:980
2803
- msgid "Default Country"
2804
  msgstr ""
2805
 
2806
- #: includes/pro/form.php:1050
2807
- msgid "Step"
2808
  msgstr ""
2809
 
2810
- #: includes/pro/form.php:1059
2811
- msgid "Min Value"
2812
  msgstr ""
2813
 
2814
- #: includes/pro/form.php:1068
2815
- msgid "Max Value"
2816
  msgstr ""
2817
 
2818
- #: includes/pro/form.php:1101 includes/pro/form.php:1231
2819
- msgid "Address Line 1"
2820
  msgstr ""
2821
 
2822
- #: includes/pro/form.php:1117 includes/pro/form.php:1248
2823
- msgid "Address Line 2"
2824
  msgstr ""
2825
 
2826
- #: includes/pro/form.php:1133
2827
- msgid "City"
2828
  msgstr ""
2829
 
2830
- #: includes/pro/form.php:1149
2831
- msgid "State"
2832
  msgstr ""
2833
 
2834
- #: includes/pro/form.php:1165
2835
- msgid "Zip Code"
2836
  msgstr ""
2837
 
2838
- #: includes/pro/form.php:1181 includes/pro/form.php:1319
2839
- msgid "Country"
2840
  msgstr ""
2841
 
2842
- #: includes/pro/form.php:1207
2843
- msgid "Address Description"
2844
  msgstr ""
2845
 
2846
- #: includes/pro/form.php:1212
2847
- msgid "Address Field(s)"
2848
  msgstr ""
2849
 
2850
- #: includes/pro/form.php:1217
2851
- msgid "Fields"
2852
  msgstr ""
2853
 
2854
- #: includes/pro/form.php:1218
2855
- msgid "Required?"
2856
  msgstr ""
2857
 
2858
- #: includes/pro/form.php:1220
2859
- msgid "Default Value"
2860
  msgstr ""
2861
 
2862
- #: includes/pro/form.php:1221
2863
- msgid "Placeholder"
2864
  msgstr ""
2865
 
2866
- #: includes/pro/form.php:1266
2867
- msgid "City Name"
2868
  msgstr ""
2869
 
2870
- #: includes/pro/form.php:1284
2871
- msgid "State/Region"
2872
  msgstr ""
2873
 
2874
- #: includes/pro/form.php:1302
2875
- msgid "Zip/Postal Code"
2876
  msgstr ""
2877
 
2878
- #: includes/pro/form.php:1396
2879
- msgid "Section Name"
2880
  msgstr ""
2881
 
2882
- #: includes/pro/form.php:1403 includes/pro/form.php:1405
2883
- msgid "Previous Button Text"
2884
  msgstr ""
2885
 
2886
- #: includes/pro/form.php:1409 includes/pro/form.php:1411
2887
- msgid "Next Button Text"
2888
  msgstr ""
2889
 
2890
- #: includes/pro/form.php:1449
2891
- msgid ""
2892
- "Insert your public key and private key in <a href='%s'>plugin settings</a>. "
2893
- "<a href='https://www.google.com/recaptcha/' target='_blank'>Register</a> "
2894
- "first if you don't have any keys."
2895
  msgstr ""
2896
 
2897
- #: includes/pro/form.php:1455 includes/pro/form.php:1459
2898
- msgid "Enable noCaptcha"
2899
  msgstr ""
2900
 
2901
- #: includes/pro/form.php:1497
2902
- msgid ""
2903
- "Depends on <a "
2904
- "href='http://wordpress.org/extend/plugins/really-simple-captcha/' "
2905
- "target='_blank'>Really Simple Captcha</a> Plugin. Install it first."
2906
  msgstr ""
2907
 
2908
- #: includes/pro/form.php:1527
2909
- msgid "Hook Name"
2910
  msgstr ""
2911
 
2912
- #: includes/pro/form.php:1530
2913
- msgid "Name of the hook"
2914
  msgstr ""
2915
 
2916
- #: includes/pro/form.php:1533
2917
- msgid ""
2918
- "An option for developers to add dynamic elements they want. It provides the "
2919
- "chance to add whatever input type you want to add in this form."
2920
  msgstr ""
2921
 
2922
- #: includes/pro/form.php:1534
2923
- msgid ""
2924
- "This way, you can bind your own functions to render the form to this action "
2925
- "hook. You'll be given 3 parameters to play with: $form_id, $post_id, "
2926
- "$form_settings."
2927
  msgstr ""
2928
 
2929
- #: includes/pro/form.php:1580
2930
- msgid "Terms & Conditions"
2931
  msgstr ""
2932
 
2933
- #: includes/pro/form.php:1581
2934
- msgid "Insert terms and condtions here."
2935
  msgstr ""
2936
 
2937
- #: includes/pro/frontend-form-profile.php:35
2938
- msgid "Please select subscription page"
2939
  msgstr ""
2940
 
2941
- #: includes/pro/frontend-form-profile.php:67
2942
- msgid "Please login to update your profile!"
2943
  msgstr ""
2944
 
2945
- #: includes/pro/frontend-form-profile.php:72
2946
- msgid "You are already logged in!"
2947
- msgstr ""
2948
-
2949
- #: includes/pro/frontend-form-profile.php:77
2950
- msgid "User registration is currently not allowed."
2951
- msgstr ""
2952
-
2953
- #: includes/pro/frontend-form-profile.php:172
2954
- msgid "An Email address is required"
2955
- msgstr ""
2956
-
2957
- #: includes/pro/frontend-form-profile.php:181
2958
- msgid "Username already exists."
2959
- msgstr ""
2960
-
2961
- #: includes/pro/frontend-form-profile.php:190
2962
- msgid "E-mail address already exists."
2963
- msgstr ""
2964
-
2965
- #: includes/pro/frontend-form-profile.php:200
2966
- msgid "Username is not valid"
2967
- msgstr ""
2968
-
2969
- #: includes/pro/frontend-form-profile.php:211
2970
- #: includes/pro/frontend-form-profile.php:455
2971
- msgid "Password must be %s character long"
2972
- msgstr ""
2973
-
2974
- #: includes/pro/frontend-form-profile.php:216
2975
- #: includes/pro/frontend-form-profile.php:460
2976
- msgid "Password didn't match"
2977
- msgstr ""
2978
-
2979
- #: includes/pro/frontend-form-profile.php:286
2980
- msgid "Please check your email for activation link"
2981
- msgstr ""
2982
-
2983
- #: includes/pro/frontend-form-profile.php:328
2984
- msgid "Congrats! You are Successfully registered to %s:"
2985
- msgstr ""
2986
-
2987
- #: includes/pro/frontend-form-profile.php:329
2988
- msgid "To activate your account, please click the link below"
2989
- msgstr ""
2990
-
2991
- #: includes/pro/frontend-form-profile.php:336
2992
- msgid "[%s] Account Activation"
2993
- msgstr ""
2994
-
2995
- #: includes/pro/frontend-form-profile.php:439
2996
- msgid "That E-mail already exists"
2997
- msgstr ""
2998
-
2999
- #: includes/pro/login.php:208 includes/pro/login.php:264
3000
- #: templates/login-form.php:37
3001
- msgid "Log In"
3002
- msgstr ""
3003
-
3004
- #: includes/pro/login.php:216
3005
- msgid "Lost Password"
3006
- msgstr ""
3007
-
3008
- #: includes/pro/login.php:254
3009
- msgid ""
3010
- "Please enter your username or email address. You will receive a link to "
3011
- "create a new password via email."
3012
- msgstr ""
3013
-
3014
- #: includes/pro/login.php:264
3015
- msgid "Your password has been reset. %s"
3016
- msgstr ""
3017
-
3018
- #: includes/pro/login.php:268
3019
- msgid "Enter your new password below.."
3020
- msgstr ""
3021
-
3022
- #: includes/pro/login.php:278
3023
- msgid "Check your e-mail for the confirmation link."
3024
- msgstr ""
3025
-
3026
- #: includes/pro/login.php:282
3027
- msgid "You are now logged out."
3028
- msgstr ""
3029
-
3030
- #: includes/pro/login.php:311 includes/pro/login.php:316
3031
- #: includes/pro/login.php:321 includes/pro/login.php:331
3032
- msgid "Error"
3033
- msgstr ""
3034
-
3035
- #: includes/pro/login.php:316
3036
- msgid "Username is required."
3037
- msgstr ""
3038
-
3039
- #: includes/pro/login.php:321
3040
- msgid "Password is required."
3041
- msgstr ""
3042
-
3043
- #: includes/pro/login.php:331
3044
- msgid "A user could not be found with this email address."
3045
- msgstr ""
3046
-
3047
- #: includes/pro/login.php:421
3048
- msgid "Please enter your password."
3049
- msgstr ""
3050
-
3051
- #: includes/pro/login.php:426
3052
- msgid "Passwords do not match."
3053
- msgstr ""
3054
-
3055
- #: includes/pro/login.php:469
3056
- msgid "Enter a username or e-mail address."
3057
- msgstr ""
3058
-
3059
- #: includes/pro/login.php:477
3060
- msgid "There is no user registered with that email address."
3061
- msgstr ""
3062
-
3063
- #: includes/pro/login.php:495
3064
- msgid "Invalid username or e-mail."
3065
- msgstr ""
3066
-
3067
- #: includes/pro/login.php:509
3068
- msgid "Password reset is not allowed for this user"
3069
- msgstr ""
3070
-
3071
- #: includes/pro/login.php:553 includes/pro/login.php:558
3072
- #: includes/pro/login.php:565
3073
- msgid "Invalid key"
3074
- msgstr ""
3075
-
3076
- #: includes/pro/login.php:588
3077
- msgid ""
3078
- "<strong>Your account is not active.</strong><br>Please check your email for "
3079
- "activation link."
3080
- msgstr ""
3081
-
3082
- #: includes/pro/login.php:636
3083
- msgid "Your account has been activated"
3084
- msgstr ""
3085
-
3086
- #: includes/pro/login.php:680
3087
- msgid "Someone requested that the password be reset for the following account:"
3088
- msgstr ""
3089
-
3090
- #: includes/pro/login.php:682
3091
- msgid "Username: %s"
3092
- msgstr ""
3093
-
3094
- #: includes/pro/login.php:683
3095
- msgid "If this was a mistake, just ignore this email and nothing will happen."
3096
- msgstr ""
3097
-
3098
- #: includes/pro/login.php:684
3099
- msgid "To reset your password, visit the following address:"
3100
- msgstr ""
3101
-
3102
- #: includes/pro/login.php:693
3103
- msgid "[%s] Password Reset"
3104
- msgstr ""
3105
-
3106
- #: includes/pro/login.php:698
3107
- msgid "The e-mail could not be sent."
3108
- msgstr ""
3109
-
3110
- #: includes/pro/login.php:698
3111
- msgid "Possible reason: your host may have disabled the mail() function."
3112
- msgstr ""
3113
-
3114
- #: includes/pro/post-form-templates/woocommerce.php:11
3115
- msgid "Create a simple or downloadable product form for WooCommerce."
3116
- msgstr ""
3117
-
3118
- #: includes/pro/render-form.php:56 includes/pro/render-form.php:72
3119
- msgid "Add another"
3120
- msgstr ""
3121
-
3122
- #: includes/pro/render-form.php:57 includes/pro/render-form.php:73
3123
- msgid "Remove this choice"
3124
- msgstr ""
3125
-
3126
- #: includes/pro/render-form.php:185
3127
- msgid "Select File(s)"
3128
- msgstr ""
3129
-
3130
- #: includes/pro/render-form.php:194
3131
- msgid "Download File"
3132
- msgstr ""
3133
-
3134
- #: includes/pro/render-form.php:240
3135
- msgid "Type an address to find"
3136
- msgstr ""
3137
-
3138
- #: includes/pro/render-form.php:241
3139
- msgid "Find Address"
3140
- msgstr ""
3141
-
3142
- #: includes/pro/render-form.php:700
3143
- msgid "Error: Really Simple Captcha plugin not found!"
3144
- msgstr ""
3145
-
3146
- #: includes/pro/subscription.php:18
3147
- msgid "Billing cycle:"
3148
- msgstr ""
3149
-
3150
- #: includes/pro/subscription.php:32
3151
- msgid "Billing cycle stop"
3152
- msgstr ""
3153
-
3154
- #: includes/pro/subscription.php:35
3155
- msgid "Never"
3156
- msgstr ""
3157
-
3158
- #: includes/pro/subscription.php:38
3159
- msgid "After how many cycles should billing stop?"
3160
- msgstr ""
3161
-
3162
- #: includes/pro/subscription.php:44
3163
- msgid "Trial"
3164
- msgstr ""
3165
-
3166
- #: includes/pro/subscription.php:48
3167
- msgid "Enable trial period"
3168
- msgstr ""
3169
-
3170
- #: includes/pro/subscription.php:54
3171
- msgid "Trial period"
3172
- msgstr ""
3173
-
3174
- #: includes/pro/subscription.php:62
3175
- msgid "Define the trial period"
3176
- msgstr ""
3177
-
3178
- #: includes/pro/subscription.php:67
3179
- msgid "Enable Post Number Rollback"
3180
- msgstr ""
3181
-
3182
- #: includes/pro/subscription.php:71
3183
- msgid "If enabled, number of posts will be restored if the post is deleted."
3184
- msgstr ""
3185
-
3186
- #: includes/pro/updates.php:55
3187
- msgid "Updates"
3188
- msgstr ""
3189
-
3190
- #: includes/pro/updates.php:78
3191
- msgid ""
3192
- "Please <a href=\"%s\">enter</a> your <strong>WP User Frontend</strong> "
3193
- "plugin license key to get regular update and support."
3194
- msgstr ""
3195
-
3196
- #: includes/pro/updates.php:93
3197
- msgid "Please activate your copy"
3198
- msgstr ""
3199
-
3200
- #: includes/pro/updates.php:132
3201
- msgid "WP User Frontend Error:"
3202
- msgstr ""
3203
-
3204
- #: includes/pro/updates.php:323
3205
- msgid "Empty email address"
3206
- msgstr ""
3207
-
3208
- #: includes/pro/updates.php:327
3209
- msgid "Empty license key"
3210
- msgstr ""
3211
-
3212
- #: includes/pro/updates.php:345
3213
- msgid "Settings Saved"
3214
- msgstr ""
3215
-
3216
- #: includes/pro/updates.php:361
3217
- msgid "Plugin Activation"
3218
- msgstr ""
3219
-
3220
- #: includes/pro/updates.php:384
3221
- msgid "E-mail Address"
3222
- msgstr ""
3223
-
3224
- #: includes/pro/updates.php:387
3225
- msgid "Enter your purchase Email address"
3226
- msgstr ""
3227
-
3228
- #: includes/pro/updates.php:391
3229
- msgid "License Key"
3230
- msgstr ""
3231
-
3232
- #: includes/pro/updates.php:394
3233
- msgid "Enter your license key"
3234
- msgstr ""
3235
-
3236
- #: includes/pro/updates.php:408
3237
- msgid "has been expired %s ago"
3238
- msgstr ""
3239
-
3240
- #: includes/pro/updates.php:411
3241
- msgid "will expire in %s"
3242
- msgstr ""
3243
-
3244
- #: includes/pro/updates.php:422
3245
- msgid "Renew License"
3246
- msgstr ""
3247
-
3248
- #: includes/pro/updates.php:430
3249
- msgid "Plugin is activated"
3250
- msgstr ""
3251
-
3252
- #: includes/pro/updates.php:434
3253
- msgid "Delete License"
3254
- msgstr ""
3255
-
3256
- #: lib/class.settings-api.php:364
3257
- msgid "Choose File"
3258
- msgstr ""
3259
-
3260
- #: lib/gateway/bank.php:29
3261
- msgid "Bank Instruction"
3262
- msgstr ""
3263
-
3264
- #: lib/gateway/bank.php:36
3265
- msgid "Bank Payment Success Page"
3266
- msgstr ""
3267
-
3268
- #: lib/gateway/bank.php:77
3269
- msgid "[%s] New Bank Order Received"
3270
- msgstr ""
3271
-
3272
- #: lib/gateway/bank.php:78
3273
- msgid "New bank order received at %s, please check it out: %s"
3274
- msgstr ""
3275
-
3276
- #: lib/gateway/bank.php:100
3277
- msgid "Hello %s,"
3278
- msgstr ""
3279
-
3280
- #: lib/gateway/bank.php:101
3281
- msgid "We have received your bank payment."
3282
- msgstr ""
3283
-
3284
- #: lib/gateway/bank.php:102
3285
- msgid "Thanks for being with us."
3286
- msgstr ""
3287
-
3288
- #: lib/gateway/paypal.php:60
3289
- msgid "Subscription %s at %s"
3290
- msgstr ""
3291
-
3292
- #: lib/gateway/paypal.php:91
3293
- msgid "PayPal Email"
3294
- msgstr ""
3295
-
3296
- #: lib/gateway/paypal.php:96
3297
- msgid "PayPal Instruction"
3298
- msgstr ""
3299
-
3300
- #: lib/gateway/paypal.php:103
3301
- msgid "PayPal API username"
3302
- msgstr ""
3303
-
3304
- #: lib/gateway/paypal.php:107
3305
- msgid "PayPal API password"
3306
- msgstr ""
3307
-
3308
- #: lib/gateway/paypal.php:111
3309
- msgid "PayPal API signature"
3310
- msgstr ""
3311
-
3312
- #: templates/dashboard.php:2
3313
- msgid "%s's Dashboard"
3314
- msgstr ""
3315
-
3316
- #: templates/dashboard.php:6
3317
- msgid "You have created <span>%d</span> %s"
3318
- msgstr ""
3319
-
3320
- #: templates/dashboard.php:56
3321
- msgid "No Image"
3322
- msgstr ""
3323
-
3324
- #: templates/dashboard.php:70
3325
- msgid "Permalink to %s"
3326
- msgstr ""
3327
-
3328
- #: templates/dashboard.php:86
3329
- msgid "Pay Now"
3330
- msgstr ""
3331
-
3332
- #: templates/dashboard.php:130
3333
- msgid "&laquo;"
3334
- msgstr ""
3335
-
3336
- #: templates/dashboard.php:131
3337
- msgid "&raquo;"
3338
- msgstr ""
3339
-
3340
- #: templates/dashboard.php:145
3341
- msgid "No %s found"
3342
- msgstr ""
3343
-
3344
- #: templates/logged-in.php:8
3345
- msgid "Hello %s"
3346
- msgstr ""
3347
-
3348
- #: templates/logged-in.php:11
3349
- msgid "You are currently logged in! %s?"
3350
- msgstr ""
3351
-
3352
- #: templates/login-form.php:33
3353
- msgid "Remember Me"
3354
- msgstr ""
3355
-
3356
- #: templates/lost-pass-form.php:14
3357
- msgid "Username or E-mail:"
3358
- msgstr ""
3359
-
3360
- #: templates/lost-pass-form.php:21
3361
- msgid "Get New Password"
3362
- msgstr ""
3363
-
3364
- #: templates/reset-pass-form.php:14
3365
- msgid "New password"
3366
- msgstr ""
3367
-
3368
- #: templates/reset-pass-form.php:19
3369
- msgid "Confirm new password"
3370
- msgstr ""
3371
-
3372
- #: templates/reset-pass-form.php:26
3373
- msgid "Reset Password"
3374
- msgstr ""
3375
-
3376
- #: wpuf-functions.php:26
3377
- msgid "Live"
3378
- msgstr ""
3379
-
3380
- #: wpuf-functions.php:30
3381
- msgid "Offline"
3382
- msgstr ""
3383
-
3384
- #: wpuf-functions.php:34
3385
- msgid "Awaiting Approval"
3386
- msgstr ""
3387
-
3388
- #: wpuf-functions.php:37 wpuf-functions.php:71
3389
- msgid "Scheduled"
3390
- msgstr ""
3391
-
3392
- #: wpuf-functions.php:41
3393
- msgid "Private"
3394
- msgstr ""
3395
-
3396
- #: wpuf-functions.php:60
3397
- msgid "Published"
3398
- msgstr ""
3399
-
3400
- #: wpuf-functions.php:64
3401
- msgid "Draft"
3402
- msgstr ""
3403
-
3404
- #: wpuf-functions.php:68
3405
- msgid "Pending"
3406
- msgstr ""
3407
-
3408
- #: wpuf-functions.php:204
3409
- msgid "-- select --"
3410
- msgstr ""
3411
-
3412
- #: wpuf-functions.php:395
3413
- msgid "Images"
3414
- msgstr ""
3415
-
3416
- #: wpuf-functions.php:396
3417
- msgid "Audio"
3418
- msgstr ""
3419
-
3420
- #: wpuf-functions.php:397
3421
- msgid "Videos"
3422
- msgstr ""
3423
-
3424
- #: wpuf-functions.php:398
3425
- msgid "PDF"
3426
- msgstr ""
3427
-
3428
- #: wpuf-functions.php:399
3429
- msgid "Office Documents"
3430
- msgstr ""
3431
-
3432
- #: wpuf-functions.php:400
3433
- msgid "Zip Archives"
3434
- msgstr ""
3435
-
3436
- #: wpuf-functions.php:401
3437
- msgid "Executable Files"
3438
- msgstr ""
3439
-
3440
- #: wpuf-functions.php:402
3441
- msgid "CSV"
3442
- msgstr ""
3443
-
3444
- #: wpuf.php:110
3445
- msgid "Your Post Has Been Expired"
3446
- msgstr ""
3447
-
3448
- #: wpuf.php:279
3449
- msgid "is required"
3450
- msgstr ""
3451
-
3452
- #: wpuf.php:280
3453
- msgid "does not match"
3454
- msgstr ""
3455
-
3456
- #: wpuf.php:281
3457
- msgid "is not valid"
3458
  msgstr ""
3459
 
3460
  #: wpuf.php:343
3461
- msgid "Please fix the errors to proceed"
3462
- msgstr ""
3463
-
3464
- #: wpuf.php:345
3465
  msgid "Word limit reached"
3466
  msgstr ""
3467
 
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP User Frontend 2.4.2\n"
6
  "Report-Msgid-Bugs-To: "
7
+ "https://wedevs.com/support/forum/plugin-support/wp-user-frontend/\n"
8
+ "POT-Creation-Date: 2017-02-05 06:38:12+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
48
  msgid "Add New Form"
49
  msgstr ""
50
 
51
+ #: admin/form.php:180 admin/form.php:218 admin/installer.php:75
52
+ #: admin/subscription.php:227 class/subscription.php:361
53
+ #: includes/free/edit-user.php:100 templates/dashboard/posts.php:150
54
+ #: templates/dashboard.php:104
55
  msgid "Edit"
56
  msgstr ""
57
 
87
  msgid "Registraton Forms"
88
  msgstr ""
89
 
90
+ #: admin/form.php:215 includes/free/loader.php:60
91
  msgid "Registration Forms"
92
  msgstr ""
93
 
96
  msgstr ""
97
 
98
  #: admin/form.php:247 admin/subscription.php:53
 
99
  msgid "Custom field updated."
100
  msgstr ""
101
 
102
  #: admin/form.php:248 admin/subscription.php:54
 
103
  msgid "Custom field deleted."
104
  msgstr ""
105
 
139
  msgid "Post Status"
140
  msgstr ""
141
 
142
+ #: admin/form.php:288 admin/form.php:747
143
  msgid "Guest Post"
144
  msgstr ""
145
 
151
  msgid "User Role"
152
  msgstr ""
153
 
154
+ #: admin/form.php:340 admin/settings-options.php:95
155
+ #: admin/settings-options.php:174 admin/settings-options.php:185
156
+ #: admin/settings-options.php:274 admin/subscription.php:147
157
+ #: admin/template.php:74 includes/free/form.php:476
158
  msgid "No"
159
  msgstr ""
160
 
161
+ #: admin/form.php:340 admin/settings-options.php:94
162
+ #: admin/settings-options.php:173 admin/settings-options.php:184
163
+ #: admin/settings-options.php:273 admin/subscription.php:145
164
+ #: admin/template.php:73 includes/free/form.php:475
165
  msgid "Yes"
166
  msgstr ""
167
 
177
  msgid "WPUF Form"
178
  msgstr ""
179
 
180
+ #: admin/form.php:460 admin/form.php:471 admin/form.php:1048
181
+ #: admin/form.php:1088
182
  msgid "Form Editor"
183
  msgstr ""
184
 
214
  msgid "Submit for Review"
215
  msgstr ""
216
 
217
+ #: admin/form.php:562 admin/form.php:563 admin/form.php:900
218
  msgid "Update"
219
  msgstr ""
220
 
222
  msgid "This page is restricted. Please Log in / Register to view this page."
223
  msgstr ""
224
 
225
+ #: admin/form.php:644 admin/subscription.php:205 admin/template-post.php:177
226
  #: includes/free/edit-profile.php:92
227
  msgid "Name"
228
  msgstr ""
229
 
230
+ #: admin/form.php:645 admin/form.php:1120 class/transactions-list-table.php:48
231
  #: includes/free/edit-user.php:153
232
  msgid "Email"
233
  msgstr ""
236
  msgid "Post saved"
237
  msgstr ""
238
 
239
+ #: admin/form.php:650 admin/form.php:897
240
  msgid "Post updated successfully"
241
  msgstr ""
242
 
274
  msgid "Default Post Category"
275
  msgstr ""
276
 
277
+ #: admin/form.php:742
278
  msgid ""
279
  "If users are not allowed to choose any category, this category will be used "
280
  "instead (if post type supports)"
281
  msgstr ""
282
 
283
+ #: admin/form.php:752
284
  msgid "Enable Guest Post"
285
  msgstr ""
286
 
287
+ #: admin/form.php:754
288
  msgid "Unregistered users will be able to submit posts"
289
  msgstr ""
290
 
291
+ #: admin/form.php:759
292
  msgid "User Details"
293
  msgstr ""
294
 
295
+ #: admin/form.php:764
296
  msgid "Require Name and Email address"
297
  msgstr ""
298
 
299
+ #: admin/form.php:766
300
  msgid ""
301
  "If requires, users will be automatically registered to the site using the "
302
  "name and email address"
303
  msgstr ""
304
 
305
+ #: admin/form.php:771
306
  msgid "Name Label"
307
  msgstr ""
308
 
309
+ #: admin/form.php:776
310
  msgid "Label text for name field"
311
  msgstr ""
312
 
313
+ #: admin/form.php:781
314
  msgid "E-Mail Label"
315
  msgstr ""
316
 
317
+ #: admin/form.php:786
318
  msgid "Label text for email field"
319
  msgstr ""
320
 
321
+ #: admin/form.php:791 admin/settings-options.php:230
322
  msgid "Unauthorized Message"
323
  msgstr ""
324
 
325
+ #: admin/form.php:794 admin/settings-options.php:231
326
  msgid "Not logged in users will see this message"
327
  msgstr ""
328
 
329
+ #: admin/form.php:799 admin/form.php:923 includes/free/form.php:374
 
330
  msgid "Redirect To"
331
  msgstr ""
332
 
333
+ #: admin/form.php:804 admin/form.php:928
334
  msgid "Newly created post"
335
  msgstr ""
336
 
337
+ #: admin/form.php:805 admin/form.php:929 includes/free/form.php:379
 
338
  msgid "Same Page"
339
  msgstr ""
340
 
341
+ #: admin/form.php:806 admin/form.php:930 includes/free/form.php:380
 
342
  msgid "To a page"
343
  msgstr ""
344
 
345
+ #: admin/form.php:807 admin/form.php:931 includes/free/form.php:381
 
346
  msgid "To a custom URL"
347
  msgstr ""
348
 
349
+ #: admin/form.php:816 admin/form.php:940 includes/free/form.php:390
 
350
  msgid "After successfull submit, where the page will redirect to"
351
  msgstr ""
352
 
353
+ #: admin/form.php:822
354
  msgid "Message to show"
355
  msgstr ""
356
 
357
+ #: admin/form.php:830 admin/form.php:953 includes/free/form.php:410
 
358
  msgid "Page"
359
  msgstr ""
360
 
361
+ #: admin/form.php:845 admin/form.php:968 includes/free/form.php:425
 
362
  msgid "Custom URL"
363
  msgstr ""
364
 
365
+ #: admin/form.php:852
366
  msgid "Comment Status"
367
  msgstr ""
368
 
369
+ #: admin/form.php:855
370
  msgid "Open"
371
  msgstr ""
372
 
373
+ #: admin/form.php:856
374
  msgid "Closed"
375
  msgstr ""
376
 
377
+ #: admin/form.php:862
378
  msgid "Submit Post Button text"
379
  msgstr ""
380
 
381
+ #: admin/form.php:869
382
  msgid "Post Draft"
383
  msgstr ""
384
 
385
+ #: admin/form.php:874
386
  msgid "Enable Saving as draft"
387
  msgstr ""
388
 
389
+ #: admin/form.php:876
390
  msgid "It will show a button to save as draft"
391
  msgstr ""
392
 
393
+ #: admin/form.php:906
394
  msgid "Set Post Status to"
395
  msgstr ""
396
 
397
+ #: admin/form.php:916
398
  msgid "No Change"
399
  msgstr ""
400
 
401
+ #: admin/form.php:946
402
  msgid "Post Update Message"
403
  msgstr ""
404
 
405
+ #: admin/form.php:975
406
  msgid "Subscription Title"
407
  msgstr ""
408
 
409
+ #: admin/form.php:984
410
  msgid "Update Post Button text"
411
  msgstr ""
412
 
413
+ #: admin/form.php:997 admin/form.php:1001
414
  msgid "- Select -"
415
  msgstr ""
416
 
417
+ #: admin/form.php:1049
418
  msgid "Post Settings"
419
  msgstr ""
420
 
421
+ #: admin/form.php:1050
422
  msgid "Edit Settings"
423
  msgstr ""
424
 
425
+ #: admin/form.php:1051 includes/free/form.php:211 includes/free/form.php:248
 
426
  msgid "Notification"
427
  msgstr ""
428
 
429
+ #: admin/form.php:1052 includes/free/form.php:55
430
  msgid "Post Expiration"
431
  msgstr ""
432
 
433
+ #: admin/form.php:1089 admin/settings.php:69
434
  msgid "Settings"
435
  msgstr ""
436
 
437
+ #: admin/form.php:1109 admin/form.php:1150 admin/form.php:1151
438
+ #: admin/form.php:1152 admin/form.php:1153 admin/form.php:1154
439
+ #: admin/form.php:1155 includes/free/form.php:6 includes/free/form.php:26
 
 
440
  msgid "Click to add to the editor"
441
  msgstr ""
442
 
443
+ #: admin/form.php:1111
444
  msgid "Custom Fields"
445
  msgstr ""
446
 
447
+ #: admin/form.php:1113
448
  msgid "Text"
449
  msgstr ""
450
 
451
+ #: admin/form.php:1114 admin/template.php:185
452
  msgid "Textarea"
453
  msgstr ""
454
 
455
+ #: admin/form.php:1115 admin/template-post.php:166
456
  msgid "Dropdown"
457
  msgstr ""
458
 
459
+ #: admin/form.php:1116 admin/template-post.php:167
460
  msgid "Multi Select"
461
  msgstr ""
462
 
463
+ #: admin/form.php:1117
464
  msgid "Radio"
465
  msgstr ""
466
 
467
+ #: admin/form.php:1118 admin/template-post.php:168
468
  msgid "Checkbox"
469
  msgstr ""
470
 
471
+ #: admin/form.php:1119
472
  msgid "URL"
473
  msgstr ""
474
 
475
+ #: admin/form.php:1121
476
  msgid "Hidden Field"
477
  msgstr ""
478
 
479
+ #: admin/form.php:1128
480
  msgid "Others"
481
  msgstr ""
482
 
483
+ #: admin/form.php:1130
484
  msgid "Section Break"
485
  msgstr ""
486
 
487
+ #: admin/form.php:1131
488
  msgid "HTML"
489
  msgstr ""
490
 
491
+ #: admin/form.php:1148
492
  msgid "Post Fields"
493
  msgstr ""
494
 
495
+ #: admin/form.php:1150
496
  msgid "Post Title"
497
  msgstr ""
498
 
499
+ #: admin/form.php:1151
500
  msgid "Post Body"
501
  msgstr ""
502
 
503
+ #: admin/form.php:1152
504
  msgid "Excerpt"
505
  msgstr ""
506
 
507
+ #: admin/form.php:1153
508
  msgid "Tags"
509
  msgstr ""
510
 
511
+ #: admin/form.php:1154
512
  msgid "Category"
513
  msgstr ""
514
 
515
+ #: admin/form.php:1155 templates/dashboard/posts.php:71
516
+ #: templates/dashboard.php:25
517
  msgid "Featured Image"
518
  msgstr ""
519
 
520
+ #: admin/form.php:1161
521
  msgid "Custom Taxonomies"
522
  msgstr ""
523
 
524
+ #: admin/form.php:1185
525
  msgid "Profile Fields"
526
  msgstr ""
527
 
528
+ #: admin/form.php:1187 admin/form.php:1601 includes/free/edit-profile.php:96
529
  #: includes/free/edit-user.php:93 includes/free/edit-user.php:145
530
  #: templates/login-form.php:21
531
  msgid "Username"
532
  msgstr ""
533
 
534
+ #: admin/form.php:1188 admin/form.php:1605 includes/free/edit-profile.php:100
535
  msgid "First Name"
536
  msgstr ""
537
 
538
+ #: admin/form.php:1189 admin/form.php:1609 includes/free/edit-profile.php:105
539
  msgid "Last Name"
540
  msgstr ""
541
 
542
+ #: admin/form.php:1190 admin/form.php:1613 includes/free/edit-profile.php:110
543
  msgid "Nickname"
544
  msgstr ""
545
 
546
+ #: admin/form.php:1191 admin/form.php:1617 includes/free/edit-profile.php:151
547
  msgid "E-mail"
548
  msgstr ""
549
 
550
+ #: admin/form.php:1192 admin/form.php:1621 includes/free/edit-profile.php:156
551
  msgid "Website"
552
  msgstr ""
553
 
554
+ #: admin/form.php:1193 admin/form.php:1625 includes/free/edit-profile.php:178
555
  msgid "Biographical Info"
556
  msgstr ""
557
 
558
+ #: admin/form.php:1194 admin/form.php:1629 templates/login-form.php:25
559
  msgid "Password"
560
  msgstr ""
561
 
562
+ #: admin/form.php:1195 admin/form.php:1633
563
  msgid "Avatar"
564
  msgstr ""
565
 
566
+ #: admin/form.php:1355 includes/free/form.php:301
567
  msgid "Toggle All"
568
  msgstr ""
569
 
570
+ #: admin/form.php:1359 includes/free/form.php:305
571
  msgid "Click on a form element to add to the editor"
572
  msgstr ""
573
 
629
  "installed and saved!"
630
  msgstr ""
631
 
632
+ #: admin/installer.php:73 admin/settings-options.php:17 wpuf-functions.php:1286
633
  msgid "Dashboard"
634
  msgstr ""
635
 
636
+ #: admin/installer.php:74
637
+ msgid "Account"
638
+ msgstr ""
639
+
640
+ #: admin/installer.php:78
641
  msgid "Login"
642
  msgstr ""
643
 
644
+ #: admin/installer.php:83 class/subscription.php:336 class/subscription.php:356
645
+ #: class/subscription.php:357 class/subscription.php:358
646
+ #: wpuf-functions.php:1288
647
  msgid "Subscription"
648
  msgstr ""
649
 
650
+ #: admin/installer.php:83
651
  msgid "[wpuf_sub_pack]"
652
  msgstr ""
653
 
654
+ #: admin/installer.php:84 templates/dashboard/posts.php:81
655
+ #: templates/dashboard.php:35
656
  msgid "Payment"
657
  msgstr ""
658
 
659
+ #: admin/installer.php:84
660
  msgid "Please select a gateway for payment"
661
  msgstr ""
662
 
663
+ #: admin/installer.php:85
664
  msgid "Thank You"
665
  msgstr ""
666
 
667
+ #: admin/installer.php:85
668
  msgid ""
669
  "<h1>Payment is complete</h1><p>Congratulations, your payment has been "
670
  "completed!</p>"
671
  msgstr ""
672
 
673
+ #: admin/installer.php:86
674
  msgid "Order Received"
675
  msgstr ""
676
 
677
+ #: admin/installer.php:86
678
  msgid ""
679
  "Hi, we have received your order. We will validate the order and will take "
680
  "necessary steps to move forward."
681
  msgstr ""
682
 
683
+ #: admin/installer.php:165
684
  msgid "Registration"
685
  msgstr ""
686
 
687
+ #: admin/installer.php:230
688
  msgid "Sample Form"
689
  msgstr ""
690
 
691
+ #: admin/posting.php:52 class/render-form.php:1419 wpuf.php:347
692
  msgid "Are you sure?"
693
  msgstr ""
694
 
695
+ #: admin/posting.php:58 wpuf.php:353
696
  msgid "Allowed Files"
697
  msgstr ""
698
 
699
+ #: admin/posting.php:61 wpuf.php:356
700
  msgid "Maximum number of files reached!"
701
  msgstr ""
702
 
703
+ #: admin/posting.php:62 wpuf.php:357
704
  msgid "The file you have uploaded exceeds the file size limit. Please try again."
705
  msgstr ""
706
 
707
+ #: admin/posting.php:63 wpuf.php:358
708
  msgid "You have uploaded an incorrect file type. Please try again."
709
  msgstr ""
710
 
732
  msgid "Support"
733
  msgstr ""
734
 
735
+ #: admin/settings-options.php:53
736
  msgid "Fixed Form Elements "
737
  msgstr ""
738
 
739
+ #: admin/settings-options.php:54
740
  msgid "Show fixed form elements sidebar in form editor"
741
  msgstr ""
742
 
743
+ #: admin/settings-options.php:60
744
  msgid "Edit Page"
745
  msgstr ""
746
 
747
+ #: admin/settings-options.php:61
748
  msgid "Select the page where [wpuf_edit] is located"
749
  msgstr ""
750
 
751
+ #: admin/settings-options.php:67
752
  msgid "Default Post Owner"
753
  msgstr ""
754
 
755
+ #: admin/settings-options.php:68
756
  msgid ""
757
  "If guest post is enabled and user details are OFF, the posts are assigned "
758
  "to this user"
759
  msgstr ""
760
 
761
+ #: admin/settings-options.php:75
762
  msgid "Admin area access"
763
  msgstr ""
764
 
765
+ #: admin/settings-options.php:76
766
  msgid "Allow you to block specific user role to WordPress admin area."
767
  msgstr ""
768
 
769
+ #: admin/settings-options.php:80
770
  msgid "Admin Only"
771
  msgstr ""
772
 
773
+ #: admin/settings-options.php:81
774
  msgid "Admins, Editors"
775
  msgstr ""
776
 
777
+ #: admin/settings-options.php:82
778
  msgid "Admins, Editors, Authors"
779
  msgstr ""
780
 
781
+ #: admin/settings-options.php:83
782
  msgid "Admins, Editors, Authors, Contributors"
783
  msgstr ""
784
 
785
+ #: admin/settings-options.php:84
786
  msgid "Default"
787
  msgstr ""
788
 
789
+ #: admin/settings-options.php:89
790
  msgid "Override the post edit link"
791
  msgstr ""
792
 
793
+ #: admin/settings-options.php:90
794
  msgid ""
795
  "Users see the edit link in post if s/he is capable to edit the post/page. "
796
  "Selecting <strong>Yes</strong> will override the default WordPress edit "
797
  "post link in frontend"
798
  msgstr ""
799
 
800
+ #: admin/settings-options.php:100
801
  msgid "Custom Fields in post"
802
  msgstr ""
803
 
804
+ #: admin/settings-options.php:101
805
  msgid "Show custom fields on post content area"
806
  msgstr ""
807
 
808
+ #: admin/settings-options.php:107
809
  msgid "Load Scripts"
810
  msgstr ""
811
 
812
+ #: admin/settings-options.php:108
813
  msgid "Load scripts/styles in all pages"
814
  msgstr ""
815
 
816
+ #: admin/settings-options.php:114
817
  msgid "Insert Photo image size"
818
  msgstr ""
819
 
820
+ #: admin/settings-options.php:115
821
  msgid ""
822
  "Default image size of \"<strong>Insert Photo</strong>\" button in post "
823
  "content area"
824
  msgstr ""
825
 
826
+ #: admin/settings-options.php:122
827
  msgid "Insert Photo image type"
828
  msgstr ""
829
 
830
+ #: admin/settings-options.php:123
831
  msgid ""
832
  "Default image type of \"<strong>Insert Photo</strong>\" button in post "
833
  "content area"
834
  msgstr ""
835
 
836
+ #: admin/settings-options.php:126
837
  msgid "Image only"
838
  msgstr ""
839
 
840
+ #: admin/settings-options.php:127
841
  msgid "Image with link"
842
  msgstr ""
843
 
844
+ #: admin/settings-options.php:133
845
  msgid "Enable Image Caption"
846
  msgstr ""
847
 
848
+ #: admin/settings-options.php:134
849
  msgid "Allow users to update image/video title, caption and description"
850
  msgstr ""
851
 
852
+ #: admin/settings-options.php:140
853
  msgid "Default Post Form"
854
  msgstr ""
855
 
856
+ #: admin/settings-options.php:141
857
  msgid "Fallback form for post editing if no associated form found"
858
  msgstr ""
859
 
860
+ #: admin/settings-options.php:147
861
  msgid "reCAPTCHA Public Key"
862
  msgstr ""
863
 
864
+ #: admin/settings-options.php:151
865
  msgid "reCAPTCHA Private Key"
866
  msgstr ""
867
 
868
+ #: admin/settings-options.php:155
869
  msgid "Google Map API"
870
  msgstr ""
871
 
872
+ #: admin/settings-options.php:156
873
  msgid ""
874
  "<a target=\"_blank\" "
875
  "href=\"https://developers.google.com/maps/documentation/javascript\">API</a>"
876
  " key is needed to render Google Maps"
877
  msgstr ""
878
 
879
+ #: admin/settings-options.php:160
880
  msgid "Custom CSS codes"
881
  msgstr ""
882
 
883
+ #: admin/settings-options.php:161
884
  msgid ""
885
  "If you want to add your custom CSS code, it will be added on page header "
886
  "wrapped with style tag"
887
  msgstr ""
888
 
889
+ #: admin/settings-options.php:168
890
  msgid "Users can edit post?"
891
  msgstr ""
892
 
893
+ #: admin/settings-options.php:169
894
  msgid "Users will be able to edit their own posts"
895
  msgstr ""
896
 
897
+ #: admin/settings-options.php:179
898
  msgid "User can delete post?"
899
  msgstr ""
900
 
901
+ #: admin/settings-options.php:180
902
  msgid "Users will be able to delete their own posts"
903
  msgstr ""
904
 
905
+ #: admin/settings-options.php:190
906
  msgid "Pending Post Edit"
907
  msgstr ""
908
 
909
+ #: admin/settings-options.php:191
910
  msgid "Disable post editing while post in \"pending\" status"
911
  msgstr ""
912
 
913
+ #: admin/settings-options.php:197
914
  msgid "Posts per page"
915
  msgstr ""
916
 
917
+ #: admin/settings-options.php:198
918
  msgid "How many posts will be listed in a page"
919
  msgstr ""
920
 
921
+ #: admin/settings-options.php:204
922
  msgid "Show user bio"
923
  msgstr ""
924
 
925
+ #: admin/settings-options.php:205
926
  msgid "Users biographical info will be shown"
927
  msgstr ""
928
 
929
+ #: admin/settings-options.php:211
930
  msgid "Show post count"
931
  msgstr ""
932
 
933
+ #: admin/settings-options.php:212
934
  msgid "Show how many posts are created by the user"
935
  msgstr ""
936
 
937
+ #: admin/settings-options.php:218
938
  msgid "Show Featured Image"
939
  msgstr ""
940
 
941
+ #: admin/settings-options.php:219
942
  msgid "Show featured image of the post"
943
  msgstr ""
944
 
945
+ #: admin/settings-options.php:224
946
  msgid "Featured Image size"
947
  msgstr ""
948
 
949
+ #: admin/settings-options.php:238
950
  msgid "Auto Login After Registration"
951
  msgstr ""
952
 
953
+ #: admin/settings-options.php:239
954
  msgid "If enabled, users after registration will be logged in to the system"
955
  msgstr ""
956
 
957
+ #: admin/settings-options.php:245
958
  msgid "Login/Registration override"
959
  msgstr ""
960
 
961
+ #: admin/settings-options.php:246
962
  msgid ""
963
  "If enabled, default login and registration forms will be overridden by WPUF "
964
  "with pages below"
965
  msgstr ""
966
 
967
+ #: admin/settings-options.php:252
968
  msgid "Registration Page"
969
  msgstr ""
970
 
971
+ #: admin/settings-options.php:253
972
  msgid ""
973
  "Select the page you want to use as registration page override <em>(should "
974
  "have shortcode)</em>"
975
  msgstr ""
976
 
977
+ #: admin/settings-options.php:259
978
  msgid "Login Page"
979
  msgstr ""
980
 
981
+ #: admin/settings-options.php:260
982
  msgid "Select the page which contains <code>[wpuf-login]</code> shortcode"
983
  msgstr ""
984
 
985
+ #: admin/settings-options.php:268
986
  msgid "Charge for posting"
987
  msgstr ""
988
 
989
+ #: admin/settings-options.php:269
990
  msgid "Charge user for submitting a post"
991
  msgstr ""
992
 
993
+ #: admin/settings-options.php:279
994
  msgid "Force pack purchase"
995
  msgstr ""
996
 
997
+ #: admin/settings-options.php:280
998
  msgid "When active, users must have to buy a pack for posting"
999
  msgstr ""
1000
 
1001
+ #: admin/settings-options.php:284
1002
  msgid "Disable"
1003
  msgstr ""
1004
 
1005
+ #: admin/settings-options.php:285
1006
  msgid "Enable"
1007
  msgstr ""
1008
 
1009
+ #: admin/settings-options.php:290
1010
  msgid "Subscription Pack Page"
1011
  msgstr ""
1012
 
1013
+ #: admin/settings-options.php:291
1014
  msgid "Select the page where <code>[wpuf_sub_pack]</code> located."
1015
  msgstr ""
1016
 
1017
+ #: admin/settings-options.php:297
1018
  msgid "Subscription at registration"
1019
  msgstr ""
1020
 
1021
+ #: admin/settings-options.php:298
1022
  msgid "Registration time redirect to subscription page"
1023
  msgstr ""
1024
 
1025
+ #: admin/settings-options.php:303
1026
  msgid "Currency"
1027
  msgstr ""
1028
 
1029
+ #: admin/settings-options.php:310
1030
+ msgid "Currency Position"
1031
+ msgstr ""
1032
+
1033
+ #: admin/settings-options.php:314
1034
+ msgid "Left"
1035
  msgstr ""
1036
 
1037
+ #: admin/settings-options.php:315
1038
+ msgid "Right"
1039
+ msgstr ""
1040
+
1041
+ #: admin/settings-options.php:316
1042
+ msgid "Left with space"
1043
+ msgstr ""
1044
+
1045
+ #: admin/settings-options.php:317
1046
+ msgid "Right with space"
1047
+ msgstr ""
1048
+
1049
+ #: admin/settings-options.php:322 admin/subscription.php:207
1050
+ #: class/transactions-list-table.php:43
1051
  msgid "Cost"
1052
  msgstr ""
1053
 
1054
+ #: admin/settings-options.php:323
1055
  msgid "Cost per post"
1056
  msgstr ""
1057
 
1058
+ #: admin/settings-options.php:329
1059
  msgid "Enable demo/sandbox mode"
1060
  msgstr ""
1061
 
1062
+ #: admin/settings-options.php:330
1063
  msgid "When sandbox mode is active, all payment gateway will be used in demo mode"
1064
  msgstr ""
1065
 
1066
+ #: admin/settings-options.php:336
1067
  msgid "Payment Page"
1068
  msgstr ""
1069
 
1070
+ #: admin/settings-options.php:337
1071
  msgid "This page will be used to process payment options"
1072
  msgstr ""
1073
 
1074
+ #: admin/settings-options.php:343
1075
  msgid "Payment Success Page"
1076
  msgstr ""
1077
 
1078
+ #: admin/settings-options.php:344 lib/gateway/bank.php:37
1079
  msgid "After payment users will be redirected here"
1080
  msgstr ""
1081
 
1082
+ #: admin/settings-options.php:350
1083
  msgid "Payment Gateways"
1084
  msgstr ""
1085
 
1086
+ #: admin/settings-options.php:351
1087
  msgid "Active payment gateways"
1088
  msgstr ""
1089
 
1090
+ #: admin/settings-options.php:359
1091
  msgid "Need Help?"
1092
  msgstr ""
1093
 
1094
+ #: admin/settings-options.php:393
1095
  msgid ""
1096
  "Select profile/registration forms for user roles. These forms will be used "
1097
  "to populate extra edit profile fields in backend."
1098
  msgstr ""
1099
 
1100
+ #: admin/settings-options.php:404
1101
  msgid " - select - "
1102
  msgstr ""
1103
 
1109
  msgid "User Frontend"
1110
  msgstr ""
1111
 
1112
+ #: admin/settings.php:62
1113
+ msgid "Subscriptions"
1114
+ msgstr ""
1115
+
1116
+ #: admin/settings.php:66 admin/tools.php:375 admin/transactions.php:2
1117
+ msgid "Transactions"
1118
  msgstr ""
1119
 
1120
  #: admin/settings.php:67
1125
  msgid "Tools"
1126
  msgstr ""
1127
 
1128
+ #: admin/settings.php:240
1129
+ msgid "Number of items per page:"
1130
+ msgstr ""
1131
+
1132
  #: admin/subscription.php:52 admin/subscription.php:55
1133
  msgid "Subscription pack updated."
1134
  msgstr ""
1154
  msgstr ""
1155
 
1156
  #: admin/subscription.php:134 admin/subscription.php:459
1157
+ #: class/frontend-account.php:127 class/subscription.php:696
1158
+ #: class/subscription.php:875 class/subscription.php:888
1159
  msgid "Free"
1160
  msgstr ""
1161
 
1162
+ #: admin/subscription.php:170 class/subscription.php:277
1163
  msgid "Pack Name"
1164
  msgstr ""
1165
 
1166
+ #: admin/subscription.php:171
 
1167
  msgid "Amount"
1168
  msgstr ""
1169
 
1170
+ #: admin/subscription.php:172 includes/free/subscription.php:8
 
1171
  msgid "Recurring"
1172
  msgstr ""
1173
 
1174
+ #: admin/subscription.php:173
1175
  msgid "Duration"
1176
  msgstr ""
1177
 
1178
+ #: admin/subscription.php:196
1179
  msgid "Pack Deleted"
1180
  msgstr ""
1181
 
1182
+ #: admin/subscription.php:206 admin/template.php:599 class/upload.php:166
1183
+ #: wpuf-functions.php:701
1184
  msgid "Description"
1185
  msgstr ""
1186
 
1187
+ #: admin/subscription.php:208
1188
  msgid "Validity"
1189
  msgstr ""
1190
 
1191
+ #: admin/subscription.php:209
1192
  msgid "Post Count"
1193
  msgstr ""
1194
 
1195
+ #: admin/subscription.php:210 includes/free/edit-user.php:94
 
1196
  msgid "Action"
1197
  msgstr ""
1198
 
1199
+ #: admin/subscription.php:230
1200
  msgid "Are you sure to delete this pack?"
1201
  msgstr ""
1202
 
1203
+ #: admin/subscription.php:231 class/render-form.php:1419
1204
+ #: class/transactions-list-table.php:114 class/transactions-list-table.php:175
1205
+ #: class/upload.php:171 includes/free/edit-user.php:101
1206
+ #: templates/dashboard/posts.php:160 templates/dashboard.php:114
1207
  msgid "Delete"
1208
  msgstr ""
1209
 
1210
+ #: admin/subscription.php:242
1211
  msgid "No subscription pack found"
1212
  msgstr ""
1213
 
1214
+ #: admin/subscription.php:289
1215
  msgid "Pack Description"
1216
  msgstr ""
1217
 
1218
+ #: admin/subscription.php:296
1219
  msgid "Billing amount:"
1220
  msgstr ""
1221
 
1222
+ #: admin/subscription.php:297
1223
  msgid "Billing amount each cycle:"
1224
  msgstr ""
1225
 
1228
  msgstr ""
1229
 
1230
  #: admin/subscription.php:328 includes/free/form.php:59
 
1231
  msgid "Enable Post Expiration"
1232
  msgstr ""
1233
 
1234
  #: admin/subscription.php:341 admin/subscription.php:538
1235
+ #: includes/free/form.php:64
1236
  msgid "Post Expiration Time"
1237
  msgstr ""
1238
 
1239
  #: admin/subscription.php:380 includes/free/form.php:110
 
1240
  msgid "Status of post after post expiration time is over "
1241
  msgstr ""
1242
 
1260
  msgid "WPUF Subscription"
1261
  msgstr ""
1262
 
1263
+ #: admin/subscription.php:471 class/subscription.php:707
1264
+ #: templates/dashboard/subscription.php:2
1265
  msgid "Subscription Details"
1266
  msgstr ""
1267
 
1269
  msgid "This user is using recurring subscription pack"
1270
  msgstr ""
1271
 
1272
+ #: admin/subscription.php:480 class/subscription.php:709
1273
+ #: templates/dashboard/subscription.php:4
1274
  msgid "Subcription Name: "
1275
  msgstr ""
1276
 
1278
  msgid "Package billing details: "
1279
  msgstr ""
1280
 
1281
+ #: admin/subscription.php:491 class/subscription.php:722
1282
+ #: templates/dashboard/subscription.php:10
1283
  msgid "Remaining post: "
1284
  msgstr ""
1285
 
1286
+ #: admin/subscription.php:513 class/subscription.php:750
1287
+ #: templates/dashboard/subscription.php:38
1288
  msgid "Expire date:"
1289
  msgstr ""
1290
 
1321
  msgstr ""
1322
 
1323
  #: admin/template-post.php:53 admin/template.php:363
 
1324
  msgid "Word Restriction"
1325
  msgstr ""
1326
 
1327
  #: admin/template-post.php:57 admin/template.php:367
 
1328
  msgid "Numebr of words the author to be restricted in"
1329
  msgstr ""
1330
 
1331
  #: admin/template-post.php:103 admin/template.php:624
 
1332
  msgid "Enter maximum upload size limit in KB"
1333
  msgstr ""
1334
 
1335
  #: admin/template-post.php:115 admin/template.php:636
 
1336
  msgid "Max. file size"
1337
  msgstr ""
1338
 
1339
+ #: admin/template-post.php:164
 
1340
  msgid "Type"
1341
  msgstr ""
1342
 
1502
  msgid "Add a CSS class name for this field"
1503
  msgstr ""
1504
 
1505
+ #: admin/template.php:127 admin/template.php:175
1506
  msgid "Placeholder text"
1507
  msgstr ""
1508
 
1510
  msgid "Text for HTML5 placeholder attribute"
1511
  msgstr ""
1512
 
1513
+ #: admin/template.php:132 admin/template.php:180
1514
  msgid "Default value"
1515
  msgstr ""
1516
 
1518
  msgid "The default value this field will have"
1519
  msgstr ""
1520
 
1521
+ #: admin/template.php:137
1522
  msgid "Size"
1523
  msgstr ""
1524
 
1530
  msgid "Rows"
1531
  msgstr ""
1532
 
1533
+ #: admin/template.php:170
1534
  msgid "Columns"
1535
  msgstr ""
1536
 
1550
  msgid "Show values"
1551
  msgstr ""
1552
 
1553
+ #: admin/template.php:226 admin/template.php:284
 
1554
  msgid "Label"
1555
  msgstr ""
1556
 
1557
+ #: admin/template.php:226 admin/template.php:284
1558
  msgid "Value"
1559
  msgstr ""
1560
 
1561
+ #: admin/template.php:283
1562
  msgid "show values"
1563
  msgstr ""
1564
 
1565
  #: admin/template.php:388 admin/template.php:412 admin/template.php:444
1566
+ #: admin/template.php:476 templates/dashboard/posts.php:84
1567
+ #: templates/dashboard.php:38
1568
  msgid "Options"
1569
  msgstr ""
1570
 
1579
  msgstr ""
1580
 
1581
  #: admin/template.php:534 admin/template.php:594 class/upload.php:164
1582
+ #: templates/dashboard/posts.php:74 templates/dashboard.php:28
1583
+ #: wpuf-functions.php:695
1584
  msgid "Title"
1585
  msgstr ""
1586
 
1596
  msgid "Enter the meta value"
1597
  msgstr ""
1598
 
1599
+ #: admin/template.php:625
1600
  msgid "Number of images can be uploaded"
1601
  msgstr ""
1602
 
1603
+ #: admin/template.php:641
1604
  msgid "Max. files"
1605
  msgstr ""
1606
 
1608
  msgid "Form Export"
1609
  msgstr ""
1610
 
1611
+ #: admin/tools.php:38 admin/tools.php:94 class/transactions-list-table.php:85
1612
  msgid "All"
1613
  msgstr ""
1614
 
1718
  msgid "Delete Coupons"
1719
  msgstr ""
1720
 
 
 
 
 
1721
  #: admin/tools.php:378
1722
  msgid "This tool will delete all the transactions from the transaction table."
1723
  msgstr ""
1726
  msgid "Delete Transactions"
1727
  msgstr ""
1728
 
1729
+ #: admin/transactions.php:12
 
 
 
 
1730
  msgid "Total Income:"
1731
  msgstr ""
1732
 
1733
+ #: admin/transactions.php:15
1734
  msgid "This Month:"
1735
  msgstr ""
1736
 
1737
+ #: class/frontend-account.php:118
1738
+ msgid "<p>You've not subscribed any package yet.</p>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1739
  msgstr ""
1740
 
1741
+ #: class/frontend-account.php:176 class/subscription.php:59
1742
+ msgid "Nonce failure"
1743
  msgstr ""
1744
 
1745
+ #: class/frontend-account.php:190
1746
+ msgid "First Name is a required field."
1747
  msgstr ""
1748
 
1749
+ #: class/frontend-account.php:194
1750
+ msgid "Last Name is a required field."
1751
  msgstr ""
1752
 
1753
+ #: class/frontend-account.php:198
1754
+ msgid "Email is a required field."
1755
  msgstr ""
1756
 
1757
+ #: class/frontend-account.php:209
1758
+ msgid "Please provide a valid email address."
1759
  msgstr ""
1760
 
1761
+ #: class/frontend-account.php:211
1762
+ msgid "This email address is already registered."
1763
  msgstr ""
1764
 
1765
+ #: class/frontend-account.php:217
1766
+ msgid "Please fill out all password fields."
1767
  msgstr ""
1768
 
1769
+ #: class/frontend-account.php:220
1770
+ msgid "Please enter your current password."
1771
  msgstr ""
1772
 
1773
+ #: class/frontend-account.php:223
1774
+ msgid "Please re-enter your password."
1775
  msgstr ""
1776
 
1777
+ #: class/frontend-account.php:226
1778
+ msgid "New passwords do not match."
1779
  msgstr ""
1780
 
1781
+ #: class/frontend-account.php:229 class/frontend-account.php:240
1782
+ msgid "Your current password is incorrect."
 
1783
  msgstr ""
1784
 
1785
+ #: class/frontend-dashboard.php:60 templates/dashboard/posts.php:36
1786
  msgid "Post Deleted"
1787
  msgstr ""
1788
 
1789
+ #: class/frontend-dashboard.php:98
1790
  msgid "Author Info"
1791
  msgstr ""
1792
 
1793
+ #: class/frontend-dashboard.php:102 includes/free/edit-user.php:98
 
1794
  msgid "%s"
1795
  msgstr ""
1796
 
1797
+ #: class/frontend-dashboard.php:134 templates/dashboard/posts.php:30
1798
  msgid "You are not the post author. Cheeting huh!"
1799
  msgstr ""
1800
 
1835
  "Click 'Cancel' to stay at this page."
1836
  msgstr ""
1837
 
1838
+ #: class/frontend-form-post.php:552
1839
  msgid "Something went wrong"
1840
  msgstr ""
1841
 
1867
  msgid "Change Pack"
1868
  msgstr ""
1869
 
1870
+ #: class/payment.php:154
1871
  msgid "Selected Pack "
1872
  msgstr ""
1873
 
1874
+ #: class/payment.php:155
1875
  msgid "Pack Price "
1876
  msgstr ""
1877
 
1878
+ #: class/payment.php:167
1879
  msgid "Apply Coupon"
1880
  msgstr ""
1881
 
1882
+ #: class/payment.php:168 class/subscription.php:820
1883
+ #: templates/dashboard/subscription.php:59
1884
  msgid "Cancel"
1885
  msgstr ""
1886
 
1887
+ #: class/payment.php:171
1888
  msgid "Have a discount code?"
1889
  msgstr ""
1890
 
1891
+ #: class/payment.php:182
1892
  msgid "Choose Your Payment Method"
1893
  msgstr ""
1894
 
1895
+ #: class/payment.php:219
1896
  msgid "Proceed"
1897
  msgstr ""
1898
 
1899
+ #: class/payment.php:223
1900
  msgid "No Payment gateway found"
1901
  msgstr ""
1902
 
1903
+ #: class/payment.php:402 lib/gateway/bank.php:99
1904
  msgid "[%s] Payment Received"
1905
  msgstr ""
1906
 
1907
+ #: class/payment.php:403
1908
  msgid "New payment received at %s"
1909
  msgstr ""
1910
 
1937
  msgstr ""
1938
 
1939
  #: class/render-form.php:1143 class/render-form.php:1148
1940
+ #: includes/free/edit-profile.php:198 templates/dashboard/edit-profile.php:36
1941
  msgid "Strength indicator"
1942
  msgstr ""
1943
 
1969
  msgid "Select Image"
1970
  msgstr ""
1971
 
1972
+ #: class/subscription.php:359
 
 
 
 
1973
  msgid "Add Subscription"
1974
  msgstr ""
1975
 
1976
+ #: class/subscription.php:360
1977
  msgid "Add New Subscription"
1978
  msgstr ""
1979
 
1980
+ #: class/subscription.php:362
1981
  msgid "Edit Subscription"
1982
  msgstr ""
1983
 
1984
+ #: class/subscription.php:363
1985
  msgid "New Subscription"
1986
  msgstr ""
1987
 
1988
+ #: class/subscription.php:364 class/subscription.php:365
1989
  msgid "View Subscription"
1990
  msgstr ""
1991
 
1992
+ #: class/subscription.php:366
1993
  msgid "Search Subscription"
1994
  msgstr ""
1995
 
1996
+ #: class/subscription.php:367
1997
  msgid "No Subscription Found"
1998
  msgstr ""
1999
 
2000
+ #: class/subscription.php:368
2001
  msgid "No Subscription Found in Trash"
2002
  msgstr ""
2003
 
2004
+ #: class/subscription.php:369
2005
  msgid "Parent Subscription"
2006
  msgstr ""
2007
 
2008
+ #: class/subscription.php:398
2009
  msgid "Billing Details"
2010
  msgstr ""
2011
 
2012
+ #: class/subscription.php:711 templates/dashboard/subscription.php:6
2013
  msgid "Package & billing details: "
2014
  msgstr ""
2015
 
2016
+ #: class/subscription.php:735 templates/dashboard/subscription.php:23
2017
  msgid "Unlimited"
2018
  msgstr ""
2019
 
2020
+ #: class/subscription.php:788
2021
  msgid "Please enable force pack and charge posting from admin panel"
2022
  msgstr ""
2023
 
2024
+ #: class/subscription.php:798
2025
  msgid "Payment is complete"
2026
  msgstr ""
2027
 
2028
+ #: class/subscription.php:798
2029
  msgid "Congratulations, your payment has been completed!"
2030
  msgstr ""
2031
 
2032
+ #: class/subscription.php:813
2033
  msgid "<p><i>You have a subscription pack activated. </i></p>"
2034
  msgstr ""
2035
 
2036
+ #: class/subscription.php:815
2037
  msgid "<p><i>To cancel the pack, press the following cancel button</i></p>"
2038
  msgstr ""
2039
 
2040
+ #: class/subscription.php:856
2041
  msgid "Every"
2042
  msgstr ""
2043
 
2044
+ #: class/subscription.php:860
2045
  msgid "One time payment"
2046
  msgstr ""
2047
 
2048
+ #: class/subscription.php:872
2049
  msgid "Sign Up"
2050
  msgstr ""
2051
 
2052
+ #: class/subscription.php:877
2053
  msgid "Buy Now"
2054
  msgstr ""
2055
 
2056
+ #: class/subscription.php:933
2057
  msgid "This will cost you <strong>%s</strong> to add a new post. "
2058
  msgstr ""
2059
 
2060
+ #: class/subscription.php:952
2061
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
2062
  msgstr ""
2063
 
2064
+ #: class/transactions-list-table.php:13
2065
+ msgid "transaction"
2066
+ msgstr ""
2067
+
2068
+ #: class/transactions-list-table.php:14
2069
+ msgid "transactions"
2070
+ msgstr ""
2071
+
2072
+ #: class/transactions-list-table.php:40
2073
+ msgid "ID"
2074
+ msgstr ""
2075
+
2076
+ #: class/transactions-list-table.php:41 templates/dashboard/posts.php:75
2077
+ #: templates/dashboard.php:29
2078
+ msgid "Status"
2079
+ msgstr ""
2080
+
2081
+ #: class/transactions-list-table.php:42
2082
+ msgid "User"
2083
+ msgstr ""
2084
+
2085
+ #: class/transactions-list-table.php:44
2086
+ msgid "Post ID"
2087
+ msgstr ""
2088
+
2089
+ #: class/transactions-list-table.php:45
2090
+ msgid "Pack ID"
2091
+ msgstr ""
2092
+
2093
+ #: class/transactions-list-table.php:46
2094
+ msgid "Gateway"
2095
+ msgstr ""
2096
+
2097
+ #: class/transactions-list-table.php:47
2098
+ msgid "Payer"
2099
+ msgstr ""
2100
+
2101
+ #: class/transactions-list-table.php:49
2102
+ msgid "Trans ID"
2103
+ msgstr ""
2104
+
2105
+ #: class/transactions-list-table.php:50 includes/free/form.php:12
2106
+ msgid "Date"
2107
+ msgstr ""
2108
+
2109
+ #: class/transactions-list-table.php:86 wpuf-functions.php:68
2110
+ msgid "Pending"
2111
+ msgstr ""
2112
+
2113
+ #: class/transactions-list-table.php:109
2114
+ msgid "Accept"
2115
+ msgstr ""
2116
+
2117
+ #: class/transactions-list-table.php:110 class/transactions-list-table.php:171
2118
+ msgid "Reject"
2119
+ msgstr ""
2120
+
2121
+ #: class/transactions-list-table.php:159
2122
+ msgid "No transactions found."
2123
+ msgstr ""
2124
+
2125
  #: class/upload.php:165 wpuf-functions.php:698
2126
  msgid "Caption"
2127
  msgstr ""
2128
 
2129
+ #: includes/free/edit-profile.php:27 includes/free/edit-user.php:37
2130
+ #: templates/unauthorized.php:3
2131
+ msgid "This page is restricted. Please %s to view this page."
2132
+ msgstr ""
2133
+
2134
  #: includes/free/edit-profile.php:66
2135
  msgid "<strong>Success</strong>: Profile updated"
2136
  msgstr ""
2161
  "be shown publicly."
2162
  msgstr ""
2163
 
2164
+ #: includes/free/edit-profile.php:183 templates/dashboard/edit-profile.php:33
2165
  msgid "New Password"
2166
  msgstr ""
2167
 
2168
  #: includes/free/edit-profile.php:189
 
2169
  msgid "Confirm Password"
2170
  msgstr ""
2171
 
2178
  msgstr ""
2179
 
2180
  #: includes/free/edit-profile.php:222 includes/free/form.php:344
2181
+ #: templates/dashboard/edit-profile.php:63
2182
  msgid "Update Profile"
2183
  msgstr ""
2184
 
2185
  #: includes/free/edit-profile.php:241
 
2186
  msgid "WPUF Post Lock"
2187
  msgstr ""
2188
 
2189
  #: includes/free/edit-profile.php:244
 
2190
  msgid "Lock Post:"
2191
  msgstr ""
2192
 
2193
  #: includes/free/edit-profile.php:250
 
2194
  msgid "Lock user from creating new post."
2195
  msgstr ""
2196
 
2197
  #: includes/free/edit-profile.php:255
 
2198
  msgid "Lock Reason:"
2199
  msgstr ""
2200
 
2202
  msgid "Post Count:"
2203
  msgstr ""
2204
 
2205
+ #: includes/free/edit-profile.php:291
2206
  msgid "Validity:"
2207
  msgstr ""
2208
 
2266
  "<a href=\"mailto:%s\">webmaster</a> !"
2267
  msgstr ""
2268
 
2269
+ #: includes/free/form.php:8
2270
  msgid "Image Upload"
2271
  msgstr ""
2272
 
2273
+ #: includes/free/form.php:11
2274
  msgid "Repeat Field"
2275
  msgstr ""
2276
 
2277
+ #: includes/free/form.php:13
2278
  msgid "File Upload"
2279
  msgstr ""
2280
 
2281
+ #: includes/free/form.php:14
2282
  msgid "Google Maps"
2283
  msgstr ""
2284
 
2285
+ #: includes/free/form.php:15
2286
  msgid "Country List"
2287
  msgstr ""
2288
 
2289
+ #: includes/free/form.php:16
2290
  msgid "Numeric Field"
2291
  msgstr ""
2292
 
2293
+ #: includes/free/form.php:17
2294
  msgid "Address Field"
2295
  msgstr ""
2296
 
2297
+ #: includes/free/form.php:18
2298
  msgid "Step Start"
2299
  msgstr ""
2300
 
2301
+ #: includes/free/form.php:30
2302
  msgid "reCaptcha"
2303
  msgstr ""
2304
 
2305
+ #: includes/free/form.php:31
2306
  msgid "Really Simple Captcha"
2307
  msgstr ""
2308
 
2309
+ #: includes/free/form.php:32
2310
  msgid "Action Hook"
2311
  msgstr ""
2312
 
2313
+ #: includes/free/form.php:33
2314
  msgid "Term &amp; Conditions"
2315
  msgstr ""
2316
 
2317
+ #: includes/free/form.php:121
2318
  msgid "Send Email to Author After Exceeding Post Expiration Time"
2319
  msgstr ""
2320
 
2321
  #: includes/free/form.php:146 includes/free/form.php:150
 
2322
  msgid "Enable Multistep"
2323
  msgstr ""
2324
 
2325
+ #: includes/free/form.php:153
2326
  msgid "If checked, form will be displayed in frontend in multiple steps"
2327
  msgstr ""
2328
 
2329
+ #: includes/free/form.php:157
2330
  msgid "Multistep Progressbar Type"
2331
  msgstr ""
2332
 
2333
+ #: includes/free/form.php:167
2334
  msgid "Choose how you want the progressbar"
2335
  msgstr ""
2336
 
2337
+ #: includes/free/form.php:197
2338
  msgid "New post created"
2339
  msgstr ""
2340
 
2341
+ #: includes/free/form.php:202
2342
  msgid "A post has been edited"
2343
  msgstr ""
2344
 
2345
+ #: includes/free/form.php:208
2346
  msgid "New Post Notificatoin"
2347
  msgstr ""
2348
 
2349
  #: includes/free/form.php:216 includes/free/form.php:253
 
2350
  msgid "Enable post notification"
2351
  msgstr ""
2352
 
2353
  #: includes/free/form.php:222 includes/free/form.php:259
 
2354
  msgid "To"
2355
  msgstr ""
2356
 
2357
  #: includes/free/form.php:230 includes/free/form.php:264
 
2358
  msgid "Subject"
2359
  msgstr ""
2360
 
2361
  #: includes/free/form.php:236 includes/free/form.php:269
 
2362
  msgid "Message"
2363
  msgstr ""
2364
 
2365
+ #: includes/free/form.php:244
2366
  msgid "Update Post Notificatoin"
2367
  msgstr ""
2368
 
2369
+ #: includes/free/form.php:276
2370
+ msgid "You may use in to, subject & message:"
2371
  msgstr ""
2372
 
2373
+ #: includes/free/form.php:339
2374
  msgid "Registration successful"
2375
  msgstr ""
2376
 
2377
+ #: includes/free/form.php:340
2378
  msgid "Profile updated successfully"
2379
  msgstr ""
2380
 
2381
+ #: includes/free/form.php:343
 
2382
  msgid "Register"
2383
  msgstr ""
2384
 
2385
+ #: includes/free/form.php:352
2386
  msgid "Enable Email Verfication"
2387
  msgstr ""
2388
 
2389
+ #: includes/free/form.php:360
2390
  msgid "New User Role"
2391
  msgstr ""
2392
 
2393
+ #: includes/free/form.php:396
2394
  msgid "Registration success message"
2395
  msgstr ""
2396
 
2397
+ #: includes/free/form.php:403
2398
  msgid "Update profile message"
2399
  msgstr ""
2400
 
2401
+ #: includes/free/form.php:432
2402
  msgid "Submit Button text"
2403
  msgstr ""
2404
 
2405
+ #: includes/free/form.php:439
2406
  msgid "Update Button text"
2407
  msgstr ""
2408
 
2409
+ #: includes/free/form.php:472
2410
  msgid "Conditional Logic"
2411
  msgstr ""
2412
 
2413
  #: includes/free/loader.php:66 includes/free/loader.php:95
 
2414
  msgid "Coupons"
2415
  msgstr ""
2416
 
2449
  msgstr ""
2450
 
2451
  #: includes/free/post-form-templates/woocommerce.php:12
 
2452
  msgid "WooCommerce Product"
2453
  msgstr ""
2454
 
2456
  msgid "Create a simple product form for WooCommerce."
2457
  msgstr ""
2458
 
2459
+ #: includes/free/subscription.php:12
2460
  msgid "Enable Recurring Payment"
2461
  msgstr ""
2462
 
2463
+ #: lib/class.settings-api.php:364
2464
+ msgid "Choose File"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2465
  msgstr ""
2466
 
2467
+ #: lib/gateway/bank.php:29
2468
+ msgid "Bank Instruction"
2469
  msgstr ""
2470
 
2471
+ #: lib/gateway/bank.php:36
2472
+ msgid "Bank Payment Success Page"
2473
  msgstr ""
2474
 
2475
+ #: lib/gateway/bank.php:77
2476
+ msgid "[%s] New Bank Order Received"
2477
  msgstr ""
2478
 
2479
+ #: lib/gateway/bank.php:78
2480
+ msgid "New bank order received at %s, please check it out: %s"
 
 
2481
  msgstr ""
2482
 
2483
+ #: lib/gateway/bank.php:100
2484
+ msgid "Hello %s,"
2485
  msgstr ""
2486
 
2487
+ #: lib/gateway/bank.php:101
2488
+ msgid "We have received your bank payment."
2489
  msgstr ""
2490
 
2491
+ #: lib/gateway/bank.php:102
2492
+ msgid "Thanks for being with us."
2493
  msgstr ""
2494
 
2495
+ #: lib/gateway/paypal.php:60
2496
+ msgid "Subscription %s at %s"
2497
  msgstr ""
2498
 
2499
+ #: lib/gateway/paypal.php:91
2500
+ msgid "PayPal Email"
2501
  msgstr ""
2502
 
2503
+ #: lib/gateway/paypal.php:96
2504
+ msgid "PayPal Instruction"
2505
  msgstr ""
2506
 
2507
+ #: lib/gateway/paypal.php:103
2508
+ msgid "PayPal API username"
2509
  msgstr ""
2510
 
2511
+ #: lib/gateway/paypal.php:107
2512
+ msgid "PayPal API password"
2513
  msgstr ""
2514
 
2515
+ #: lib/gateway/paypal.php:111
2516
+ msgid "PayPal API signature"
2517
  msgstr ""
2518
 
2519
+ #: templates/dashboard/dashboard.php:5
2520
+ msgid "Hello %1$s, (not %1$s? <a href=\"%2$s\">Sign out</a>)"
2521
  msgstr ""
2522
 
2523
+ #: templates/dashboard/dashboard.php:13
2524
+ msgid ""
2525
+ "From your account dashboard you can view your dashboard, manage your <a "
2526
+ "href=\"%1$s\">posts</a>, <a href=\"%2$s\">subscription</a> and <a "
2527
+ "href=\"%3$s\">edit your password and profile</a>."
2528
  msgstr ""
2529
 
2530
+ #: templates/dashboard/edit-profile.php:5
2531
+ msgid "Profile updated successfully!"
2532
  msgstr ""
2533
 
2534
+ #: templates/dashboard/edit-profile.php:6
2535
+ msgid "Something went wrong!"
 
2536
  msgstr ""
2537
 
2538
+ #: templates/dashboard/edit-profile.php:9
2539
+ msgid "First Name "
2540
  msgstr ""
2541
 
2542
+ #: templates/dashboard/edit-profile.php:13
2543
+ msgid "Last Name "
2544
  msgstr ""
2545
 
2546
+ #: templates/dashboard/edit-profile.php:19
2547
+ msgid "Email Address "
2548
  msgstr ""
2549
 
2550
+ #: templates/dashboard/edit-profile.php:24
2551
+ msgid "Password Change"
2552
  msgstr ""
2553
 
2554
+ #: templates/dashboard/edit-profile.php:26
2555
+ msgid "If you want to unchanged the password then just leave this section."
2556
  msgstr ""
2557
 
2558
+ #: templates/dashboard/edit-profile.php:29
2559
+ msgid "Current Password"
2560
  msgstr ""
2561
 
2562
+ #: templates/dashboard/edit-profile.php:54
2563
+ msgid "Confirm New Password"
2564
  msgstr ""
2565
 
2566
+ #: templates/dashboard/posts.php:54 templates/dashboard.php:8
2567
+ msgid "You have created <span>%d</span> %s"
2568
  msgstr ""
2569
 
2570
+ #: templates/dashboard/posts.php:104 templates/dashboard.php:58
2571
+ msgid "No Image"
2572
  msgstr ""
2573
 
2574
+ #: templates/dashboard/posts.php:118 templates/dashboard.php:72
2575
+ msgid "Permalink to %s"
2576
  msgstr ""
2577
 
2578
+ #: templates/dashboard/posts.php:134 templates/dashboard.php:88
2579
+ msgid "Pay Now"
2580
  msgstr ""
2581
 
2582
+ #: templates/dashboard/posts.php:178 templates/dashboard.php:132
2583
+ msgid "&laquo;"
2584
  msgstr ""
2585
 
2586
+ #: templates/dashboard/posts.php:179 templates/dashboard.php:133
2587
+ msgid "&raquo;"
2588
  msgstr ""
2589
 
2590
+ #: templates/dashboard/posts.php:193 templates/dashboard.php:148
2591
+ msgid "No %s found"
2592
  msgstr ""
2593
 
2594
+ #: templates/dashboard/subscription.php:54
2595
+ msgid "<p><i>To cancel the pack, press the following cancel button.</i></p>"
2596
  msgstr ""
2597
 
2598
+ #: templates/dashboard.php:4
2599
+ msgid "%s's Dashboard"
2600
  msgstr ""
2601
 
2602
+ #: templates/logged-in.php:8
2603
+ msgid "Hello %s"
2604
  msgstr ""
2605
 
2606
+ #: templates/logged-in.php:11
2607
+ msgid "You are currently logged in! %s?"
2608
  msgstr ""
2609
 
2610
+ #: templates/login-form.php:33
2611
+ msgid "Remember Me"
2612
  msgstr ""
2613
 
2614
+ #: templates/login-form.php:37
2615
+ msgid "Log In"
2616
  msgstr ""
2617
 
2618
+ #: templates/lost-pass-form.php:14
2619
+ msgid "Username or E-mail:"
2620
  msgstr ""
2621
 
2622
+ #: templates/lost-pass-form.php:21
2623
+ msgid "Get New Password"
2624
  msgstr ""
2625
 
2626
+ #: templates/reset-pass-form.php:14
2627
+ msgid "New password"
2628
  msgstr ""
2629
 
2630
+ #: templates/reset-pass-form.php:19
2631
+ msgid "Confirm new password"
 
 
2632
  msgstr ""
2633
 
2634
+ #: templates/reset-pass-form.php:26
2635
+ msgid "Reset Password"
2636
  msgstr ""
2637
 
2638
+ #: wpuf-functions.php:26
2639
+ msgid "Live"
2640
  msgstr ""
2641
 
2642
+ #: wpuf-functions.php:30
2643
+ msgid "Offline"
2644
  msgstr ""
2645
 
2646
+ #: wpuf-functions.php:34
2647
+ msgid "Awaiting Approval"
2648
  msgstr ""
2649
 
2650
+ #: wpuf-functions.php:37 wpuf-functions.php:71
2651
+ msgid "Scheduled"
2652
  msgstr ""
2653
 
2654
+ #: wpuf-functions.php:41
2655
+ msgid "Private"
2656
  msgstr ""
2657
 
2658
+ #: wpuf-functions.php:60
2659
+ msgid "Published"
2660
  msgstr ""
2661
 
2662
+ #: wpuf-functions.php:64
2663
+ msgid "Draft"
2664
  msgstr ""
2665
 
2666
+ #: wpuf-functions.php:204
2667
+ msgid "-- select --"
2668
  msgstr ""
2669
 
2670
+ #: wpuf-functions.php:395
2671
+ msgid "Images"
2672
  msgstr ""
2673
 
2674
+ #: wpuf-functions.php:396
2675
+ msgid "Audio"
2676
  msgstr ""
2677
 
2678
+ #: wpuf-functions.php:397
2679
+ msgid "Videos"
2680
  msgstr ""
2681
 
2682
+ #: wpuf-functions.php:398
2683
+ msgid "PDF"
2684
  msgstr ""
2685
 
2686
+ #: wpuf-functions.php:399
2687
+ msgid "Office Documents"
2688
  msgstr ""
2689
 
2690
+ #: wpuf-functions.php:400
2691
+ msgid "Zip Archives"
2692
  msgstr ""
2693
 
2694
+ #: wpuf-functions.php:401
2695
+ msgid "Executable Files"
2696
  msgstr ""
2697
 
2698
+ #: wpuf-functions.php:402
2699
+ msgid "CSV"
2700
  msgstr ""
2701
 
2702
+ #: wpuf-functions.php:1287
2703
+ msgid "Posts"
2704
  msgstr ""
2705
 
2706
+ #: wpuf-functions.php:1289
2707
+ msgid "Edit Profile"
2708
  msgstr ""
2709
 
2710
+ #: wpuf-functions.php:1393
2711
+ msgid "United Arab Emirates Dirham"
2712
  msgstr ""
2713
 
2714
+ #: wpuf-functions.php:1394
2715
+ msgid "Australian Dollars"
2716
  msgstr ""
2717
 
2718
+ #: wpuf-functions.php:1395
2719
+ msgid "Argentine Peso"
2720
  msgstr ""
2721
 
2722
+ #: wpuf-functions.php:1396
2723
+ msgid "Bangladeshi Taka"
2724
  msgstr ""
2725
 
2726
+ #: wpuf-functions.php:1397
2727
+ msgid "Brazilian Real"
2728
  msgstr ""
2729
 
2730
+ #: wpuf-functions.php:1398
2731
+ msgid "Bulgarian Lev"
2732
  msgstr ""
2733
 
2734
+ #: wpuf-functions.php:1399
2735
+ msgid "Canadian Dollars"
2736
  msgstr ""
2737
 
2738
+ #: wpuf-functions.php:1400
2739
+ msgid "Chilean Peso"
2740
  msgstr ""
2741
 
2742
+ #: wpuf-functions.php:1401
2743
+ msgid "Chinese Yuan"
2744
  msgstr ""
2745
 
2746
+ #: wpuf-functions.php:1402
2747
+ msgid "Colombian Peso"
2748
  msgstr ""
2749
 
2750
+ #: wpuf-functions.php:1403
2751
+ msgid "Czech Koruna"
2752
  msgstr ""
2753
 
2754
+ #: wpuf-functions.php:1404
2755
+ msgid "Danish Krone"
2756
  msgstr ""
2757
 
2758
+ #: wpuf-functions.php:1405
2759
+ msgid "Dominican Peso"
2760
  msgstr ""
2761
 
2762
+ #: wpuf-functions.php:1406
2763
+ msgid "Algerian Dinar"
2764
  msgstr ""
2765
 
2766
+ #: wpuf-functions.php:1407
2767
+ msgid "Euros"
2768
  msgstr ""
2769
 
2770
+ #: wpuf-functions.php:1408
2771
+ msgid "Hong Kong Dollar"
2772
  msgstr ""
2773
 
2774
+ #: wpuf-functions.php:1409
2775
+ msgid "Croatia kuna"
2776
  msgstr ""
2777
 
2778
+ #: wpuf-functions.php:1410
2779
+ msgid "Hungarian Forint"
2780
  msgstr ""
2781
 
2782
+ #: wpuf-functions.php:1411
2783
+ msgid "Icelandic krona"
2784
  msgstr ""
2785
 
2786
+ #: wpuf-functions.php:1412
2787
+ msgid "Indonesia Rupiah"
2788
  msgstr ""
2789
 
2790
+ #: wpuf-functions.php:1413
2791
+ msgid "Indian Rupee"
2792
  msgstr ""
2793
 
2794
+ #: wpuf-functions.php:1414
2795
+ msgid "Nepali Rupee"
2796
  msgstr ""
2797
 
2798
+ #: wpuf-functions.php:1415
2799
+ msgid "Israeli Shekel"
2800
  msgstr ""
2801
 
2802
+ #: wpuf-functions.php:1416
2803
+ msgid "Japanese Yen"
2804
  msgstr ""
2805
 
2806
+ #: wpuf-functions.php:1417
2807
+ msgid "Lao Kip"
2808
  msgstr ""
2809
 
2810
+ #: wpuf-functions.php:1418
2811
+ msgid "South Korean Won"
2812
  msgstr ""
2813
 
2814
+ #: wpuf-functions.php:1419
2815
+ msgid "Malaysian Ringgits"
2816
  msgstr ""
2817
 
2818
+ #: wpuf-functions.php:1420
2819
+ msgid "Mexican Peso"
2820
  msgstr ""
2821
 
2822
+ #: wpuf-functions.php:1421
2823
+ msgid "Nigerian Naira"
2824
  msgstr ""
2825
 
2826
+ #: wpuf-functions.php:1422
2827
+ msgid "Norwegian Krone"
2828
  msgstr ""
2829
 
2830
+ #: wpuf-functions.php:1423
2831
+ msgid "New Zealand Dollar"
2832
  msgstr ""
2833
 
2834
+ #: wpuf-functions.php:1424
2835
+ msgid "Omani Rial"
2836
  msgstr ""
2837
 
2838
+ #: wpuf-functions.php:1425
2839
+ msgid "Iranian Rial"
2840
  msgstr ""
2841
 
2842
+ #: wpuf-functions.php:1426
2843
+ msgid "Pakistani Rupee"
2844
  msgstr ""
2845
 
2846
+ #: wpuf-functions.php:1427
2847
+ msgid "Paraguayan Guaraní"
2848
  msgstr ""
2849
 
2850
+ #: wpuf-functions.php:1428
2851
+ msgid "Philippine Pesos"
2852
  msgstr ""
2853
 
2854
+ #: wpuf-functions.php:1429
2855
+ msgid "Polish Zloty"
2856
  msgstr ""
2857
 
2858
+ #: wpuf-functions.php:1430
2859
+ msgid "Pounds Sterling"
2860
  msgstr ""
2861
 
2862
+ #: wpuf-functions.php:1431
2863
+ msgid "Romanian Leu"
2864
  msgstr ""
2865
 
2866
+ #: wpuf-functions.php:1432
2867
+ msgid "Russian Ruble"
2868
  msgstr ""
2869
 
2870
+ #: wpuf-functions.php:1433
2871
+ msgid "Saudi Riyal"
2872
  msgstr ""
2873
 
2874
+ #: wpuf-functions.php:1434
2875
+ msgid "Singapore Dollar"
2876
  msgstr ""
2877
 
2878
+ #: wpuf-functions.php:1435
2879
+ msgid "South African rand"
2880
  msgstr ""
2881
 
2882
+ #: wpuf-functions.php:1436
2883
+ msgid "Swedish Krona"
2884
  msgstr ""
2885
 
2886
+ #: wpuf-functions.php:1437
2887
+ msgid "Swiss Franc"
 
 
 
2888
  msgstr ""
2889
 
2890
+ #: wpuf-functions.php:1438
2891
+ msgid "Taiwan New Dollars"
2892
  msgstr ""
2893
 
2894
+ #: wpuf-functions.php:1439
2895
+ msgid "Thai Baht"
 
 
 
2896
  msgstr ""
2897
 
2898
+ #: wpuf-functions.php:1440
2899
+ msgid "Turkish Lira"
2900
  msgstr ""
2901
 
2902
+ #: wpuf-functions.php:1441
2903
+ msgid "US Dollar"
2904
  msgstr ""
2905
 
2906
+ #: wpuf-functions.php:1442
2907
+ msgid "Vietnamese Dong"
 
 
2908
  msgstr ""
2909
 
2910
+ #: wpuf-functions.php:1443
2911
+ msgid "Egyptian Pound"
 
 
 
2912
  msgstr ""
2913
 
2914
+ #: wpuf.php:109
2915
+ msgid "Your Post Has Been Expired"
2916
  msgstr ""
2917
 
2918
+ #: wpuf.php:277
2919
+ msgid "is required"
2920
  msgstr ""
2921
 
2922
+ #: wpuf.php:278
2923
+ msgid "does not match"
2924
  msgstr ""
2925
 
2926
+ #: wpuf.php:279
2927
+ msgid "is not valid"
2928
  msgstr ""
2929
 
2930
+ #: wpuf.php:341
2931
+ msgid "Please fix the errors to proceed"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2932
  msgstr ""
2933
 
2934
  #: wpuf.php:343
 
 
 
 
2935
  msgid "Word limit reached"
2936
  msgstr ""
2937
 
lib/gateway/paypal.php CHANGED
@@ -132,10 +132,11 @@ class WPUF_Paypal {
132
  $return_url = add_query_arg( 'action', 'wpuf_paypal_success', get_permalink( wpuf_get_option( 'subscription_page', 'wpuf_payment' ) ) );
133
  }
134
 
135
- $billing_amount = empty( $data['price'] ) ? 0 : number_format( $data['price'], 2 );
136
 
137
  if ( isset( $_POST['coupon_id'] ) && !empty( $_POST['coupon_id'] ) ) {
138
  $billing_amount = WPUF_Coupons::init()->discount( $billing_amount, $_POST['coupon_id'], $data['item_number'] );
 
139
  $coupon_id = $_POST['coupon_id'];
140
  } else {
141
  $coupon_id = '';
@@ -242,6 +243,7 @@ class WPUF_Paypal {
242
  * @since 0.8
243
  */
244
  function paypal_success() {
 
245
  $postdata = $_POST;
246
 
247
  // when subscription expire
132
  $return_url = add_query_arg( 'action', 'wpuf_paypal_success', get_permalink( wpuf_get_option( 'subscription_page', 'wpuf_payment' ) ) );
133
  }
134
 
135
+ $billing_amount = empty( $data['price'] ) ? 0 : wpuf_format_price( $data['price'] );
136
 
137
  if ( isset( $_POST['coupon_id'] ) && !empty( $_POST['coupon_id'] ) ) {
138
  $billing_amount = WPUF_Coupons::init()->discount( $billing_amount, $_POST['coupon_id'], $data['item_number'] );
139
+
140
  $coupon_id = $_POST['coupon_id'];
141
  } else {
142
  $coupon_id = '';
243
  * @since 0.8
244
  */
245
  function paypal_success() {
246
+
247
  $postdata = $_POST;
248
 
249
  // when subscription expire
log.txt ADDED
File without changes
readme.txt CHANGED
@@ -161,6 +161,19 @@ redirected to the edit page with that post id. Then you'll see the edit post for
161
 
162
  == Changelog ==
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  = v2.4.1 (12 January, 2017) =
165
 
166
  * [new] Added a function `wpuf_get_countries()`
161
 
162
  == Changelog ==
163
 
164
+ = v2.4.2 (05 February, 2017) =
165
+
166
+ * [new] Shortcodes supported on post notification's every field
167
+ * [fix] Conditional logic on address field
168
+ * [fix] Pricing format improvements
169
+ * [new] Currency position settings
170
+ * [fix] File upload warning
171
+ * [new] Re-design Transactions List Table
172
+ * [new] Separated Free & Pro plugin
173
+ * [fix] Draft post empty content issue
174
+ * [new] My Account Dashboard `[wpuf_account]`
175
+
176
+
177
  = v2.4.1 (12 January, 2017) =
178
 
179
  * [new] Added a function `wpuf_get_countries()`
secret.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ {
2
+ "host": "localhost",
3
+ "username": "sohelamin",
4
+ "path": "",
5
+ "updateFiles": true
6
+ }
templates/account.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="wpuf-dashboard-container">
2
+ <nav class="wpuf-dashboard-navigation">
3
+ <ul>
4
+ <?php
5
+ foreach ( $sections as $section ) {
6
+ echo sprintf(
7
+ '<li><a href="%s">%s</a></li>',
8
+ add_query_arg( array( 'section' => $section['slug'] ), get_permalink() ),
9
+ $section['label']
10
+ );
11
+ }
12
+ ?>
13
+ </ul>
14
+ </nav>
15
+
16
+ <div class="wpuf-dashboard-content <?php echo ( ! empty( $current_section ) ) ? $current_section['slug'] : ''; ?>">
17
+ <?php
18
+ if ( ! empty( $current_section ) ) {
19
+ do_action( "wpuf_account_content_{$current_section['slug']}", $sections, $current_section );
20
+ }
21
+ ?>
22
+ </div>
23
+ </div>
templates/dashboard.php CHANGED
@@ -1,143 +1,146 @@
1
- <h2 class="page-head">
2
- <span class="colour"><?php printf( __( "%s's Dashboard", 'wpuf' ), $userdata->user_login ); ?></span>
3
- </h2>
4
 
5
- <?php if ( wpuf_get_option( 'show_post_count', 'wpuf_dashboard', 'on' ) == 'on' ) { ?>
6
- <div class="post_count"><?php printf( __( 'You have created <span>%d</span> %s', 'wpuf' ), $dashboard_query->found_posts, $post_type_obj->label ); ?></div>
7
- <?php } ?>
8
 
9
- <?php do_action( 'wpuf_dashboard_top', $userdata->ID, $post_type_obj ) ?>
 
 
10
 
11
- <?php if ( $dashboard_query->have_posts() ) { ?>
12
 
13
- <?php
14
- $featured_img = wpuf_get_option( 'show_ft_image', 'wpuf_dashboard' );
15
- $featured_img_size = wpuf_get_option( 'ft_img_size', 'wpuf_dashboard' );
16
- $charging_enabled = wpuf_get_option( 'charge_posting', 'wpuf_payment' );
17
- ?>
18
- <table class="wpuf-table <?php echo $post_type; ?>" cellpadding="0" cellspacing="0">
19
- <thead>
20
- <tr>
21
- <?php
22
- if ( 'on' == $featured_img ) {
23
- echo '<th>' . __( 'Featured Image', 'wpuf' ) . '</th>';
24
- }
25
- ?>
26
- <th><?php _e( 'Title', 'wpuf' ); ?></th>
27
- <th><?php _e( 'Status', 'wpuf' ); ?></th>
 
 
28
 
29
- <?php do_action( 'wpuf_dashboard_head_col', $args ) ?>
30
 
 
 
 
 
 
 
 
 
 
31
  <?php
32
- if ( 'yes' == $charging_enabled ) {
33
- echo '<th>' . __( 'Payment', 'wpuf' ) . '</th>';
34
- }
35
- ?>
36
- <th><?php _e( 'Options', 'wpuf' ); ?></th>
37
- </tr>
38
- </thead>
39
- <tbody>
40
- <?php
41
- global $post;
 
42
 
43
- while ( $dashboard_query->have_posts() ) {
44
- $dashboard_query->the_post();
45
- $show_link = !in_array( $post->post_status, array('draft', 'future', 'pending') );
46
- ?>
47
- <tr>
48
- <?php if ( 'on' == $featured_img ) { ?>
 
 
 
 
49
  <td>
50
- <?php
51
- echo $show_link ? '<a href="' . get_permalink( $post->ID ) . '">' : '';
52
 
53
- if ( has_post_thumbnail() ) {
54
- the_post_thumbnail( $featured_img_size );
55
- } else {
56
- printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', apply_filters( 'wpuf_no_image', plugins_url( '/assets/images/no-image.png', dirname( __FILE__ ) ) ), __( 'No Image', 'wpuf' ) );
57
- }
58
 
59
- echo $show_link ? '</a>' : '';
60
- ?>
61
- </td>
62
- <?php } ?>
63
- <td>
64
- <?php if ( !$show_link ) { ?>
65
 
66
- <?php the_title(); ?>
67
 
68
- <?php } else { ?>
 
 
 
 
69
 
70
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpuf' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
71
 
 
 
 
 
 
 
 
 
 
72
  <?php } ?>
73
- </td>
74
- <td>
75
- <?php wpuf_show_post_status( $post->post_status ) ?>
76
- </td>
77
 
78
- <?php do_action( 'wpuf_dashboard_row_col', $args, $post ) ?>
79
-
80
- <?php
81
- if ( $charging_enabled == 'yes' ) {
82
- $order_id = get_post_meta( $post->ID, '_wpuf_order_id', true );
83
- ?>
84
  <td>
85
- <?php if ( $post->post_status == 'pending' && $order_id ) { ?>
86
- <a href="<?php echo trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ); ?>?action=wpuf_pay&type=post&post_id=<?php echo $post->ID; ?>"><?php _e( 'Pay Now', 'wpuf' ); ?></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  <?php } ?>
88
  </td>
89
- <?php } ?>
 
 
90
 
91
- <td>
92
- <?php
93
- if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
94
- $disable_pending_edit = wpuf_get_option( 'disable_pending_edit', 'wpuf_dashboard', 'on' );
95
- $edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_general' );
96
- $url = add_query_arg( array('pid' => $post->ID), get_permalink( $edit_page ) );
97
-
98
- if ( $post->post_status == 'pending' && $disable_pending_edit == 'on' ) {
99
- // don't show the edit link
100
- } else {
101
- ?>
102
- <a href="<?php echo wp_nonce_url( $url, 'wpuf_edit' ); ?>"><?php _e( 'Edit', 'wpuf' ); ?></a>
103
- <?php
104
- }
105
- }
106
- ?>
107
 
108
- <?php
109
- if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
110
- $del_url = add_query_arg( array('action' => 'del', 'pid' => $post->ID) );
111
- ?>
112
- <a href="<?php echo wp_nonce_url( $del_url, 'wpuf_del' ) ?>" onclick="return confirm('Are you sure to delete?');"><span style="color: red;"><?php _e( 'Delete', 'wpuf' ); ?></span></a>
113
- <?php } ?>
114
- </td>
115
- </tr>
116
- <?php
117
- }
118
 
119
- wp_reset_postdata();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  ?>
121
-
122
- </tbody>
123
- </table>
124
-
125
- <div class="wpuf-pagination">
126
- <?php
127
- $pagination = paginate_links( array(
128
- 'base' => add_query_arg( 'pagenum', '%#%' ),
129
- 'format' => '',
130
- 'prev_text' => __( '&laquo;', 'wpuf' ),
131
- 'next_text' => __( '&raquo;', 'wpuf' ),
132
- 'total' => $dashboard_query->max_num_pages,
133
- 'current' => $pagenum,
134
- 'add_args' => false
135
- ) );
136
-
137
- if ( $pagination ) {
138
- echo $pagination;
139
- }
140
- ?>
141
  </div>
142
 
143
  <?php
1
+ <div class="wpuf-dashboard-container">
 
 
2
 
3
+ <h2 class="page-head">
4
+ <span class="colour"><?php printf( __( "%s's Dashboard", 'wpuf' ), $userdata->user_login ); ?></span>
5
+ </h2>
6
 
7
+ <?php if ( wpuf_get_option( 'show_post_count', 'wpuf_dashboard', 'on' ) == 'on' ) { ?>
8
+ <div class="post_count"><?php printf( __( 'You have created <span>%d</span> %s', 'wpuf' ), $dashboard_query->found_posts, $post_type_obj->label ); ?></div>
9
+ <?php } ?>
10
 
11
+ <?php do_action( 'wpuf_dashboard_top', $userdata->ID, $post_type_obj ) ?>
12
 
13
+ <?php if ( $dashboard_query->have_posts() ) { ?>
14
+
15
+ <?php
16
+ $featured_img = wpuf_get_option( 'show_ft_image', 'wpuf_dashboard' );
17
+ $featured_img_size = wpuf_get_option( 'ft_img_size', 'wpuf_dashboard' );
18
+ $charging_enabled = wpuf_get_option( 'charge_posting', 'wpuf_payment' );
19
+ ?>
20
+ <table class="items-table <?php echo $post_type; ?>" cellpadding="0" cellspacing="0">
21
+ <thead>
22
+ <tr class="items-list-header">
23
+ <?php
24
+ if ( 'on' == $featured_img ) {
25
+ echo '<th>' . __( 'Featured Image', 'wpuf' ) . '</th>';
26
+ }
27
+ ?>
28
+ <th><?php _e( 'Title', 'wpuf' ); ?></th>
29
+ <th><?php _e( 'Status', 'wpuf' ); ?></th>
30
 
31
+ <?php do_action( 'wpuf_dashboard_head_col', $args ) ?>
32
 
33
+ <?php
34
+ if ( 'yes' == $charging_enabled ) {
35
+ echo '<th>' . __( 'Payment', 'wpuf' ) . '</th>';
36
+ }
37
+ ?>
38
+ <th><?php _e( 'Options', 'wpuf' ); ?></th>
39
+ </tr>
40
+ </thead>
41
+ <tbody>
42
  <?php
43
+ global $post;
44
+
45
+ while ( $dashboard_query->have_posts() ) {
46
+ $dashboard_query->the_post();
47
+ $show_link = !in_array( $post->post_status, array('draft', 'future', 'pending') );
48
+ ?>
49
+ <tr>
50
+ <?php if ( 'on' == $featured_img ) { ?>
51
+ <td>
52
+ <?php
53
+ echo $show_link ? '<a href="' . get_permalink( $post->ID ) . '">' : '';
54
 
55
+ if ( has_post_thumbnail() ) {
56
+ the_post_thumbnail( $featured_img_size );
57
+ } else {
58
+ printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', apply_filters( 'wpuf_no_image', plugins_url( '/assets/images/no-image.png', dirname( __FILE__ ) ) ), __( 'No Image', 'wpuf' ) );
59
+ }
60
+
61
+ echo $show_link ? '</a>' : '';
62
+ ?>
63
+ </td>
64
+ <?php } ?>
65
  <td>
66
+ <?php if ( !$show_link ) { ?>
 
67
 
68
+ <?php the_title(); ?>
 
 
 
 
69
 
70
+ <?php } else { ?>
 
 
 
 
 
71
 
72
+ <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpuf' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
73
 
74
+ <?php } ?>
75
+ </td>
76
+ <td>
77
+ <?php wpuf_show_post_status( $post->post_status ) ?>
78
+ </td>
79
 
80
+ <?php do_action( 'wpuf_dashboard_row_col', $args, $post ) ?>
81
 
82
+ <?php
83
+ if ( $charging_enabled == 'yes' ) {
84
+ $order_id = get_post_meta( $post->ID, '_wpuf_order_id', true );
85
+ ?>
86
+ <td>
87
+ <?php if ( $post->post_status == 'pending' && $order_id ) { ?>
88
+ <a href="<?php echo trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ); ?>?action=wpuf_pay&type=post&post_id=<?php echo $post->ID; ?>"><?php _e( 'Pay Now', 'wpuf' ); ?></a>
89
+ <?php } ?>
90
+ </td>
91
  <?php } ?>
 
 
 
 
92
 
 
 
 
 
 
 
93
  <td>
94
+ <?php
95
+ if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
96
+ $disable_pending_edit = wpuf_get_option( 'disable_pending_edit', 'wpuf_dashboard', 'on' );
97
+ $edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_general' );
98
+ $url = add_query_arg( array('pid' => $post->ID), get_permalink( $edit_page ) );
99
+
100
+ if ( $post->post_status == 'pending' && $disable_pending_edit == 'on' ) {
101
+ // don't show the edit link
102
+ } else {
103
+ ?>
104
+ <a href="<?php echo wp_nonce_url( $url, 'wpuf_edit' ); ?>"><?php _e( 'Edit', 'wpuf' ); ?></a>
105
+ <?php
106
+ }
107
+ }
108
+ ?>
109
+
110
+ <?php
111
+ if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
112
+ $del_url = add_query_arg( array('action' => 'del', 'pid' => $post->ID) );
113
+ ?>
114
+ <a href="<?php echo wp_nonce_url( $del_url, 'wpuf_del' ) ?>" onclick="return confirm('Are you sure to delete?');"><span style="color: red;"><?php _e( 'Delete', 'wpuf' ); ?></span></a>
115
  <?php } ?>
116
  </td>
117
+ </tr>
118
+ <?php
119
+ }
120
 
121
+ wp_reset_postdata();
122
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
 
124
+ </tbody>
125
+ </table>
 
 
 
 
 
 
 
 
126
 
127
+ <div class="wpuf-pagination">
128
+ <?php
129
+ $pagination = paginate_links( array(
130
+ 'base' => add_query_arg( 'pagenum', '%#%' ),
131
+ 'format' => '',
132
+ 'prev_text' => __( '&laquo;', 'wpuf' ),
133
+ 'next_text' => __( '&raquo;', 'wpuf' ),
134
+ 'total' => $dashboard_query->max_num_pages,
135
+ 'current' => $pagenum,
136
+ 'add_args' => false
137
+ ) );
138
+
139
+ if ( $pagination ) {
140
+ echo $pagination;
141
+ }
142
  ?>
143
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  </div>
145
 
146
  <?php
templates/dashboard/dashboard.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <p><?php
2
+ global $current_user;
3
+
4
+ printf(
5
+ __( 'Hello %1$s, (not %1$s? <a href="%2$s">Sign out</a>)', 'wpuf' ),
6
+ '<strong>' . esc_html( $current_user->display_name ) . '</strong>',
7
+ esc_url( wp_logout_url( get_permalink() ) )
8
+ );
9
+ ?></p>
10
+
11
+ <p><?php
12
+ printf(
13
+ __( 'From your account dashboard you can view your dashboard, manage your <a href="%1$s">posts</a>, <a href="%2$s">subscription</a> and <a href="%3$s">edit your password and profile</a>.', 'wpuf' ),
14
+ esc_url( add_query_arg( array( 'section' => 'posts' ), get_permalink() ) ),
15
+ esc_url( add_query_arg( array( 'section' => 'subscription' ), get_permalink() ) ),
16
+ esc_url( add_query_arg( array( 'section' => 'edit-profile' ), get_permalink() ) )
17
+ );
18
+ ?></p>
templates/dashboard/edit-profile.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php global $current_user; ?>
2
+
3
+ <form class="wpuf-form wpuf-update-profile-form" action="" method="post">
4
+
5
+ <div style="display: none;" class="wpuf-success"><?php _e( 'Profile updated successfully!', 'wpuf' ); ?></div>
6
+ <div style="display: none;" class="wpuf-error"><?php _e( 'Something went wrong!', 'wpuf' ); ?></div>
7
+
8
+ <p class="form-row form-row-first">
9
+ <label for="first_name"><?php _e( 'First Name ', 'wpuf' ); ?><span class="required">*</span></label>
10
+ <input type="text" class="input-text" name="first_name" id="first_name" value="<?php echo $current_user->first_name; ?>" required>
11
+ </p>
12
+ <p class="form-row form-row-last">
13
+ <label for="last_name"><?php _e('Last Name ', 'wpuf' ); ?><span class="required">*</span></label>
14
+ <input type="text" class="input-text" name="last_name" id="last_name" value="<?php echo $current_user->last_name; ?>" required>
15
+ </p>
16
+ <div class="clear"></div>
17
+
18
+ <p class="form-row">
19
+ <label for="email"><?php _e( 'Email Address ', 'wpuf' ); ?><span class="required">*</span></label>
20
+ <input type="email" class="input-text" name="email" id="email" value="<?php echo $current_user->user_email; ?>" required>
21
+ </p>
22
+
23
+ <fieldset>
24
+ <legend><?php _e( 'Password Change', 'wpuf' ); ?></legend>
25
+
26
+ <p class="desc"><?php _e( 'If you want to unchanged the password then just leave this section.', 'wpuf' ); ?></p>
27
+
28
+ <p class="form-row">
29
+ <label for="current_password"><?php _e( 'Current Password', 'wpuf' ); ?></label>
30
+ <input type="password" class="input-text" name="current_password" id="current_password">
31
+ </p>
32
+ <p class="form-row">
33
+ <label for="pass1"><?php _e( 'New Password', 'wpuf' ); ?></label>
34
+ <input type="password" class="input-text" name="pass1" id="pass1" size="16" value="" autocomplete="off" />
35
+
36
+ <span style="width: 100%;" id="pass-strength-result"><?php _e( 'Strength indicator', 'wpuf' ); ?></span>
37
+ <script src="<?php echo site_url(); ?>/wp-includes/js/zxcvbn.min.js"></script>
38
+ <script src="<?php echo admin_url(); ?>/js/password-strength-meter.js"></script>
39
+ <script type="text/javascript">
40
+ var pwsL10n = {
41
+ empty: "Strength indicator",
42
+ short: "Very weak",
43
+ bad: "Weak",
44
+ good: "Medium",
45
+ strong: "Strong",
46
+ mismatch: "Mismatch"
47
+ };
48
+ try {
49
+ convertEntities(pwsL10n);
50
+ } catch (e) {};
51
+ </script>
52
+ </p>
53
+ <p class="form-row">
54
+ <label for="pass2"><?php _e( 'Confirm New Password', 'wpuf' ); ?></label>
55
+ <input type="password" class="input-text" name="pass2" id="pass2" size="16" value="" autocomplete="off" />
56
+ </p>
57
+ </fieldset>
58
+ <div class="clear"></div>
59
+
60
+ <p>
61
+ <?php wp_nonce_field( 'wpuf-account-update-profile' ); ?>
62
+ <input type="hidden" name="action" value="wpuf_account_update_profile">
63
+ <button class="button" name="update_profile" id="wpuf-account-update-profile"><?php _e( 'Update Profile', 'wpuf' ); ?></button>
64
+ </p>
65
+
66
+ </form>
templates/dashboard/posts.php ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $post_type = 'post';
4
+ global $userdata;
5
+
6
+ $userdata = get_userdata( $userdata->ID ); //wp 3.3 fix
7
+
8
+ global $post;
9
+
10
+ $pagenum = isset( $_GET['pagenum'] ) ? intval( $_GET['pagenum'] ) : 1;
11
+
12
+ // delete post
13
+ if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == "del" ) {
14
+
15
+ $nonce = $_REQUEST['_wpnonce'];
16
+ if ( !wp_verify_nonce( $nonce, 'wpuf_del' ) ) {
17
+ die( "Security check" );
18
+ }
19
+
20
+ //check, if the requested user is the post author
21
+ $maybe_delete = get_post( $_REQUEST['pid'] );
22
+
23
+ if ( ($maybe_delete->post_author == $userdata->ID) || current_user_can( 'delete_others_pages' ) ) {
24
+ wp_delete_post( $_REQUEST['pid'] );
25
+
26
+ //redirect
27
+ $redirect = add_query_arg( array( 'section' => 'posts', 'msg' => 'deleted'), get_permalink() );
28
+ wp_redirect( $redirect );
29
+ } else {
30
+ echo '<div class="error">' . __( 'You are not the post author. Cheeting huh!', 'wpuf' ) . '</div>';
31
+ }
32
+ }
33
+
34
+ // show delete success message
35
+ if ( isset( $_GET['msg'] ) && $_GET['msg'] == 'deleted' ) {
36
+ echo '<div class="success">' . __( 'Post Deleted', 'wpuf' ) . '</div>';
37
+ }
38
+
39
+ $args = array(
40
+ 'author' => get_current_user_id(),
41
+ 'post_status' => array('draft', 'future', 'pending', 'publish', 'private'),
42
+ 'post_type' => $post_type,
43
+ 'posts_per_page' => wpuf_get_option( 'per_page', 'wpuf_dashboard', 10 ),
44
+ 'paged' => $pagenum
45
+ );
46
+
47
+ $original_post = $post;
48
+ $dashboard_query = new WP_Query( apply_filters( 'wpuf_dashboard_query', $args ) );
49
+ $post_type_obj = get_post_type_object( $post_type );
50
+
51
+ ?>
52
+
53
+ <?php if ( wpuf_get_option( 'show_post_count', 'wpuf_dashboard', 'on' ) == 'on' ) { ?>
54
+ <div class="post_count"><?php printf( __( 'You have created <span>%d</span> %s', 'wpuf' ), $dashboard_query->found_posts, $post_type_obj->label ); ?></div>
55
+ <?php } ?>
56
+
57
+ <?php do_action( 'wpuf_account_posts_top', $userdata->ID, $post_type_obj ) ?>
58
+
59
+ <?php if ( $dashboard_query->have_posts() ) { ?>
60
+
61
+ <?php
62
+ $featured_img = wpuf_get_option( 'show_ft_image', 'wpuf_dashboard' );
63
+ $featured_img_size = wpuf_get_option( 'ft_img_size', 'wpuf_dashboard' );
64
+ $charging_enabled = wpuf_get_option( 'charge_posting', 'wpuf_payment' );
65
+ ?>
66
+ <table class="items-table <?php echo $post_type; ?>" cellpadding="0" cellspacing="0">
67
+ <thead>
68
+ <tr class="items-list-header">
69
+ <?php
70
+ if ( 'on' == $featured_img ) {
71
+ echo '<th>' . __( 'Featured Image', 'wpuf' ) . '</th>';
72
+ }
73
+ ?>
74
+ <th><?php _e( 'Title', 'wpuf' ); ?></th>
75
+ <th><?php _e( 'Status', 'wpuf' ); ?></th>
76
+
77
+ <?php do_action( 'wpuf_account_posts_head_col', $args ) ?>
78
+
79
+ <?php
80
+ if ( 'yes' == $charging_enabled ) {
81
+ echo '<th>' . __( 'Payment', 'wpuf' ) . '</th>';
82
+ }
83
+ ?>
84
+ <th><?php _e( 'Options', 'wpuf' ); ?></th>
85
+ </tr>
86
+ </thead>
87
+ <tbody>
88
+ <?php
89
+ global $post;
90
+
91
+ while ( $dashboard_query->have_posts() ) {
92
+ $dashboard_query->the_post();
93
+ $show_link = !in_array( $post->post_status, array('draft', 'future', 'pending') );
94
+ ?>
95
+ <tr>
96
+ <?php if ( 'on' == $featured_img ) { ?>
97
+ <td>
98
+ <?php
99
+ echo $show_link ? '<a href="' . get_permalink( $post->ID ) . '">' : '';
100
+
101
+ if ( has_post_thumbnail() ) {
102
+ the_post_thumbnail( $featured_img_size );
103
+ } else {
104
+ printf( '<img src="%1$s" class="attachment-thumbnail wp-post-image" alt="%2$s" title="%2$s" />', apply_filters( 'wpuf_no_image', plugins_url( '/assets/images/no-image.png', dirname( __FILE__ ) ) ), __( 'No Image', 'wpuf' ) );
105
+ }
106
+
107
+ echo $show_link ? '</a>' : '';
108
+ ?>
109
+ </td>
110
+ <?php } ?>
111
+ <td>
112
+ <?php if ( !$show_link ) { ?>
113
+
114
+ <?php the_title(); ?>
115
+
116
+ <?php } else { ?>
117
+
118
+ <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpuf' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
119
+
120
+ <?php } ?>
121
+ </td>
122
+ <td>
123
+ <?php wpuf_show_post_status( $post->post_status ) ?>
124
+ </td>
125
+
126
+ <?php do_action( 'wpuf_account_posts_row_col', $args, $post ) ?>
127
+
128
+ <?php
129
+ if ( $charging_enabled == 'yes' ) {
130
+ $order_id = get_post_meta( $post->ID, '_wpuf_order_id', true );
131
+ ?>
132
+ <td>
133
+ <?php if ( $post->post_status == 'pending' && $order_id ) { ?>
134
+ <a href="<?php echo trailingslashit( get_permalink( wpuf_get_option( 'payment_page', 'wpuf_payment' ) ) ); ?>?action=wpuf_pay&type=post&post_id=<?php echo $post->ID; ?>"><?php _e( 'Pay Now', 'wpuf' ); ?></a>
135
+ <?php } ?>
136
+ </td>
137
+ <?php } ?>
138
+
139
+ <td>
140
+ <?php
141
+ if ( wpuf_get_option( 'enable_post_edit', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
142
+ $disable_pending_edit = wpuf_get_option( 'disable_pending_edit', 'wpuf_dashboard', 'on' );
143
+ $edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_general' );
144
+ $url = add_query_arg( array('pid' => $post->ID), get_permalink( $edit_page ) );
145
+
146
+ if ( $post->post_status == 'pending' && $disable_pending_edit == 'on' ) {
147
+ // don't show the edit link
148
+ } else {
149
+ ?>
150
+ <a href="<?php echo wp_nonce_url( $url, 'wpuf_edit' ); ?>"><?php _e( 'Edit', 'wpuf' ); ?></a> /
151
+ <?php
152
+ }
153
+ }
154
+ ?>
155
+
156
+ <?php
157
+ if ( wpuf_get_option( 'enable_post_del', 'wpuf_dashboard', 'yes' ) == 'yes' ) {
158
+ $del_url = add_query_arg( array('action' => 'del', 'pid' => $post->ID) );
159
+ ?>
160
+ <a href="<?php echo wp_nonce_url( $del_url, 'wpuf_del' ) ?>" onclick="return confirm('Are you sure to delete?');"><span style="color: red;"><?php _e( 'Delete', 'wpuf' ); ?></span></a>
161
+ <?php } ?>
162
+ </td>
163
+ </tr>
164
+ <?php
165
+ }
166
+
167
+ wp_reset_postdata();
168
+ ?>
169
+
170
+ </tbody>
171
+ </table>
172
+
173
+ <div class="wpuf-pagination">
174
+ <?php
175
+ $pagination = paginate_links( array(
176
+ 'base' => add_query_arg( 'pagenum', '%#%' ),
177
+ 'format' => '',
178
+ 'prev_text' => __( '&laquo;', 'wpuf' ),
179
+ 'next_text' => __( '&raquo;', 'wpuf' ),
180
+ 'total' => $dashboard_query->max_num_pages,
181
+ 'current' => $pagenum,
182
+ 'add_args' => false
183
+ ) );
184
+
185
+ if ( $pagination ) {
186
+ echo $pagination;
187
+ }
188
+ ?>
189
+ </div>
190
+
191
+ <?php
192
+ } else {
193
+ printf( '<div class="wpuf-message">' . __( 'No %s found', 'wpuf' ) . '</div>', $post_type_obj->label );
194
+ do_action( 'wpuf_account_posts_nopost', $userdata->ID, $post_type_obj );
195
+ }
196
+
197
+ wp_reset_postdata();
templates/dashboard/subscription.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="wpuf_sub_info">
2
+ <h3><?php _e( 'Subscription Details', 'wpuf' ); ?></h3>
3
+ <div class="wpuf-text">
4
+ <div><strong><?php _e( 'Subcription Name: ','wpuf' ); ?></strong><?php echo $pack->post_title; ?></div>
5
+ <div>
6
+ <strong><?php _e( 'Package & billing details: ', 'wpuf'); ?></strong>
7
+ <?php echo $billing_amount . ' ' . $recurring_des; ?>
8
+ </div>
9
+ <div>
10
+ <strong><?php _e( 'Remaining post: ', 'wpuf'); ?></strong>
11
+ <?php
12
+ foreach ( $user_sub['posts'] as $key => $value ) {
13
+ $value = intval( $value );
14
+
15
+ if ( $value === 0 ) {
16
+ continue;
17
+ }
18
+
19
+ $post_type_obj = get_post_type_object( $key );
20
+ if ( ! $post_type_obj ) {
21
+ continue;
22
+ }
23
+ $value = ( $value == '-1' ) ? __( 'Unlimited', 'wpuf' ) : $value;
24
+ ?>
25
+ <div><?php echo $post_type_obj->labels->name . ': ' . $value; ?></div>
26
+ <?php
27
+ }
28
+ ?>
29
+ </div>
30
+ <?php
31
+ if ( $user_sub['recurring'] != 'yes' ) {
32
+ if ( ! empty( $user_sub['expire'] ) ) {
33
+
34
+ $expire = ( $user_sub['expire'] == 'unlimited' ) ? ucfirst( 'unlimited' ) : wpuf_date2mysql( $user_sub['expire'] );
35
+
36
+ ?>
37
+ <div class="wpuf-expire">
38
+ <strong><?php echo _e( 'Expire date:', 'wpuf' ); ?></strong> <?php echo wpuf_get_date( $expire ); ?>
39
+ </div>
40
+ <?php
41
+ }
42
+
43
+ }
44
+
45
+ if ( $user_sub['recurring'] == 'yes' ) {
46
+ global $wpdb;
47
+
48
+ $user_id = get_current_user_id();
49
+ $payment_gateway = $wpdb->get_var( "SELECT payment_type FROM {$wpdb->prefix}wpuf_transaction WHERE user_id = {$user_id} AND status = 'completed' ORDER BY created DESC" );
50
+
51
+ $payment_gateway = strtolower( $payment_gateway );
52
+
53
+ echo '<br />';
54
+ _e( '<p><i>To cancel the pack, press the following cancel button.</i></p>', 'wpuf' );
55
+ ?>
56
+ <form action="" method="post" style="text-align: center;">
57
+ <?php wp_nonce_field( 'wpuf-sub-cancel' ); ?>
58
+ <input type="hidden" name="gateway" value="<?php echo $payment_gateway; ?>">
59
+ <input type="submit" name="wpuf_cancel_subscription" class="btn btn-sm btn-danger" value="<?php _e( 'Cancel', 'wpuf' ); ?>">
60
+ </form>
61
+ <?php
62
+ }
63
+ ?>
64
+ </div>
65
+ </div>
templates/unauthorized.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( empty( $message ) ) {
3
+ $msg = '<div class="wpuf-message">' . sprintf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false ) ) . '</div>';
4
+ echo apply_filters( 'wpuf_account_unauthorized', $msg );
5
+ } else {
6
+ echo $message;
7
+ }
wpuf-functions.php CHANGED
@@ -1265,7 +1265,7 @@ function wpuf_get_post_form_templates() {
1265
  * @return array|string
1266
  */
1267
  function wpuf_get_countries( $type = 'array' ) {
1268
- $countries = include_once dirname( __FILE__ ) . '/includes/countries-formated.php';
1269
 
1270
  if ( $type == 'json' ) {
1271
  $countries = json_encode( $countries );
@@ -1273,3 +1273,246 @@ function wpuf_get_countries( $type = 'array' ) {
1273
 
1274
  return $countries;
1275
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1265
  * @return array|string
1266
  */
1267
  function wpuf_get_countries( $type = 'array' ) {
1268
+ $countries = include dirname( __FILE__ ) . '/includes/countries-formated.php';
1269
 
1270
  if ( $type == 'json' ) {
1271
  $countries = json_encode( $countries );
1273
 
1274
  return $countries;
1275
  }
1276
+
1277
+ /**
1278
+ * Get account dashboard's sections
1279
+ *
1280
+ * @since 2.4.2
1281
+ *
1282
+ * @return array
1283
+ */
1284
+ function wpuf_get_account_sections() {
1285
+ $account_sections = array(
1286
+ array( 'slug' => 'dashboard', 'label' => __( 'Dashboard', 'wpuf' ) ),
1287
+ array( 'slug' => 'posts', 'label' => __( 'Posts', 'wpuf' ) ),
1288
+ array( 'slug' => 'subscription', 'label' => __( 'Subscription', 'wpuf' ) ),
1289
+ array( 'slug' => 'edit-profile', 'label' => __( 'Edit Profile', 'wpuf' ) ),
1290
+ );
1291
+
1292
+ return apply_filters( 'wpuf_account_sections', $account_sections );
1293
+ }
1294
+
1295
+ /**
1296
+ * Get all transactions
1297
+ *
1298
+ * @since 2.4.2
1299
+ *
1300
+ * @return array
1301
+ */
1302
+ function wpuf_get_transactions( $args = array() ) {
1303
+ global $wpdb;
1304
+
1305
+ $defaults = array(
1306
+ 'number' => 20,
1307
+ 'offset' => 0,
1308
+ 'orderby' => 'id',
1309
+ 'order' => 'DESC',
1310
+ 'count' => false,
1311
+ );
1312
+
1313
+ $args = wp_parse_args( $args, $defaults );
1314
+
1315
+ if ( $args['count'] ) {
1316
+ return $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}wpuf_transaction" );
1317
+ }
1318
+
1319
+ $result = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}wpuf_transaction ORDER BY `{$args['orderby']}` {$args['order']} LIMIT {$args['offset']}, {$args['number']}", OBJECT );
1320
+
1321
+ return $result;
1322
+ }
1323
+
1324
+ /**
1325
+ * Get all pending transactions
1326
+ *
1327
+ * @since 2.4.2
1328
+ *
1329
+ * @return array
1330
+ */
1331
+ function wpuf_get_pending_transactions( $args = array() ) {
1332
+ global $wpdb;
1333
+
1334
+ $defaults = array(
1335
+ 'number' => 20,
1336
+ 'offset' => 0,
1337
+ 'orderby' => 'id',
1338
+ 'order' => 'DESC',
1339
+ 'count' => false,
1340
+ );
1341
+
1342
+ $args = wp_parse_args( $args, $defaults );
1343
+
1344
+ $pending_args = array(
1345
+ 'post_type' => 'wpuf_order',
1346
+ 'post_status' => array( 'publish', 'pending' ),
1347
+ 'posts_per_page' => $args['number'],
1348
+ 'offset' => $args['offset'],
1349
+ 'orderby' => $args['orderby'],
1350
+ 'order' => $args['order'],
1351
+ );
1352
+
1353
+ $wpuf_order_query = new WP_Query( $pending_args );
1354
+
1355
+ if ( $args['count'] ) {
1356
+ return $wpuf_order_query->post_count;
1357
+ }
1358
+
1359
+ $transactions = $wpuf_order_query->get_posts();
1360
+
1361
+ $items = array();
1362
+ foreach ( $transactions as $transaction ) {
1363
+ $info = get_post_meta( $transaction->ID, '_data', true );
1364
+
1365
+ $items[] = (object) array(
1366
+ 'id' => $transaction->ID,
1367
+ 'user_id' => $info['user_info']['id'],
1368
+ 'status' => 'pending',
1369
+ 'cost' => $info['price'],
1370
+ 'post_id' => ( $info['type'] == 'post' ) ? $info['item_number'] : 0,
1371
+ 'pack_id' => ( $info['type'] == 'pack' ) ? $info['item_number'] : 0,
1372
+ 'payer_first_name' => $info['user_info']['first_name'],
1373
+ 'payer_last_name' => $info['user_info']['last_name'],
1374
+ 'payer_email' => $info['user_info']['email'],
1375
+ 'payment_type' => ( $info['post_data']['wpuf_payment_method'] == 'bank' ) ? 'Bank/Manual' : ucwords( $info['post_data']['wpuf_payment_method'] ),
1376
+ 'transaction_id' => 0,
1377
+ 'created' => $info['date'],
1378
+ );
1379
+ }
1380
+
1381
+ return $items;
1382
+ }
1383
+
1384
+ /**
1385
+ * Get full list of currency codes.
1386
+ *
1387
+ * @since 2.4.2
1388
+ *
1389
+ * @return array
1390
+ */
1391
+ function wpuf_get_currencies() {
1392
+ $currencies = array(
1393
+ array( 'currency' => 'AED', 'label' => __( 'United Arab Emirates Dirham', 'wpuf' ), 'symbol' => 'د.إ' ),
1394
+ array( 'currency' => 'AUD', 'label' => __( 'Australian Dollars', 'wpuf' ), 'symbol' => '&#36;' ),
1395
+ array( 'currency' => 'AZD', 'label' => __( 'Argentine Peso', 'wpuf' ), 'symbol' => '&#36;' ),
1396
+ array( 'currency' => 'BDT', 'label' => __( 'Bangladeshi Taka', 'wpuf' ), 'symbol' => '&#2547;' ),
1397
+ array( 'currency' => 'BRL', 'label' => __( 'Brazilian Real', 'wpuf' ), 'symbol' => '&#82;&#36;' ),
1398
+ array( 'currency' => 'BGN', 'label' => __( 'Bulgarian Lev', 'wpuf' ), 'symbol' => '&#1083;&#1074;.' ),
1399
+ array( 'currency' => 'CAD', 'label' => __( 'Canadian Dollars', 'wpuf' ), 'symbol' => '&#36;' ),
1400
+ array( 'currency' => 'CLP', 'label' => __( 'Chilean Peso', 'wpuf' ), 'symbol' => '&#36;' ),
1401
+ array( 'currency' => 'CNY', 'label' => __( 'Chinese Yuan', 'wpuf' ), 'symbol' => '&yen;' ),
1402
+ array( 'currency' => 'COP', 'label' => __( 'Colombian Peso', 'wpuf' ), 'symbol' => '&#36;' ),
1403
+ array( 'currency' => 'CZK', 'label' => __( 'Czech Koruna', 'wpuf' ), 'symbol' => '&#75;&#269;' ),
1404
+ array( 'currency' => 'DKK', 'label' => __( 'Danish Krone', 'wpuf' ), 'symbol' => 'kr.' ),
1405
+ array( 'currency' => 'DOP', 'label' => __( 'Dominican Peso', 'wpuf' ), 'symbol' => 'RD&#36;' ),
1406
+ array( 'currency' => 'DZD', 'label' => __( 'Algerian Dinar', 'wpuf' ), 'symbol' => 'DA;' ),
1407
+ array( 'currency' => 'EUR', 'label' => __( 'Euros', 'wpuf' ), 'symbol' => '&euro;' ),
1408
+ array( 'currency' => 'HKD', 'label' => __( 'Hong Kong Dollar', 'wpuf' ), 'symbol' => '&#36;' ),
1409
+ array( 'currency' => 'HRK', 'label' => __( 'Croatia kuna', 'wpuf' ), 'symbol' => 'Kn' ),
1410
+ array( 'currency' => 'HUF', 'label' => __( 'Hungarian Forint', 'wpuf' ), 'symbol' => '&#70;&#116;' ),
1411
+ array( 'currency' => 'ISK', 'label' => __( 'Icelandic krona', 'wpuf' ), 'symbol' => 'Kr.' ),
1412
+ array( 'currency' => 'IDR', 'label' => __( 'Indonesia Rupiah', 'wpuf' ), 'symbol' => 'Rp' ),
1413
+ array( 'currency' => 'INR', 'label' => __( 'Indian Rupee', 'wpuf' ), 'symbol' => '&#8377;' ),
1414
+ array( 'currency' => 'NPR', 'label' => __( 'Nepali Rupee', 'wpuf' ), 'symbol' => 'Rs.' ),
1415
+ array( 'currency' => 'ILS', 'label' => __( 'Israeli Shekel', 'wpuf' ), 'symbol' => '&#8362;' ),
1416
+ array( 'currency' => 'JPY', 'label' => __( 'Japanese Yen', 'wpuf' ), 'symbol' => '&yen;' ),
1417
+ array( 'currency' => 'KIP', 'label' => __( 'Lao Kip', 'wpuf' ), 'symbol' => '&#8365;' ),
1418
+ array( 'currency' => 'KRW', 'label' => __( 'South Korean Won', 'wpuf' ), 'symbol' => '&#8361;' ),
1419
+ array( 'currency' => 'MYR', 'label' => __( 'Malaysian Ringgits', 'wpuf' ), 'symbol' => '&#82;&#77;' ),
1420
+ array( 'currency' => 'MXN', 'label' => __( 'Mexican Peso', 'wpuf' ), 'symbol' => '&#36;' ),
1421
+ array( 'currency' => 'NGN', 'label' => __( 'Nigerian Naira', 'wpuf' ), 'symbol' => '&#8358;' ),
1422
+ array( 'currency' => 'NOK', 'label' => __( 'Norwegian Krone', 'wpuf' ), 'symbol' => '&#107;&#114;' ),
1423
+ array( 'currency' => 'NZD', 'label' => __( 'New Zealand Dollar', 'wpuf' ), 'symbol' => '&#36;' ),
1424
+ array( 'currency' => 'OMR', 'label' => __( 'Omani Rial', 'wpuf' ), 'symbol' => 'ر.ع.' ),
1425
+ array( 'currency' => 'IRR', 'label' => __( 'Iranian Rial', 'wpuf' ), 'symbol' => '﷼' ),
1426
+ array( 'currency' => 'PKR', 'label' => __( 'Pakistani Rupee', 'wpuf' ), 'symbol' => 'Rs' ),
1427
+ array( 'currency' => 'PYG', 'label' => __( 'Paraguayan Guaraní', 'wpuf' ), 'symbol' => '&#8370;' ),
1428
+ array( 'currency' => 'PHP', 'label' => __( 'Philippine Pesos', 'wpuf' ), 'symbol' => '&#8369;' ),
1429
+ array( 'currency' => 'PLN', 'label' => __( 'Polish Zloty', 'wpuf' ), 'symbol' => '&#122;&#322;' ),
1430
+ array( 'currency' => 'GBP', 'label' => __( 'Pounds Sterling', 'wpuf' ), 'symbol' => '&pound;' ),
1431
+ array( 'currency' => 'RON', 'label' => __( 'Romanian Leu', 'wpuf' ), 'symbol' => 'lei' ),
1432
+ array( 'currency' => 'RUB', 'label' => __( 'Russian Ruble', 'wpuf' ), 'symbol' => '&#1088;&#1091;&#1073;.' ),
1433
+ array( 'currency' => 'SR', 'label' => __( 'Saudi Riyal', 'wpuf'), 'symbol' => 'SR' ),
1434
+ array( 'currency' => 'SGD', 'label' => __( 'Singapore Dollar', 'wpuf' ), 'symbol' => '&#36;' ),
1435
+ array( 'currency' => 'ZAR', 'label' => __( 'South African rand', 'wpuf' ), 'symbol' => '&#82;' ),
1436
+ array( 'currency' => 'SEK', 'label' => __( 'Swedish Krona', 'wpuf' ), 'symbol' => '&#107;&#114;' ),
1437
+ array( 'currency' => 'CHF', 'label' => __( 'Swiss Franc', 'wpuf' ), 'symbol' => '&#67;&#72;&#70;' ),
1438
+ array( 'currency' => 'TWD', 'label' => __( 'Taiwan New Dollars', 'wpuf' ), 'symbol' => '&#78;&#84;&#36;' ),
1439
+ array( 'currency' => 'THB', 'label' => __( 'Thai Baht', 'wpuf' ), 'symbol' => '&#3647;' ),
1440
+ array( 'currency' => 'TRY', 'label' => __( 'Turkish Lira', 'wpuf' ), 'symbol' => '&#8378;' ),
1441
+ array( 'currency' => 'USD', 'label' => __( 'US Dollar', 'wpuf' ), 'symbol' => '&#36;' ),
1442
+ array( 'currency' => 'VND', 'label' => __( 'Vietnamese Dong', 'wpuf' ), 'symbol' => '&#8363;' ),
1443
+ array( 'currency' => 'EGP', 'label' => __( 'Egyptian Pound', 'wpuf' ), 'symbol' => 'EGP' ),
1444
+ );
1445
+
1446
+ return apply_filters( 'wpuf_currencies', $currencies );
1447
+ }
1448
+
1449
+ /**
1450
+ * Get global currency
1451
+ *
1452
+ * @since 2.4.2
1453
+ *
1454
+ * @param string $type
1455
+ *
1456
+ * @return mixed
1457
+ */
1458
+ function wpuf_get_currency( $type = '' ) {
1459
+ $currency_code = wpuf_get_option( 'currency', 'wpuf_payment', 'USD' );
1460
+
1461
+ if ( $type == 'code' ) {
1462
+ return $currency_code;
1463
+ }
1464
+
1465
+ $currencies = wpuf_get_currencies();
1466
+ $index = array_search( $currency_code, array_column( $currencies, 'currency' ) );
1467
+ $currency = $currencies[ $index ];
1468
+
1469
+ if ( $type == 'symbol' ) {
1470
+ return $currency['symbol'];
1471
+ }
1472
+
1473
+ return $currency;
1474
+ }
1475
+
1476
+ // Polyfill of array_column function
1477
+ if ( ! function_exists( 'array_column' ) ) {
1478
+ function array_column( array $input, $column_key, $index_key = null ) {
1479
+
1480
+ $result = array();
1481
+ foreach( $input as $k => $v ) {
1482
+ $result[ $index_key ? $v[ $index_key ] : $k ] = $v[ $column_key ];
1483
+ }
1484
+
1485
+ return $result;
1486
+ }
1487
+ }
1488
+
1489
+ /**
1490
+ * Format the pricing number
1491
+ *
1492
+ * @since 2.4.2
1493
+ *
1494
+ * @param number $number
1495
+ * @param boolean $with_currency (optional)
1496
+ *
1497
+ * @return mixed
1498
+ */
1499
+ function wpuf_format_price( $number, $with_currency = false ) {
1500
+ $number = number_format( (float) $number, 2, '.', '' );
1501
+
1502
+ if ( $with_currency ) {
1503
+ $symbol = wpuf_get_currency( 'symbol' );
1504
+ $position = wpuf_get_option( 'currency_position', 'wpuf_payment', 'left' );
1505
+
1506
+ switch ( $position ) {
1507
+ case 'left': return $symbol . $number; break;
1508
+
1509
+ case 'left_space': return $symbol . ' ' . $number; break;
1510
+
1511
+ case 'right': return $number . $symbol; break;
1512
+
1513
+ case 'right_space': return $number . ' ' . $symbol; break;
1514
+ }
1515
+ }
1516
+
1517
+ return $number;
1518
+ }
wpuf.php CHANGED
@@ -4,13 +4,13 @@ Plugin Name: WP User Frontend
4
  Plugin URI: https://wordpress.org/plugins/wp-user-frontend/
5
  Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
6
  Author: Tareq Hasan
7
- Version: 2.4.1
8
  Author URI: https://tareq.co
9
  License: GPL2
10
  TextDomain: wpuf
11
  */
12
 
13
- define( 'WPUF_VERSION', '2.4.1' );
14
  define( 'WPUF_FILE', __FILE__ );
15
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
16
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
@@ -38,7 +38,6 @@ function wpuf_autoload( $class ) {
38
  $filename = dirname( __FILE__ ) . '/class/' . strtolower( $class_name ) . '.php';
39
  }
40
 
41
-
42
  if ( file_exists( $filename ) ) {
43
  require_once $filename;
44
  }
@@ -88,7 +87,7 @@ class WP_User_Frontend {
88
  *
89
  * @since 2.2.7
90
  */
91
- public function set_schedule_events(){
92
  wp_schedule_event( time(), 'daily', 'wpuf_remove_expired_post_hook' );
93
  }
94
 
@@ -143,17 +142,14 @@ class WP_User_Frontend {
143
  require_once dirname( __FILE__ ) . '/lib/gateway/bank.php';
144
 
145
  $is_expired = wpuf_is_license_expired();
146
- $has_pro = file_exists( dirname( __FILE__ ) . '/includes/pro/loader.php' );
147
 
148
  if ( $has_pro && $is_expired ) {
149
  add_action( 'admin_notices', array( $this, 'license_expired' ) );
150
  }
151
 
152
  if ( $has_pro ) {
153
- include dirname( __FILE__ ) . '/includes/pro/loader.php';
154
-
155
  $this->is_pro = true;
156
-
157
  } else {
158
  include dirname( __FILE__ ) . '/includes/free/loader.php';
159
  }
@@ -183,6 +179,8 @@ class WP_User_Frontend {
183
  WPUF_Frontend_Form_Post::init(); // requires for form preview
184
  WPUF_Subscription::init();
185
 
 
 
186
  if ( is_admin() ) {
187
  WPUF_Admin_Settings::init();
188
  new WPUF_Admin_Form();
@@ -355,6 +353,9 @@ class WP_User_Frontend {
355
  'filters' => array(array('title' => __( 'Allowed Files', 'wpuf' ), 'extensions' => '*')),
356
  'multipart' => true,
357
  'urlstream_upload' => true,
 
 
 
358
  )
359
  ));
360
  }
@@ -471,5 +472,4 @@ function wpuf() {
471
  return WP_User_Frontend::init();
472
  }
473
 
474
- // kickoff the plugin
475
- wpuf();
4
  Plugin URI: https://wordpress.org/plugins/wp-user-frontend/
5
  Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
6
  Author: Tareq Hasan
7
+ Version: 2.4.2
8
  Author URI: https://tareq.co
9
  License: GPL2
10
  TextDomain: wpuf
11
  */
12
 
13
+ define( 'WPUF_VERSION', '2.4.2' );
14
  define( 'WPUF_FILE', __FILE__ );
15
  define( 'WPUF_ROOT', dirname( __FILE__ ) );
16
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
38
  $filename = dirname( __FILE__ ) . '/class/' . strtolower( $class_name ) . '.php';
39
  }
40
 
 
41
  if ( file_exists( $filename ) ) {
42
  require_once $filename;
43
  }
87
  *
88
  * @since 2.2.7
89
  */
90
+ public function set_schedule_events() {
91
  wp_schedule_event( time(), 'daily', 'wpuf_remove_expired_post_hook' );
92
  }
93
 
142
  require_once dirname( __FILE__ ) . '/lib/gateway/bank.php';
143
 
144
  $is_expired = wpuf_is_license_expired();
145
+ $has_pro = class_exists( 'WP_User_Frontend_Pro' );
146
 
147
  if ( $has_pro && $is_expired ) {
148
  add_action( 'admin_notices', array( $this, 'license_expired' ) );
149
  }
150
 
151
  if ( $has_pro ) {
 
 
152
  $this->is_pro = true;
 
153
  } else {
154
  include dirname( __FILE__ ) . '/includes/free/loader.php';
155
  }
179
  WPUF_Frontend_Form_Post::init(); // requires for form preview
180
  WPUF_Subscription::init();
181
 
182
+ new WPUF_Frontend_Account();
183
+
184
  if ( is_admin() ) {
185
  WPUF_Admin_Settings::init();
186
  new WPUF_Admin_Form();
353
  'filters' => array(array('title' => __( 'Allowed Files', 'wpuf' ), 'extensions' => '*')),
354
  'multipart' => true,
355
  'urlstream_upload' => true,
356
+ 'warning' => __( 'Maximum number of files reached!', 'wpuf' ),
357
+ 'size_error' => __( 'The file you have uploaded exceeds the file size limit. Please try again.', 'wpuf' ),
358
+ 'type_error' => __( 'You have uploaded an incorrect file type. Please try again.', 'wpuf' )
359
  )
360
  ));
361
  }
472
  return WP_User_Frontend::init();
473
  }
474
 
475
+ add_action( 'plugins_loaded', 'wpuf' );