[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Settings ( Profile )
   4   *
   5   * @since 3.0.0
   6   * @version 8.0.0
   7   */
   8  
   9  bp_nouveau_member_hook( 'before', 'settings_template' ); ?>
  10  
  11  <h2 class="screen-heading profile-settings-screen">
  12      <?php esc_html_e( 'Profile Visibility Settings', 'buddypress' ); ?>
  13  </h2>
  14  
  15  <p class="bp-help-text profile-visibility-info">
  16      <?php esc_html_e( 'Select who may see your profile details.', 'buddypress' ); ?>
  17  </p>
  18  
  19  <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/profile/' ); ?>" method="post" class="standard-form" id="settings-form">
  20  
  21      <?php if ( bp_xprofile_get_settings_fields() ) : ?>
  22  
  23          <?php
  24          while ( bp_profile_groups() ) :
  25              bp_the_profile_group();
  26          ?>
  27  
  28              <?php if ( bp_profile_fields() ) : ?>
  29  
  30                  <table class="profile-settings bp-tables-user" id="<?php echo esc_attr( 'xprofile-settings-' . bp_get_the_profile_group_slug() ); ?>">
  31                      <thead>
  32                          <tr>
  33                              <th class="title field-group-name"><?php bp_the_profile_group_name(); ?></th>
  34                              <th class="title"><?php esc_html_e( 'Visibility', 'buddypress' ); ?></th>
  35                          </tr>
  36                      </thead>
  37  
  38                      <tbody>
  39  
  40                          <?php
  41                          while ( bp_profile_fields() ) :
  42                              bp_the_profile_field();
  43                          ?>
  44  
  45                              <tr <?php bp_field_css_class(); ?>>
  46                                  <td class="field-name"><?php bp_the_profile_field_name(); ?></td>
  47                                  <td class="field-visibility"><?php bp_profile_settings_visibility_select(); ?></td>
  48                              </tr>
  49  
  50                          <?php endwhile; ?>
  51  
  52                      </tbody>
  53                  </table>
  54  
  55              <?php endif; ?>
  56  
  57          <?php endwhile; ?>
  58  
  59      <?php endif; ?>
  60  
  61      <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
  62  
  63      <?php bp_nouveau_submit_button( 'members-profile-settings' ); ?>
  64  
  65  </form>
  66  
  67  <?php
  68  bp_nouveau_member_hook( 'after', 'settings_template' );


Generated: Fri May 20 01:00:54 2022 Cross-referenced by PHPXref 0.7.1