| 1 |
<?php defined( 'ABSPATH' ) || exit; ?> |
| 2 |
|
| 3 |
<div id="<?php echo esc_attr($wrapper_id); ?>" class="fcal_calendar_wrapper fcal_calendars <?php echo esc_attr($wrapper_class); ?>"> |
| 4 |
<div class="fcal_calendar_block_inner"> |
| 5 |
<div style="display: none;" class="fcal_cals_wrap"> |
| 6 |
<?php if (!empty($logo) || !empty($title) || !empty($description)): ?> |
| 7 |
<div class="fcal_calendar_header"> |
| 8 |
<?php if ($logo): ?> |
| 9 |
<div class="fcal_person_avatar"> |
| 10 |
<img src="<?php echo esc_url($logo); ?>" alt="<?php echo esc_attr($title); ?>"> |
| 11 |
</div> |
| 12 |
<?php endif; ?> |
| 13 |
<?php if ($title): ?> |
| 14 |
<h2 class="fcal_calendar_title"><?php echo wp_kses_post($title); ?></h2> |
| 15 |
<?php endif; ?> |
| 16 |
<?php if ($description): ?> |
| 17 |
<div class="fcal_calendar_description"> |
| 18 |
<?php echo wp_kses_post($description); ?> |
| 19 |
</div> |
| 20 |
<?php endif; ?> |
| 21 |
</div> |
| 22 |
<?php endif; ?> |
| 23 |
</div> |
| 24 |
<div style="height: 250px;width: 100%;text-align: center;display: flex;align-items: center;justify-content: center;flex-basis: max-content;flex-direction: column;" class="fcal_calendar_loading"> |
| 25 |
<h3><?php esc_html_e('Loading....', 'fluent-booking'); ?></h3> |
| 26 |
<i class="fcal-inline-spinner"></i> |
| 27 |
<style> |
| 28 |
@keyframes fcal-inline-spinner-kf { |
| 29 |
0% { |
| 30 |
transform: rotate(0deg); |
| 31 |
} |
| 32 |
100% { |
| 33 |
transform: rotate(360deg); |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
.fcal-inline-spinner, |
| 38 |
.fcal-inline-spinner:before { |
| 39 |
display: inline-block; |
| 40 |
width: 111px; |
| 41 |
height: 111px; |
| 42 |
transform-origin: 50%; |
| 43 |
border: 2px solid transparent; |
| 44 |
border-color: #74a8d0 #74a8d0 transparent transparent; |
| 45 |
border-radius: 50%; |
| 46 |
content: ""; |
| 47 |
animation: linear fcal-inline-spinner-kf 900ms infinite; |
| 48 |
position: relative; |
| 49 |
vertical-align: inherit; |
| 50 |
line-height: inherit; |
| 51 |
} |
| 52 |
.c-inline-spinner { |
| 53 |
top: 3px; |
| 54 |
margin: 0 3px; |
| 55 |
} |
| 56 |
.c-inline-spinner:before { |
| 57 |
border-color: #74a8d0 #74a8d0 transparent transparent; |
| 58 |
position: absolute; |
| 59 |
left: -2px; |
| 60 |
top: -2px; |
| 61 |
border-style: solid; |
| 62 |
} |
| 63 |
</style> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
|
| 68 |
<style> |
| 69 |
.fcal_phone_wrapper .flag { |
| 70 |
background: url(<?php echo esc_url(\FluentBooking\App\App::getInstance()['url.assets'].'images/flags_responsive.png'); ?>) no-repeat; |
| 71 |
background-size: 100%; |
| 72 |
} |
| 73 |
</style> |
| 74 |
|