[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/members/single/profile/ -> edit.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Single Profile Edit
   4   *
   5   * @since 3.0.0
   6   * @version 3.1.0
   7   */
   8  
   9  bp_nouveau_xprofile_hook( 'before', 'edit_content' ); ?>
  10  
  11  <h2 class="screen-heading edit-profile-screen"><?php esc_html_e( 'Edit Profile', 'buddypress' ); ?></h2>
  12  
  13  <?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
  14      while ( bp_profile_groups() ) :
  15          bp_the_profile_group();
  16      ?>
  17  
  18          <form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" class="standard-form profile-edit <?php bp_the_profile_group_slug(); ?>">
  19  
  20              <?php bp_nouveau_xprofile_hook( 'before', 'field_content' ); ?>
  21  
  22                  <?php if ( bp_profile_has_multiple_groups() ) : ?>
  23                      <ul class="button-tabs button-nav">
  24  
  25                          <?php bp_profile_group_tabs(); ?>
  26  
  27                      </ul>
  28                  <?php endif; ?>
  29  
  30                  <h3 class="screen-heading profile-group-title edit">
  31                      <?php
  32                      printf(
  33                          /* translators: %s = profile field group name */
  34                          __( 'Editing "%s" Profile Group', 'buddypress' ),
  35                          bp_get_the_profile_group_name()
  36                      )
  37                      ?>
  38                  </h3>
  39  
  40                  <?php
  41                  while ( bp_profile_fields() ) :
  42                      bp_the_profile_field();
  43                  ?>
  44  
  45                      <div<?php bp_field_css_class( 'editfield' ); ?>>
  46                          <fieldset>
  47  
  48                          <?php
  49                          $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
  50                          $field_type->edit_field_html();
  51                          ?>
  52  
  53                          <?php bp_nouveau_xprofile_edit_visibilty(); ?>
  54  
  55                          </fieldset>
  56                      </div>
  57  
  58                  <?php endwhile; ?>
  59  
  60              <?php bp_nouveau_xprofile_hook( 'after', 'field_content' ); ?>
  61  
  62              <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
  63  
  64              <?php bp_nouveau_submit_button( 'member-profile-edit' ); ?>
  65  
  66          </form>
  67  
  68      <?php endwhile; ?>
  69  
  70  <?php endif; ?>
  71  
  72  <?php
  73  bp_nouveau_xprofile_hook( 'after', 'edit_content' );


Generated: Thu Mar 28 01:00:56 2024 Cross-referenced by PHPXref 0.7.1