示例#1
0
                bp_group_member_admin_pagination();
                ?>
						</div>
						
					<?php 
            }
            ?>
		
					<ul id="members-list" class="item-list single-line">
					<?php 
            while (bp_group_members()) {
                bp_group_the_member();
                ?>
					
						<?php 
                if (bp_group_member_is_banned()) {
                    ?>
						
							<li class="banned-user">
								<?php 
                    bp_group_member_avatar_mini();
                    ?>

								<h5><?php 
                    bp_group_member_link();
                    ?>
 <?php 
                    _e('(banned)', 'buddypress');
                    ?>
 <span class="small"> &mdash; <a href="<?php 
                    bp_group_member_unban_link();
示例#2
0
function groups_ajax_member_admin_list()
{
    global $bp;
    ?>
	
	<?php 
    if (bp_group_has_members('group_id=' . $_REQUEST['group_id'] . '&per_page=' . $_REQUEST['num'])) {
        ?>
	
		<?php 
        if (bp_group_member_needs_pagination()) {
            ?>
			<div id="member-count" class="pag-count">
				<?php 
            bp_group_member_pagination_count();
            ?>
			</div>

			<div id="member-admin-pagination" class="pagination-links">
				<?php 
            bp_group_member_admin_pagination();
            ?>
			</div>
		<?php 
        }
        ?>
	
		<ul id="members-list" class="item-list single-line">
		<?php 
        while (bp_group_members()) {
            bp_group_the_member();
            ?>
			<?php 
            if (bp_group_member_is_banned()) {
                ?>
				<li class="banned-user">
					<?php 
                bp_group_member_avatar_mini();
                ?>

					<h5><?php 
                bp_group_member_link();
                ?>
 <?php 
                _e('(banned)', 'buddypress');
                ?>
 <span class="small"> &mdash; <a href="<?php 
                bp_group_member_unban_link();
                ?>
" title="<?php 
                _e('Kick and ban this member', 'buddypress');
                ?>
"><?php 
                _e('Remove Ban', 'buddypress');
                ?>
</a> </h5>
			<?php 
            } else {
                ?>
				<li>
					<?php 
                bp_group_member_avatar_mini();
                ?>
					<h5><?php 
                bp_group_member_link();
                ?>
  <span class="small"> &mdash; <a href="<?php 
                bp_group_member_ban_link();
                ?>
" title="<?php 
                _e('Kick and ban this member', 'buddypress');
                ?>
"><?php 
                _e('Kick &amp; Ban', 'buddypress');
                ?>
</a> | <a href="<?php 
                bp_group_member_promote_link();
                ?>
" title="<?php 
                _e('Promote this member', 'buddypress');
                ?>
"><?php 
                _e('Promote to Moderator', 'buddypress');
                ?>
</a></span></h5>

			<?php 
            }
            ?>
				</li>
		<?php 
        }
        ?>
		</ul>
	<?php 
    } else {
        ?>

		<div id="message" class="info">
			<p><?php 
        _e('This group has no members.', 'buddypress');
        ?>
</p>
		</div>

	<?php 
    }
    ?>
	<input type="hidden" name="group_id" id="group_id" value="<?php 
    echo attribute_escape($_REQUEST['group_id']);
    ?>
" />
<?php 
}