/bp-themes/bp-default/members/single/friends.php

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress - Users Friends 
  5. * 
  6. * @package BuddyPress 
  7. * @subpackage bp-default 
  8. */ 
  9.  
  10. ?> 
  11.  
  12. <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 
  13. <ul> 
  14. <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?> 
  15.  
  16. <?php if ( !bp_is_current_action( 'requests' ) ) : ?> 
  17.  
  18. <li id="members-order-select" class="last filter"> 
  19.  
  20. <label for="members-friends"><?php _e( 'Order By:', 'buddypress' ); ?></label> 
  21. <select id="members-friends"> 
  22. <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 
  23. <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option> 
  24. <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 
  25.  
  26. <?php do_action( 'bp_member_friends_order_options' ); ?> 
  27.  
  28. </select> 
  29. </li> 
  30.  
  31. <?php endif; ?> 
  32.  
  33. </ul> 
  34. </div> 
  35.  
  36. <?php 
  37.  
  38. if ( bp_is_current_action( 'requests' ) ) : 
  39. locate_template( array( 'members/single/friends/requests.php' ), true ); 
  40.  
  41. else : 
  42. do_action( 'bp_before_member_friends_content' ); ?> 
  43.  
  44. <div class="members friends"> 
  45.  
  46. <?php locate_template( array( 'members/members-loop.php' ), true ); ?> 
  47.  
  48. </div><!-- .members.friends --> 
  49.  
  50. <?php do_action( 'bp_after_member_friends_content' ); ?> 
  51.  
  52. <?php endif; ?> 
.