- Timestamp:
- 08/24/2021 04:16:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/classes/class-bp-friends-component.php
r13002 r13092 6 6 * 7 7 * @package BuddyPress 8 * @subpackage Friends 8 * @subpackage FriendsComponent 9 9 * @since 1.5.0 10 10 */ … … 31 31 buddypress()->plugin_dir, 32 32 array( 33 'adminbar_myaccount_order' => 60 33 'adminbar_myaccount_order' => 60, 34 34 ) 35 35 ); … … 104 104 * 105 105 * @since 1.5.0 106 * 107 * @global BuddyPress $bp The one true BuddyPress instance. 106 108 * 107 109 * @see BP_Component::setup_globals() for description of parameters. … … 194 196 'screen_function' => 'friends_screen_my_friends', 195 197 'default_subnav_slug' => 'my-friends', 196 'item_css_id' => $this->id 198 'item_css_id' => $this->id, 197 199 ); 198 200 … … 205 207 'screen_function' => 'friends_screen_my_friends', 206 208 'position' => 10, 207 'item_css_id' => 'friends-my-friends' 209 'item_css_id' => 'friends-my-friends', 208 210 ); 209 211 … … 215 217 'screen_function' => 'friends_screen_requests', 216 218 'position' => 20, 217 'user_has_access' => $access 219 'user_has_access' => $access, 218 220 ); 219 221 … … 241 243 // Pending friend requests. 242 244 $count = count( friends_get_friendship_request_user_ids( bp_loggedin_user_id() ) ); 243 if ( ! empty( $count ) ) {245 if ( ! empty( $count ) ) { 244 246 $title = sprintf( 245 247 /* translators: %s: Pending friend request count for the current user */ … … 253 255 ); 254 256 } else { 255 $title = _x( 'Friends', 'My Account Friends menu','buddypress' );256 $pending = _x( 'No Pending Requests', 'My Account Friends menu sub nav', 'buddypress' );257 $title = _x( 'Friends', 'My Account Friends menu', 'buddypress' ); 258 $pending = _x( 'No Pending Requests', 'My Account Friends menu sub nav', 'buddypress' ); 257 259 } 258 260 … … 262 264 'id' => 'my-account-' . $this->id, 263 265 'title' => $title, 264 'href' => $friends_link 266 'href' => $friends_link, 265 267 ); 266 268 … … 271 273 'title' => _x( 'Friendships', 'My Account Friends menu sub nav', 'buddypress' ), 272 274 'href' => $friends_link, 273 'position' => 10 275 'position' => 10, 274 276 ); 275 277 … … 280 282 'title' => $pending, 281 283 'href' => trailingslashit( $friends_link . 'requests' ), 282 'position' => 20 284 'position' => 20, 283 285 ); 284 286 } … … 291 293 * 292 294 * @since 1.5.0 295 * 296 * @global BuddyPress $bp The one true BuddyPress instance. 293 297 */ 294 298 public function setup_title() {
Note: See TracChangeset
for help on using the changeset viewer.