| 1 |
<?php defined( 'ABSPATH' ) || exit; ?> |
| 2 |
|
| 3 |
<div class="fcal_calendar_wrap<?php echo esc_attr(isset($block) ? '_block' : ''); ?>"> |
| 4 |
<div class="fluent_booking_wrap"> |
| 5 |
<?php if (!isset($hideInfo) || !$hideInfo) { ?> |
| 6 |
<div class="fcal_author_header"> |
| 7 |
<img src="<?php echo esc_url($author['avatar']); ?>"/> |
| 8 |
<div class="author_info"> |
| 9 |
<h1> |
| 10 |
<?php echo esc_html($calendar->title); ?> |
| 11 |
</h1> |
| 12 |
<?php if ($calendar->description) { ?> |
| 13 |
<p class="fcal_description"><?php echo wp_kses_post($calendar->description); ?></p> |
| 14 |
<?php } ?> |
| 15 |
</div> |
| 16 |
</div> |
| 17 |
<?php } ?> |
| 18 |
<div class="fcal_slots_wrap"> |
| 19 |
<div class="fcal_slots"> |
| 20 |
<?php |
| 21 |
foreach ($events as $event): ?> |
| 22 |
<div class="fcal_slot"> |
| 23 |
<a data-calendar_id="<?php echo (int)$event->calendar_id; ?>" |
| 24 |
data-event_hash="<?php echo esc_attr($event->hash); ?>" |
| 25 |
data-event_slug="<?php echo esc_attr($event->slug); ?>" |
| 26 |
data-event_id="<?php echo (int)$event->id; ?>" |
| 27 |
onclick="<?php echo 'faCalOpenBookingPage' . (isset($block) ? 'Block' : ''); ?>(this, event)" |
| 28 |
href="<?php echo esc_url($event->public_url); ?>" class="fcal_card fcal_event_card"> |
| 29 |
<div class="fcal_slot_content"> |
| 30 |
<h2> |
| 31 |
<span class="fcal_slot_color_schema" |
| 32 |
style="background: <?php echo esc_attr($event->color_schema); ?>;"></span> |
| 33 |
<?php echo esc_html($event->title); ?> |
| 34 |
</h2> |
| 35 |
<p class="fcal_description"><?php echo wp_kses_post($event->short_description); ?></p> |
| 36 |
<div class="fcal_slot_durations_wrap"> |
| 37 |
<span class="fcal_slot_duration"> |
| 38 |
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none"> |
| 39 |
<path d="M12.8334 7C12.8334 10.22 10.22 12.8333 7.00002 12.8333C3.78002 12.8333 1.16669 10.22 1.16669 7C1.16669 3.78 3.78002 1.16666 7.00002 1.16666C10.22 1.16666 12.8334 3.78 12.8334 7Z" stroke="#445164" stroke-linecap="round" stroke-linejoin="round"/> |
| 40 |
<path d="M9.16418 8.855L7.35585 7.77584C7.04085 7.58917 6.78418 7.14 6.78418 6.7725V4.38084" stroke="#445164" stroke-linecap="round" stroke-linejoin="round"/> |
| 41 |
</svg> |
| 42 |
<?php if (count($event->durations) > 1) { ?> |
| 43 |
<?php echo esc_html__('Durations', 'fluent-booking'); ?> |
| 44 |
|
| 45 |
<div class="fcal_location_tooltip"> |
| 46 |
<?php foreach ($event->durations as $duration) { ?> |
| 47 |
<span class="fcal_slot_duration"> |
| 48 |
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none"> |
| 49 |
<path d="M12.8334 7C12.8334 10.22 10.22 12.8333 7.00002 12.8333C3.78002 12.8333 1.16669 10.22 1.16669 7C1.16669 3.78 3.78002 1.16666 7.00002 1.16666C10.22 1.16666 12.8334 3.78 12.8334 7Z" stroke="#445164" stroke-linecap="round" stroke-linejoin="round"/> |
| 50 |
<path d="M9.16418 8.855L7.35585 7.77584C7.04085 7.58917 6.78418 7.14 6.78418 6.7725V4.38084" stroke="#445164" stroke-linecap="round" stroke-linejoin="round"/> |
| 51 |
</svg> |
| 52 |
<?php echo esc_html($duration); ?> |
| 53 |
</span> |
| 54 |
<?php } ?> |
| 55 |
</div> |
| 56 |
<?php } else { |
| 57 |
echo esc_html($event->durations[0]); |
| 58 |
} ?> |
| 59 |
</span> |
| 60 |
|
| 61 |
<span class="fcal_slot_duration fcal_slot_location"> |
| 62 |
<?php |
| 63 |
if (count($event->location_settings) > 1) { ?> |
| 64 |
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-map-pin"> |
| 65 |
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"> |
| 66 |
</path><circle cx="12" cy="10" r="3"></circle> |
| 67 |
</svg> |
| 68 |
<?php echo esc_html__('Locations', 'fluent-booking'); ?> |
| 69 |
<span class="fcal_location_tooltip"> |
| 70 |
<?php echo wp_kses_post($event->locations); ?> |
| 71 |
</span> |
| 72 |
<?php } else { |
| 73 |
echo wp_kses_post($event->locations); |
| 74 |
} ?> |
| 75 |
</span> |
| 76 |
</div> |
| 77 |
</div> |
| 78 |
<button class="book_now"> |
| 79 |
<?php esc_html_e('Book Now', 'fluent-booking'); ?> |
| 80 |
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="21" viewBox="0 0 20 21" fill="none"> |
| 81 |
<path d="M12.025 5.44167L17.0833 10.5L12.025 15.5583" stroke="#306AE0" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/> |
| 82 |
<path d="M2.91666 10.5H16.9417" stroke="#306AE0" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/> |
| 83 |
</svg> |
| 84 |
</button> |
| 85 |
</a> |
| 86 |
</div> |
| 87 |
<?php endforeach; ?> |
| 88 |
</div> |
| 89 |
</div> |
| 90 |
</div> |
| 91 |
</div> |
| 92 |
|