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 / bookings / quick_availability.php
latepoint / lib / views / bookings Last commit date
_booking_data.php 1 year ago _full_summary.php 1 year ago _table_body.php 2 months ago customize_table.php 2 months ago grouped_bookings_quick_view.php 1 year ago index.php 2 months ago pending_approval.php 1 year ago quick_availability.php 1 year ago view_booking_log.php 1 year ago
quick_availability.php
42 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5 ?>
6 <?php
7 if(!$show_days_only) echo '<div class="quick-availability-per-day-w side-sub-panel-wrapper" data-trigger-form-order-item-id="'.esc_attr($trigger_form_order_item_id).'" data-trigger-form-booking-id="'.esc_attr($trigger_form_booking_id).'" data-agent-id="'.esc_attr($booking->agent_id).'">'; ?>
8 <div class="side-sub-panel-header os-form-header">
9 <h2><?php esc_html_e('Availability', 'latepoint'); ?></h2>
10 <a href="#" class="latepoint-quick-availability-close latepoint-side-sub-panel-close latepoint-side-sub-panel-close-trigger"><i class="latepoint-icon latepoint-icon-x"></i></a>
11 </div>
12 <?php
13 echo '<div class="separate-timeslots-w">';
14 for($current_minutes = $work_boundaries->start_time; $current_minutes <= $work_boundaries->end_time; $current_minutes+=$timeblock_interval){
15 $ampm = OsTimeHelper::am_or_pm($current_minutes);
16 $timeslot_class = 'separate-timeslot';
17 $tick_html = '';
18 if(($current_minutes % 60) == 0){
19 $timeslot_class.= ' with-tick';
20 $tick_html = '<span class="separate-timeslot-tick"><strong>'. esc_html(OsTimeHelper::minutes_to_hours($current_minutes)) .'</strong>'.' '.esc_html($ampm).'</span>';
21 }
22 echo '<div class="'.esc_attr($timeslot_class).'">'.$tick_html.'</div>';
23 }
24 echo '</div>';
25 echo '<div class="os-availability-days">';
26 echo '<div class="os-availability-prev-w">
27 <a href="#" data-start-date="'. esc_attr($calendar_start_date->format('Y-m-d')).'"
28 class="load-prev-quick-availability os-availability-prev-w latepoint-btn latepoint-btn-outline latepoint-btn-block">
29 <i class="latepoint-icon latepoint-icon-arrow-up"></i>
30 <span>'.esc_html__('Load previous 60 days', 'latepoint').'</span>
31 </a>
32 </div>';
33 echo OsBookingHelper::get_quick_availability_days($calendar_start_date, $calendar_end_date, $booking_request, $resources, ['exclude_booking_ids' => $booking->is_new_record() ? [] : [$booking->id], 'work_boundaries' => $work_boundaries]);
34 echo '<div class="os-availability-next-w">
35 <a href="#" data-start-date="'. esc_attr($calendar_end_date->format('Y-m-d')).'"
36 class="load-more-quick-availability os-availability-next-w latepoint-btn latepoint-btn-outline latepoint-btn-block">
37 <i class="latepoint-icon latepoint-icon-arrow-down"></i>
38 <span>'.esc_html__('Load next 60 days', 'latepoint').'</span>
39 </a>
40 </div>';
41 echo '</div>';
42 if(!$show_days_only) echo '</div>';