PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.1
Timetics – Appointment Booking Calendar & Scheduling v1.0.1
1.0.64 1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 All 65 releases
timetics / core / frontend / templates / meeting-list.php

meeting-list.php in Timetics – Appointment Booking Calendar & Scheduling 1.0.1, at core/frontend/templates/meeting-list.php

74 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use Timetics\Core\Appointments\Appointment as Appointment;
4
5 $meetings = Appointment::all();
6
7 ?>
8
9 <div class="tt-meeting-list-wrapper ant-row">
10 <?php
11 foreach ($meetings['items'] as $item) {
12 $meeting = new Appointment($item->ID);
13 $staffs = $meeting->get_staff();
14 $locations = $meeting->get_locations();
15 $id = $meeting->get_id();
16 ?>
17 <div class="ant-col-8 ant-col-xs-24 ant-col-md-8">
18 <div class="tt-meeting-list-item">
19 <ul class="tt-author">
20 <?php
21 if (!empty($staffs)) {
22 foreach ($staffs as $key => $staff) {
23 ?>
24 <li>
25 <img src="<?php echo esc_url($staff['image']); ?>" alt="<?php echo esc_attr($staff['full_name']); ?>" />
26 <span><?php echo esc_html($staff['full_name']); ?></span>
27 </li>
28 <?php
29
30 }
31 }
32 ?>
33 </ul>
34 <h3 class="tt-title">
35 <?php
36 echo esc_html($meeting->get_name());
37 ?>
38 </h3>
39 <!-- meeting description -->
40 <p><?php echo esc_html($meeting->get_description()); ?></p>
41
42 <!-- meeting info -->
43 <ul class="meeting-info-list">
44 <!-- meeting duration -->
45 <?php if (!empty($meeting->get_duration())) : ?>
46 <li>
47 <svg fill="#3263F8" width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
48 <path d="M256 512C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256s-114.6 256-256 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z" />
49 </svg>
50 <?php echo esc_html($meeting->get_duration()); ?>
51 </li>
52 <?php endif; ?>
53 <!-- meeting price -->
54 <?php if (!empty($meeting->get_price())) : ?>
55 <li>
56 <svg width="20" height="20" fill=#3161F1 viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
57 <path d="M17 3.5H7C4 3.5 2 5 2 8.5V15.5C2 19 4 20.5 7 20.5H17C20 20.5 22 19 22 15.5V8.5C22 5 20 3.5 17 3.5ZM6.25 14.5C6.25 14.91 5.91 15.25 5.5 15.25C5.09 15.25 4.75 14.91 4.75 14.5V9.5C4.75 9.09 5.09 8.75 5.5 8.75C5.91 8.75 6.25 9.09 6.25 9.5V14.5ZM12 15C10.34 15 9 13.66 9 12C9 10.34 10.34 9 12 9C13.66 9 15 10.34 15 12C15 13.66 13.66 15 12 15ZM19.25 14.5C19.25 14.91 18.91 15.25 18.5 15.25C18.09 15.25 17.75 14.91 17.75 14.5V9.5C17.75 9.09 18.09 8.75 18.5 8.75C18.91 8.75 19.25 9.09 19.25 9.5V14.5Z" />
58 </svg>
59 <?php echo timetics_get_option('currency', 'USD') . " " . esc_html($meeting->get_price()); ?>
60 </li>
61 <?php endif; ?>
62
63 </ul>
64 <button class="ant-btn ant-btn-primary ant-btn-block" data-id="<?php echo esc_attr($id); ?>">
65 <?php echo esc_html__("Book Appointment", "timetics"); ?>
66 </button>
67
68 <div class="timetics-booking-modal"></div>
69 </div>
70 </div>
71 <?php
72 }
73 ?>
74 </div>