PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7.3
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7.3
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / templates / checkout / account-register.php

account-register.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7.3, at templates/checkout/account-register.php

58 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for displaying register form.
4 *
5 * This template can be overridden by copying it to yourtheme/learnpress/checkout/form-register.php.
6 *
7 * @author ThimPress
8 * @package Learnpress/Templates
9 * @version 4.0.0
10 */
11
12 defined( 'ABSPATH' ) || exit();
13 ?>
14
15 <input type="radio" id="checkout-account-switch-to-register" name="checkout-account-switch-form" checked="checked" value="register"/>
16 <div id="checkout-account-register" class="checkout-account-switch-form lp-checkout-block left">
17
18 <h4><?php esc_html_e( 'Sign up', 'learnpress' ); ?></h4>
19
20 <ul class="lp-form-fields">
21 <?php do_action( 'learn-press/before-form-register-fields' ); ?>
22
23 <li class="form-field">
24 <label for="reg_email"><?php esc_html_e( 'Email address', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
25 <input id ="reg_email" name="reg_email" type="text" placeholder="<?php esc_attr_e( 'Email', 'learnpress' ); ?>" autocomplete="email" value="<?php echo esc_attr( LP_Helper::sanitize_params_submitted( $_POST['reg_email'] ?? '' ) ); ?>">
26 </li>
27 <li class="form-field">
28 <label for="reg_username"><?php esc_html_e( 'Username', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
29 <input id ="reg_username" name="reg_username" type="text" placeholder="<?php esc_attr_e( 'Username', 'learnpress' ); ?>" autocomplete="username" value="<?php echo esc_attr( LP_Helper::sanitize_params_submitted( $_POST['reg_username'] ?? '' ) ); ?>">
30 </li>
31 <li class="form-field">
32 <label for="reg_password"><?php esc_html_e( 'Password', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
33 <input id ="reg_password" name="reg_password" type="password" placeholder="<?php esc_attr_e( 'Password', 'learnpress' ); ?>" autocomplete="new-password">
34 </li>
35 <li class="form-field">
36 <label for="reg_password2"><?php esc_html_e( 'Confirm Password', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
37 <input id ="reg_password2" name="reg_password2" type="password" placeholder="<?php esc_attr_e( 'Password', 'learnpress' ); ?>" autocomplete="off">
38 </li>
39
40 <?php do_action( 'learn-press/after-form-register-fields' ); ?>
41 </ul>
42
43 <?php wp_nonce_field( 'learn-press-checkout-register', 'learn-press-checkout-nonce' ); ?>
44
45 <p class="lp-checkout-sign-in-link">
46 <?php if ( LearnPress::instance()->checkout()->is_enable_login() ) : ?>
47 <?php esc_html_e( 'Already had an account?', 'learnpress' ); ?>
48 <a href="javascript: void(0);">
49 <label for="checkout-account-switch-to-login"><?php esc_html_e( 'Sign in', 'learnpress' ); ?></label>
50 </a>.
51 <?php endif; ?>
52
53 <?php learn_press_get_template( 'checkout/guest-checkout-link' ); ?>
54 </p>
55
56 <?php do_action( 'learn-press/after-checkout-form-register' ); ?>
57 </div>
58