Woocommerce 3.6.1 template changes
This commit is contained in:
parent
89f250974d
commit
1ab2f98382
|
@ -11,9 +11,8 @@
|
||||||
* the readme will list any important changes.
|
* the readme will list any important changes.
|
||||||
*
|
*
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @author WooThemes
|
|
||||||
* @package WooCommerce/Templates
|
* @package WooCommerce/Templates
|
||||||
* @version 3.3.0
|
* @version 3.6.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
@ -36,7 +35,7 @@ if ( is_user_logged_in() ) {
|
||||||
<input type="text" class="input-text form-control" name="username" id="username" autocomplete="username" />
|
<input type="text" class="input-text form-control" name="username" id="username" autocomplete="username" />
|
||||||
</p>
|
</p>
|
||||||
<p class="form-row form-row-last">
|
<p class="form-row form-row-last">
|
||||||
<label for="password"><?php esc_html_e( 'Password', 'understrap' ); ?> <span class="required">*</span></label>
|
<label for="password"><?php esc_html_e( 'Password', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input class="input-text form-control" type="password" name="password" id="password" autocomplete="current-password" />
|
<input class="input-text form-control" type="password" name="password" id="password" autocomplete="current-password" />
|
||||||
</p>
|
</p>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
@ -44,12 +43,13 @@ if ( is_user_logged_in() ) {
|
||||||
<?php do_action( 'woocommerce_login_form' ); ?>
|
<?php do_action( 'woocommerce_login_form' ); ?>
|
||||||
|
|
||||||
<p class="form-row">
|
<p class="form-row">
|
||||||
<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
|
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox">
|
||||||
<button type="submit" class="btn btn-outline-primary" name="login" value="<?php esc_attr_e( 'Login', 'understrap' ); ?>"><?php esc_html_e( 'Login', 'understrap' ); ?></button>
|
|
||||||
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" />
|
|
||||||
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline">
|
|
||||||
<input class="woocommerce-form__input woocommerce-form__input-checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span><?php esc_html_e( 'Remember me', 'understrap' ); ?></span>
|
<input class="woocommerce-form__input woocommerce-form__input-checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span><?php esc_html_e( 'Remember me', 'understrap' ); ?></span>
|
||||||
</label>
|
</label>
|
||||||
|
<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
|
||||||
|
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" />
|
||||||
|
<button type="submit" class="btn btn-outline-primary" name="login" value="<?php esc_attr_e( 'Login', 'understrap' ); ?>"><?php esc_html_e( 'Login', 'understrap' ); ?></button>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<p class="lost_password">
|
<p class="lost_password">
|
||||||
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'understrap' ); ?></a>
|
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'understrap' ); ?></a>
|
||||||
|
|
Reference in New Issue