PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.1.6
LatePoint – Calendar Booking Plugin for Appointments and Events v5.1.6
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 / start.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
start.php
132 lines
1 <?php
2 /**
3 * @var $booking OsBookingModel
4 * @var $all_steps \LatePoint\Misc\Step[]
5 * @var $steps \LatePoint\Misc\Step[]
6 * @var $current_step \LatePoint\Misc\Step
7 * @var $current_step_code string
8 * @var $show_next_btn bool
9 * @var $restrictions array
10 * @var $presets array
11 * @var $cart OsCartModel
12 * @var $booking_element_type string
13 * @var $booking_element_styles array
14 */
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit; // Exit if accessed directly
18 }
19
20
21 ?>
22
23 <?php
24 $element_classes = [];
25 $element_classes[] = ($booking_element_type == 'lightbox') ? 'latepoint-lightbox-form' : 'latepoint-inline-form';
26 $element_classes[] = empty($booking_element_styles['hide_summary']) ? 'latepoint-with-summary' : 'latepoint-without-summary';
27 $element_classes[] = empty($booking_element_styles['hide_side_panel']) ? 'latepoint-show-side-panel' : 'latepoint-hide-side-panel';
28 $element_classes[] = ((!$cart->is_empty() || $booking->is_ready_for_summary()) && $current_step_code != 'confirmation') ? 'latepoint-summary-is-open' : '';
29 ?>
30 <div class="latepoint-w <?php echo esc_attr(implode(' ', $element_classes)); ?>">
31 <div class="latepoint-booking-form-element current-step-<?php echo esc_attr($current_step->code); ?> <?php if ( ! $show_next_btn ) {
32 echo 'hidden-buttons';
33 } ?> latepoint-color-<?php echo esc_attr(OsSettingsHelper::get_booking_form_color_scheme()); ?> latepoint-border-radius-<?php echo esc_attr(OsSettingsHelper::get_booking_form_border_radius()); ?> <?php echo esc_attr(implode( ' ', apply_filters( 'latepoint_booking_form_classes', [] ) )); ?>">
34 <div class="latepoint-side-panel">
35 <?php OsStepsHelper::show_step_progress( $all_steps, $current_step ); ?>
36 <div class="latepoint-step-desc-w">
37 <div class="latepoint-step-desc">
38 <?php if ( $current_step->is_using_custom_image_for_side_panel() ) { ?>
39 <div class="latepoint-desc-media img-w"
40 style="background-image: url(<?php echo esc_url($current_step->get_image_url_for_side_panel()); ?>)"></div>
41 <?php } else {
42 echo '<div class="latepoint-desc-media svg-w">' . $current_step->get_default_image_html_for_side_panel() . '</div>';
43 } ?>
44 <h3 class="latepoint-desc-title"><?php echo wp_kses_post($current_step->side_panel_heading); ?></h3>
45 <div class="latepoint-desc-content"><?php echo stripcslashes( $current_step->side_panel_description ); ?></div>
46 </div>
47 <?php
48 foreach ( $all_steps as $index => $step ) { ?>
49 <div data-step-code="<?php echo esc_attr($step->code); ?>"
50 class="latepoint-step-desc-library <?php if ( $current_step->code == $step->code ) {
51 echo ' active ';
52 } ?>">
53 <?php if ( $step->is_using_custom_image_for_side_panel() ) { ?>
54 <div class="latepoint-desc-media img-w"
55 style="background-image: url(<?php echo esc_url($step->get_image_url_for_side_panel()); ?>)"></div>
56 <?php } else {
57 echo '<div class="latepoint-desc-media svg-w">' . $step->get_default_image_html_for_side_panel() . '</div>';
58 } ?>
59 <h3 class="latepoint-desc-title"><?php echo esc_html($step->side_panel_heading); ?></h3>
60 <div class="latepoint-desc-content"><?php echo $step->side_panel_description; ?></div>
61 </div>
62 <?php } ?>
63 </div>
64 <div class="latepoint-questions"><?php echo OsSettingsHelper::get_steps_support_text(); ?></div>
65
66 <?php
67
68 /**
69 * Triggered at the bottom of side panel content
70 *
71 * @param {\LatePoint\Misc\Step} $current_step active step
72 *
73 * @since 4.7.0
74 * @hook latepoint_steps_side_panel_after
75 *
76 */
77 do_action( 'latepoint_steps_side_panel_after', $current_step ); ?>
78 </div>
79 <div class="latepoint-form-w">
80 <form class="latepoint-form"
81 data-selected-label="<?php esc_attr_e( 'Selected', 'latepoint' ); ?>"
82 data-route-name="<?php echo esc_attr(OsRouterHelper::build_route_name( 'steps', 'load_step' )); ?>"
83 action="#">
84 <div class="latepoint-heading-w">
85 <h3 class="os-heading-text"><?php echo strip_tags($current_step->main_panel_heading); ?></h3>
86 <?php foreach ( $all_steps as $index => $step ) { ?>
87 <div data-step-code="<?php echo esc_attr($step->code); ?>"
88 class="os-heading-text-library <?php if ( $current_step->code == $step->code ) {
89 echo ' active ';
90 } ?>"><?php echo esc_html($step->main_panel_heading); ?></div>
91 <?php } ?>
92 <a href="#" class="latepoint-lightbox-close" tabindex="0"><i class="latepoint-icon-common-01"></i></a>
93 <?php if ( $cart->is_empty() ) { ?>
94 <a href="#" class="latepoint-lightbox-summary-trigger"><i class="latepoint-icon-shopping-cart"></i></a>
95 <?php } else { ?>
96 <a href="#" class="latepoint-lightbox-summary-trigger"><i
97 class="latepoint-icon-shopping-cart"></i><span><?php echo count( $cart->get_items() ); ?></span></a>
98 <?php } ?>
99 </div>
100 <div class="latepoint-body">
101 <?php if ( ! empty( $step_codes_to_preload ) ) {
102 foreach ( $step_codes_to_preload as $step_code_to_preload ) {
103 do_action( 'latepoint_load_step', $step_code_to_preload, 'html', [] );
104 }
105 }
106 ?>
107 <?php do_action( 'latepoint_load_step', $current_step->code, 'html', [] ); ?>
108 </div>
109 <div class="latepoint-footer">
110 <a href="#" class="latepoint-btn latepoint-btn-white latepoint-prev-btn disabled" tabindex="0" role="button"><i
111 class="latepoint-icon-arrow-2-left"></i>
112 <span><?php esc_html_e( 'Back', 'latepoint' ); ?></span></a>
113 <?php OsStepsHelper::show_step_progress( $all_steps, $current_step ); ?>
114 <a href="#" tabindex="0"
115 class="latepoint-btn latepoint-btn-primary latepoint-next-btn <?php echo ( $show_next_btn ) ? '' : 'disabled'; ?>" role="button"
116 data-pre-last-step-label="<?php esc_attr_e( 'Submit', 'latepoint' ); ?>"
117 data-label="<?php esc_attr_e( 'Next', 'latepoint' ); ?>"><span><?php esc_html_e( 'Next', 'latepoint' ); ?></span> <i class="latepoint-icon-arrow-2-right"></i></a>
118 <?php if ( $current_step_code != 'confirmation' ) {
119 include 'partials/_booking_form_params.php';
120 } ?>
121 </div>
122 </form>
123 </div>
124 <div class="latepoint-summary-w">
125 <div class="os-summary-contents">
126 <?php if ( $current_step_code != 'confirmation' ) {
127 include( 'partials/_booking_form_summary_panel.php' );
128 } ?>
129 </div>
130 </div>
131 </div>
132 </div>