|
13 | 13 | * @see https://docs.woocommerce.com/document/template-structure/
|
14 | 14 | * @author WooThemes
|
15 | 15 | * @package WooCommerce/Templates
|
16 |
| - * @version 3.5.0 |
| 16 | + * @version 3.6.0 |
17 | 17 | */
|
18 | 18 |
|
19 | 19 | if ( ! defined( 'ABSPATH' ) ) {
|
20 | 20 | exit; // Exit if accessed directly.
|
21 | 21 | }
|
22 | 22 |
|
23 |
| -?> |
24 |
| - |
25 |
| -<?php wc_print_notices(); ?> |
26 |
| - |
27 |
| -<?php do_action( 'woocommerce_before_customer_login_form' ); ?> |
| 23 | +do_action( 'woocommerce_before_customer_login_form' ); ?> |
28 | 24 |
|
29 | 25 | <?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?>
|
30 | 26 |
|
31 | 27 | <div class="u-columns col2-set" id="customer_login">
|
32 | 28 |
|
33 | 29 | <div class="u-column1 col-1">
|
34 | 30 |
|
35 |
| - <?php endif; ?> |
| 31 | +<?php endif; ?> |
36 | 32 |
|
37 | 33 |
|
38 | 34 | <div class="panel panel-primary">
|
|
48 | 44 |
|
49 | 45 | <label for="username" class="control-label"><?php esc_html_e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
50 | 46 | <div class="form-input">
|
51 |
| - <input type="text" class="woocommerce-Input woocommerce-Input--text form-control" name="username" id="username" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( $_POST['username'] ) : ''; ?>" /> |
| 47 | + <input type="text" class="woocommerce-Input woocommerce-Input--text form-control" name="username" id="username" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( wp_unslash( $_POST['username'] ) ) : ''; ?>" /> |
52 | 48 | </div>
|
53 | 49 |
|
54 | 50 | </div>
|
|
64 | 60 |
|
65 | 61 | <div class="form-group">
|
66 | 62 | <div class="form-actions">
|
67 |
| - <label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline"> |
| 63 | + <label class="woocommerce-form__label woocommerce-form__label-for-checkbox woocommerce-form-login__rememberme inline"> |
68 | 64 | <input class="woocommerce-form__input woocommerce-form__input-checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span><?php esc_html_e( 'Remember me', 'woocommerce' ); ?></span>
|
69 | 65 | </label>
|
70 | 66 | </div>
|
|
73 | 69 | <div class="form-group">
|
74 | 70 | <div class="form-actions">
|
75 | 71 | <?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
|
76 |
| - <input type="submit" class="woocommerce-Button btn btn-primary" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>" /> |
77 |
| - |
| 72 | + <button type="submit" class="woocommerce-button button woocommerce-form-login__submit btn btn-primary" name="login" value="<?php esc_attr_e( 'Log in', 'woocommerce' ); ?>"><?php esc_html_e( 'Log in', 'woocommerce' ); ?></button> |
78 | 73 | </div>
|
79 | 74 | </div>
|
80 | 75 |
|
|
135 | 130 | </div>
|
136 | 131 | </div>
|
137 | 132 |
|
| 133 | + <?php else : ?> |
| 134 | + |
| 135 | + <p><?php esc_html_e( 'A password will be sent to your email address.', 'woocommerce' ); ?></p> |
| 136 | + |
138 | 137 | <?php endif; ?>
|
139 | 138 |
|
140 | 139 | <?php do_action( 'woocommerce_register_form' ); ?>
|
141 | 140 |
|
142 | 141 | <div class="form-actions">
|
143 | 142 | <?php wp_nonce_field( 'woocommerce-register', 'woocommerce-register-nonce' ); ?>
|
144 |
| - <input type="submit" class="woocommerce-Button btn btn-primary" name="register" value="<?php esc_attr_e( 'Register', 'woocommerce' ); ?>" /> |
| 143 | + <button type="submit" class="woocommerce-Button btn btn-primary" name="register" value="<?php esc_attr_e( 'Register', 'woocommerce' ); ?>"><?php esc_html_e( 'Register', 'woocommerce' ); ?></button> |
145 | 144 | </div>
|
146 | 145 |
|
147 | 146 | <?php do_action( 'woocommerce_register_form_end' ); ?>
|
|
0 commit comments