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/author_landing.php +21 -3 2.1.2 → 2.5.0 View file →
@@ -1,6 +1,24 @@
1 -<?php defined( 'ABSPATH' ) || exit; ?>
1 +<?php
2 +defined( 'ABSPATH' ) || exit;
2 3
4 +use FluentBooking\App\Models\Calendar;
5 +
6 +/**
7 + * @var Calendar $calendar
8 + * @var iterable $events
9 + * @var array $author
10 + * @var string $title
11 + * @var string $description
12 + * @var string $url
13 + * @var bool $embedded
14 + * @var array $css_files
15 + * @var array $js_files
16 + * @var array $js_vars
17 + * @var array $header_js_files
18 + */
19 +?>
20 +
3 21 <!DOCTYPE html>
4 22 <html <?php language_attributes(); ?>>
5 23 <head>
6 24 <title><?php echo esc_attr($title); ?></title>
@@ -59,9 +77,9 @@
59 77 }
60 78 </style>
61 79
62 80 <?php foreach ($header_js_files as $fluentBookingFileKey => $fluentBookingFile): ?>
63 - <script id="<?php echo esc_attr($fluentBookingFileKey); ?>" src="<?php echo esc_url($fluentBookingFile); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>"></script>
81 + <script id="<?php echo esc_attr($fluentBookingFileKey); ?>"<?php echo \FluentBooking\App\Vite::isDev() ? ' type="module"' : ''; ?> src="<?php echo esc_url($fluentBookingFile); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>"></script>
64 82 <?php endforeach; ?>
65 83
66 84 <?php do_action('fluent_booking/main_landing'); ?>
67 85 </head>
@@ -81,9 +99,9 @@
81 99 <?php endforeach; ?>
82 100 </script>
83 101
84 102 <?php foreach ($js_files as $fluentBookingFileKey => $fluentBookingFile): ?>
85 - <script id="<?php echo esc_attr($fluentBookingFileKey); ?>" src="<?php echo esc_url($fluentBookingFile); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>" defer="defer"></script>
103 + <script id="<?php echo esc_attr($fluentBookingFileKey); ?>"<?php echo \FluentBooking\App\Vite::isDev() ? ' type="module"' : ''; ?> src="<?php echo esc_url($fluentBookingFile); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>" defer="defer"></script>
86 104 <?php endforeach; ?>
87 105
88 106 <?php do_action('fluent_booking/main_landing_footer'); ?>
89 107 </body>