PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 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 All 140 releases
← All changes | templates/checkout/account-register.php +62 -63 4.3.8 → 4.4.9 View file →
@@ -1,63 +1,62 @@
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" value="register"/>
16 -<div id="checkout-account-register" class="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
44 - // Add hook of WordPress
45 - do_action( 'register_form' );
46 - do_action( 'login_enqueue_scripts' );
47 - ?>
48 -
49 - <?php //wp_nonce_field( 'learn-press-checkout-register', 'learn-press-checkout-nonce' ); ?>
50 -
51 - <p class="lp-checkout-sign-in-link">
52 - <?php if ( LearnPress::instance()->checkout()->is_enable_login() ) : ?>
53 - <?php esc_html_e( 'Already had an account?', 'learnpress' ); ?>
54 - <a href="javascript: void(0);">
55 - <label for="checkout-account-switch-to-login"><?php esc_html_e( 'Sign in', 'learnpress' ); ?></label>
56 - </a>.
57 - <?php endif; ?>
58 -
59 - <?php learn_press_get_template( 'checkout/guest-checkout-link' ); ?>
60 - </p>
61 -
62 - <?php do_action( 'learn-press/after-checkout-form-register' ); ?>
63 -</div>
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 +<div id="checkout-account-register" class="lp-checkout-block left">
16 +
17 + <h4><?php esc_html_e( 'Sign up', 'learnpress' ); ?></h4>
18 +
19 + <ul class="lp-form-fields">
20 + <?php do_action( 'learn-press/before-form-register-fields' ); ?>
21 +
22 + <li class="form-field">
23 + <label for="reg_email"><?php esc_html_e( 'Email address', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
24 + <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'] ?? '' ) ); ?>">
25 + </li>
26 + <li class="form-field">
27 + <label for="reg_username"><?php esc_html_e( 'Username', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
28 + <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'] ?? '' ) ); ?>">
29 + </li>
30 + <li class="form-field">
31 + <label for="reg_password"><?php esc_html_e( 'Password', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
32 + <input id ="reg_password" name="reg_password" type="password" placeholder="<?php esc_attr_e( 'Password', 'learnpress' ); ?>" autocomplete="new-password">
33 + </li>
34 + <li class="form-field">
35 + <label for="reg_password2"><?php esc_html_e( 'Confirm Password', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
36 + <input id ="reg_password2" name="reg_password2" type="password" placeholder="<?php esc_attr_e( 'Password', 'learnpress' ); ?>" autocomplete="off">
37 + </li>
38 +
39 + <?php do_action( 'learn-press/after-form-register-fields' ); ?>
40 + </ul>
41 +
42 + <?php
43 + // Add hook of WordPress
44 + do_action( 'register_form' );
45 + do_action( 'login_enqueue_scripts' );
46 + ?>
47 +
48 + <?php //wp_nonce_field( 'learn-press-checkout-register', 'learn-press-checkout-nonce' ); ?>
49 +
50 + <p class="lp-checkout-sign-in-link">
51 + <?php if ( LearnPress::instance()->checkout()->is_enable_login() ) : ?>
52 + <?php esc_html_e( 'Already had an account?', 'learnpress' ); ?>
53 + <a href="<?php echo esc_url( add_query_arg( 'is_form_login', '1', LP_Helper::get_link_no_cache( learn_press_get_page_link( 'checkout' ) ) ) ); ?>">
54 + <?php esc_html_e( 'Sign in', 'learnpress' ); ?>
55 + </a>.
56 + <?php endif; ?>
57 +
58 + <?php learn_press_get_template( 'checkout/guest-checkout-link' ); ?>
59 + </p>
60 +
61 + <?php do_action( 'learn-press/after-checkout-form-register' ); ?>
62 +</div>