partials
9 months ago
_booking__agents.php
9 months ago
_booking__datepicker.php
9 months ago
_booking__services.php
9 months ago
_confirmation.php
9 months ago
_customer.php
4 months 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
start_instant.php
1 year ago
_booking__datepicker.php
34 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="latepoint_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 | try{ |
| 21 | $target_date = new OsWpDateTime( $calendar_start_date ); |
| 22 | }catch( Exception $e ){ |
| 23 | $target_date = new OsWpDateTime('now'); |
| 24 | } |
| 25 | echo OsCalendarHelper::generate_dates_and_times_picker($booking, $target_date, !OsStepsHelper::disable_searching_first_available_slot(), [ 'timezone_name' => OsTimeHelper::get_timezone_name_from_session(), 'consider_cart_items' => true]); |
| 26 | |
| 27 | echo OsStepsHelper::get_formatted_extra_step_content( $current_step_code, 'after' ); |
| 28 | do_action( 'latepoint_after_step_content', $current_step_code ); |
| 29 | |
| 30 | echo OsFormHelper::hidden_field( 'is_recurring', LATEPOINT_VALUE_OFF, [ 'class' => 'latepoint_is_recurring', 'skip_id' => true ] ); |
| 31 | echo OsFormHelper::hidden_field( 'booking[start_date]', $booking->start_date, [ 'class' => 'latepoint_start_date', 'skip_id' => true ] ); |
| 32 | echo OsFormHelper::hidden_field( 'booking[start_time]', $booking->start_time, [ 'class' => 'latepoint_start_time', 'skip_id' => true ] ); |
| 33 | ?> |
| 34 | </div> |