Update old suitCSS inspired class names to use BEM model. #10674
This commit is contained in:
parent
f709d6be3c
commit
b0d326ec2e
|
@ -26,17 +26,17 @@ do_action( 'woocommerce_before_edit_account_form' ); ?>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_edit_account_form_start' ); ?>
|
<?php do_action( 'woocommerce_edit_account_form_start' ); ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
<p class="woocommerce-form-row woocommerce-form-row--first form-row form-row-first">
|
||||||
<label for="account_first_name"><?php _e( 'First name', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="account_first_name"><?php _e( 'First name', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="account_first_name" id="account_first_name" value="<?php echo esc_attr( $user->first_name ); ?>" />
|
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="account_first_name" id="account_first_name" value="<?php echo esc_attr( $user->first_name ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--last form-row form-row-last">
|
<p class="woocommerce-form-row woocommerce-form-row--last form-row form-row-last">
|
||||||
<label for="account_last_name"><?php _e( 'Last name', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="account_last_name"><?php _e( 'Last name', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="account_last_name" id="account_last_name" value="<?php echo esc_attr( $user->last_name ); ?>" />
|
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="account_last_name" id="account_last_name" value="<?php echo esc_attr( $user->last_name ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="account_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="account_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="email" class="woocommerce-Input woocommerce-Input--email input-text" name="account_email" id="account_email" value="<?php echo esc_attr( $user->user_email ); ?>" />
|
<input type="email" class="woocommerce-Input woocommerce-Input--email input-text" name="account_email" id="account_email" value="<?php echo esc_attr( $user->user_email ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -44,15 +44,15 @@ do_action( 'woocommerce_before_edit_account_form' ); ?>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php _e( 'Password change', 'woocommerce' ); ?></legend>
|
<legend><?php _e( 'Password change', 'woocommerce' ); ?></legend>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="password_current"><?php _e( 'Current password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
|
<label for="password_current"><?php _e( 'Current password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_current" id="password_current" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_current" id="password_current" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="password_1"><?php _e( 'New password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
|
<label for="password_1"><?php _e( 'New password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_1" id="password_1" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_1" id="password_1" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="password_2"><?php _e( 'Confirm new password', 'woocommerce' ); ?></label>
|
<label for="password_2"><?php _e( 'Confirm new password', 'woocommerce' ); ?></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_2" id="password_2" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_2" id="password_2" />
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -40,11 +40,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_login_form_start' ); ?>
|
<?php do_action( 'woocommerce_login_form_start' ); ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="username"><?php _e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="username"><?php _e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
|
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input class="woocommerce-Input woocommerce-Input--text input-text" type="password" name="password" id="password" />
|
<input class="woocommerce-Input woocommerce-Input--text input-text" type="password" name="password" id="password" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -80,21 +80,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
|
||||||
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?>
|
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="reg_username"><?php _e( 'Username', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="reg_username"><?php _e( 'Username', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="reg_username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
|
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="reg_username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="reg_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="reg_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" value="<?php if ( ! empty( $_POST['email'] ) ) echo esc_attr( $_POST['email'] ); ?>" />
|
<input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" value="<?php if ( ! empty( $_POST['email'] ) ) echo esc_attr( $_POST['email'] ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>
|
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
|
||||||
<label for="reg_password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="reg_password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" />
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -26,7 +26,7 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<p><?php echo apply_filters( 'woocommerce_lost_password_message', __( 'Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.', 'woocommerce' ) ); ?></p>
|
<p><?php echo apply_filters( 'woocommerce_lost_password_message', __( 'Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.', 'woocommerce' ) ); ?></p>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
<p class="woocommerce-form-row woocommerce-form-row--first form-row form-row-first">
|
||||||
<label for="user_login"><?php _e( 'Username or email', 'woocommerce' ); ?></label>
|
<label for="user_login"><?php _e( 'Username or email', 'woocommerce' ); ?></label>
|
||||||
<input class="woocommerce-Input woocommerce-Input--text input-text" type="text" name="user_login" id="user_login" />
|
<input class="woocommerce-Input woocommerce-Input--text input-text" type="text" name="user_login" id="user_login" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -35,7 +35,7 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_lostpassword_form' ); ?>
|
<?php do_action( 'woocommerce_lostpassword_form' ); ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow form-row">
|
<p class="woocommerce-form-row form-row">
|
||||||
<input type="hidden" name="wc_reset_password" value="true" />
|
<input type="hidden" name="wc_reset_password" value="true" />
|
||||||
<input type="submit" class="woocommerce-Button button" value="<?php esc_attr_e( 'Reset password', 'woocommerce' ); ?>" />
|
<input type="submit" class="woocommerce-Button button" value="<?php esc_attr_e( 'Reset password', 'woocommerce' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -26,11 +26,11 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<p><?php echo apply_filters( 'woocommerce_reset_password_message', __( 'Enter a new password below.', 'woocommerce' ) ); ?></p>
|
<p><?php echo apply_filters( 'woocommerce_reset_password_message', __( 'Enter a new password below.', 'woocommerce' ) ); ?></p>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
<p class="woocommerce-form-row woocommerce-form-row--first form-row form-row-first">
|
||||||
<label for="password_1"><?php _e( 'New password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="password_1"><?php _e( 'New password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password_1" id="password_1" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password_1" id="password_1" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--last form-row form-row-last">
|
<p class="woocommerce-form-row woocommerce-form-row--last form-row form-row-last">
|
||||||
<label for="password_2"><?php _e( 'Re-enter new password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="password_2"><?php _e( 'Re-enter new password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password_2" id="password_2" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password_2" id="password_2" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -42,7 +42,7 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_resetpassword_form' ); ?>
|
<?php do_action( 'woocommerce_resetpassword_form' ); ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow form-row">
|
<p class="woocommerce-form-row form-row">
|
||||||
<input type="hidden" name="wc_reset_password" value="true" />
|
<input type="hidden" name="wc_reset_password" value="true" />
|
||||||
<input type="submit" class="woocommerce-Button button" value="<?php esc_attr_e( 'Save', 'woocommerce' ); ?>" />
|
<input type="submit" class="woocommerce-Button button" value="<?php esc_attr_e( 'Save', 'woocommerce' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue