| 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 |
<?php if (!empty($author['avatar'])): ?> |
| 15 |
<link rel="icon" type="image/x-icon" href="<?php echo esc_url($author['avatar']); ?>"> |
| 16 |
<?php endif; ?> |
| 17 |
|
| 18 |
<meta property="og:title" content="<?php echo esc_attr($title); ?>"/> |
| 19 |
<meta property="og:type" content="website"> |
| 20 |
<meta property="og:url" content="<?php echo esc_url($url); ?>"/> |
| 21 |
<meta property="og:description" content="<?php echo esc_attr($description); ?>"/> |
| 22 |
<meta property="og:author" content="<?php echo esc_attr($author['name']); ?>"/> |
| 23 |
|
| 24 |
<?php if (!empty($author['featured_image'])) { |
| 25 |
?> |
| 26 |
<meta property="og:image" content="<?php echo esc_url($author['featured_image']); ?>"/> |
| 27 |
<?php } ?> |
| 28 |
|
| 29 |
<?php foreach ($css_files as $css_file): ?> |
| 30 |
<link rel="stylesheet" |
| 31 |
href="<?php echo esc_url($css_file); ?>?version=<?php echo esc_html(FLUENT_BOOKING_ASSETS_VERSION); ?>" |
| 32 |
media="screen"/> |
| 33 |
<?php endforeach; ?> |
| 34 |
|
| 35 |
<style> |
| 36 |
:root { |
| 37 |
--fcal_dark: #1B2533; |
| 38 |
--fcal_primaryColor: #2653C7; |
| 39 |
--fcal_gray: #6b7280; |
| 40 |
} |
| 41 |
|
| 42 |
.fluent_booking_wrap { |
| 43 |
max-width: 752px; |
| 44 |
margin: 40px auto; |
| 45 |
} |
| 46 |
.fluent_booking_app { |
| 47 |
margin-top: 66px; |
| 48 |
} |
| 49 |
.fcal_author_header { |
| 50 |
max-width: 600px; |
| 51 |
margin: auto; |
| 52 |
} |
| 53 |
.fcal_slot { |
| 54 |
background: #fff; |
| 55 |
} |
| 56 |
|
| 57 |
.fcal_phone_wrapper .flag { |
| 58 |
background: url(<?php echo esc_url(\FluentBooking\App\App::getInstance()['url.assets'].'images/flags_responsive.png'); ?>) no-repeat; |
| 59 |
background-size: 100%; |
| 60 |
} |
| 61 |
</style> |
| 62 |
|
| 63 |
<?php foreach ($header_js_files as $fileKey => $file): ?> |
| 64 |
<script id="<?php echo esc_attr($fileKey); ?>" src="<?php echo esc_url($file); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>"></script> |
| 65 |
<?php endforeach; ?> |
| 66 |
|
| 67 |
<?php do_action('fluent_booking/main_landing'); ?> |
| 68 |
</head> |
| 69 |
<body> |
| 70 |
<?php \FluentBooking\App\App::getInstance('view')->render('landing.author_html', [ |
| 71 |
'author' => $author, |
| 72 |
'calendar' => $calendar, |
| 73 |
'events' => $events |
| 74 |
]); ?> |
| 75 |
</div> |
| 76 |
</div> |
| 77 |
|
| 78 |
<script> |
| 79 |
<?php foreach ($js_vars as $varKey => $values): ?> |
| 80 |
var <?php echo esc_attr($varKey); ?> = <?php echo wp_json_encode($values); ?>; |
| 81 |
<?php endforeach; ?> |
| 82 |
</script> |
| 83 |
|
| 84 |
<?php foreach ($js_files as $fileKey => $file): ?> |
| 85 |
<script id="<?php echo esc_attr($fileKey); ?>" src="<?php echo esc_url($file); ?>?version=<?php echo esc_attr(FLUENT_BOOKING_ASSETS_VERSION); ?>" defer="defer"></script> |
| 86 |
<?php endforeach; ?> |
| 87 |
|
| 88 |
<?php do_action('fluent_booking/main_landing_footer'); ?> |
| 89 |
</body> |
| 90 |
</html> |
| 91 |
|