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/booking_confirmation.php +24 -12 1.5.25 → 2.5.0 View file →
@@ -1,9 +1,21 @@
1 1 <?php
2 - /*
3 - * @var $booking \FluentBooking\App\Models\Booking
4 - */
5 - defined( 'ABSPATH' ) || exit;
2 +defined( 'ABSPATH' ) || exit;
3 +
4 +use FluentBooking\App\Models\Booking;
5 +
6 +/**
7 + * @var Booking $booking
8 + * @var string $title
9 + * @var string $sub_heading
10 + * @var array $sections
11 + * @var string $confirm_icon
12 + * @var string $extra_html
13 + * @var string $action_type
14 + * @var string $action_url
15 + * @var array $cancel_field
16 + * @var array $bookmarks
17 + */
6 18 ?>
7 19
8 20 <div class="fcal_confirmation">
9 21 <?php do_action('fluent_booking/booking_details_header', $booking); ?>
@@ -18,16 +30,16 @@
18 30 <h2><?php echo esc_html($title); ?></h2>
19 31 <p><?php echo wp_kses_post($sub_heading); ?></p>
20 32 </div>
21 33 <div class="fcal_confirm_body">
22 - <?php foreach ($sections as $section): ?>
34 + <?php foreach ($sections as $fluentBookingSection): ?>
23 35 <div class="fcal_confirm_section">
24 36 <div class="fcal_confirm_section_title">
25 - <h4><?php echo esc_html($section['title']); ?></h4>
37 + <h4><?php echo esc_html($fluentBookingSection['title']); ?></h4>
26 38 </div>
27 - <?php foreach ((array)$section['content'] as $content) : ?>
39 + <?php foreach ((array)$fluentBookingSection['content'] as $fluentBookingContent) : ?>
28 40 <div class="fcal_confirm_section_content">
29 - <?php echo wp_kses_post($content); ?>
41 + <?php echo wp_kses_post($fluentBookingContent); ?>
30 42 </div>
31 43 <?php endforeach; ?>
32 44 </div>
33 45 <?php endforeach; ?>
@@ -91,12 +103,12 @@
91 103 <?php if ($bookmarks): ?>
92 104 <div class="fcal_booking_manage fcal_to_calendars">
93 105 <span><?php esc_html_e('Add to calendar', 'fluent-booking'); ?></span>
94 106 <div class="fcal_cal_items">
95 - <?php foreach ($bookmarks as $bookmark): ?>
96 - <div title="<?php echo esc_attr($bookmark['title']); ?>">
97 - <a href="<?php echo esc_url($bookmark['url']); ?>" target="_blank" rel="noopener">
98 - <img style="width: 20px; height: 20px;" src="<?php echo esc_url($bookmark['icon']); ?>" alt="<?php echo esc_attr($bookmark['title']); ?>"/>
107 + <?php foreach ($bookmarks as $fluentBookingBookmark): ?>
108 + <div title="<?php echo esc_attr($fluentBookingBookmark['title']); ?>">
109 + <a href="<?php echo esc_url($fluentBookingBookmark['url']); ?>" target="_blank" rel="noopener">
110 + <img style="width: 20px; height: 20px;" src="<?php echo esc_url($fluentBookingBookmark['icon']); ?>" alt="<?php echo esc_attr($fluentBookingBookmark['title']); ?>"/>
99 111 </a>
100 112 </div>
101 113 <?php endforeach; ?>
102 114 </div>