/bp-themes/bp-default/members/members-loop.php

  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" role="main"> 
  37.  
  38. <?php while ( bp_members() ) : bp_the_member(); ?> 
  39.  
  40. <li> 
  41. <div class="item-avatar"> 
  42. <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a> 
  43. </div> 
  44.  
  45. <div class="item"> 
  46. <div class="item-title"> 
  47. <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a> 
  48.  
  49. <?php if ( bp_get_member_latest_update() ) : ?> 
  50.  
  51. <span class="update"> <?php bp_member_latest_update(); ?></span> 
  52.  
  53. <?php endif; ?> 
  54.  
  55. </div> 
  56.  
  57. <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div> 
  58.  
  59. <?php do_action( 'bp_directory_members_item' ); ?> 
  60.  
  61. <?php 
  62. /*** 
  63. * If you want to show specific profile fields here you can,  
  64. * but it'll add an extra query for each member in the loop 
  65. * (only one regardless of the number of fields you show): 
  66. * 
  67. * bp_member_profile_data( 'field=the field name' ); 
  68. */ 
  69. ?> 
  70. </div> 
  71.  
  72. <div class="action"> 
  73.  
  74. <?php do_action( 'bp_directory_members_actions' ); ?> 
  75.  
  76. </div> 
  77.  
  78. <div class="clear"></div> 
  79. </li> 
  80.  
  81. <?php endwhile; ?> 
  82.  
  83. </ul> 
  84.  
  85. <?php do_action( 'bp_after_directory_members_list' ); ?> 
  86.  
  87. <?php bp_member_hidden_fields(); ?> 
  88.  
  89. <div id="pag-bottom" class="pagination"> 
  90.  
  91. <div class="pag-count" id="member-dir-count-bottom"> 
  92.  
  93. <?php bp_members_pagination_count(); ?> 
  94.  
  95. </div> 
  96.  
  97. <div class="pagination-links" id="member-dir-pag-bottom"> 
  98.  
  99. <?php bp_members_pagination_links(); ?> 
  100.  
  101. </div> 
  102.  
  103. </div> 
  104.  
  105. <?php else: ?> 
  106.  
  107. <div id="message" class="info"> 
  108. <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p> 
  109. </div> 
  110.  
  111. <?php endif; ?> 
  112.  
  113. <?php do_action( 'bp_after_members_loop' ); ?> 
.