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

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress - Users Groups 
  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( 'invites' ) ) : ?> 
  17.  
  18. <li id="groups-order-select" class="last filter"> 
  19.  
  20. <label for="groups-sort-by"><?php _e( 'Order By:', 'buddypress' ); ?></label> 
  21. <select id="groups-sort-by"> 
  22. <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 
  23. <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option> 
  24. <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option> 
  25. <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 
  26.  
  27. <?php do_action( 'bp_member_group_order_options' ); ?> 
  28.  
  29. </select> 
  30. </li> 
  31.  
  32. <?php endif; ?> 
  33.  
  34. </ul> 
  35. </div><!-- .item-list-tabs --> 
  36.  
  37. <?php 
  38.  
  39. if ( bp_is_current_action( 'invites' ) ) : 
  40. locate_template( array( 'members/single/groups/invites.php' ), true ); 
  41.  
  42. else : 
  43. do_action( 'bp_before_member_groups_content' ); ?> 
  44.  
  45. <div class="groups mygroups"> 
  46.  
  47. <?php locate_template( array( 'groups/groups-loop.php' ), true ); ?> 
  48.  
  49. </div> 
  50.  
  51. <?php do_action( 'bp_after_member_groups_content' ); ?> 
  52.  
  53. <?php endif; ?> 
.