[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress - Users Friends 4 * 5 * @package BuddyPress 6 * @subpackage bp-legacy 7 * @version 3.0.0 8 */ 9 10 ?> 11 12 <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" 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 27 28 /** 29 * Fires inside the members friends order options select input. 30 * 31 * @since 2.0.0 32 */ 33 do_action( 'bp_member_friends_order_options' ); ?> 34 35 </select> 36 </li> 37 38 <?php endif; ?> 39 40 </ul> 41 </div> 42 43 <?php 44 switch ( bp_current_action() ) : 45 46 // Home/My Friends 47 case 'my-friends' : 48 49 /** 50 * Fires before the display of member friends content. 51 * 52 * @since 1.2.0 53 */ 54 do_action( 'bp_before_member_friends_content' ); ?> 55 56 <?php if (is_user_logged_in() ) : ?> 57 <h2 class="bp-screen-reader-text"><?php 58 /* translators: accessibility text */ 59 _e( 'My friends', 'buddypress' ); 60 ?></h2> 61 <?php else : ?> 62 <h2 class="bp-screen-reader-text"><?php 63 /* translators: accessibility text */ 64 _e( 'Friends', 'buddypress' ); 65 ?></h2> 66 <?php endif ?> 67 68 <div class="members friends"> 69 70 <?php bp_get_template_part( 'members/members-loop' ) ?> 71 72 </div><!-- .members.friends --> 73 74 <?php 75 76 /** 77 * Fires after the display of member friends content. 78 * 79 * @since 1.2.0 80 */ 81 do_action( 'bp_after_member_friends_content' ); 82 break; 83 84 case 'requests' : 85 bp_get_template_part( 'members/single/friends/requests' ); 86 break; 87 88 // Any other 89 default : 90 bp_get_template_part( 'members/single/plugins' ); 91 break; 92 endswitch;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Apr 29 01:01:07 2024 | Cross-referenced by PHPXref 0.7.1 |