Changeset 3388933
- Timestamp:
- 11/03/2025 02:30:06 PM (6 weeks ago)
- Location:
- motopress-booking-calendar-lite/trunk
- Files:
-
- 11 edited
-
assets-dev/scripts/src/shortcode/booking-calendar-shortcode.ts (modified) (5 diffs)
-
assets-dev/styles/src/variables.scss (modified) (1 diff)
-
assets/admin/edit-booking.css (modified) (1 diff)
-
assets/public/public.css (modified) (1 diff)
-
assets/public/public.js (modified) (11 diffs)
-
languages/motopress-booking-calendar.pot (modified) (64 diffs)
-
motopress-booking-calendar-lite.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/data/repository/trait-reserved-slots-repository.php (modified) (1 diff)
-
src/data/repository/trait-unit-availability-repository.php (modified) (1 diff)
-
src/helper/price-helper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
motopress-booking-calendar-lite/trunk/assets-dev/scripts/src/shortcode/booking-calendar-shortcode.ts
r3365637 r3388933 36 36 private button_next: HTMLElement|null; 37 37 private button_submit: HTMLElement|null; 38 private preloader: HTMLElement|null; 38 39 39 40 /** … … 73 74 this.button_next = this.step_cart.get_block_cart()?.querySelector( '.button-next' ) || null; 74 75 this.button_submit = this.step_checkout.get_block_submit()?.querySelector( '.button-submit' ) || null; 76 this.preloader = this.step_checkout.get_block_submit()?.querySelector( '.mpbc-preloader' ) || null; 75 77 76 78 this.add_event_listeners(); … … 182 184 this.button_submit!.setAttribute( 'disabled', 'disabled' ); 183 185 this.step_checkout.disable_fields(); 186 this.preloader?.classList.remove( 'mpbc-hide' ); 184 187 185 188 try { … … 189 192 this.button_submit!.removeAttribute( 'disabled' ); 190 193 this.step_checkout.enable_fields(); 194 this.preloader?.classList.add( 'mpbc-hide' ); 191 195 192 196 return; … … 243 247 this.button_submit!.removeAttribute( 'disabled' ); 244 248 this.step_checkout.enable_fields(); 249 this.preloader?.classList.add( 'mpbc-hide' ); 245 250 } 246 251 } -
motopress-booking-calendar-lite/trunk/assets-dev/styles/src/variables.scss
r3382618 r3388933 1 $version: "1.3. 1";1 $version: "1.3.2"; -
motopress-booking-calendar-lite/trunk/assets/admin/edit-booking.css
r3382618 r3388933 57 57 width: 20px; 58 58 height: 20px; 59 background: no-repeat center url("../images/preloader-20px.gif?ver=1.3. 1");59 background: no-repeat center url("../images/preloader-20px.gif?ver=1.3.2"); 60 60 } 61 61 -
motopress-booking-calendar-lite/trunk/assets/public/public.css
r3382618 r3388933 800 800 width: 20px; 801 801 height: 20px; 802 background: no-repeat center url("../images/preloader-20px.gif?ver=1.3. 1");802 background: no-repeat center url("../images/preloader-20px.gif?ver=1.3.2"); 803 803 } 804 804 -
motopress-booking-calendar-lite/trunk/assets/public/public.js
r3377625 r3388933 3722 3722 } 3723 3723 update_price(price) { 3724 // https://docs.stripe.com/js/elements_object/update 3724 3725 this.elements.update({ amount: price }); 3725 3726 } … … 3764 3765 html_payments_element; 3765 3766 html_preloader = null; 3766 is_mounted = false;3767 3767 payments = null; 3768 3768 constructor(billing_fields, cart) { … … 3832 3832 reset() { 3833 3833 if (this.payments !== null) { 3834 this.payments.update_price(this.cart.get_price()); 3834 if (this.cart.get_price() > 0) { 3835 this.payments.update_price(this.convert_to_smallest_unit(this.cart.get_price())); 3836 } 3837 else { 3838 this.payments.destroy(); 3839 this.payments = null; 3840 } 3841 } 3842 else if (this.is_enabled()) { 3843 this.display_payments(); 3835 3844 } 3836 3845 } … … 3841 3850 // https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#additional-options 3842 3851 { 3843 amount: this.convert_to_smallest_unit(this.cart.get_price() , this.cart.get_currency()),3852 amount: this.convert_to_smallest_unit(this.cart.get_price()), 3844 3853 currency: this.cart.get_currency().toLowerCase(), 3845 3854 locale: this.settings.checkout_locale, … … 3849 3858 if (this.payments !== null) { 3850 3859 this.payments.destroy(); 3851 this.is_mounted = false;3852 3860 } 3853 3861 this.payments = new Dynamic_Payments(stripe_api, elements); 3854 3862 } 3855 3863 display_payments() { 3856 if ( !this.is_mounted) {3864 if (this.payments === null) { 3857 3865 this.create_payments(); 3858 3866 this.payments.mount(this.html_payments_element); 3859 this.is_mounted = true;3860 3867 } 3861 3868 } … … 3868 3875 */ 3869 3876 convert_to_smallest_unit(amount, currency) { 3877 if (!currency) { 3878 currency = this.cart.get_currency(); 3879 } 3870 3880 // See all currencies (presented as links): 3871 3881 // https://stripe.com/docs/currencies#presentment-currencies … … 4986 4996 button_next; 4987 4997 button_submit; 4998 preloader; 4988 4999 /** 4989 5000 * @throws Error If there is no cart or checkout block. … … 5014 5025 this.button_next = this.step_cart.get_block_cart()?.querySelector('.button-next') || null; 5015 5026 this.button_submit = this.step_checkout.get_block_submit()?.querySelector('.button-submit') || null; 5027 this.preloader = this.step_checkout.get_block_submit()?.querySelector('.mpbc-preloader') || null; 5016 5028 this.add_event_listeners(); 5017 5029 this.load(); … … 5099 5111 this.button_submit.setAttribute('disabled', 'disabled'); 5100 5112 this.step_checkout.disable_fields(); 5113 this.preloader?.classList.remove('mpbc-hide'); 5101 5114 try { 5102 5115 const is_valid_data = await this.step_checkout.check_validity(); … … 5104 5117 this.button_submit.removeAttribute('disabled'); 5105 5118 this.step_checkout.enable_fields(); 5119 this.preloader?.classList.add('mpbc-hide'); 5106 5120 return; 5107 5121 } … … 5142 5156 this.button_submit.removeAttribute('disabled'); 5143 5157 this.step_checkout.enable_fields(); 5158 this.preloader?.classList.add('mpbc-hide'); 5144 5159 } 5145 5160 } -
motopress-booking-calendar-lite/trunk/languages/motopress-booking-calendar.pot
r3382618 r3388933 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Booking Calendar 1.3. 1\n"5 "Project-Id-Version: Booking Calendar 1.3.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/motopress-booking-calendar\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-1 0-15T13:45:49+00:00\n"12 "POT-Creation-Date: 2025-11-03T13:25:47+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 1.0\n"14 "X-Generator: WP-CLI 2.12.0\n" 15 15 "X-Domain: motopress-booking-calendar\n" 16 16 … … 53 53 #: src/admin/metabox/payment-details-metabox.php:45 54 54 #: src/admin/page/settings-page.php:411 55 #: src/bundles.php:1 9355 #: src/bundles.php:188 56 56 #: src/field/country-select-field.php:17 57 57 #: src/field/page-select-field.php:40 … … 62 62 #: lite/src/payment-gateway/stripe-gateway.php:21 63 63 #: src/admin/page/upgrade-to-premium-page.php:68 64 #: src/payment-gateway/stripe-gateway.php:7 364 #: src/payment-gateway/stripe-gateway.php:72 65 65 msgid "Stripe" 66 66 msgstr "" … … 68 68 #. Translators: %s: Upgrade to Premium page URL. 69 69 #: lite/src/payment-gateway/stripe-gateway.php:46 70 #, php-format 70 71 msgid "<a href=\"%s\">Upgrade to Premium</a> version to enable this payment gateway for online bookings." 71 72 msgstr "" … … 93 94 #. Translators: %s: Name for one object of this post type. Examples: "Booking", "Payment". 94 95 #: src/admin/metabox/basic-submit-metabox.php:27 96 #, php-format 95 97 msgid "Create %s" 96 98 msgstr "" … … 98 100 #. Translators: %s: Name for one object of this post type. Examples: "Booking", "Payment". 99 101 #: src/admin/metabox/basic-submit-metabox.php:30 102 #, php-format 100 103 msgid "Update %s" 101 104 msgstr "" … … 278 281 #. Translators: 1: Link to the list of bookings. 2: Settings link. 279 282 #: src/admin/metabox/notification-test-metabox.php:40 283 #, php-format 280 284 msgid "To be able to send a test notification, make sure you have at least one <a href=\"%1$s\">confirmed booking</a> and an administrator contact set in the <a href=\"%2$s\">Settings</a>." 281 285 msgstr "" … … 321 325 #: src/admin/page/manage-bookings-page.php:65 322 326 #: src/admin/page/manage-payments-page.php:55 327 #, php-format 323 328 msgid "Expires %s" 324 329 msgstr "" … … 510 515 #. Translators: 1-2: Link tag (<a>...</a>). 3-4: Strong tag (<strong>...</strong). 511 516 #: src/admin/page/upgrade-to-premium-page.php:31 517 #, php-format 512 518 msgid "Want to see and test the PRO features first-hand on the backend? %3$s %1$s Start a free trial %2$s with the PRO plugin version. %4$s" 513 519 msgstr "" … … 571 577 msgstr "" 572 578 573 #: src/bundles.php:1 20579 #: src/bundles.php:115 574 580 #: assets/property-form/index.js:4 575 581 msgid "Before" 576 582 msgstr "" 577 583 578 #: src/bundles.php:1 21584 #: src/bundles.php:116 579 585 #: assets/property-form/index.js:4 580 586 msgid "After" 581 587 msgstr "" 582 588 583 #: src/bundles.php:1 22589 #: src/bundles.php:117 584 590 #: assets/property-form/index.js:4 585 591 msgid "Before with space" 586 592 msgstr "" 587 593 588 #: src/bundles.php:1 23594 #: src/bundles.php:118 589 595 #: assets/property-form/index.js:4 590 596 msgid "After with space" 591 597 msgstr "" 592 598 593 #: src/bundles.php:19 6599 #: src/bundles.php:191 594 600 msgid "New booking (admin)" 595 601 msgstr "" 596 602 603 #: src/bundles.php:193 604 msgid "{site_title} - New Booking #{booking_id}" 605 msgstr "" 606 607 #: src/bundles.php:194 608 msgid "New Booking #{booking_id}" 609 msgstr "" 610 597 611 #: src/bundles.php:198 598 msgid "{site_title} - New Booking #{booking_id}"599 msgstr ""600 601 #: src/bundles.php:199602 msgid "New Booking #{booking_id}"603 msgstr ""604 605 #: src/bundles.php:203606 612 msgid "New booking (customer)" 607 613 msgstr "" 608 614 615 #: src/bundles.php:200 616 #: src/bundles.php:208 617 #: src/bundles.php:216 618 msgid "{site_title} - Booking #{booking_id}" 619 msgstr "" 620 621 #: src/bundles.php:201 622 msgid "Booking #{booking_id}" 623 msgstr "" 624 609 625 #: src/bundles.php:205 626 msgid "Cancelled booking (admin)" 627 msgstr "" 628 629 #: src/bundles.php:209 630 #: src/bundles.php:217 631 msgid "Booking #{booking_id} cancelled" 632 msgstr "" 633 610 634 #: src/bundles.php:213 635 msgid "Cancelled booking (customer)" 636 msgstr "" 637 611 638 #: src/bundles.php:221 612 msgid "{site_title} - Booking #{booking_id}"613 msgstr ""614 615 #: src/bundles.php:206616 msgid "Booking #{booking_id}"617 msgstr ""618 619 #: src/bundles.php:210620 msgid "Cancelled booking (admin)"621 msgstr ""622 623 #: src/bundles.php:214624 #: src/bundles.php:222625 msgid "Booking #{booking_id} cancelled"626 msgstr ""627 628 #: src/bundles.php:218629 msgid "Cancelled booking (customer)"630 msgstr ""631 632 #: src/bundles.php:226633 639 msgid "Payment received (admin)" 634 640 msgstr "" 635 641 642 #: src/bundles.php:224 643 msgid "{site_title} - New Payment #{payment_id}" 644 msgstr "" 645 646 #: src/bundles.php:225 647 #: src/bundles.php:233 648 msgid "Payment #{payment_id} completed" 649 msgstr "" 650 636 651 #: src/bundles.php:229 637 msgid "{site_title} - New Payment #{payment_id}"638 msgstr ""639 640 #: src/bundles.php:230641 #: src/bundles.php:238642 msgid "Payment #{payment_id} completed"643 msgstr ""644 645 #: src/bundles.php:234646 652 msgid "Payment received (customer)" 647 653 msgstr "" 648 654 649 #: src/bundles.php:23 7655 #: src/bundles.php:232 650 656 msgid "{site_title} - Payment #{payment_id} receipt" 651 657 msgstr "" … … 658 664 #. Translators: %d: Post ID. 659 665 #: src/data/abstract-entity.php:280 666 #, php-format 660 667 msgid "Post #%d not found." 661 668 msgstr "" … … 663 670 #. Translators: %d: Booking ID. 664 671 #: src/data/booking.php:463 672 #, php-format 665 673 msgid "Booking #%d not found." 666 674 msgstr "" … … 668 676 #. Translators: %d: Form ID. 669 677 #: src/data/form.php:127 678 #, php-format 670 679 msgid "Form #%d not found." 671 680 msgstr "" … … 673 682 #. Translators: %d: Notification ID. 674 683 #: src/data/notification.php:262 684 #, php-format 675 685 msgid "Notification #%d not found." 676 686 msgstr "" … … 678 688 #. Translators: %d: Payment ID. 679 689 #: src/data/payment.php:363 690 #, php-format 680 691 msgid "Payment #%d not found." 681 692 msgstr "" … … 683 694 #. Translators: %d: Calendar ID. 684 695 #: src/data/property.php:172 696 #, php-format 685 697 msgid "Calendar #%d not found." 686 698 msgstr "" … … 703 715 #. Translators: %d: Reservation ID. 704 716 #: src/data/reservation.php:262 717 #, php-format 705 718 msgid "Reservation #%d not found." 706 719 msgstr "" … … 708 721 #. Translators: %d: Unit ID. 709 722 #: src/data/unit.php:80 723 #, php-format 710 724 msgid "Unit #%d not found." 711 725 msgstr "" … … 713 727 #. Translators: %d: Variation ID. 714 728 #: src/data/variation.php:160 729 #, php-format 715 730 msgid "Variation #%d not found." 716 731 msgstr "" … … 718 733 #. Translators: %s: Notification title. 719 734 #: src/email/emails-dispatcher.php:141 735 #, php-format 720 736 msgid "Notification \"%s\" will not be sent: there is no email address to send the notification to." 721 737 msgstr "" … … 723 739 #. Translators: %s: Notification title. 724 740 #: src/email/emails-dispatcher.php:188 741 #, php-format 725 742 msgid "Notification \"%s\" was sent." 726 743 msgstr "" … … 728 745 #. Translators: %1: Notification title. %2: The cause of the error. 729 746 #: src/email/emails-dispatcher.php:195 747 #, php-format 730 748 msgid "Notification \"%1$s\" sending failed. %2$s" 731 749 msgstr "" … … 733 751 #. Translators: %s: Notification title. 734 752 #: src/email/emails-dispatcher.php:203 753 #, php-format 735 754 msgid "Notification \"%s\" sending failed." 736 755 msgstr "" … … 898 917 #. Translators: %s: License expiration date in "d.m.Y" format. 899 918 #: src/field/license-field.php:145 919 #, php-format 900 920 msgid "Valid until %s" 901 921 msgstr "" … … 923 943 #. Translators: %s: Comma-separated field names. 924 944 #: src/helper/booking-helper.php:342 945 #, php-format 925 946 msgid "Missing required fields: %s" 926 947 msgstr "" … … 937 958 #. Translators: %s: Reservation price per time slot. 938 959 #: src/helper/form-helper.php:178 960 #, php-format 939 961 msgid "%s (multiplied by the booking duration)" 940 962 msgstr "" 941 963 942 964 #: src/helper/payment-helper.php:36 943 #: assets/public/public.js:47 54965 #: assets/public/public.js:4764 944 966 msgid "Payment method not selected." 945 967 msgstr "" … … 958 980 msgstr "" 959 981 960 #: src/helper/price-helper.php:1 57982 #: src/helper/price-helper.php:164 961 983 #: assets/public/public.js:2828 962 984 msgctxt "Zero price" … … 991 1013 #. Translators: %s: Payment gateway title. 992 1014 #: src/payment-gateway/abstract-gateway.php:116 1015 #, php-format 993 1016 msgid "Enable \"%s\"" 994 1017 msgstr "" … … 1028 1051 #. Translators: %s: Error message. 1029 1052 #: src/payment-gateway/abstract-webhook-listener.php:79 1053 #, php-format 1030 1054 msgid "Webhook processing error. %s" 1031 1055 msgstr "" … … 1045 1069 #. Translators: %s: Payment gateway title. 1046 1070 #: src/payment-gateway/payment-gateways.php:161 1071 #, php-format 1047 1072 msgid "Payment gateway \"%s\" not found." 1048 1073 msgstr "" … … 1057 1082 1058 1083 #. Translators: 1: Currency code, like "EUR". 2: Payment amount. 1059 #: src/payment-gateway/stripe-gateway.php:97 1084 #: src/payment-gateway/stripe-gateway.php:96 1085 #, php-format 1060 1086 msgid "The minimum amount in %1$s is %2$s." 1061 1087 msgstr "" 1062 1088 1063 #: src/payment-gateway/stripe-gateway.php:15 21089 #: src/payment-gateway/stripe-gateway.php:151 1064 1090 msgid "Payment intent ID is not set." 1065 1091 msgstr "" 1066 1092 1067 1093 #. Translators: %s: Payment intent ID. 1068 #: src/payment-gateway/stripe-gateway.php:159 1094 #: src/payment-gateway/stripe-gateway.php:158 1095 #, php-format 1069 1096 msgid "Payment for payment intent %s succeeded." 1070 1097 msgstr "" 1071 1098 1072 1099 #. Translators: %s: Payment intent ID. 1073 #: src/payment-gateway/stripe-gateway.php:165 1100 #: src/payment-gateway/stripe-gateway.php:164 1101 #, php-format 1074 1102 msgid "Payment for payment intent %s is processing." 1075 1103 msgstr "" 1076 1104 1105 #: src/payment-gateway/stripe-gateway.php:175 1106 msgid "Credit card (Stripe)" 1107 msgstr "" 1108 1077 1109 #: src/payment-gateway/stripe-gateway.php:176 1078 msgid "Credit card (Stripe)"1079 msgstr ""1080 1081 #: src/payment-gateway/stripe-gateway.php:1771082 1110 msgid "Pay with your credit card via Stripe. Use the card number 4242424242424242 with CVC 123, a valid expiration date and random 5-digit ZIP-code to test a payment." 1083 1111 msgstr "" 1084 1112 1085 1113 #. Translators: %s: Key prefix. 1086 #: src/payment-gateway/stripe-gateway.php:181 1114 #: src/payment-gateway/stripe-gateway.php:180 1115 #, php-format 1087 1116 msgid "Standard key must start with %s." 1088 1117 msgstr "" 1089 1118 1090 1119 #. Translators: %s: Key prefix. 1091 #: src/payment-gateway/stripe-gateway.php:184 1120 #: src/payment-gateway/stripe-gateway.php:183 1121 #, php-format 1092 1122 msgid "Restricted key must start with %s." 1093 1123 msgstr "" 1094 1124 1095 #: src/payment-gateway/stripe-gateway.php:18 71125 #: src/payment-gateway/stripe-gateway.php:186 1096 1126 msgid "Optional. You can provide your Stripe Webhook Secret Key to enhance the security of incoming webhooks. The key can be found in your Stripe account under the webhook settings as the \"Signing secret\"." 1097 1127 msgstr "" 1098 1128 1099 1129 #. Translators: %s: API version. 1100 #: src/payment-gateway/stripe-gateway.php:190 1130 #: src/payment-gateway/stripe-gateway.php:189 1131 #, php-format 1101 1132 msgid "API version: %s" 1102 1133 msgstr "" 1103 1134 1104 1135 #. Translators: %s: Webhooks destination URL. 1105 #: src/payment-gateway/stripe-gateway.php:193 1136 #: src/payment-gateway/stripe-gateway.php:192 1137 #, php-format 1106 1138 msgid "Webhooks destination URL: %s" 1107 1139 msgstr "" 1108 1140 1109 1141 #. Translators: %s: list of supported event types separated by commas. 1110 #: src/payment-gateway/stripe-gateway.php:196 1142 #: src/payment-gateway/stripe-gateway.php:195 1143 #, php-format 1111 1144 msgid "Supported event types: %s" 1112 1145 msgstr "" 1113 1146 1114 #: src/payment-gateway/stripe-gateway.php:19 81147 #: src/payment-gateway/stripe-gateway.php:197 1115 1148 msgid "<a href=\"https://docs.stripe.com/webhooks#configure-webhook-settings\" target=\"_blank\">Setting up webhook endpoints</a>" 1116 1149 msgstr "" 1117 1150 1118 #: src/payment-gateway/stripe-gateway.php:20 21151 #: src/payment-gateway/stripe-gateway.php:201 1119 1152 msgid "<a href=\"https://dashboard.stripe.com/apikeys\" target=\"_blank\">Locate API keys in the Dashboard</a>" 1120 1153 msgstr "" 1121 1154 1122 #: src/payment-gateway/stripe-gateway.php:20 41155 #: src/payment-gateway/stripe-gateway.php:203 1123 1156 msgid "Public Key" 1124 1157 msgstr "" 1125 1158 1126 #: src/payment-gateway/stripe-gateway.php:21 21159 #: src/payment-gateway/stripe-gateway.php:211 1127 1160 msgid "Secret Key" 1128 1161 msgstr "" 1129 1162 1130 #: src/payment-gateway/stripe-gateway.php:21 81163 #: src/payment-gateway/stripe-gateway.php:217 1131 1164 msgid "<a href=\"https://dashboard.stripe.com/settings/payment_methods\" target=\"_blank\">Setting up the payment method configuration ID</a>" 1132 1165 msgstr "" 1133 1166 1134 #: src/payment-gateway/stripe-gateway.php:2 201167 #: src/payment-gateway/stripe-gateway.php:219 1135 1168 msgid "Payment Methods Configuration ID" 1136 1169 msgstr "" 1137 1170 1138 #: src/payment-gateway/stripe-gateway.php:22 81171 #: src/payment-gateway/stripe-gateway.php:227 1139 1172 msgid "Webhook Secret Key" 1140 1173 msgstr "" 1141 1174 1142 #: src/payment-gateway/stripe-gateway.php:23 41175 #: src/payment-gateway/stripe-gateway.php:233 1143 1176 msgid "Display Checkout in the user's preferred language, if available." 1144 1177 msgstr "" 1145 1178 1146 #: src/payment-gateway/stripe-gateway.php:23 61179 #: src/payment-gateway/stripe-gateway.php:235 1147 1180 msgid "Checkout Locale" 1148 1181 msgstr "" 1149 1182 1150 1183 #. Translators: %d: Booking ID. 1151 #: src/payment-gateway/stripe-gateway.php:260 1184 #: src/payment-gateway/stripe-gateway.php:259 1185 #, php-format 1152 1186 msgctxt "Product name for payment gateway" 1153 1187 msgid "Booking #%d" 1154 1188 msgstr "" 1155 1189 1156 #: src/payment-gateway/stripe-gateway.php:27 41190 #: src/payment-gateway/stripe-gateway.php:276 1157 1191 #: assets/blocks/booking-calendar/index.js:1 1158 1192 msgid "Auto" … … 1161 1195 #. Translators: %s: Stripe payment intent ID. 1162 1196 #: src/payment-gateway/stripe/stripe-webhook-listener.php:74 1197 #, php-format 1163 1198 msgid "Webhook received. Payment intent %s was canceled by customer." 1164 1199 msgstr "" … … 1166 1201 #. Translators: %s: Stripe payment intent ID. 1167 1202 #: src/payment-gateway/stripe/stripe-webhook-listener.php:87 1203 #, php-format 1168 1204 msgid "Webhook received. Payment intent %s failed and couldn't be processed." 1169 1205 msgstr "" … … 1171 1207 #. Translators: %s: Stripe payment intent ID. 1172 1208 #: src/payment-gateway/stripe/stripe-webhook-listener.php:100 1209 #, php-format 1173 1210 msgid "Webhook received. Payment intent %s is waiting for customer confirmation." 1174 1211 msgstr "" … … 1176 1213 #. Translators: %s: Stripe payment intent ID. 1177 1214 #: src/payment-gateway/stripe/stripe-webhook-listener.php:127 1215 #, php-format 1178 1216 msgid "Webhook received. Payment intent %s succeeded." 1179 1217 msgstr "" … … 1332 1370 #: src/post-type/statuses/booking-statuses.php:81 1333 1371 #: src/post-type/statuses/payment-statuses.php:91 1372 #, php-format 1334 1373 msgid "Abandoned <span class=\"count\">(%d)</span>" 1335 1374 msgid_plural "Abandoned <span class=\"count\">(%d)</span>" … … 1344 1383 #. Translators: %d: Posts count. 1345 1384 #: src/post-type/statuses/booking-statuses.php:88 1385 #, php-format 1346 1386 msgid "Cancelled <span class=\"count\">(%d)</span>" 1347 1387 msgid_plural "Cancelled <span class=\"count\">(%d)</span>" … … 1356 1396 #. Translators: %d: Posts count. 1357 1397 #: src/post-type/statuses/booking-statuses.php:95 1398 #, php-format 1358 1399 msgid "Confirmed <span class=\"count\">(%d)</span>" 1359 1400 msgid_plural "Confirmed <span class=\"count\">(%d)</span>" … … 1370 1411 #: src/post-type/statuses/booking-statuses.php:102 1371 1412 #: src/post-type/statuses/payment-statuses.php:112 1413 #, php-format 1372 1414 msgid "Failed <span class=\"count\">(%d)</span>" 1373 1415 msgid_plural "Failed <span class=\"count\">(%d)</span>" … … 1384 1426 #: src/post-type/statuses/booking-statuses.php:109 1385 1427 #: src/post-type/statuses/payment-statuses.php:126 1428 #, php-format 1386 1429 msgid "Pending <span class=\"count\">(%d)</span>" 1387 1430 msgid_plural "Pending <span class=\"count\">(%d)</span>" … … 1392 1435 #: src/post-type/statuses/booking-statuses.php:152 1393 1436 #: src/post-type/statuses/payment-statuses.php:164 1437 #, php-format 1394 1438 msgid "Status changed from %1$s to %2$s." 1395 1439 msgstr "" … … 1402 1446 #. Translators: %d: Posts count. 1403 1447 #: src/post-type/statuses/payment-statuses.php:98 1448 #, php-format 1404 1449 msgid "Canceled <span class=\"count\">(%d)</span>" 1405 1450 msgid_plural "Canceled <span class=\"count\">(%d)</span>" … … 1414 1459 #. Translators: %d: Posts count. 1415 1460 #: src/post-type/statuses/payment-statuses.php:105 1461 #, php-format 1416 1462 msgid "Completed <span class=\"count\">(%d)</span>" 1417 1463 msgid_plural "Completed <span class=\"count\">(%d)</span>" … … 1426 1472 #. Translators: %d: Posts count. 1427 1473 #: src/post-type/statuses/payment-statuses.php:119 1474 #, php-format 1428 1475 msgid "On Hold <span class=\"count\">(%d)</span>" 1429 1476 msgid_plural "On Hold <span class=\"count\">(%d)</span>" … … 1438 1485 #. Translators: %d: Posts count. 1439 1486 #: src/post-type/statuses/payment-statuses.php:133 1487 #, php-format 1440 1488 msgid "Refunded <span class=\"count\">(%d)</span>" 1441 1489 msgid_plural "Refunded <span class=\"count\">(%d)</span>" … … 1715 1763 #. Translators: %s: Number of reservations in cart (HTML). 1716 1764 #: templates/shortcode/booking-calendar-shortcode.php:37 1765 #, php-format 1717 1766 msgid "Your reservation %s" 1718 1767 msgstr "" … … 1726 1775 msgstr "" 1727 1776 1728 #: templates/shortcode/booking-calendar-shortcode.php:11 21777 #: templates/shortcode/booking-calendar-shortcode.php:111 1729 1778 msgid "Sorry, it seems that there are no available payment methods." 1730 1779 msgstr "" 1731 1780 1732 #: templates/shortcode/booking-calendar-shortcode.php:1 201781 #: templates/shortcode/booking-calendar-shortcode.php:119 1733 1782 #: templates/shortcode/booking-details-shortcode.php:80 1734 1783 msgid "Total Price" 1735 1784 msgstr "" 1736 1785 1737 #: templates/shortcode/booking-calendar-shortcode.php:12 41786 #: templates/shortcode/booking-calendar-shortcode.php:123 1738 1787 msgid "Book Now" 1739 1788 msgstr "" … … 1741 1790 #. Translators: 1: Calendar title. 2: Variation title. 3: Booked items count. 4: Price. 1742 1791 #: templates/shortcode/booking-details-shortcode.php:46 1792 #, php-format 1743 1793 msgid "%1$s - %2$s × %3$s for %4$s" 1744 1794 msgstr "" … … 1996 2046 #. translators: %s - service or product label 1997 2047 #: assets/property-calendar/index.js:4 2048 #, js-format 1998 2049 msgid "Calendar for \"%s\"" 1999 2050 msgstr "" … … 2013 2064 #. translators: %s is a Date 2014 2065 #: assets/property-calendar/index.js:7 2066 #, js-format 2015 2067 msgid "Add timeslot for \"%s\"" 2016 2068 msgstr "" … … 2066 2118 #. translators: %s is a Date 2067 2119 #: assets/property-calendar/index.js:10 2120 #, js-format 2068 2121 msgid "Edit timeslot \"%1$s - %2$s\"" 2069 2122 msgstr "" … … 2086 2139 #: assets/property-calendar/index.js:13 2087 2140 #: assets/property-calendar/index.js:22 2141 #, js-format 2088 2142 msgid "This and following timeslots at the same time from %1$s to %2$s." 2089 2143 msgstr "" … … 2092 2146 #: assets/property-calendar/index.js:16 2093 2147 #: assets/property-calendar/index.js:25 2148 #, js-format 2094 2149 msgid "All timeslots at the same time from %1$s to %2$s." 2095 2150 msgstr "" … … 2097 2152 #. translators: %s is a Date 2098 2153 #: assets/property-calendar/index.js:19 2154 #, js-format 2099 2155 msgid "Delete timeslot \"%1$s - %2$s\"" 2100 2156 msgstr "" … … 2166 2222 #: assets/property-calendar/index.js:28 2167 2223 #: assets/property-calendar/index.js:37 2224 #, js-format 2168 2225 msgid "Bulk edit \"%s\"" 2169 2226 msgstr "" … … 2213 2270 #. translators: %1$s - start time, %2$s - end time, %3$s - optional details (label, multi-day) 2214 2271 #: assets/property-calendar/index.js:31 2272 #, js-format 2215 2273 msgid "Availability (%1$s - %2$s)%3$s" 2216 2274 msgstr "" … … 2223 2281 #. translators: %1$s - start time, %2$s - end time, %3$s - optional details (label, multi-day) 2224 2282 #: assets/property-calendar/index.js:34 2283 #, js-format 2225 2284 msgid "Price (%1$s - %2$s)%3$s" 2226 2285 msgstr "" … … 2232 2291 #. translators: %s - variation title 2233 2292 #: assets/property-calendar/index.js:40 2293 #, js-format 2234 2294 msgid "Delete Variation: %s" 2235 2295 msgstr "" … … 2260 2320 #: assets/property-calendar/index.js:46 2261 2321 #: assets/property-calendar/index.js:49 2322 #, js-format 2262 2323 msgid "%1$s - %2$s" 2263 2324 msgstr "" … … 2338 2399 #: assets/property-form-blocks/radio/index.js:4 2339 2400 #: assets/property-form-blocks/select-option/index.js:4 2401 #, js-format 2340 2402 msgid "Flat (%1$s)" 2341 2403 msgstr "" … … 2502 2564 #: assets/property-form/index.js:4 2503 2565 #: assets/property-form/index.js:7 2566 #, js-format 2504 2567 msgid "Default - %1$s" 2505 2568 msgstr "" … … 2536 2599 #: assets/public/public.js:3390 2537 2600 #: assets/public/public.js:3449 2538 #: assets/public/public.js:4934 2601 #: assets/public/public.js:4944 2602 #, js-format 2539 2603 msgctxt "Prices start from" 2540 2604 msgid "from %s" … … 2554 2618 msgstr "" 2555 2619 2556 #: assets/public/public.js:50 852620 #: assets/public/public.js:5095 2557 2621 msgid "Your cart is empty." 2558 2622 msgstr "" -
motopress-booking-calendar-lite/trunk/motopress-booking-calendar-lite.php
r3382618 r3388933 5 5 * Plugin URI: https://motopress.com/products/booking-calendar/ 6 6 * Description: WordPress booking calendar plugin for daily, nightly, and hourly rentals. 7 * Version: 1.3. 17 * Version: 1.3.2 8 8 * Requires at least: 6.0 9 9 * Requires PHP: 7.4 … … 30 30 31 31 if ( ! defined( 'MPBC\VERSION' ) ) { 32 define('MPBC\VERSION', '1.3. 1');32 define('MPBC\VERSION', '1.3.2'); 33 33 34 34 require 'src/autoloader.php'; -
motopress-booking-calendar-lite/trunk/readme.txt
r3382618 r3388933 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1.3. 18 Stable tag: 1.3.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 163 163 == Changelog == 164 164 165 = 1.3.2, Nov 3 2025 = 166 * Bug fix: fixed an issue with fractional prices in Stripe. 167 165 168 = 1.3.1, Oct 22 2025 = 166 169 * Minor bugfixes and improvements. -
motopress-booking-calendar-lite/trunk/src/data/repository/trait-reserved-slots-repository.php
r3365637 r3388933 64 64 . " AND reserved_slots.time_slot_id IN ($time_slot_ids_placeholder)" // phpcs:ignore -- array placeholder 65 65 . " AND reserved_slots.unit_id IN ($unit_ids_placeholder)" // phpcs:ignore -- array placeholder 66 . " AND bookings.post_status IN ($statuses_placeholder)", // phpcs:ignore -- array placeholder s66 . " AND bookings.post_status IN ($statuses_placeholder)", // phpcs:ignore -- array placeholder 67 67 array_merge( $time_slot_ids, $unit_ids, $blocking_statuses ) 68 68 ), -
motopress-booking-calendar-lite/trunk/src/data/repository/trait-unit-availability-repository.php
r3377625 r3388933 97 97 "SELECT * FROM $this->unit_availability" 98 98 . " WHERE time_slot_id IN ($time_slot_ids_placeholder)" // phpcs:ignore -- array placeholder 99 . " AND unit_id IN ($unit_ids_placeholders)", // phpcs:ignore -- array placeholder s99 . " AND unit_id IN ($unit_ids_placeholders)", // phpcs:ignore -- array placeholder 100 100 array_merge( $time_slot_ids, $unit_ids ) 101 101 ), -
motopress-booking-calendar-lite/trunk/src/helper/price-helper.php
r3365637 r3388933 13 13 14 14 class Price_Helper { 15 public static function adjust_entity_price( Interface_Price_Adjustable_Entity $entity, array $custom_fields ): float { 15 public static function adjust_entity_price( 16 Interface_Price_Adjustable_Entity $entity, 17 array $custom_fields 18 ): float { 16 19 $price = $entity->get_price(); 17 20
Note: See TracChangeset
for help on using the changeset viewer.