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

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

109 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
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
21 <!DOCTYPE html>
22 <html <?php language_attributes(); ?>>
23 <head>
24 <title><?php echo esc_attr($title); ?></title>
25 <meta charset='utf-8'>
26
27 <meta content='width=device-width, initial-scale=1' name='viewport'>
28 <meta content='yes' name='apple-mobile-web-app-capable'>
29 <meta name="description" content="<?php echo esc_attr($description); ?>">
30 <meta name="robots" content="noindex"/>
31
32 <?php if (!empty($author['avatar'])): ?>
33 <link rel="icon" type="image/x-icon" href="<?php echo esc_url($author['avatar']); ?>">
34 <?php endif; ?>
35
36 <meta property="og:title" content="<?php echo esc_attr($title); ?>"/>
37 <meta property="og:type" content="website">
38 <meta property="og:url" content="<?php echo esc_url($url); ?>"/>
39 <meta property="og:description" content="<?php echo esc_attr($description); ?>"/>
40 <meta property="og:author" content="<?php echo esc_attr($author['name']); ?>"/>
41
42 <?php if (!empty($author['featured_image'])) {
43 ?>
44 <meta property="og:image" content="<?php echo esc_url($author['featured_image']); ?>"/>
45 <?php } ?>
46
47 <?php foreach ($css_files as $fluentBookingCssFile): ?>
48 <?php // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet ?>
49 <link rel="stylesheet" href="<?php echo esc_url($fluentBookingCssFile); ?>?version=<?php echo esc_html(FLUENT_BOOKING_ASSETS_VERSION); ?>" media="screen"/>
50 <?php endforeach; ?>
51
52 <style>
53 :root {
54 --fcal_dark: #1B2533;
55 --fcal_primaryColor: #2653C7;
56 --fcal_gray: #6b7280;
57 }
58
59 .fluent_booking_wrap {
60 max-width: 752px;
61 margin: 40px auto;
62 }
63 .fluent_booking_app {
64 margin-top: 66px;
65 }
66 .fcal_author_header {
67 max-width: 600px;
68 margin: auto;
69 }
70 .fcal_slot {
71 background: #fff;
72 }
73
74 .fcal_phone_wrapper .flag {
75 background: url(<?php echo esc_url(\FluentBooking\App\App::getInstance()['url.assets'].'images/flags_responsive.png'); ?>) no-repeat;
76 background-size: 100%;
77 }
78 </style>
79
80 <?php foreach ($header_js_files as $fluentBookingFileKey => $fluentBookingFile): ?>
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>
82 <?php endforeach; ?>
83
84 <?php do_action('fluent_booking/main_landing'); ?>
85 </head>
86 <body>
87 <?php \FluentBooking\App\App::getInstance('view')->render('landing.author_html', [
88 'author' => $author,
89 'calendar' => $calendar,
90 'events' => $events,
91 'embedded' => $embedded
92 ]); ?>
93 </div>
94 </div>
95
96 <script>
97 <?php foreach ($js_vars as $fluentBookingVarKey => $fluentBookingValues): ?>
98 var <?php echo esc_attr($fluentBookingVarKey); ?> = <?php echo wp_json_encode($fluentBookingValues); ?>;
99 <?php endforeach; ?>
100 </script>
101
102 <?php foreach ($js_files as $fluentBookingFileKey => $fluentBookingFile): ?>
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>
104 <?php endforeach; ?>
105
106 <?php do_action('fluent_booking/main_landing_footer'); ?>
107 </body>
108 </html>
109