/bp-templates/bp-legacy/buddypress/members/single/settings/general.php

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