PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 1.5.22
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v1.5.22
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 / booking.php

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

88 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use FluentBooking\App\Models\CalendarSlot;
4 use FluentBooking\App\Models\Calendar;
5 use FluentBooking\App\Models\Booking;
6
7 /**
8 * @var ?Booking $existing_booking
9 * @var Calendar $calendar
10 * @var CalendarSlot $calendar_event
11 * @var array $author
12 * @var array $css_files
13 * @var array $js_files
14 * @var array $js_vars
15 * @var boolean $on_rescheduling
16 * @var string $description
17 * @var string $title
18 * @var string $url
19 */
20 ?>
21
22 <?php defined( 'ABSPATH' ) || exit; ?>
23
24 <!DOCTYPE html>
25 <html <?php language_attributes(); ?>>
26 <head>
27 <title><?php echo esc_attr($title); ?></title>
28 <meta charset='utf-8'>
29
30 <meta content='width=device-width, initial-scale=1' name='viewport'>
31 <meta content='yes' name='apple-mobile-web-app-capable'>
32 <meta name="description" content="<?php echo esc_attr($description); ?>">
33 <meta name="robots" content="noindex">
34
35 <link rel="icon" type="image/x-icon" href="<?php echo esc_url($author['avatar']); ?>"/>
36
37 <meta property="og:title" content="<?php echo esc_attr($title); ?>">
38 <meta property="og:type" content="website">
39 <meta property="og:url" content="<?php echo esc_url($url); ?>">
40 <meta property="og:site_name" content="<?php echo esc_attr(get_bloginfo('name')); ?>">
41 <meta property="og:description" content="<?php echo esc_attr($description); ?>">
42 <meta property="og:author" content="<?php echo esc_attr($author['name']); ?>">
43
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"/>
48 <?php endforeach; ?>
49
50 <style>
51 .fcal_wrap {
52 display: block;
53 max-width: 1000px !important;
54 margin: 0 auto;
55 }
56 </style>
57
58 <?php do_action('fluent_booking/author_landing_head', $calendar_event); ?>
59
60 </head>
61 <body>
62
63 <div class="calendar_wrap">
64 <?php do_action('fluent_booking/before_calendar_event_landing_page', $calendar_event); ?>
65 <div class="fluent_booking_app fcal_loading" data-calendar_id="<?php echo (int)$calendar->id; ?>"
66 data-event_id="<?php echo (int)$calendar_event->id; ?>">
67 <h3><?php esc_html_e('Loading...', 'fluent-booking'); ?></h3>
68 </div>
69 <?php do_action('fluent_booking/after_calendar_event_landing_page', $calendar_event); ?>
70 </div>
71
72 <script>
73 <?php foreach ($js_vars as $varKey => $values): ?>
74 var <?php echo esc_attr($varKey); ?> = <?php echo wp_json_encode($values); ?>;
75 <?php endforeach; ?>
76 </script>
77
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); ?>"
81 defer="defer">
82 </script>
83 <?php endforeach; ?>
84
85 <?php do_action('fluent_booking/author_landing_footer', $calendar_event); ?>
86 </body>
87 </html>
88