Guest User

Untitled

a guest
Apr 12th, 2017
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  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. <?php do_action( 'bp_before_directory_members_list' ); ?>
  19.  
  20. <ul id="members-list" class="item-list" role="main">
  21.  
  22. <?php while ( bp_members() ) : bp_the_member(); ?>
  23.  
  24. <li>
  25. <div class="item-avatar">
  26. <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
  27. </div>
  28.  
  29. <div class="item">
  30. <div class="item-title profile-<?php bp_member_profile_data( 'field=Gender' ); ?>">
  31. <b><a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a></b>
  32.  
  33. <?php if ( bp_get_member_latest_update() ) : ?>
  34. <span class="update"> <?php bp_member_latest_update(); ?></span>
  35. <?php endif; ?>
  36.  
  37. </div>
  38.  
  39. <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
  40.  
  41. <?php do_action( 'bp_directory_members_item' ); ?>
  42.  
  43. <?php
  44. /***
  45. * If you want to show specific profile fields here you can,
  46. * but it'll add an extra query for each member in the loop
  47. * (only one regardless of the number of fields you show):
  48. *
  49. * bp_member_profile_data( 'field=the field name' );
  50. */
  51. ?>
  52. </div>
  53.  
  54. <div class="action">
  55.  
  56. <?php do_action( 'bp_directory_members_actions' ); ?>
  57.  
  58. </div>
  59.  
  60. <div class="clear"></div>
  61. </li>
  62.  
  63. <?php endwhile; ?>
  64.  
  65. </ul>
  66.  
  67. <?php do_action( 'bp_after_directory_members_list' ); ?>
  68.  
  69. <?php bp_member_hidden_fields(); ?>
  70.  
  71. <div id="pag-bottom" class="pagination">
  72.  
  73. <div class="pag-count" id="member-dir-count-bottom">
  74.  
  75. <?php bp_members_pagination_count(); ?>
  76.  
  77. </div>
  78.  
  79. <div class="pagination-links" id="member-dir-pag-bottom">
  80.  
  81. <?php bp_members_pagination_links(); ?>
  82.  
  83. </div>
  84.  
  85. </div>
  86.  
  87. <?php else: ?>
  88.  
  89. <div id="message" class="info">
  90. <p><?php esc_html_e( "Sorry, no members were found.", 'buddypress' ); ?></p>
  91. </div>
  92.  
  93. <?php endif; ?>
  94.  
  95. <?php do_action( 'bp_after_members_loop' ); ?>
Add Comment
Please, Sign In to add comment