/bp-themes/bp-default/members/single/settings/general.php

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress Member Settings 
  5. * 
  6. * @package BuddyPress 
  7. * @subpackage bp-default 
  8. */ 
  9.  
  10. get_header( 'buddypress' ); ?> 
  11.  
  12. <div id="content"> 
  13. <div class="padder"> 
  14.  
  15. <?php do_action( 'bp_before_member_settings_template' ); ?> 
  16.  
  17. <div id="item-header"> 
  18.  
  19. <?php locate_template( array( 'members/single/member-header.php' ), true ); ?> 
  20.  
  21. </div><!-- #item-header --> 
  22.  
  23. <div id="item-nav"> 
  24. <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> 
  25. <ul> 
  26.  
  27. <?php bp_get_displayed_user_nav(); ?> 
  28.  
  29. <?php do_action( 'bp_member_options_nav' ); ?> 
  30.  
  31. </ul> 
  32. </div> 
  33. </div><!-- #item-nav --> 
  34.  
  35. <div id="item-body" role="main"> 
  36.  
  37. <?php do_action( 'bp_before_member_body' ); ?> 
  38.  
  39. <div class="item-list-tabs no-ajax" id="subnav"> 
  40. <ul> 
  41.  
  42. <?php bp_get_options_nav(); ?> 
  43.  
  44. <?php do_action( 'bp_member_plugin_options_nav' ); ?> 
  45.  
  46. </ul> 
  47. </div><!-- .item-list-tabs --> 
  48.  
  49. <h3><?php _e( 'General Settings', 'buddypress' ); ?></h3> 
  50.  
  51. <?php do_action( 'bp_template_content' ); ?> 
  52.  
  53. <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form"> 
  54.  
  55. <?php if ( !is_super_admin() ) : ?> 
  56.  
  57. <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label> 
  58. <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" />  <a href="<?php echo wp_lostpassword_url(); ?>" title="<?php esc_attr_e( 'Password Lost and Found', 'buddypress' ); ?>"><?php _e( 'Lost your password?', 'buddypress' ); ?></a> 
  59.  
  60. <?php endif; ?> 
  61.  
  62. <label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label> 
  63. <input type="text" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" /> 
  64.  
  65. <label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ); ?></label> 
  66. <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small" />  <?php _e( 'New Password', 'buddypress' ); ?><br /> 
  67. <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small" />  <?php _e( 'Repeat New Password', 'buddypress' ); ?> 
  68.  
  69. <?php do_action( 'bp_core_general_settings_before_submit' ); ?> 
  70.  
  71. <div class="submit"> 
  72. <input type="submit" name="submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" id="submit" class="auto" /> 
  73. </div> 
  74.  
  75. <?php do_action( 'bp_core_general_settings_after_submit' ); ?> 
  76.  
  77. <?php wp_nonce_field( 'bp_settings_general' ); ?> 
  78.  
  79. </form> 
  80.  
  81. <?php do_action( 'bp_after_member_body' ); ?> 
  82.  
  83. </div><!-- #item-body --> 
  84.  
  85. <?php do_action( 'bp_after_member_settings_template' ); ?> 
  86.  
  87. </div><!-- .padder --> 
  88. </div><!-- #content --> 
  89.  
  90. <?php get_sidebar( 'buddypress' ); ?> 
  91.  
  92. <?php get_footer( 'buddypress' ); ?> 
.