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/landing/confirmation_page.php +33 -14 1.5.0 → 2.5.0 View file →
@@ -1,6 +1,22 @@
1 -<?php defined( 'ABSPATH' ) || exit; ?>
1 +<?php
2 +defined( 'ABSPATH' ) || exit;
2 3
4 +/**
5 + * @var string $title
6 + * @var string $body
7 + * @var string $description
8 + * @var array $author
9 + * @var string $url
10 + * @var bool $embedded
11 + * @var string $theme
12 + * @var array $back_button
13 + * @var array $css_files
14 + * @var array $js_files
15 + * @var array $js_vars
16 + */
17 +?>
18 +
3 19 <!DOCTYPE html>
4 20 <html <?php language_attributes(); ?>>
5 21 <head>
6 22 <title><?php echo esc_attr($title); ?></title>
@@ -18,34 +34,37 @@
18 34 <meta property="og:url" content="<?php echo esc_url($url); ?>">
19 35 <meta property="og:description" content="<?php echo esc_attr($description); ?>">
20 36 <meta property="og:author" content="<?php echo esc_attr($author['name']); ?>">
21 37
22 - <?php foreach ($css_files as $css_file): ?>
23 - <link rel="stylesheet" href="<?php echo esc_url($css_file); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>" media="all" />
38 + <?php foreach ($css_files as $fluentBookingCssFile): ?>
39 + <?php // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet ?>
40 + <link rel="stylesheet" href="<?php echo esc_url($fluentBookingCssFile); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>" media="all" />
24 41 <?php endforeach; ?>
25 42 </head>
26 43 <body class="booking-confirmation-page">
27 44
28 - <div class="confirmation_page">
45 + <div class="confirmation_page <?php echo esc_attr($embedded ? 'fcal_booking_iframe' : ''); ?>">
29 46 <div class="fcal_conf_wrap">
30 47 <?php echo $body; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
31 48 </div>
32 - <div class="fcal_back_btn">
33 - <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-left h-5 w-5 rtl:rotate-180">
34 - <path d="m15 18-6-6 6-6"></path>
35 - </svg>
36 - <a href="<?php echo esc_url(site_url('/')); ?>"><?php esc_html_e('Back to home', 'fluent-booking'); ?></a>
37 - </div>
49 + <?php if (!empty($back_button['show'])): ?>
50 + <div class="fcal_back_btn">
51 + <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-left h-5 w-5 rtl:rotate-180">
52 + <path d="m15 18-6-6 6-6"></path>
53 + </svg>
54 + <a href="<?php echo esc_url($back_button['url']); ?>"><?php echo esc_html($back_button['text']); ?></a>
55 + </div>
56 + <?php endif; ?>
38 57 </div>
39 58
40 59 <script>
41 - <?php foreach ($js_vars as $varKey => $values): ?>
42 - var <?php echo esc_attr($varKey); ?> = <?php echo wp_json_encode($values); ?>;
60 + <?php foreach ($js_vars as $fluentBookingVarKey => $fluentBookingValues): ?>
61 + var <?php echo esc_attr($fluentBookingVarKey); ?> = <?php echo wp_json_encode($fluentBookingValues); ?>;
43 62 <?php endforeach; ?>
44 63 </script>
45 64
46 - <?php foreach ($js_files as $fileKey => $file): ?>
47 - <script id="<?php echo esc_attr($fileKey); ?>" src="<?php echo esc_url($file); ?>" defer="defer"></script>
65 + <?php foreach ($js_files as $fluentBookingFileKey => $fluentBookingFile): ?>
66 + <script id="<?php echo esc_attr($fluentBookingFileKey); ?>"<?php echo \FluentBooking\App\Vite::isDev() ? ' type="module"' : ''; ?> src="<?php echo esc_url($fluentBookingFile); ?>" defer="defer"></script>
48 67 <?php endforeach; ?>
49 68
50 69 <script>
51 70 const theme = '<?php echo esc_attr($theme); ?>';