Changeset 1832
- Timestamp:
- 09/09/2009 04:54:53 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-templatetags.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r1831 r1832 407 407 } 408 408 409 function bp_group_avatar( ) {410 echo bp_get_group_avatar( );409 function bp_group_avatar( $args = '' ) { 410 echo bp_get_group_avatar( $args ); 411 411 } 412 412 function bp_get_group_avatar( $args = '' ) { … … 426 426 427 427 /* Fetch the avatar from the folder, if not provide backwards compat. */ 428 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 ) ) )428 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 ) ) ) 429 429 $avatar = '<img src="' . attribute_escape( $groups_template->group->avatar_thumb ) . '" class="avatar" alt="' . attribute_escape( $groups_template->group->name ) . '" />'; 430 430 … … 436 436 } 437 437 function bp_get_group_avatar_thumb( $group = false ) { 438 return bp_get_group_avatar( array( 'type' => 'thumb' ));438 return bp_get_group_avatar( 'type=thumb' ); 439 439 } 440 440 … … 443 443 } 444 444 function bp_get_group_avatar_mini( $group = false ) { 445 return bp_get_group_avatar( array( 'type' => 'thumb', 'width' => 30, 'height' => 30 ));445 return bp_get_group_avatar( 'type=thumb&width=30&height=30' ); 446 446 } 447 447
Note: See TracChangeset
for help on using the changeset viewer.