/bp-templates/bp-legacy/buddypress/members/index.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Members 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. /** 
  10. * Fires at the top of the members directory template file. 
  11. * 
  12. * @since 1.5.0 
  13. */ 
  14. do_action( 'bp_before_directory_members_page' ); ?> 
  15.  
  16. <div id="buddypress"> 
  17.  
  18. <?php 
  19.  
  20. /** 
  21. * Fires before the display of the members. 
  22. * 
  23. * @since 1.1.0 
  24. */ 
  25. do_action( 'bp_before_directory_members' ); ?> 
  26.  
  27. <?php 
  28.  
  29. /** 
  30. * Fires before the display of the members content. 
  31. * 
  32. * @since 1.1.0 
  33. */ 
  34. do_action( 'bp_before_directory_members_content' ); ?> 
  35.  
  36. <?php /** Backward compatibility for inline search form. Use template part instead. */ ?> 
  37. <?php if ( has_filter( 'bp_directory_members_search_form' ) ) : ?> 
  38.  
  39. <div id="members-dir-search" class="dir-search" role="search"> 
  40. <?php bp_directory_members_search_form(); ?> 
  41. </div><!-- #members-dir-search --> 
  42.  
  43. <?php else: ?> 
  44.  
  45. <?php bp_get_template_part( 'common/search/dir-search-form' ); ?> 
  46.  
  47. <?php endif; ?> 
  48.  
  49. <?php 
  50. /** 
  51. * Fires before the display of the members list tabs. 
  52. * 
  53. * @since 1.8.0 
  54. */ 
  55. do_action( 'bp_before_directory_members_tabs' ); ?> 
  56.  
  57. <form action="" method="post" id="members-directory-form" class="dir-form"> 
  58.  
  59. <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Members directory main navigation', 'buddypress' ); ?>" role="navigation"> 
  60. <ul> 
  61. <li class="selected" id="members-all"><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li> 
  62.  
  63. <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 
  64. <li id="members-personal"><a href="<?php echo esc_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/' ); ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li> 
  65. <?php endif; ?> 
  66.  
  67. <?php 
  68.  
  69. /** 
  70. * Fires inside the members directory member types. 
  71. * 
  72. * @since 1.2.0 
  73. */ 
  74. do_action( 'bp_members_directory_member_types' ); ?> 
  75.  
  76. </ul> 
  77. </div><!-- .item-list-tabs --> 
  78.  
  79. <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Members directory secondary navigation', 'buddypress' ); ?>" role="navigation"> 
  80. <ul> 
  81. <?php 
  82.  
  83. /** 
  84. * Fires inside the members directory member sub-types. 
  85. * 
  86. * @since 1.5.0 
  87. */ 
  88. do_action( 'bp_members_directory_member_sub_types' ); ?> 
  89.  
  90. <li id="members-order-select" class="last filter"> 
  91. <label for="members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label> 
  92. <select id="members-order-by"> 
  93. <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 
  94. <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option> 
  95.  
  96. <?php if ( bp_is_active( 'xprofile' ) ) : ?> 
  97. <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 
  98. <?php endif; ?> 
  99.  
  100. <?php 
  101.  
  102. /** 
  103. * Fires inside the members directory member order options. 
  104. * 
  105. * @since 1.2.0 
  106. */ 
  107. do_action( 'bp_members_directory_order_options' ); ?> 
  108. </select> 
  109. </li> 
  110. </ul> 
  111. </div> 
  112.  
  113. <h2 class="bp-screen-reader-text"><?php 
  114. /** translators: accessibility text */ 
  115. _e( 'Members directory', 'buddypress' ); 
  116. ?></h2> 
  117.  
  118. <div id="members-dir-list" class="members dir-list"> 
  119. <?php bp_get_template_part( 'members/members-loop' ); ?> 
  120. </div><!-- #members-dir-list --> 
  121.  
  122. <?php 
  123.  
  124. /** 
  125. * Fires and displays the members content. 
  126. * 
  127. * @since 1.1.0 
  128. */ 
  129. do_action( 'bp_directory_members_content' ); ?> 
  130.  
  131. <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?> 
  132.  
  133. <?php 
  134.  
  135. /** 
  136. * Fires after the display of the members content. 
  137. * 
  138. * @since 1.1.0 
  139. */ 
  140. do_action( 'bp_after_directory_members_content' ); ?> 
  141.  
  142. </form><!-- #members-directory-form --> 
  143.  
  144. <?php 
  145.  
  146. /** 
  147. * Fires after the display of the members. 
  148. * 
  149. * @since 1.1.0 
  150. */ 
  151. do_action( 'bp_after_directory_members' ); ?> 
  152.  
  153. </div><!-- #buddypress --> 
  154.  
  155. <?php 
  156.  
  157. /** 
  158. * Fires at the bottom of the members directory template file. 
  159. * 
  160. * @since 1.5.0 
  161. */ 
  162. do_action( 'bp_after_directory_members_page' ); 
.