[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Single Profile
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /**
  11   * Fires before the display of member settings template.
  12   *
  13   * @since 1.5.0
  14   */
  15  do_action( 'bp_before_member_settings_template' ); ?>
  16  
  17  <h2 class="bp-screen-reader-text"><?php
  18      /* translators: accessibility text */
  19      _e( 'Profile visibility settings', 'buddypress' );
  20  ?></h2>
  21  
  22  <form action="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() . '/profile' ); ?>" method="post" class="standard-form" id="settings-form">
  23  
  24      <?php if ( bp_xprofile_get_settings_fields() ) : ?>
  25  
  26          <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  27  
  28              <?php if ( bp_profile_fields() ) : ?>
  29  
  30                  <table class="profile-settings" id="xprofile-settings-<?php bp_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 _e( 'Visibility', 'buddypress' ); ?></th>
  35                          </tr>
  36                      </thead>
  37  
  38                      <tbody>
  39  
  40                          <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  41  
  42                              <tr <?php bp_field_css_class(); ?>>
  43                                  <td class="field-name"><?php bp_the_profile_field_name(); ?></td>
  44                                  <td class="field-visibility"><?php bp_profile_settings_visibility_select(); ?></td>
  45                              </tr>
  46  
  47                          <?php endwhile; ?>
  48  
  49                      </tbody>
  50                  </table>
  51  
  52              <?php endif; ?>
  53  
  54          <?php endwhile; ?>
  55  
  56      <?php endif; ?>
  57  
  58      <?php
  59  
  60      /**
  61       * Fires before the display of the submit button for user profile saving.
  62       *
  63       * @since 2.0.0
  64       */
  65      do_action( 'bp_core_xprofile_settings_before_submit' ); ?>
  66  
  67      <div class="submit">
  68          <input id="submit" type="submit" name="xprofile-settings-submit" value="<?php esc_attr_e( 'Save Settings', 'buddypress' ); ?>" class="auto" />
  69      </div>
  70  
  71      <?php
  72  
  73      /**
  74       * Fires after the display of the submit button for user profile saving.
  75       *
  76       * @since 2.0.0
  77       */
  78      do_action( 'bp_core_xprofile_settings_after_submit' ); ?>
  79  
  80      <?php wp_nonce_field( 'bp_xprofile_settings' ); ?>
  81  
  82      <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
  83  
  84  </form>
  85  
  86  <?php
  87  
  88  /**
  89   * Fires after the display of member settings template.
  90   *
  91   * @since 1.5.0
  92   */
  93  do_action( 'bp_after_member_settings_template' );


Generated: Tue Dec 10 01:01:39 2019 Cross-referenced by PHPXref 0.7.1