PluginProbe ʕ •ᴥ•ʔ
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress / 5.1.2
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress v5.1.2
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 / lib / views / steps / _booking__datepicker.php
latepoint / lib / views / steps Last commit date
partials 1 year ago _booking__agents.php 1 year ago _booking__datepicker.php 1 year ago _booking__services.php 1 year ago _confirmation.php 1 year ago _customer.php 1 year ago _payment__methods.php 1 year ago _payment__pay.php 1 year ago _payment__portions.php 1 year ago _payment__processors.php 1 year ago _payment__times.php 1 year ago _verify.php 1 year ago load_step.php 1 year ago preset_slot_not_available.php 1 year ago start.php 1 year ago
_booking__datepicker.php
51 lines
1 <?php
2 /**
3 * @var $current_step_code string
4 * @var $cart OsCartModel
5 * @var $booking OsBookingModel
6 * @var $restrictions array
7 * @var $presets array
8 * @var $calendar_start_date string
9 */
10
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit; // Exit if accessed directly
14 }
15 ?>
16 <div class="step-datepicker-w latepoint-step-content" data-step-code="<?php echo esc_attr( $current_step_code ); ?>" data-clear-action="clear_step_datepicker">
17 <?php
18 do_action( 'latepoint_before_step_content', $current_step_code );
19 echo OsStepsHelper::get_formatted_extra_step_content( $current_step_code, 'before' );
20 ?>
21 <div class="os-dates-w is-searching">
22 <div class="os-calendar-searching-info"><?php echo sprintf(esc_html__( 'Searching %s for available dates', 'latepoint' ), '<span></span>'); ?></div>
23 <div class="os-calendar-while-searching-wrapper">
24 <?php OsCalendarHelper::generate_calendar_for_datepicker_step( \LatePoint\Misc\BookingRequest::create_from_booking_model( $booking ), new OsWpDateTime( $calendar_start_date ), [ 'timezone_name' => OsTimeHelper::get_timezone_name_from_session(), 'consider_cart_items' => true] ); ?>
25 </div>
26 </div>
27 <div class="time-selector-w <?php echo OsStepsHelper::hide_unavailable_slots() ? 'hide-not-available-slots' : ''; ?> <?php echo 'time-system-' . esc_attr( OsTimeHelper::get_time_system() ); ?> <?php echo ( OsSettingsHelper::is_on( 'show_booking_end_time' ) ) ? 'with-end-time' : 'without-end-time'; ?> style-<?php echo esc_attr( OsStepsHelper::get_time_pick_style() ); ?>">
28 <div class="times-header">
29 <div class="th-line"></div>
30 <div class="times-header-label">
31 <?php esc_html_e( 'Pick a slot for', 'latepoint' ); ?> <span></span>
32 <?php do_action( 'latepoint_step_datepicker_appointment_time_header_label', $booking ); ?>
33 </div>
34 <div class="th-line"></div>
35 </div>
36 <div class="os-times-w">
37 <div class="timeslots"></div>
38 </div>
39 </div>
40
41 <?php
42
43 echo OsStepsHelper::get_formatted_extra_step_content( $current_step_code, 'after' );
44 do_action( 'latepoint_after_step_content', $current_step_code );
45
46 echo OsFormHelper::hidden_field( 'booking[start_date]', $booking->start_date, [ 'class' => 'latepoint_start_date', 'skip_id' => true ] );
47 echo OsFormHelper::hidden_field( 'booking[start_time]', $booking->start_time, [ 'class' => 'latepoint_start_time', 'skip_id' => true ] );
48 echo OsFormHelper::hidden_field( 'timeshift_minutes', $timeshift_minutes, [ 'class' => 'latepoint_timeshift_minutes', 'skip_id' => true ] );
49 echo OsFormHelper::hidden_field( 'timezone_name', $timezone_name, [ 'class' => 'latepoint_timezone_name', 'skip_id' => true ] );
50 ?>
51 </div>