Changeset 12588 for trunk/src/bp-core/classes/class-bp-core-user.php
- Timestamp:
- 03/28/2020 01:35:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-core-user.php
r11818 r12588 167 167 } 168 168 169 $this->avatar = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'full', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->fullname ) ) ); 170 $this->avatar_thumb = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->fullname ) ) ); 171 $this->avatar_mini = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->fullname ), 'width' => 30, 'height' => 30 ) ); 172 $this->last_active = bp_core_get_last_activity( bp_get_user_last_activity( $this->id ), __( 'active %s', 'buddypress' ) ); 169 $this->avatar = bp_core_fetch_avatar( 170 array( 171 'item_id' => $this->id, 172 'type' => 'full', 173 'alt' => sprintf( 174 /* translators: %s: member name */ 175 __( 'Profile photo of %s', 'buddypress' ), 176 $this->fullname 177 ) 178 ) 179 ); 180 181 $this->avatar_thumb = bp_core_fetch_avatar( 182 array( 183 'item_id' => $this->id, 184 'type' => 'thumb', 185 'alt' => sprintf( 186 /* translators: %s: member name */ 187 __( 'Profile photo of %s', 'buddypress' ), 188 $this->fullname 189 ) 190 ) 191 ); 192 193 $this->avatar_mini = bp_core_fetch_avatar( 194 array( 195 'item_id' => $this->id, 196 'type' => 'thumb', 197 'alt' => sprintf( 198 /* translators: %s: member name */ 199 __( 'Profile photo of %s', 'buddypress' ), 200 $this->fullname 201 ), 202 'width' => 30, 203 'height' => 30 204 ) 205 ); 206 207 /* translators: %s: human time diff of the last time the user was active on the site. */ 208 $this->last_active = bp_core_get_last_activity( bp_get_user_last_activity( $this->id ), _x( 'active %s', 'last time the user was active', 'buddypress' ) ); 173 209 } 174 210 … … 184 220 if ( bp_is_active( 'groups' ) ) { 185 221 $this->total_groups = BP_Groups_Member::total_group_count( $this->id ); 186 $this->total_groups = sprintf( _n( '%d group', '%d groups', $this->total_groups, 'buddypress' ), $this->total_groups ); 222 $this->total_groups = sprintf( 223 /* translators: %s: total groups count */ 224 _n( '%d group', '%d groups', $this->total_groups, 'buddypress' ), 225 $this->total_groups 226 ); 187 227 } 188 228 }
Note: See TracChangeset
for help on using the changeset viewer.