/bp-templates/bp-legacy/buddypress/groups/single/members.php

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