| @@ -15,9 +15,8 @@ | ||
| 15 | 15 | return; |
| 16 | 16 | } |
| 17 | 17 | ?> |
| 18 | 18 | |
| 19 | -<input type="radio" id="checkout-account-switch-to-login" checked="checked" name="checkout-account-switch-form" value="login"/> | |
| 20 | 19 | <div id="checkout-account-login" class="lp-checkout-block left"> |
| 21 | 20 | |
| 22 | 21 | <h4><?php esc_html_e( 'Sign in', 'learnpress' ); ?></h4> |
| 23 | 22 | |
| @@ -33,9 +32,9 @@ | ||
| 33 | 32 | </ul> |
| 34 | 33 | |
| 35 | 34 | <?php do_action( 'learn-press/after-checkout-account-login-fields' ); ?> |
| 36 | 35 | |
| 37 | - <input type="hidden" name="learn-press-checkout-nonce" value="<?php echo wp_create_nonce( 'learn-press-checkout-login' ); ?>"> | |
| 36 | +<!-- <input type="hidden" name="learn-press-checkout-nonce" value="--><?php //echo wp_create_nonce( 'learn-press-checkout-login' ); ?><!--">--> | |
| 38 | 37 | <p class="lp-checkout-remember"> |
| 39 | 38 | <label> |
| 40 | 39 | <input type="checkbox" name="rememberme"/> |
| 41 | 40 | <?php esc_html_e( 'Remember me', 'learnpress' ); ?> |
| @@ -45,13 +44,19 @@ | ||
| 45 | 44 | <?php esc_html_e( 'Lost password?', 'learnpress' ); ?> |
| 46 | 45 | </a> |
| 47 | 46 | </p> |
| 48 | 47 | |
| 48 | + <?php | |
| 49 | + // Add hook of WordPress | |
| 50 | + do_action( 'login_form' ); | |
| 51 | + do_action( 'login_enqueue_scripts' ); | |
| 52 | + ?> | |
| 53 | + | |
| 49 | 54 | <p class="lp-checkout-sign-up-link"> |
| 50 | - <?php if ( LP()->checkout()->is_enable_register() ) : ?> | |
| 55 | + <?php if ( LearnPress::instance()->checkout()->is_enable_register() ) : ?> | |
| 51 | 56 | <?php esc_html_e( 'Don\'t have an account?', 'learnpress' ); ?> |
| 52 | - <a href="javascript: void(0);"> | |
| 53 | - <label for="checkout-account-switch-to-register"><?php echo esc_html_x( 'Sign up', 'checkout sign up link', 'learnpress' ); ?></label> | |
| 57 | + <a href="<?php echo esc_url( add_query_arg( 'is_form_register', '1', LP_Helper::get_link_no_cache( learn_press_get_page_link( 'checkout' ) ) ) ); ?>"> | |
| 58 | + <?php echo esc_html_x( 'Sign up', 'checkout sign up link', 'learnpress' ); ?> | |
| 54 | 59 | </a>. |
| 55 | 60 | <?php endif; ?> |
| 56 | 61 | |
| 57 | 62 | <?php learn_press_get_template( 'checkout/guest-checkout-link' ); ?> |