Ejemplo n.º 1
0
                ?>
						<h5><?php 
                bp_group_member_link();
                ?>
</h5>
						<span class="activity"><?php 
                bp_group_member_joined_since();
                ?>
</span>
					
						<?php 
                if (function_exists('friends_install')) {
                    ?>
							<div class="action">
								<?php 
                    bp_add_friend_button(bp_group_member_id());
                    ?>
							</div>
						<?php 
                }
                ?>
					</li>
					
				<?php 
            }
            ?>
				</ul>
				
			<?php 
        } else {
            ?>
Ejemplo n.º 2
0
function groups_ajax_member_list()
{
    global $bp;
    ?>
	
	<?php 
    if (bp_group_has_members('group_id=' . $_REQUEST['group_id'])) {
        ?>
		
		<?php 
        if (bp_group_member_needs_pagination()) {
            ?>
			<div id="member-count" class="pag-count">
				<?php 
            bp_group_member_pagination_count();
            ?>
			</div>

			<div id="member-pagination" class="pagination-links">
				<?php 
            bp_group_member_pagination();
            ?>
			</div>
		<?php 
        }
        ?>
		
		<ul id="member-list" class="item-list">
		<?php 
        while (bp_group_members()) {
            bp_group_the_member();
            ?>
			<li>
				<?php 
            bp_group_member_avatar();
            ?>
				<h5><?php 
            bp_group_member_link();
            ?>
</h5>
				<span class="activity"><?php 
            bp_group_member_joined_since();
            ?>
</span>
				
				<?php 
            if (function_exists('friends_install')) {
                ?>
					<div class="action">
						<?php 
                bp_add_friend_button(bp_group_member_id());
                ?>
					</div>
				<?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 
}