Guest User

Untitled

a guest
Feb 21st, 2012
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /**
  4. * BuddyPress - Members Directory
  5. *
  6. * @package BuddyPress
  7. * @subpackage bp-default
  8. */
  9.  
  10. ?>
  11.  
  12. <?php get_header( 'buddypress' ); ?>
  13.  
  14. <?php do_action( 'bp_before_directory_members_page' ); ?>
  15.  
  16. <div id="content">
  17. <div class="padder">
  18.  
  19. <?php do_action( 'bp_before_directory_members' ); ?>
  20.  
  21. <form action="" method="post" id="members-directory-form" class="dir-form">
  22.  
  23. <h3><?php _e( 'Members Directory', 'buddypress' ); ?></h3>
  24.  
  25. <?php do_action( 'bp_before_directory_members_content' ); ?>
  26.  
  27. <div id="members-dir-search" class="dir-search" role="search">
  28.  
  29. <?php bp_directory_members_search_form(); ?>
  30.  
  31. </div><!-- #members-dir-search -->
  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' ); ?>
RAW Paste Data