[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Groups Members
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  ?>
  11  
  12  <?php if ( bp_group_has_members( bp_ajax_querystring( 'group_members' ) ) ) : ?>
  13  
  14      <?php
  15  
  16      /**
  17       * Fires before the display of the group members content.
  18       *
  19       * @since 1.1.0
  20       */
  21      do_action( 'bp_before_group_members_content' ); ?>
  22  
  23      <div id="pag-top" class="pagination">
  24  
  25          <div class="pag-count" id="member-count-top">
  26  
  27              <?php bp_members_pagination_count(); ?>
  28  
  29          </div>
  30  
  31          <div class="pagination-links" id="member-pag-top">
  32  
  33              <?php bp_members_pagination_links(); ?>
  34  
  35          </div>
  36  
  37      </div>
  38  
  39      <?php
  40  
  41      /**
  42       * Fires before the display of the group members list.
  43       *
  44       * @since 1.1.0
  45       */
  46      do_action( 'bp_before_group_members_list' ); ?>
  47  
  48      <ul id="member-list" class="item-list">
  49  
  50          <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
  51  
  52              <li>
  53                  <a href="<?php bp_group_member_domain(); ?>">
  54  
  55                      <?php bp_group_member_avatar_thumb(); ?>
  56  
  57                  </a>
  58  
  59                  <h5><?php bp_group_member_link(); ?></h5>
  60                  <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_member_joined_since( array( 'relative' => false ) ) ); ?>"><?php bp_group_member_joined_since(); ?></span>
  61  
  62                  <?php
  63  
  64                  /**
  65                   * Fires inside the listing of an individual group member listing item.
  66                   *
  67                   * @since 1.1.0
  68                   */
  69                  do_action( 'bp_group_members_list_item' ); ?>
  70  
  71                  <?php if ( bp_is_active( 'friends' ) ) : ?>
  72  
  73                      <div class="action">
  74  
  75                          <?php bp_add_friend_button( bp_get_group_member_id(), bp_get_group_member_is_friend() ); ?>
  76  
  77                          <?php
  78  
  79                          /**
  80                           * Fires inside the action section of an individual group member listing item.
  81                           *
  82                           * @since 1.1.0
  83                           */
  84                          do_action( 'bp_group_members_list_item_action' ); ?>
  85  
  86                      </div>
  87  
  88                  <?php endif; ?>
  89              </li>
  90  
  91          <?php endwhile; ?>
  92  
  93      </ul>
  94  
  95      <?php
  96  
  97      /**
  98       * Fires after the display of the group members list.
  99       *
 100       * @since 1.1.0
 101       */
 102      do_action( 'bp_after_group_members_list' ); ?>
 103  
 104      <div id="pag-bottom" class="pagination">
 105  
 106          <div class="pag-count" id="member-count-bottom">
 107  
 108              <?php bp_members_pagination_count(); ?>
 109  
 110          </div>
 111  
 112          <div class="pagination-links" id="member-pag-bottom">
 113  
 114              <?php bp_members_pagination_links(); ?>
 115  
 116          </div>
 117  
 118      </div>
 119  
 120      <?php
 121  
 122      /**
 123       * Fires after the display of the group members content.
 124       *
 125       * @since 1.1.0
 126       */
 127      do_action( 'bp_after_group_members_content' ); ?>
 128  
 129  <?php else: ?>
 130  
 131      <div id="message" class="info">
 132          <p><?php _e( 'No members were found.', 'buddypress' ); ?></p>
 133      </div>
 134  
 135  <?php endif;


Generated: Sat Dec 14 01:00:55 2024 Cross-referenced by PHPXref 0.7.1