PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.2.11
LatePoint – Calendar Booking Plugin for Appointments and Events v5.2.11
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__services.php
latepoint / lib / views / steps Last commit date
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__services.php
48 lines
1 <?php
2 /**
3 * @var $current_step_code string
4 * @var $booking OsBookingModel
5 * @var $restrictions array
6 * @var $presets array
7 * @var $bundles OsBundleModel[]
8 * @var $services OsServiceModel[]
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit; // Exit if accessed directly
13 }
14
15 $preselected_service = (!empty($presets['selected_service'])) ? new OsServiceModel($presets['selected_service']) : false;
16 $preselected_bundle = (!empty($presets['selected_bundle'])) ? new OsBundleModel($presets['selected_bundle']) : false;
17 ?>
18 <div class="step-services-w latepoint-step-content"
19 data-step-code="<?php echo esc_attr($current_step_code); ?>"
20 data-next-btn-label="<?php echo esc_attr(OsStepsHelper::get_next_btn_label_for_step($current_step_code)); ?>"
21 data-clear-action="latepoint_clear_step_services">
22 <?php
23 do_action('latepoint_before_step_content', $current_step_code);
24 echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'before');
25
26 if(OsSettingsHelper::steps_show_service_categories()) {
27 // Generate categorized services list
28 OsBookingHelper::generate_services_bundles_and_categories_list( false, [
29 'show_service_categories_arr' => $show_service_categories_arr,
30 'show_services_arr' => $show_services_arr,
31 'preselected_service' => $preselected_service,
32 'preselected_category' => $preselected_category,
33 'preselected_duration' => $preselected_duration,
34 'preselected_total_attendees' => $preselected_total_attendees,
35 ] );
36 }else{
37 echo '<div class="os-item-categories-holder os-item-categories-main-parent os-animated-parent">';
38 OsBookingHelper::generate_services_list($services);
39 OsBookingHelper::generate_bundles_folder();
40 echo '</div>';
41 }
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[service_id]', $booking->service_id, ['class' => 'latepoint_service_id', 'skip_id' => true]);
47 ?>
48 </div>