Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into fix/admin_notifi…
Browse files Browse the repository at this point in the history
…cation_after_guest_email_verified
  • Loading branch information
sapayth committed Sep 27, 2024
2 parents 79bf57d + 9466787 commit e69375e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 27 deletions.
9 changes: 1 addition & 8 deletions assets/css/frontend-forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -542,13 +542,6 @@ body ul.wpuf-form li .wpuf-address-field:after {
display: table;
}
body ul.wpuf-form li .wpuf-address-field.city_name,
body ul.wpuf-form li .wpuf-address-field.state,
body ul.wpuf-form li .wpuf-address-field.zip,
body ul.wpuf-form li .wpuf-address-field.country_select {
float: left;
width: 47%;
}
body ul.wpuf-form li .wpuf-address-field.city_name,
body ul.wpuf-form li .wpuf-address-field.zip {
margin-right: 4%;
}
Expand Down Expand Up @@ -1835,7 +1828,7 @@ body .wpuf-attachment-upload-filelist + .moxie-shim {
}
img.wpuf-eye {
position: absolute;
right: 0;
right: 1rem;
top: 50%;
transform: translateY(-50%) translateX(-6%);
}
2 changes: 1 addition & 1 deletion assets/js/components/subscriptions/SectionInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const processInput = (event) => {
};
const processNumber = (event) => {
const allowedKeys = ['Backspace', 'Delete', 'Tab', 'ArrowLeft', 'ArrowRight'];
const allowedKeys = ['Backspace', 'Delete', 'Tab', 'ArrowLeft', 'ArrowRight', '.'];
if (!allowedKeys.includes(event.key) && isNaN(Number(event.key))) {
event.preventDefault();
}
Expand Down
2 changes: 1 addition & 1 deletion assets/js/subscriptions.min.js

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions assets/less/frontend-forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -603,14 +603,6 @@ ul.wpuf-form {
width: 100%;
margin-bottom: 10px;

&.city_name,
&.state,
&.zip,
&.country_select {
float: left;
width: 47%;
}

&.city_name,
&.zip {
margin-right: 4%;
Expand Down Expand Up @@ -2124,7 +2116,7 @@ ul.wpuf-form{

img.wpuf-eye {
position: absolute;
right: 0;
right: 1rem;
top: 50%;
transform: translateY(-50%) translateX(-6%);
}
4 changes: 3 additions & 1 deletion includes/Admin/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ public function is_submission_open( $form, $form_settings ) {
return [ $user_can_post, $info ];
}

$has_post_count = $current_user->subscription()->has_post_count( $form_settings['post_type'] );
$post_type = ! empty( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';

$has_post_count = $current_user->subscription()->has_post_count( $post_type );

if ( $current_user->subscription()->current_pack_id() && ! $has_post_count ) {
$user_can_post = 'no';
Expand Down
2 changes: 1 addition & 1 deletion includes/Api/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public function create_or_update_item( $request ) {
$post_content = ! empty( $subscription['post_content'] ) ? sanitize_textarea_field(
$subscription['post_content']
) : '';
$billing_amount = ! empty( $subscription['meta_value']['_billing_amount'] ) ? (int) $subscription['meta_value']['_billing_amount'] : 0;
$billing_amount = ! empty( $subscription['meta_value']['_billing_amount'] ) ? floatval( $subscription['meta_value']['_billing_amount'] ) : 0;
$expiration_number = ! empty( $subscription['meta_value']['_expiration_number'] ) ? (int) $subscription['meta_value']['_expiration_number'] : 0;
$expiration_period = ! empty( $subscription['meta_value']['_expiration_period'] ) ? sanitize_text_field(
$subscription['meta_value']['_expiration_period']
Expand Down
12 changes: 6 additions & 6 deletions languages/wp-user-frontend.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WP User Frontend 4.0.11\n"
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
"POT-Creation-Date: 2024-09-17 06:55:34+00:00\n"
"POT-Creation-Date: 2024-09-17 09:28:09+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -1332,7 +1332,7 @@ msgstr ""
#: admin/template.php:185 includes/Admin/Forms/Admin_Template.php:212
#: includes/Fields/Field_Contract.php:687
#: includes/Fields/Form_Field_Textarea.php:12
#: includes/Fields/Form_Field_Textarea.php:125
#: includes/Fields/Form_Field_Textarea.php:132
msgid "Textarea"
msgstr ""

Expand Down Expand Up @@ -2596,19 +2596,19 @@ msgstr ""
msgid "Others"
msgstr ""

#: includes/Admin/Forms/Form.php:189 includes/Admin/Forms/Form.php:239
#: includes/Admin/Forms/Form.php:191 includes/Admin/Forms/Form.php:241
msgid "Post Limit Exceeded for your purchased subscription pack."
msgstr ""

#: includes/Admin/Forms/Form.php:212
#: includes/Admin/Forms/Form.php:214
#. translators: %s: Pack page link
msgid ""
"You need to <a href=\"%s\">purchase a subscription package</a> to post in "
"this form"
msgstr ""

#: includes/Admin/Forms/Form.php:219 includes/Admin/Forms/Form.php:252
#: includes/Admin/Forms/Form.php:259
#: includes/Admin/Forms/Form.php:221 includes/Admin/Forms/Form.php:254
#: includes/Admin/Forms/Form.php:261
msgid "Payment type not selected for this form. Please contact admin."
msgstr ""

Expand Down

0 comments on commit e69375e

Please sign in to comment.