| 86 | | if ( $this->total_friends ) { |
| 87 | | if ( $this->total_friends == 1 ) |
| 88 | | $this->total_friends .= ' ' . __( 'friend', 'buddypress' ); |
| 89 | | else |
| 90 | | $this->total_friends .= ' ' . __( 'friends', 'buddypress' ); |
| 91 | | |
| 92 | | $this->total_friends = '<a href="' . $this->user_url . $bp['friends']['slug'] . '" title="' . sprintf( __( "%s's friend list", 'buddypress' ), $this->fullname ) . '">' . $this->total_friends . '</a>'; |
| | 84 | if ( function_exists('friends_install') ) { |
| | 85 | $this->total_friends = BP_Friends_Friendship::total_friend_count( $this->id ); |
| | 86 | |
| | 87 | if ( $this->total_friends ) { |
| | 88 | if ( $this->total_friends == 1 ) |
| | 89 | $this->total_friends .= ' ' . __( 'friend', 'buddypress' ); |
| | 90 | else |
| | 91 | $this->total_friends .= ' ' . __( 'friends', 'buddypress' ); |
| | 92 | |
| | 93 | $this->total_friends = '<a href="' . $this->user_url . $bp['friends']['slug'] . '" title="' . sprintf( __( "%s's friend list", 'buddypress' ), $this->fullname ) . '">' . $this->total_friends . '</a>'; |
| | 94 | } |
| 94 | | |
| 95 | | if ( $this->total_blogs ) { |
| 96 | | if ( $this->total_blogs == 1 ) |
| 97 | | $this->total_blogs .= ' ' . __( 'blog', 'buddypress' ); |
| 98 | | else |
| 99 | | $this->total_blogs .= ' ' . __( 'blogs', 'buddypress' ); |
| 100 | | |
| 101 | | $this->total_blogs = '<a href="' . $this->user_url . $bp['blogs']['slug'] . '" title="' . sprintf( __( "%s's blog list", 'buddypress' ), $this->fullname ) . '">' . $this->total_blogs . '</a>'; |
| | 96 | if ( function_exists('bp_blogs_install') ) { |
| | 97 | $this->total_blogs = BP_Blogs_Blog::total_blog_count ( $this->id ); |
| | 98 | |
| | 99 | if ( $this->total_blogs ) { |
| | 100 | if ( $this->total_blogs == 1 ) |
| | 101 | $this->total_blogs .= ' ' . __( 'blog', 'buddypress' ); |
| | 102 | else |
| | 103 | $this->total_blogs .= ' ' . __( 'blogs', 'buddypress' ); |
| | 104 | |
| | 105 | $this->total_blogs = '<a href="' . $this->user_url . $bp['blogs']['slug'] . '" title="' . sprintf( __( "%s's blog list", 'buddypress' ), $this->fullname ) . '">' . $this->total_blogs . '</a>'; |
| | 106 | } |