PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | app/Views/public/receipt/payment-info.php +21 -14 1.7.0 → 2.5.0 View file →
@@ -1,6 +1,13 @@
1 -<?php defined( 'ABSPATH' ) || exit; ?>
1 +<?php
2 +defined( 'ABSPATH' ) || exit;
2 3
4 +/**
5 + * @var object $order
6 + * @var array $currency_settings
7 + */
8 +?>
9 +
3 10 <div class="fluent_booking_payment_info">
4 11 <table width="100%">
5 12 <tbody>
6 13 <tr>
@@ -21,16 +28,16 @@
21 28 </div>
22 29 </td>
23 30 <?php if ($order->total_amount) : ?>
24 31 <?php
25 - $currencySetting['currency_sign'] = \FluentBooking\App\Services\CurrenciesHelper::getCurrencySign($order->currency);
32 + $currency_settings['currency_sign'] = \FluentBooking\App\Services\CurrenciesHelper::getCurrencySign($order->currency); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
26 33 ?>
27 - <td>
28 - <div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_total">
29 - <div class="fluent_booking_item_heading"><?php esc_html_e('Total:', 'fluent-booking'); ?></div>
30 - <div class="fluent_booking_item_value"><?php echo ($order->total_amount > 0) ? esc_attr(fluentbookingFormattedAmount($order->total_amount, $currencySetting)) : 'pending'; ?></div>
31 - </div>
32 - </td>
34 + <td>
35 + <div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_total">
36 + <div class="fluent_booking_item_heading"><?php esc_html_e('Total Amount:', 'fluent-booking'); ?></div>
37 + <div class="fluent_booking_item_value"><?php echo esc_attr(fluentbookingFormattedAmount($order->total_amount, $currency_settings)); ?></div>
38 + </div>
39 + </td>
33 40 <?php endif; ?>
34 41 <?php if ($order->payment_method) : ?>
35 42 <td>
36 43 <div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_payment_method">
@@ -39,14 +46,14 @@
39 46 </div>
40 47 </td>
41 48 <?php endif; ?>
42 49 <?php if ($order->status && $order->items) : ?>
43 - <td>
44 - <div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_payment_status">
45 - <div class="fluent_booking_item_heading"><?php esc_html_e('Payment Status:', 'fluent-booking'); ?></div>
46 - <div class="fluent_booking_item_value"><?php echo esc_attr(ucfirst($order->status)); ?></div>
47 - </div>
48 - </td>
50 + <td>
51 + <div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_payment_status">
52 + <div class="fluent_booking_item_heading"><?php esc_html_e('Payment Status:', 'fluent-booking'); ?></div>
53 + <div class="fluent_booking_item_value"><?php echo esc_attr(ucfirst($order->status)); ?></div>
54 + </div>
55 + </td>
49 56 <?php endif; ?>
50 57 </tr>
51 58 </tbody>
52 59 </table>