[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Single Profile
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
  11  do_action( 'bp_before_member_settings_template' ); ?>
  12  
  13  <h2 class="bp-screen-reader-text"><?php
  14      /* translators: accessibility text */
  15      _e( 'Account settings', 'buddypress' );
  16  ?></h2>
  17  
  18  <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form">
  19  
  20      <?php if ( !is_super_admin() ) : ?>
  21  
  22          <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>
  23          <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> &nbsp;<a href="<?php echo wp_lostpassword_url(); ?>"><?php _e( 'Lost your password?', 'buddypress' ); ?></a>
  24  
  25      <?php endif; ?>
  26  
  27      <label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label>
  28      <input type="email" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" <?php bp_form_field_attributes( 'email' ); ?>/>
  29  
  30      <label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ); ?></label>
  31      <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small password-entry" <?php bp_form_field_attributes( 'password' ); ?>/>
  32      <div id="pass-strength-result"></div>
  33      <label for="pass2"><?php _e( 'Repeat New Password', 'buddypress' );
  34      ?></label>
  35      <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/>
  36  
  37      <?php
  38  
  39      /**
  40       * Fires before the display of the submit button for user general settings saving.
  41       *
  42       * @since 1.5.0
  43       */
  44      do_action( 'bp_core_general_settings_before_submit' ); ?>
  45  
  46      <div class="submit">
  47          <input type="submit" name="submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" id="submit" class="auto" />
  48      </div>
  49  
  50      <?php
  51  
  52      /**
  53       * Fires after the display of the submit button for user general settings saving.
  54       *
  55       * @since 1.5.0
  56       */
  57      do_action( 'bp_core_general_settings_after_submit' ); ?>
  58  
  59      <?php wp_nonce_field( 'bp_settings_general' ); ?>
  60  
  61  </form>
  62  
  63  <?php
  64  
  65  /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
  66  do_action( 'bp_after_member_settings_template' );


Generated: Tue Dec 10 01:01:39 2019 Cross-referenced by PHPXref 0.7.1