_booking_tile.php
1 week ago
_bundle_tile.php
1 year ago
_order_tile.php
2 months ago
dashboard.php
2 months ago
login.php
9 months ago
password_reset_form.php
2 months ago
request_password_reset_token.php
2 months ago
scheduling_summary_for_bundle.php
1 year ago
view_booking_summary_in_lightbox.php
1 year ago
view_order_summary_in_lightbox.php
1 year ago
login.php
45 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | ?> |
| 6 | <?php |
| 7 | $is_auth_enabled = OsAuthHelper::is_customer_auth_enabled(); |
| 8 | if($is_auth_enabled){ |
| 9 | $attrs = 'data-redirect-url="'.esc_attr(OsSettingsHelper::get_customer_dashboard_url()).'" data-success-action="'.(OsAuthHelper::is_customer_logged_in() ? 'auto-redirect' : 'redirect').'"'; |
| 10 | }else{ |
| 11 | $attrs = ''; |
| 12 | } |
| 13 | ?> |
| 14 | <div class="latepoint-w"> |
| 15 | <div class="os-form-w latepoint-login-form-w" <?php echo $attrs; ?>> |
| 16 | <?php |
| 17 | if($is_auth_enabled){ |
| 18 | if(OsAuthHelper::is_customer_logged_in()){ |
| 19 | echo '<div class="latepoint-customer-dashboard-redirecting">'.__('Redirecting you to your dashboard', 'latepoint').'</div>'; |
| 20 | }else{ |
| 21 | ?> |
| 22 | <form action="" class="latepoint-form"> |
| 23 | <div class="latepoint-customer-otp-input-container"></div> |
| 24 | <div class="latepoint-customer-auth-options-wrapper hide-when-entering-otp"> |
| 25 | <div class="latepoint-customer-box-title"><?php _e('Sign in to your account', 'latepoint'); ?></div> |
| 26 | <?php |
| 27 | echo '<div class="os-step-existing-customer-login-w">'; |
| 28 | echo OsAuthHelper::auth_form_html( true, new OsCustomerModel() ); |
| 29 | echo '</div>'; |
| 30 | echo '<div class="os-password-reset-form-holder"></div>'; |
| 31 | if ( apply_filters( 'latepoint_customer_login_show_other_options', false ) ) { ?> |
| 32 | <div class="os-social-or"><span><?php _e( 'OR', 'latepoint' ); ?></span></div> |
| 33 | <?php |
| 34 | } |
| 35 | ?> |
| 36 | <?php do_action('latepoint_after_customer_login_form'); ?> |
| 37 | </div> |
| 38 | </form> |
| 39 | <?php |
| 40 | } |
| 41 | }else{ |
| 42 | echo '<div>'.__('Customer authentication is disabled', 'latepoint').'</div>'; |
| 43 | }?> |
| 44 | </div> |
| 45 | </div> |