Created
November 26, 2021 15:44
-
-
Save GLWalker/aeb349f0ed8fd6fb7e24ef46ef857d11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (bp_group_has_members(array('per_page' => 10, 'exclude_banned' => 0, 'page_arg' => 'page'))) : ?> | |
<div class="bp-widget group-members-list table-responsive" aria-live="assertive" aria-relevant="all"> | |
<?php | |
/** | |
* Fires before the display of the group members list. | |
* | |
* @since 1.1.0 | |
*/ | |
do_action('bp_before_group_members_list'); ?> | |
<table id="members-list" class="item-list table table-hover mb-0 caption-top"> | |
<caption class="h3"> | |
<?php _e("Members", 'buddypress'); ?> | |
</caption> | |
<thead> | |
<tr> | |
<td colspan="4"> | |
<?php if (bp_group_member_needs_pagination()) { | |
systmp_bp_pagination('top'); | |
} else { | |
echo bp_get_members_pagination_count(); | |
} ?> | |
</td> | |
</tr> | |
<tr class="table-secondary"> | |
<th colspan="2">User</th> | |
<th>Joined</th> | |
<th>Action</th> | |
</tr> | |
</thead> | |
<tbody> | |
<?php while (bp_group_members()) : bp_group_the_member(); ?> | |
<tr class="<?php bp_group_member_css_class(); ?>"> | |
<td class="table-avatar item-avatar"> | |
<?php bp_group_member_avatar_thumb(array('class' => 'rounded avatar')); ?> | |
</td> | |
<td class="table-user item-title"> | |
<?php systmp_bp_group_member_link(); ?> | |
</td> | |
<td class="table-joined joined item-meta"> | |
<?php echo systmp_bp_get_group_member_joined_since(); | |
/** | |
* Fires inside the listing of an individual group member listing item. | |
* | |
* @since 1.1.0 | |
*/ | |
do_action('bp_group_members_list_item'); ?> | |
</td> | |
<td class="table-action action"> | |
<?php if (bp_is_active('friends')) : | |
bp_add_friend_button(bp_get_group_member_id(), bp_get_group_member_is_friend()); | |
/** | |
* Fires inside the action section of an individual group member listing item. | |
* | |
* @since 1.1.0 | |
*/ | |
do_action('bp_group_members_list_item_action'); | |
endif; ?> | |
</td> | |
</tr> | |
<?php endwhile; ?> | |
</tbody> | |
<tfoot> | |
<tr> | |
<td colspan="4"> | |
<?php if (bp_group_member_needs_pagination()) { | |
systmp_bp_pagination('bottom'); | |
} else { | |
echo bp_get_members_pagination_count(); | |
} ?> | |
</td> | |
</tr> | |
</tfoot> | |
</table> | |
<?php | |
/** | |
* Fires after the display of the group members list. | |
* | |
* @since 1.1.0 | |
*/ | |
do_action('bp_after_group_members_list'); ?> | |
</div> | |
<?php else : ?> | |
<div id="message" class="info alert alert-info"> | |
<p><?php _e('No group members were found.', 'buddypress'); ?></p> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment