[ 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 6.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 if ( bp_nouveau_member_has_extra_content() ) : ?>
  45                              <div class="item-extra-content">
  46                                  <?php bp_nouveau_member_extra_content() ; ?>
  47                              </div><!-- .item-extra-content -->
  48                          <?php endif ; ?>
  49  
  50                          <?php
  51                          bp_nouveau_members_loop_buttons(
  52                              array(
  53                                  'container'      => 'ul',
  54                                  'button_element' => 'button',
  55                              )
  56                          );
  57                          ?>
  58                      </div>
  59  
  60                      <?php if ( bp_get_member_latest_update() && ! bp_nouveau_loop_is_grid() ) : ?>
  61                          <div class="user-update">
  62                              <p class="update"> <?php bp_member_latest_update(); ?></p>
  63                          </div>
  64                      <?php endif; ?>
  65  
  66                  </div><!-- // .item -->
  67              </div>
  68          </li>
  69  
  70      <?php endwhile; ?>
  71  
  72      </ul>
  73  
  74      <?php bp_nouveau_pagination( 'bottom' ); ?>
  75  
  76  <?php
  77  else :
  78  
  79      bp_nouveau_user_feedback( 'members-loop-none' );
  80  
  81  endif;
  82  ?>
  83  
  84  <?php bp_nouveau_after_loop(); ?>


Generated: Mon Jul 6 01:01:29 2020 Cross-referenced by PHPXref 0.7.1