Changeset 12397 for trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/general.php
- Timestamp:
- 05/18/2019 06:57:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/general.php
r12156 r12397 4 4 * 5 5 * @since 3.0.0 6 * @version 3.1.06 * @version 5.0.0 7 7 */ 8 8 … … 10 10 11 11 <h2 class="screen-heading general-settings-screen"> 12 <?php _e( 'Email & Password', 'buddypress' ); ?>12 <?php esc_html_e( 'Email & Password', 'buddypress' ); ?> 13 13 </h2> 14 14 15 15 <p class="info email-pwd-info"> 16 <?php _e( 'Update your email and or password.', 'buddypress' ); ?>16 <?php esc_html_e( 'Update your email and or password.', 'buddypress' ); ?> 17 17 </p> 18 18 19 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/general' ); ?>" method="post" class="standard-form" id=" settings-form">19 <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/general' ); ?>" method="post" class="standard-form" id="your-profile"> 20 20 21 21 <?php if ( ! is_super_admin() ) : ?> 22 22 23 <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>24 <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'buddypress' ); ?></a>23 <label for="pwd"><?php printf( esc_html__( 'Current Password %s', 'buddypress' ), '<span>' . esc_html__( '(required to update email or change current password)', 'buddypress' ) . '</span>' ); ?></label> 24 <input type="password" name="pwd" id="pwd" value="" size="24" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'buddypress' ); ?></a> 25 25 26 26 <?php endif; ?> 27 27 28 <label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label>28 <label for="email"><?php esc_html_e( 'Account Email', 'buddypress' ); ?></label> 29 29 <input type="email" name="email" id="email" value="<?php echo esc_attr( bp_get_displayed_user_email() ); ?>" class="settings-input" <?php bp_form_field_attributes( 'email' ); ?>/> 30 30 31 31 <div class="info bp-feedback"> 32 32 <span class="bp-icon" aria-hidden="true"></span> 33 <p class="text"><?php esc_html_e( ' Leave password fields blank for no change', 'buddypress' ); ?></p>33 <p class="text"><?php esc_html_e( 'Click on the "Generate Password" button to change your password.', 'buddypress' ); ?></p> 34 34 </div> 35 35 36 <label for="pass1"><?php esc_html_e( 'Add Your New Password', 'buddypress' ); ?></label> 37 <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small password-entry" <?php bp_form_field_attributes( 'password' ); ?>/> 36 <div class="user-pass1-wrap"> 37 <button type="button" class="button wp-generate-pw"> 38 <?php esc_html_e( 'Generate Password', 'buddypress' ); ?> 39 </button> 38 40 39 <label for="pass2" class="repeated-pwd"><?php esc_html_e( 'Repeat Your New Password', 'buddypress' ); ?></label> 40 <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/> 41 <div class="wp-pwd"> 42 <label for="pass1"><?php esc_html_e( 'Add Your New Password', 'buddypress' ); ?></label> 43 <span class="password-input-wrapper"> 44 <input type="password" name="pass1" id="pass1" size="24" class="settings-input small password-entry" value="" <?php bp_form_field_attributes( 'password', array( 'data-pw' => wp_generate_password( 24 ), 'aria-describedby' => 'pass-strength-result' ) ); ?> /> 45 </span> 46 <button type="button" class="button wp-hide-pw" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password', 'buddypress' ); ?>"> 47 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> 48 <span class="text bp-screen-reader-text"><?php esc_html_e( 'Hide', 'buddypress' ); ?></span> 49 </button> 50 <button type="button" class="button wp-cancel-pw" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change', 'buddypress' ); ?>"> 51 <span class="text"><?php esc_html_e( 'Cancel', 'buddypress' ); ?></span> 52 </button> 53 <div id="pass-strength-result" aria-live="polite"></div> 54 </div> 55 </div> 41 56 42 <div id="pass-strength-result"></div> 57 <div class="user-pass2-wrap"> 58 <label class="label" for="pass2"><?php esc_html_e( 'Repeat Your New Password', 'buddypress' ); ?></label> 59 <input name="pass2" type="password" id="pass2" size="24" class="settings-input small password-entry-confirm" value="" <?php bp_form_field_attributes( 'password' ); ?> /> 60 </div> 61 62 <div class="pw-weak"> 63 <label> 64 <input type="checkbox" name="pw_weak" class="pw-checkbox" /> 65 <span id="pw-weak-text-label"><?php esc_html_e( 'Confirm use of potentially weak password', 'buddypress' ); ?></span> 66 </label> 67 </div> 43 68 44 69 <?php bp_nouveau_submit_button( 'members-general-settings' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.