| 1 |
<?php defined( 'ABSPATH' ) || exit; ?> |
| 2 |
|
| 3 |
<div id="<?php echo esc_attr($wrapper_id); ?>" class="fcal_teams <?php echo esc_attr($wrapper_class); ?>"> |
| 4 |
<div class="fcal_teams_inner"> |
| 5 |
<div style="display: none;" class="fcal_teams_wrap"> |
| 6 |
<?php if (!empty($logo) || !empty($title) || !empty($description)): ?> |
| 7 |
<div class="fcal_team_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_team_title"><?php echo wp_kses_post($title); ?></h2> |
| 15 |
<?php endif; ?> |
| 16 |
<?php if ($description): ?> |
| 17 |
<div class="fcal_team_description"> |
| 18 |
<?php echo wp_kses_post($description); ?> |
| 19 |
</div> |
| 20 |
<?php endif; ?> |
| 21 |
</div> |
| 22 |
<?php endif; ?> |
| 23 |
<div class="fcal_team_body"> |
| 24 |
<?php foreach ($hosts as $host): ?> |
| 25 |
<div data-calendar_id="<?php echo esc_attr($host->id); ?>" id="fcal_host_<?php echo esc_attr($host->id); ?>" class="fcal_each_member"> |
| 26 |
<div class="fcal_person_avatar"> |
| 27 |
<img src="<?php echo esc_url($host->getAuthorPhoto()); ?>" |
| 28 |
alt="<?php echo esc_attr($host->title); ?>"> |
| 29 |
</div> |
| 30 |
<div class="fcal_person_body"> |
| 31 |
<h3 class="fcal_person_name"><?php echo esc_html($host->title); ?></h3> |
| 32 |
<div class="fcal_person_description"> |
| 33 |
<?php echo wp_kses_post(wpautop($host->description)); ?> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
<?php endforeach; ?> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
<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_team_loading"> |
| 41 |
<h3><?php esc_html_e('Loading....', 'fluent-booking'); ?></h3> |
| 42 |
<i class="fcal-inline-spinner"></i> |
| 43 |
<style> |
| 44 |
@keyframes fcal-inline-spinner-kf { |
| 45 |
0% { |
| 46 |
transform: rotate(0deg); |
| 47 |
} |
| 48 |
100% { |
| 49 |
transform: rotate(360deg); |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
.fcal-inline-spinner, |
| 54 |
.fcal-inline-spinner:before { |
| 55 |
display: inline-block; |
| 56 |
width: 111px; |
| 57 |
height: 111px; |
| 58 |
transform-origin: 50%; |
| 59 |
border: 2px solid transparent; |
| 60 |
border-color: #74a8d0 #74a8d0 transparent transparent; |
| 61 |
border-radius: 50%; |
| 62 |
content: ""; |
| 63 |
animation: linear fcal-inline-spinner-kf 900ms infinite; |
| 64 |
position: relative; |
| 65 |
vertical-align: inherit; |
| 66 |
line-height: inherit; |
| 67 |
} |
| 68 |
.c-inline-spinner { |
| 69 |
top: 3px; |
| 70 |
margin: 0 3px; |
| 71 |
} |
| 72 |
.c-inline-spinner:before { |
| 73 |
border-color: #74a8d0 #74a8d0 transparent transparent; |
| 74 |
position: absolute; |
| 75 |
left: -2px; |
| 76 |
top: -2px; |
| 77 |
border-style: solid; |
| 78 |
} |
| 79 |
</style> |
| 80 |
</div> |
| 81 |
</div> |
| 82 |
</div> |
| 83 |
|
| 84 |
<style> |
| 85 |
.fcal_phone_wrapper .flag { |
| 86 |
background: url(<?php echo esc_url(\FluentBooking\App\App::getInstance()['url.assets'].'images/flags_responsive.png'); ?>) no-repeat; |
| 87 |
background-size: 100%; |
| 88 |
} |
| 89 |
</style> |
| 90 |
|