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/booking.php +10 -11 1.5.01 → 2.5.0 View file →
@@ -15,8 +15,9 @@
15 15 * @var boolean $on_rescheduling
16 16 * @var string $description
17 17 * @var string $title
18 18 * @var string $url
19 + * @var boolean $embedded
19 20 */
20 21 ?>
21 22
22 23 <?php defined( 'ABSPATH' ) || exit; ?>
@@ -40,12 +41,11 @@
40 41 <meta property="og:site_name" content="<?php echo esc_attr(get_bloginfo('name')); ?>">
41 42 <meta property="og:description" content="<?php echo esc_attr($description); ?>">
42 43 <meta property="og:author" content="<?php echo esc_attr($author['name']); ?>">
43 44
44 - <?php foreach ($css_files as $css_file): ?>
45 - <link rel="stylesheet"
46 - href="<?php echo esc_url($css_file); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>"
47 - media="all"/>
45 + <?php foreach ($css_files as $fluentBookingCssFile): ?>
46 + <?php // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet ?>
47 + <link rel="stylesheet" href="<?php echo esc_url($fluentBookingCssFile); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>" media="all"/>
48 48 <?php endforeach; ?>
49 49
50 50 <style>
51 51 .fcal_wrap {
@@ -58,10 +58,9 @@
58 58 <?php do_action('fluent_booking/author_landing_head', $calendar_event); ?>
59 59
60 60 </head>
61 61 <body>
62 -
63 - <div class="calendar_wrap">
62 + <div class="calendar_wrap <?php echo esc_attr($embedded ? 'fcal_booking_iframe' : ''); ?>">
64 63 <?php do_action('fluent_booking/before_calendar_event_landing_page', $calendar_event); ?>
65 64 <div class="fluent_booking_app fcal_loading" data-calendar_id="<?php echo (int)$calendar->id; ?>"
66 65 data-event_id="<?php echo (int)$calendar_event->id; ?>">
67 66 <h3><?php esc_html_e('Loading...', 'fluent-booking'); ?></h3>
@@ -69,16 +68,16 @@
69 68 <?php do_action('fluent_booking/after_calendar_event_landing_page', $calendar_event); ?>
70 69 </div>
71 70
72 71 <script>
73 - <?php foreach ($js_vars as $varKey => $values): ?>
74 - var <?php echo esc_attr($varKey); ?> = <?php echo wp_json_encode($values); ?>;
72 + <?php foreach ($js_vars as $fluentBookingVarKey => $fluentBookingValues): ?>
73 + var <?php echo esc_attr($fluentBookingVarKey); ?> = <?php echo wp_json_encode($fluentBookingValues); ?>;
75 74 <?php endforeach; ?>
76 75 </script>
77 76
78 - <?php foreach ($js_files as $fileKey => $file): ?>
79 - <script id="<?php echo esc_attr($fileKey); ?>"
80 - src="<?php echo esc_url($file); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>"
77 + <?php foreach ($js_files as $fluentBookingFileKey => $fluentBookingFile): ?>
78 + <script id="<?php echo esc_attr($fluentBookingFileKey); ?>"<?php echo \FluentBooking\App\Vite::isDev() ? ' type="module"' : ''; ?>
79 + src="<?php echo esc_url($fluentBookingFile); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>"
81 80 defer="defer">
82 81 </script>
83 82 <?php endforeach; ?>
84 83