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

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress - Members Directory 
  5. * 
  6. * @package BuddyPress 
  7. * @subpackage bp-default 
  8. */ 
  9.  
  10. get_header( 'buddypress' ); ?> 
  11.  
  12. <?php do_action( 'bp_before_directory_members_page' ); ?> 
  13.  
  14. <div id="content"> 
  15. <div class="padder"> 
  16.  
  17. <?php do_action( 'bp_before_directory_members' ); ?> 
  18.  
  19. <form action="" method="post" id="members-directory-form" class="dir-form"> 
  20.  
  21. <h3><?php _e( 'Members Directory', 'buddypress' ); ?></h3> 
  22.  
  23. <?php do_action( 'bp_before_directory_members_content' ); ?> 
  24.  
  25. <div id="members-dir-search" class="dir-search" role="search"> 
  26.  
  27. <?php bp_directory_members_search_form(); ?> 
  28.  
  29. </div><!-- #members-dir-search --> 
  30.  
  31. <?php do_action( 'bp_before_directory_members_tabs' ); ?> 
  32.  
  33. <div class="item-list-tabs" role="navigation"> 
  34. <ul> 
  35. <li class="selected" id="members-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?></a></li> 
  36.  
  37. <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 
  38.  
  39. <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/' ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li> 
  40.  
  41. <?php endif; ?> 
  42.  
  43. <?php do_action( 'bp_members_directory_member_types' ); ?> 
  44.  
  45. </ul> 
  46. </div><!-- .item-list-tabs --> 
  47.  
  48. <div class="item-list-tabs" id="subnav" role="navigation"> 
  49. <ul> 
  50.  
  51. <?php do_action( 'bp_members_directory_member_sub_types' ); ?> 
  52.  
  53. <li id="members-order-select" class="last filter"> 
  54.  
  55. <label for="members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label> 
  56. <select id="members-order-by"> 
  57. <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 
  58. <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option> 
  59.  
  60. <?php if ( bp_is_active( 'xprofile' ) ) : ?> 
  61.  
  62. <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 
  63.  
  64. <?php endif; ?> 
  65.  
  66. <?php do_action( 'bp_members_directory_order_options' ); ?> 
  67.  
  68. </select> 
  69. </li> 
  70. </ul> 
  71. </div> 
  72.  
  73. <div id="members-dir-list" class="members dir-list"> 
  74.  
  75. <?php locate_template( array( 'members/members-loop.php' ), true ); ?> 
  76.  
  77. </div><!-- #members-dir-list --> 
  78.  
  79. <?php do_action( 'bp_directory_members_content' ); ?> 
  80.  
  81. <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?> 
  82.  
  83. <?php do_action( 'bp_after_directory_members_content' ); ?> 
  84.  
  85. </form><!-- #members-directory-form --> 
  86.  
  87. <?php do_action( 'bp_after_directory_members' ); ?> 
  88.  
  89. </div><!-- .padder --> 
  90. </div><!-- #content --> 
  91.  
  92. <?php do_action( 'bp_after_directory_members_page' ); ?> 
  93.  
  94. <?php get_sidebar( 'buddypress' ); ?> 
  95. <?php get_footer( 'buddypress' ); ?> 
.