- Timestamp:
- 03/27/2023 06:19:06 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/members/functions.php
r13301 r13442 78 78 // If friends component is active and the user has friends 79 79 if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) { 80 $friends_slug = bp_nouveau_get_component_slug( 'friends' ); 81 $path_chunks = array( 82 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $friends_slug, $friends_slug ), 83 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $friends_slug . '_my_friends', 'my-friends' ), 84 ); 85 80 86 $nav_items['personal'] = array( 81 87 'component' => 'members', 82 88 'slug' => 'personal', // slug is used because BP_Core_Nav requires it, but it's the scope 83 89 'li_class' => array(), 84 'link' => bp_loggedin_user_ domain() . bp_nouveau_get_component_slug( 'friends' ) . '/my-friends/',90 'link' => bp_loggedin_user_url( $path_chunks ), 85 91 'text' => __( 'My Friends', 'buddypress' ), 86 92 'count' => bp_get_total_friend_count( bp_loggedin_user_id() ),
Note: See TracChangeset
for help on using the changeset viewer.