[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/members/ -> members-loop.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Loop
   4   *
   5   * @since 3.0.0
   6   * @version 3.0.0
   7   */
   8  
   9  bp_nouveau_before_loop(); ?>
  10  
  11  <?php if ( bp_get_current_member_type() ) : ?>
  12      <p class="current-member-type"><?php bp_current_member_type_message(); ?></p>
  13  <?php endif; ?>
  14  
  15  <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
  16  
  17      <?php bp_nouveau_pagination( 'top' ); ?>
  18  
  19      <ul id="members-list" class="<?php bp_nouveau_loop_classes(); ?>">
  20  
  21      <?php while ( bp_members() ) : bp_the_member(); ?>
  22  
  23          <li <?php bp_member_class( array( 'item-entry' ) ); ?> data-bp-item-id="<?php bp_member_user_id(); ?>" data-bp-item-component="members">
  24              <div class="list-wrap">
  25  
  26                  <div class="item-avatar">
  27                      <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar( bp_nouveau_avatar_args() ); ?></a>
  28                  </div>
  29  
  30                  <div class="item">
  31  
  32                      <div class="item-block">
  33  
  34                          <h2 class="list-title member-name">
  35                              <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
  36                          </h2>
  37  
  38                          <?php if ( bp_nouveau_member_has_meta() ) : ?>
  39                              <p class="item-meta last-activity">
  40                                  <?php bp_nouveau_member_meta(); ?>
  41                              </p><!-- #item-meta -->
  42                          <?php endif; ?>
  43  
  44                          <?php
  45                          bp_nouveau_members_loop_buttons(
  46                              array(
  47                                  'container'      => 'ul',
  48                                  'button_element' => 'button',
  49                              )
  50                          );
  51  ?>
  52  
  53                      </div>
  54  
  55                      <?php if ( bp_get_member_latest_update() && ! bp_nouveau_loop_is_grid() ) : ?>
  56                      <div class="user-update">
  57                          <p class="update"> <?php bp_member_latest_update(); ?></p>
  58                      </div>
  59                          <?php endif; ?>
  60  
  61                  </div><!-- // .item -->
  62  
  63  
  64  
  65              </div>
  66          </li>
  67  
  68      <?php endwhile; ?>
  69  
  70      </ul>
  71  
  72      <?php bp_nouveau_pagination( 'bottom' ); ?>
  73  
  74  <?php
  75  else :
  76  
  77      bp_nouveau_user_feedback( 'members-loop-none' );
  78  
  79  endif;
  80  ?>
  81  
  82  <?php bp_nouveau_after_loop(); ?>


Generated: Fri Jul 19 01:01:43 2019 Cross-referenced by PHPXref 0.7.1