- Timestamp:
- 03/28/2020 01:39:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-invite-template.php
r12426 r12590 83 83 // Backward compatibility with old method of passing arguments. 84 84 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 85 /* translators: 1: the name of the method. 2: the name of the file. */ 85 86 _deprecated_argument( __METHOD__, '2.0.0', sprintf( __( 'Arguments passed to %1$s should be in an associative array. See the inline documentation at %2$s for more details.', 'buddypress' ), __METHOD__, __FILE__ ) ); 86 87 … … 233 234 } 234 235 235 $this->invite->user->avatar = bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'full', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->invite->user->fullname ) ) ); 236 $this->invite->user->avatar_thumb = bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->invite->user->fullname ) ) ); 237 $this->invite->user->avatar_mini = bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->invite->user->fullname ), 'width' => 30, 'height' => 30 ) ); 238 $this->invite->user->email = $this->invite->user->user_email; 239 $this->invite->user->user_url = bp_core_get_user_domain( $user_id, $this->invite->user->user_nicename, $this->invite->user->user_login ); 240 $this->invite->user->user_link = "<a href='{$this->invite->user->user_url}'>{$this->invite->user->fullname}</a>"; 241 $this->invite->user->last_active = bp_core_get_last_activity( $this->invite->user->last_activity, __( 'active %s', 'buddypress' ) ); 236 $this->invite->user->avatar = bp_core_fetch_avatar( 237 array( 238 'item_id' => $user_id, 239 'type' => 'full', 240 'alt' => sprintf( 241 /* translators: %s: member name */ 242 __( 'Profile photo of %s', 'buddypress' ), 243 $this->invite->user->fullname 244 ) 245 ) 246 ); 247 248 $this->invite->user->avatar_thumb = bp_core_fetch_avatar( 249 array( 250 'item_id' => $user_id, 251 'type' => 'thumb', 252 'alt' => sprintf( 253 /* translators: %s: member name */ 254 __( 'Profile photo of %s', 'buddypress' ), 255 $this->invite->user->fullname 256 ) 257 ) 258 ); 259 260 $this->invite->user->avatar_mini = bp_core_fetch_avatar( 261 array( 262 'item_id' => $user_id, 263 'type' => 'thumb', 264 'alt' => sprintf( 265 /* translators: %s: member name */ 266 __( 'Profile photo of %s', 'buddypress' ), 267 $this->invite->user->fullname 268 ), 269 'width' => 30, 270 'height' => 30 271 ) 272 ); 273 274 $this->invite->user->email = $this->invite->user->user_email; 275 $this->invite->user->user_url = bp_core_get_user_domain( $user_id, $this->invite->user->user_nicename, $this->invite->user->user_login ); 276 $this->invite->user->user_link = "<a href='{$this->invite->user->user_url}'>{$this->invite->user->fullname}</a>"; 277 278 /* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */ 279 $this->invite->user->last_active = bp_core_get_last_activity( $this->invite->user->last_activity, __( 'active %s', 'buddypress' ) ); 242 280 243 281 if ( bp_is_active( 'groups' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.