Exemplo n.º 1
0
<?php

/*
 * /directories/members/members-loop.php
 * The loop for displaying all the members site wide.
 * 
 * Loaded by: 'directories/members/index.php'
 *			  via AJAX when clicking pagination.
 */
?>

<?php 
if (bp_has_site_members('type=active&per_page=10')) {
    ?>
	
	<div class="pag-count" id="member-dir-count">
		<?php 
    bp_site_members_pagination_count();
    ?>
	</div>

	<div class="pagination-links" id="member-dir-pag">
		<?php 
    bp_site_members_pagination_links();
    ?>
	</div>

	<ul id="members-list" class="item-list">
	<?php 
    while (bp_site_members()) {
        bp_the_site_member();
Exemplo n.º 2
0
</h3>

		<?php 
bp_directory_members_search_form();
?>

	</div>

	<div id="members-directory-featured" class="directory-featured">
		<h3><?php 
_e('Featured Members', 'buddypress');
?>
</h3>
		
		<?php 
if (bp_has_site_members('type=random&max=3')) {
    ?>

			<ul id="featured-members-list" class="item-list">
			<?php 
    while (bp_site_members()) {
        bp_the_site_member();
        ?>

				<li>
					<div class="item-avatar">
						<a href="<?php 
        bp_the_site_member_link();
        ?>
"><?php 
        bp_the_site_member_avatar();