Changeset 5105
- Timestamp:
- 09/20/2013 09:08:21 PM (12 years ago)
- File:
- 
          - 1 edited
 
 - 
          trunk/includes/common/template.php (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
        trunk/includes/common/template.phpr5101 r5105 2563 2563 } elseif ( bbp_is_single_user() ) { 2564 2564 2565 // Current usersprofile2565 // User is viewing their own profile 2566 2566 if ( bbp_is_user_home() ) { 2567 $new_title['text'] = esc_attr_ _( 'Your Profile', 'bbpress' );2568 2569 // Other users profile2567 $new_title['text'] = esc_attr_x( 'Your', 'User viewing his/her own profile', 'bbpress' ); 2568 2569 // User is viewing someone else's profile (so use their display name) 2570 2570 } else { 2571 $new_title['text'] = get_userdata( bbp_get_user_id() )->display_name; 2572 $new_title['format'] = esc_attr__( "%s's Profile", 'bbpress' ); 2571 $new_title['text'] = get_userdata( bbp_get_user_id() )->display_name; 2572 } 2573 2574 // User topics created 2575 if ( bbp_is_single_user_topics() ) { 2576 $new_title['format'] = esc_attr__( "%s's Topics", 'bbpress' ); 2577 2578 // User rueplies created 2579 } elseif ( bbp_is_single_user_replies() ) { 2580 $new_title['format'] = esc_attr__( "%s's Replies", 'bbpress' ); 2581 2582 // User favorites 2583 } elseif ( bbp_is_favorites() ) { 2584 $new_title['format'] = esc_attr__( "%s's Favorites", 'bbpress' ); 2585 2586 // User subscriptions 2587 } elseif ( bbp_is_subscriptions() ) { 2588 $new_title['format'] = esc_attr__( "%s's Subscriptions", 'bbpress' ); 2589 2590 // User "home" 2591 } else { 2592 $new_title['format'] = esc_attr__( "%s's Profile", 'bbpress' ); 2573 2593 } 2574 2594 … … 2576 2596 } elseif ( bbp_is_single_user_edit() ) { 2577 2597 2578 // Current user s profile2598 // Current user 2579 2599 if ( bbp_is_user_home_edit() ) { 2580 2600 $new_title['text'] = esc_attr__( 'Edit Your Profile', 'bbpress' ); 2581 2601 2582 // Other user s profile2602 // Other user 2583 2603 } else { 2584 2604 $new_title['text'] = get_userdata( bbp_get_user_id() )->display_name; 
Note: See TracChangeset
          for help on using the changeset viewer.