[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-templates/kakumei/ -> profile-edit.php (source)

   1  <?php bb_get_header(); ?>
   2  
   3  <div class="bbcrumb">
   4      <a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> &raquo; <?php _e( 'Edit Profile' ); ?>
   5  </div>
   6  
   7  <h2 id="userlogin" role="main">
   8      <?php echo get_user_display_name( $user->ID ); ?> <small>(<?php echo get_user_name( $user->ID ); ?>)</small>
   9  </h2>
  10  
  11  <form method="post" action="<?php profile_tab_link( $user->ID, 'edit', BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>">
  12  
  13      <fieldset>
  14          <legend><?php _e( 'Profile Info' ); ?></legend>
  15          <?php bb_profile_data_form(); ?>
  16      </fieldset>
  17  
  18  <?php if ( bb_current_user_can( 'edit_users' ) ) : ?>
  19      <fieldset>
  20          <legend><?php _e( 'Administration' ); ?></legend>
  21          <?php bb_profile_admin_form(); ?>
  22      </fieldset>
  23  <?php endif; ?>
  24  
  25  <?php
  26  if ( !( array_key_exists( 'keymaster', $user->capabilities ) && !bb_current_user_can( 'keep_gate' ) ) ) :
  27      if ( bb_current_user_can( 'change_user_password', $user->ID ) ) :
  28  ?>
  29      <fieldset>
  30          <legend><?php _e( 'Password' ); ?></legend>
  31          <p><?php _e( 'To change your password, enter a new password twice below:' ); ?></p>
  32          <?php bb_profile_password_form(); ?>
  33      </fieldset>
  34  <?php endif; endif; ?>
  35  
  36      <p class="submit right">
  37          <input type="submit" name="Submit" value="<?php echo esc_attr__( 'Update Profile &raquo;' ); ?>" />
  38      </p>
  39  
  40  </form>
  41  
  42  <form method="post" action="<?php profile_tab_link( $user->ID, 'edit' );  ?>">
  43  
  44      <p class="submit left">
  45          <?php bb_nonce_field( 'edit-profile_' . $user->ID ); ?>
  46          <?php user_delete_button(); ?>
  47      </p>
  48  
  49  </form>
  50  
  51  <?php bb_get_footer(); ?>


Generated: Thu Dec 7 01:01:35 2017 Cross-referenced by PHPXref 0.7.1