[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/members/single/settings/ -> general.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Settings ( General )
   4   *
   5   * @since 3.0.0
   6   * @version 8.0.0
   7   */
   8  
   9  bp_nouveau_member_hook( 'before', 'settings_template' ); ?>
  10  
  11  <h2 class="screen-heading general-settings-screen">
  12      <?php esc_html_e( 'Email & Password', 'buddypress' ); ?>
  13  </h2>
  14  
  15  <p class="info email-pwd-info">
  16      <?php esc_html_e( 'Update your email and or password.', 'buddypress' ); ?>
  17  </p>
  18  
  19  <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/general' ); ?>" method="post" class="standard-form" id="your-profile">
  20  
  21      <?php if ( ! is_super_admin() ) : ?>
  22  
  23          <label for="pwd">
  24              <?php
  25              /* translators: %s: email requirement explanations */
  26              printf( esc_html__( 'Current Password %s', 'buddypress' ), '<span>' . esc_html__( '(required to update email or change current password)', 'buddypress' ) . '</span>' );
  27              ?>
  28          </label>
  29          <input type="password" name="pwd" id="pwd" value="" size="24" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> &nbsp;<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'buddypress' ); ?></a>
  30  
  31      <?php endif; ?>
  32  
  33      <label for="email"><?php esc_html_e( 'Account Email', 'buddypress' ); ?></label>
  34      <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' ); ?>/>
  35  
  36      <div class="info bp-feedback">
  37          <span class="bp-icon" aria-hidden="true"></span>
  38          <p class="text"><?php esc_html_e( 'Click on the "Generate Password" button to change your password.', 'buddypress' ); ?></p>
  39      </div>
  40  
  41      <div class="user-pass1-wrap">
  42          <button type="button" class="button wp-generate-pw">
  43              <?php esc_html_e( 'Generate Password', 'buddypress' ); ?>
  44          </button>
  45  
  46          <div class="wp-pwd">
  47              <label for="pass1"><?php esc_html_e( 'Add Your New Password', 'buddypress' ); ?></label>
  48              <span class="password-input-wrapper">
  49                  <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' ) ); ?> />
  50              </span>
  51              <button type="button" class="button wp-hide-pw" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password', 'buddypress' ); ?>">
  52                  <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
  53                  <span class="text bp-screen-reader-text"><?php esc_html_e( 'Hide', 'buddypress' ); ?></span>
  54              </button>
  55              <button type="button" class="button wp-cancel-pw" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change', 'buddypress' ); ?>">
  56                  <span class="text"><?php esc_html_e( 'Cancel', 'buddypress' ); ?></span>
  57              </button>
  58              <div id="pass-strength-result" aria-live="polite"></div>
  59          </div>
  60      </div>
  61  
  62      <div class="user-pass2-wrap">
  63          <label class="label" for="pass2"><?php esc_html_e( 'Repeat Your New Password', 'buddypress' ); ?></label>
  64          <input name="pass2" type="password" id="pass2" size="24" class="settings-input small password-entry-confirm" value="" <?php bp_form_field_attributes( 'password' ); ?> />
  65      </div>
  66  
  67      <div class="pw-weak">
  68          <label>
  69              <input type="checkbox" name="pw_weak" class="pw-checkbox" />
  70              <span id="pw-weak-text-label"><?php esc_html_e( 'Confirm use of potentially weak password', 'buddypress' ); ?></span>
  71          </label>
  72      </div>
  73  
  74      <?php bp_nouveau_submit_button( 'members-general-settings' ); ?>
  75  
  76  </form>
  77  
  78  <?php
  79  bp_nouveau_member_hook( 'after', 'settings_template' );


Generated: Fri Apr 26 01:01:11 2024 Cross-referenced by PHPXref 0.7.1