Skip to:
Content

BuddyPress.org

Changeset 1832


Ignore:
Timestamp:
09/09/2009 04:54:53 AM (16 years ago)
Author:
apeatling
Message:

Further group avatar fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-templatetags.php

    r1831 r1832  
    407407    }
    408408
    409 function bp_group_avatar() {
    410     echo bp_get_group_avatar();
     409function bp_group_avatar( $args = '' ) {
     410    echo bp_get_group_avatar( $args );
    411411}
    412412    function bp_get_group_avatar( $args = '' ) {
     
    426426   
    427427        /* 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 ) ) )
    429429            $avatar = '<img src="' . attribute_escape( $groups_template->group->avatar_thumb ) . '" class="avatar" alt="' . attribute_escape( $groups_template->group->name ) . '" />';
    430430
     
    436436}
    437437    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' );
    439439    }
    440440
     
    443443}
    444444    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' );
    446446    }
    447447
Note: See TracChangeset for help on using the changeset viewer.