Changeset 5500
- Timestamp:
- 12/11/2011 04:00:37 PM (14 years ago)
- Location:
- trunk/bp-groups
- Files:
-
- 3 edited
-
bp-groups-adminbar.php (modified) (1 diff)
-
bp-groups-loader.php (modified) (1 diff)
-
bp-groups-template.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-adminbar.php
r5329 r5500 38 38 'item_id' => $bp->groups->current_group->id, 39 39 'width' => 16, 40 'height' => 16 40 'height' => 16, 41 'alt' => sprintf( __( 'Group logo of %s', 'buddypress' ), $bp->groups->current_group->name ) 41 42 ) ); 42 43 -
trunk/bp-groups/bp-groups-loader.php
r5474 r5500 470 470 $bp->bp_options_avatar = bp_core_fetch_avatar( array( 471 471 'item_id' => bp_displayed_user_id(), 472 'type' => 'thumb' 472 'type' => 'thumb', 473 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ) 473 474 ) ); 474 475 $bp->bp_options_title = $bp->displayed_user->fullname; -
trunk/bp-groups/bp-groups-template.php
r5455 r5500 387 387 'class' => 'avatar', 388 388 'id' => false, 389 'alt' => __( 'Group logo of %s', 'buddypress')389 'alt' => sprintf( __( 'Group logo of %s', 'buddypress' ), $groups_template->group->name ) 390 390 ); 391 391 … … 394 394 395 395 /* Fetch the avatar from the folder, if not provide backwards compat. */ 396 if ( !$avatar = bp_core_fetch_avatar( array( 'item_id' => $groups_template->group->id, 'object' => 'group', 'type' => $type, 'avatar_dir' => 'group-avatars', 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height, 'title' => $groups_template->group->name, 'alt' => $ groups_template->group->name) ) )396 if ( !$avatar = bp_core_fetch_avatar( array( 'item_id' => $groups_template->group->id, 'object' => 'group', 'type' => $type, 'avatar_dir' => 'group-avatars', 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height, 'title' => $groups_template->group->name, 'alt' => $alt ) ) ) 397 397 $avatar = '<img src="' . esc_attr( $groups_template->group->avatar_thumb ) . '" class="avatar" alt="' . esc_attr( $groups_template->group->name ) . '" />'; 398 398 … … 566 566 $group =& $groups_template->group; 567 567 568 if ( $group->admins) { ?>568 if ( !empty( $group->admins ) ) { ?> 569 569 <ul id="group-admins"> 570 570 <?php foreach( (array)$group->admins as $admin ) { ?> 571 571 <li> 572 <a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) ?></a>572 <a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?></a> 573 573 </li> 574 574 <?php } ?> … … 593 593 594 594 <li> 595 <a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) ?></a>595 <a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?></a> 596 596 </li> 597 597 … … 1030 1030 <li> 1031 1031 1032 <?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) ?>1032 <?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?> 1033 1033 1034 1034 <h5> … … 1046 1046 <li> 1047 1047 1048 <?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'type' => 'thumb', 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) ?>1048 <?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?> 1049 1049 1050 1050 <h5><?php echo bp_core_get_userlink( $admin->user_id ) ?></h5> … … 1095 1095 <li> 1096 1096 1097 <?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) ?>1097 <?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?> 1098 1098 1099 1099 <h5> … … 1111 1111 <li> 1112 1112 1113 <?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'type' => 'thumb', 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) ?>1113 <?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?> 1114 1114 1115 1115 <h5><?php echo bp_core_get_userlink( $mod->user_id ) ?></h5> … … 1790 1790 global $members_template; 1791 1791 1792 return apply_filters( 'bp_get_group_member_avatar', bp_core_fetch_avatar( array( 'item_id' => $members_template->member->user_id, 'type' => 'full', 'email' => $members_template->member->user_email, 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) );1792 return apply_filters( 'bp_get_group_member_avatar', bp_core_fetch_avatar( array( 'item_id' => $members_template->member->user_id, 'type' => 'full', 'email' => $members_template->member->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $members_template->member->display_name ) ) ) ); 1793 1793 } 1794 1794 … … 1799 1799 global $members_template; 1800 1800 1801 return apply_filters( 'bp_get_group_member_avatar_thumb', bp_core_fetch_avatar( array( 'item_id' => $members_template->member->user_id, 'type' => 'thumb', 'email' => $members_template->member->user_email, 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) );1801 return apply_filters( 'bp_get_group_member_avatar_thumb', bp_core_fetch_avatar( array( 'item_id' => $members_template->member->user_id, 'type' => 'thumb', 'email' => $members_template->member->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $members_template->member->display_name ) ) ) ); 1802 1802 } 1803 1803 … … 1808 1808 global $members_template; 1809 1809 1810 return apply_filters( 'bp_get_group_member_avatar_mini', bp_core_fetch_avatar( array( 'item_id' => $members_template->member->user_id, 'type' => 'thumb', 'width' => $width, 'height' => $height, 'email' => $members_template->member->user_email, 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) );1810 return apply_filters( 'bp_get_group_member_avatar_mini', bp_core_fetch_avatar( array( 'item_id' => $members_template->member->user_id, 'type' => 'thumb', 'width' => $width, 'height' => $height, 'email' => $members_template->member->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $members_template->member->display_name ) ) ) ); 1811 1811 } 1812 1812 … … 2514 2514 global $requests_template; 2515 2515 2516 echo apply_filters( 'bp_group_request_user_avatar_thumb', bp_core_fetch_avatar( array( 'item_id' => $requests_template->request->user_id, 'type' => 'thumb', 'alt' => __( 'Profile picture of %s', 'buddypress') ) ) );2516 echo apply_filters( 'bp_group_request_user_avatar_thumb', bp_core_fetch_avatar( array( 'item_id' => $requests_template->request->user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $requests_template->request->user_id ) ) ) ) ); 2517 2517 } 2518 2518
Note: See TracChangeset
for help on using the changeset viewer.