PluginProbe ʕ •ᴥ•ʔ
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress / 5.1.3
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress v5.1.3
5.6.8 5.6.7 5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / trunk / lib / views / services / _service_index_item.php
latepoint / trunk / lib / views / services Last commit date
_form.php 1 year ago _service_index_item.php 1 year ago edit_form.php 1 year ago index.php 1 year ago new_form.php 1 year ago
_service_index_item.php
44 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5 ?>
6 <div class="os-service os-service-status-<?php echo esc_attr($service->status); ?>">
7 <div class="os-service-header">
8 <?php if($service->is_hidden()) echo '<i class="latepoint-icon latepoint-icon-eye-off service-hidden"></i>'; ?>
9 <h3 class="service-name"><?php echo esc_html($service->name); ?></h3>
10 </div>
11 <div class="os-service-body">
12 <div class="os-service-agents">
13 <div class="label"><?php esc_html_e('Agents:', 'latepoint'); ?></div>
14 <div class="agents-avatars">
15 <?php foreach($service->agents as $index => $agent){
16 if ($index > 1) break; ?>
17 <div class="agent-avatar" style="background-image: url(<?php echo esc_url($agent->get_avatar_url()); ?>)"></div>
18 <?php } ?>
19 <?php if(count($service->agents) > 2) echo '<div class="agents-more">+'.(count($service->agents) - 2).' '.esc_html__('more', 'latepoint').'</div>'; ?>
20 </div>
21 </div>
22 <div class="os-service-info">
23 <div class="service-info-row">
24 <div class="label"><?php esc_html_e('Duration:', 'latepoint'); ?></div>
25 <div class="value"><strong><?php echo esc_html($service->duration); ?></strong> <?php esc_html_e('min', 'latepoint'); ?></div>
26 </div>
27 <div class="service-info-row">
28 <div class="label"><?php esc_html_e('Price:', 'latepoint'); ?></div>
29 <div class="value"><strong><?php echo esc_html($service->price_min_formatted); ?></strong></div>
30 </div>
31 <div class="service-info-row">
32 <div class="label"><?php esc_html_e('Buffer:', 'latepoint'); ?></div>
33 <div class="value"><strong><?php echo esc_html($service->buffer_before.'/'.$service->buffer_after); ?></strong> <?php esc_html_e('min', 'latepoint'); ?></div>
34 </div>
35 <?php do_action('latepoint_service_tile_info_rows_after', $service); ?>
36 </div>
37 </div>
38 <div class="os-service-foot">
39 <a href="<?php echo esc_url(OsRouterHelper::build_link(OsRouterHelper::build_route_name('services', 'edit_form'), array('id' => $service->id) )); ?>" class="latepoint-btn latepoint-btn-block latepoint-btn-secondary">
40 <i class="latepoint-icon latepoint-icon-edit-3"></i>
41 <span><?php esc_html_e('Edit Service', 'latepoint'); ?></span>
42 </a>
43 </div>
44 </div>