[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Profile Loop
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
  11  do_action( 'bp_before_profile_loop_content' ); ?>
  12  
  13  <?php if ( bp_has_profile() ) : ?>
  14  
  15      <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  16  
  17          <?php if ( bp_profile_group_has_fields() ) : ?>
  18  
  19              <?php
  20  
  21              /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
  22              do_action( 'bp_before_profile_field_content' ); ?>
  23  
  24              <div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
  25  
  26                  <h2><?php bp_the_profile_group_name(); ?></h2>
  27  
  28                  <table class="profile-fields">
  29  
  30                      <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  31  
  32                          <?php if ( bp_field_has_data() ) : ?>
  33  
  34                              <tr<?php bp_field_css_class(); ?>>
  35  
  36                                  <td class="label"><?php bp_the_profile_field_name(); ?></td>
  37  
  38                                  <td class="data"><?php bp_the_profile_field_value(); ?></td>
  39  
  40                              </tr>
  41  
  42                          <?php endif; ?>
  43  
  44                          <?php
  45  
  46                          /**
  47                           * Fires after the display of a field table row for profile data.
  48                           *
  49                           * @since 1.1.0
  50                           */
  51                          do_action( 'bp_profile_field_item' ); ?>
  52  
  53                      <?php endwhile; ?>
  54  
  55                  </table>
  56              </div>
  57  
  58              <?php
  59  
  60              /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
  61              do_action( 'bp_after_profile_field_content' ); ?>
  62  
  63          <?php endif; ?>
  64  
  65      <?php endwhile; ?>
  66  
  67      <?php
  68  
  69      /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
  70      do_action( 'bp_profile_field_buttons' ); ?>
  71  
  72  <?php endif; ?>
  73  
  74  <?php
  75  
  76  /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
  77  do_action( 'bp_after_profile_loop_content' );


Generated: Thu Apr 25 01:01:12 2024 Cross-referenced by PHPXref 0.7.1