Changeset 5479
- Timestamp:
- 12/10/2011 05:41:48 PM (13 years ago)
- Location:
- trunk/bp-core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r5473 r5479 656 656 657 657 if ( !$alt ) 658 $alt = __( 'Avatar of %s', 'buddypress');658 $alt = sprintf( __( 'Avatar of %s', 'buddypress' ), bp_core_get_user_displayname( $id ) ); 659 659 660 660 // Let BuddyPress handle the fetching of the avatar -
trunk/bp-core/bp-core-classes.php
r5302 r5479 170 170 wp_cache_set( 'bp_user_url_' . $this->id, $this->user_url, 'bp' ); 171 171 172 $this->avatar = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'full' 173 $this->avatar_thumb = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb' ) );174 $this->avatar_mini = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', ' width' => 30, 'height' => 30 ) );172 $this->avatar = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'full', 'alt' => sprintf( __( 'Avatar of %s', 'buddypress' ), $this->fullname ) ) ); 173 $this->avatar_thumb = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', 'alt' => sprintf( __( 'Avatar of %s', 'buddypress' ), $this->fullname ) ) ); 174 $this->avatar_mini = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', 'alt' => sprintf( __( 'Avatar of %s', 'buddypress' ), $this->fullname ), 'width' => 30, 'height' => 30 ) ); 175 175 $this->last_active = bp_core_get_last_activity( bp_get_user_meta( $this->id, 'last_activity', true ), __( 'active %s', 'buddypress' ) ); 176 176 } -
trunk/bp-core/bp-core-template.php
r5415 r5479 95 95 96 96 if ( function_exists( 'bp_core_fetch_avatar' ) ) 97 echo apply_filters( 'bp_comment_author_avatar', bp_core_fetch_avatar( array( 'item_id' => $comment->user_id, 'type' => 'thumb' ) ) );97 echo apply_filters( 'bp_comment_author_avatar', bp_core_fetch_avatar( array( 'item_id' => $comment->user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Avatar of %s', 'buddypress' ), bp_core_get_user_displayname( $comment->user_id ) ) ) ) ); 98 98 else if ( function_exists('get_avatar') ) 99 99 get_avatar(); … … 104 104 105 105 if ( function_exists( 'bp_core_fetch_avatar' ) ) 106 echo apply_filters( 'bp_post_author_avatar', bp_core_fetch_avatar( array( 'item_id' => $post->post_author, 'type' => 'thumb' ) ) );106 echo apply_filters( 'bp_post_author_avatar', bp_core_fetch_avatar( array( 'item_id' => $post->post_author, 'type' => 'thumb', 'alt' => sprintf( __( 'Avatar of %s', 'buddypress' ), bp_core_get_user_displayname( $post->post_author ) ) ) ) ); 107 107 else if ( function_exists('get_avatar') ) 108 108 get_avatar();
Note: See TracChangeset
for help on using the changeset viewer.