PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.5.2
LatePoint – Calendar Booking Plugin for Appointments and Events v5.5.2
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 / lib / views / services / _service_index_item.php
latepoint / lib / views / services Last commit date
_form.php 9 months ago _service_index_item.php 9 months ago edit_form.php 1 year ago index.php 9 months ago new_form.php 1 year ago
_service_index_item.php
48 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5 ?>
6 <div class="os-service os-resource-grid-item os-service-status-<?php echo esc_attr($service->status); ?>">
7 <div class="os-service-header">
8 <a href="#" class="instant-booking-settings-open" data-os-output-target="full-panel"
9 data-os-after-call="latepoint_init_instant_booking_settings"
10 data-os-action="<?php echo OsRouterHelper::build_route_name('settings', 'generate_instant_booking_page'); ?>"
11 data-os-params="<?php echo OsUtilHelper::build_os_params(['service_id' => $service->id]); ?>"><i class="latepoint-icon latepoint-icon-zap"></i></a>
12 <?php if($service->is_hidden()) echo '<i class="latepoint-icon latepoint-icon-eye-off service-hidden"></i>'; ?>
13 <h3 class="service-name"><?php echo esc_html($service->name); ?></h3>
14 </div>
15 <div class="os-service-body">
16 <div class="os-service-agents">
17 <div class="label"><?php esc_html_e('Agents:', 'latepoint'); ?></div>
18 <div class="agents-avatars">
19 <?php foreach($service->agents as $index => $agent){
20 if ($index > 1) break; ?>
21 <div class="agent-avatar" style="background-image: url(<?php echo esc_url($agent->get_avatar_url()); ?>)"></div>
22 <?php } ?>
23 <?php if(count($service->agents) > 2) echo '<div class="agents-more">+'.(count($service->agents) - 2).' '.esc_html__('more', 'latepoint').'</div>'; ?>
24 </div>
25 </div>
26 <div class="os-service-info">
27 <div class="service-info-row">
28 <div class="label"><?php esc_html_e('Duration:', 'latepoint'); ?></div>
29 <div class="value"><strong><?php echo esc_html($service->duration); ?></strong> <?php esc_html_e('min', 'latepoint'); ?></div>
30 </div>
31 <div class="service-info-row">
32 <div class="label"><?php esc_html_e('Price:', 'latepoint'); ?></div>
33 <div class="value"><strong><?php echo esc_html($service->price_min_formatted); ?></strong></div>
34 </div>
35 <div class="service-info-row">
36 <div class="label"><?php esc_html_e('Buffer:', 'latepoint'); ?></div>
37 <div class="value"><strong><?php echo esc_html($service->buffer_before.'/'.$service->buffer_after); ?></strong> <?php esc_html_e('min', 'latepoint'); ?></div>
38 </div>
39 <?php do_action('latepoint_service_tile_info_rows_after', $service); ?>
40 </div>
41 </div>
42 <div class="os-service-foot">
43 <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">
44 <i class="latepoint-icon latepoint-icon-edit-3"></i>
45 <span><?php esc_html_e('Edit Service', 'latepoint'); ?></span>
46 </a>
47 </div>
48 </div>