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 / _customer.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
_customer.php
68 lines
1 <?php
2 /**
3 * @var $current_step_code string
4 * @var $booking OsBookingModel
5 * @var $restrictions array
6 * @var $presets array
7 * @var $customer OsCustomerModel
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit; // Exit if accessed directly
12 }
13
14
15 ?>
16 <div class="step-customer-w latepoint-step-content" data-step-code="<?php echo esc_attr($current_step_code); ?>"
17 data-next-btn-label="<?php echo esc_attr(OsStepsHelper::get_next_btn_label_for_step($current_step_code)); ?>">
18 <?php
19 do_action('latepoint_before_step_content', $current_step_code);
20 echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'before');
21 ?>
22 <?php if ($customer->id) { ?>
23 <div class="step-customer-logged-in-header-w">
24 <div><?php esc_html_e('Contact Information', 'latepoint'); ?></div>
25 <span><?php esc_html_e('Not You?', 'latepoint'); ?></span><a
26 data-btn-action="<?php echo esc_attr(OsRouterHelper::build_route_name('auth', 'logout_customer')); ?>" href="#"
27 class="step-customer-logout-btn"><?php esc_html_e('Logout', 'latepoint'); ?></a>
28 </div>
29 <?php include('partials/_contact_form.php'); ?>
30 <?php } else { ?>
31 <div class="os-step-tabs-w">
32 <?php if (OsSettingsHelper::get_settings_value('steps_hide_login_register_tabs') != 'on') { ?>
33 <div class="os-step-tabs">
34 <div class="os-step-tab active"
35 data-target=".os-step-new-customer-w"><?php esc_html_e('New Customer', 'latepoint'); ?></div>
36 <div class="os-step-tab"
37 data-target=".os-step-existing-customer-login-w"><?php esc_html_e('Already have an account?', 'latepoint'); ?></div>
38 </div>
39 <?php } ?>
40 <div class="os-step-tab-content os-step-new-customer-w">
41 <?php include('partials/_contact_form.php'); ?>
42 </div>
43 <?php if (OsSettingsHelper::get_settings_value('steps_hide_login_register_tabs') != 'on') { ?>
44 <div class="os-step-tab-content os-step-existing-customer-login-w" style="display: none;">
45 <div class="os-row">
46 <?php echo OsFormHelper::text_field('customer_login[email]', __('Your Email Address', 'latepoint'), '', array('class' => 'required'), array('class' => 'os-col-12')); ?>
47 <?php echo OsFormHelper::password_field('customer_login[password]', __('Your Password', 'latepoint'), '', array('class' => 'required'), array('class' => 'os-col-12')); ?>
48 </div>
49 <div class="os-form-buttons os-flex os-space-between">
50 <a data-btn-action="<?php echo esc_attr(OsRouterHelper::build_route_name('auth', 'login_customer')); ?>" href="#"
51 class="latepoint-btn latepoint-btn-primary step-login-existing-customer-btn"><?php esc_html_e('Log Me In', 'latepoint'); ?></a>
52 <a href="#" class="latepoint-btn latepoint-btn-primary latepoint-btn-link step-forgot-password-btn"
53 data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('customer_cabinet', 'request_password_reset_token')); ?>"
54 data-os-output-target=".os-password-reset-form-holder"
55 data-os-after-call="latepoint_reset_password_from_booking_init"
56 data-os-params="<?php echo esc_attr(OsUtilHelper::build_os_params(['from_booking' => true])); ?>"><?php esc_html_e('Forgot Password?', 'latepoint'); ?></a>
57 </div>
58 </div>
59 <div class="os-password-reset-form-holder"></div>
60 <?php } ?>
61 </div>
62 <?php do_action('latepoint_after_customer_login_form'); ?>
63 <?php } ?>
64 <?php
65 echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'after');
66 do_action('latepoint_after_step_content', $current_step_code);
67 ?>
68 </div>