PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.1.1
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.1.1
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 1.7.2 All 33 releases
fluent-booking / app / Views / landing / confirmation_page.php

confirmation_page.php in Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution 2.1.1, at app/Views/landing/confirmation_page.php

96 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined( 'ABSPATH' ) || exit; ?>
2
3 <!DOCTYPE html>
4 <html <?php language_attributes(); ?>>
5 <head>
6 <title><?php echo esc_attr($title); ?></title>
7 <meta charset='utf-8'>
8
9 <meta content='width=device-width, initial-scale=1' name='viewport'>
10 <meta content='yes' name='apple-mobile-web-app-capable'>
11 <meta name="description" content="<?php echo esc_attr($description); ?>">
12 <meta name="robots" content="noindex">
13
14 <link rel="icon" type="image/x-icon" href="<?php echo esc_url($author['avatar']); ?>" />
15
16 <meta property="og:title" content="<?php echo esc_attr($title); ?>">
17 <meta property="og:type" content="website">
18 <meta property="og:url" content="<?php echo esc_url($url); ?>">
19 <meta property="og:description" content="<?php echo esc_attr($description); ?>">
20 <meta property="og:author" content="<?php echo esc_attr($author['name']); ?>">
21
22 <?php foreach ($css_files as $fluentBookingCssFile): ?>
23 <?php // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet ?>
24 <link rel="stylesheet" href="<?php echo esc_url($fluentBookingCssFile); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>" media="all" />
25 <?php endforeach; ?>
26 </head>
27 <body class="booking-confirmation-page">
28
29 <div class="confirmation_page <?php echo esc_attr($embedded ? 'fcal_booking_iframe' : ''); ?>">
30 <div class="fcal_conf_wrap">
31 <?php echo $body; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
32 </div>
33 <?php if (!empty($back_button['show'])): ?>
34 <div class="fcal_back_btn">
35 <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">
36 <path d="m15 18-6-6 6-6"></path>
37 </svg>
38 <a href="<?php echo esc_url($back_button['url']); ?>"><?php echo esc_html($back_button['text']); ?></a>
39 </div>
40 <?php endif; ?>
41 </div>
42
43 <script>
44 <?php foreach ($js_vars as $fluentBookingVarKey => $fluentBookingValues): ?>
45 var <?php echo esc_attr($fluentBookingVarKey); ?> = <?php echo wp_json_encode($fluentBookingValues); ?>;
46 <?php endforeach; ?>
47 </script>
48
49 <?php foreach ($js_files as $fluentBookingFileKey => $fluentBookingFile): ?>
50 <script id="<?php echo esc_attr($fluentBookingFileKey); ?>" src="<?php echo esc_url($fluentBookingFile); ?>" defer="defer"></script>
51 <?php endforeach; ?>
52
53 <script>
54 const theme = '<?php echo esc_attr($theme); ?>';
55
56 const confirmationPage = document.querySelector('.confirmation_page');
57 function applyModeClasses(element, darkMode) {
58 const darkClass = 'fcal-dark-mode';
59 const lightClass = 'fcal-light-mode';
60
61 if (element) {
62 if (darkMode) {
63 element.classList.add(darkClass);
64 element.classList.remove(lightClass);
65 } else {
66 element.classList.add(lightClass);
67 element.classList.remove(darkClass);
68 }
69 }
70 }
71
72 if (confirmationPage) {
73 if (theme === 'system-default') {
74 const runColorMode = (fn) => {
75 if (!window.matchMedia) {
76 return;
77 }
78 const query = window.matchMedia('(prefers-color-scheme: dark)');
79 fn(query.matches);
80 query.addEventListener('change', (event) => fn(event.matches));
81 };
82
83 runColorMode((isDarkMode) => {
84 applyModeClasses(confirmationPage, isDarkMode);
85 });
86 } else if (theme === 'dark-mode') {
87 applyModeClasses(confirmationPage, true);
88 } else {
89 applyModeClasses(confirmationPage, false);
90 }
91 }
92
93 </script>
94 </body>
95 </html>
96