[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> form-user-passwords.php (source)

   1  <?php
   2  
   3  /**
   4   * User Password Generator
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  // Filters the display of the password fields
  14  if ( apply_filters( 'show_password_fields', true, bbpress()->displayed_user ) ) : ?>
  15  
  16  <div id="password" class="user-pass1-wrap">
  17      <label for="user_login"><?php esc_html_e( 'Password', 'bbpress' ); ?></label>
  18      <button type="button" class="button wp-generate-pw hide-if-no-js"><?php esc_html_e( 'Generate Password', 'bbpress' ); ?></button>
  19  
  20      <fieldset class="bbp-form password wp-pwd hide-if-js">
  21          <span class="password-input-wrapper">
  22              <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
  23          </span>
  24  
  25          <span class="password-button-wrapper">
  26              <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password', 'bbpress' ); ?>">
  27                  <span class="dashicons dashicons-hidden"></span>
  28                  <span class="text"><?php esc_html_e( 'Hide', 'bbpress' ); ?></span>
  29              </button><button type="button" class="button wp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change', 'bbpress' ); ?>">
  30                  <span class="dashicons dashicons-no"></span>
  31                  <span class="text"><?php esc_html_e( 'Cancel', 'bbpress' ); ?></span>
  32              </button>
  33          </span>
  34  
  35          <div style="display:none" id="pass-strength-result" aria-live="polite"></div>
  36      </fieldset>
  37  </div>
  38  
  39  <div class="user-pass2-wrap hide-if-js">
  40      <label for="pass2"><?php esc_html_e( 'Repeat New Password', 'bbpress' ); ?></label>
  41      <input name="pass2" type="password" id="pass2" class="regular-text" value="" autocomplete="off" />
  42      <p class="description"><?php esc_html_e( 'Type your new password again.', 'bbpress' ); ?></p>
  43  </div>
  44  
  45  <div class="pw-weak">
  46      <label for="pw_weak"><?php esc_html_e( 'Confirm', 'bbpress' ); ?></label>
  47      <input type="checkbox" name="pw_weak" id="pw_weak" class="pw-checkbox checkbox" />
  48      <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
  49  </div>
  50  
  51  <?php endif;


Generated: Tue Feb 27 01:00:56 2024 Cross-referenced by PHPXref 0.7.1