Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

members-loop.php buddypress

By: GoMobile on Jun 14th, 2012  |  syntax: None  |  size: 1.52 KB  |  views: 67  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. /**
  4.  * BuddyPress - Members Loop
  5.  *
  6.  * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
  7.  *
  8.  * @package BuddyPress
  9.  * @subpackage bp-default
  10.  */
  11.  
  12. ?>
  13.  
  14. <?php do_action( 'bp_before_members_loop' ); ?>
  15.  
  16. <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
  17.  
  18.         <div id="pag-top" class="pagination">
  19.  
  20.                 <div class="pag-count" id="member-dir-count-top">
  21.  
  22.                         <?php bp_members_pagination_count(); ?>
  23.  
  24.                 </div>
  25.  
  26.                 <div class="pagination-links" id="member-dir-pag-top">
  27.  
  28.                         <?php bp_members_pagination_links(); ?>
  29.  
  30.                 </div>
  31.  
  32.         </div>
  33.  
  34.         <?php do_action( 'bp_before_directory_members_list' ); ?>
  35.  
  36.         <ul id="members-list" class="item-list">
  37. <?php while ( bp_members() ) : bp_the_member();
  38.         $user = new WP_User( bp_get_member_user_id() );
  39.         if ( $user->roles[0] == 'subscriber' ) :
  40.                                         ?>
  41. <!--Member line item details and profile fields -->
  42.  
  43. <?php endif; ?>
  44. <?php endwhile; ?>
  45. </ul>
  46.  
  47.         <?php do_action( 'bp_after_directory_members_list' ); ?>
  48.  
  49.         <?php bp_member_hidden_fields(); ?>
  50.  
  51.         <div id="pag-bottom" class="pagination">
  52.  
  53.                 <div class="pag-count" id="member-dir-count-bottom">
  54.  
  55.                         <?php bp_members_pagination_count(); ?>
  56.  
  57.                 </div>
  58.  
  59.                 <div class="pagination-links" id="member-dir-pag-bottom">
  60.  
  61.                         <?php bp_members_pagination_links(); ?>
  62.  
  63.                 </div>
  64.  
  65.         </div>
  66.  
  67. <?php else: ?>
  68.  
  69.         <div id="message" class="info">
  70.                 <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
  71.         </div>
  72.  
  73. <?php endif; ?>
  74.  
  75. <?php do_action( 'bp_after_members_loop' ); ?>