Skip to:
Content

BuddyPress.org

Changeset 5503


Ignore:
Timestamp:
12/11/2011 04:32:45 PM (14 years ago)
Author:
boonebgorges
Message:

Pass concatenated alt parameter to bp_core_fetch_avatar() throughout bp-default. References #3806

Location:
trunk/bp-themes/bp-default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r5431 r5503  
    717717                $username = $ud->user_nicename;
    718718
    719             echo '<span id="link-' . $username . '" href="' . bp_core_get_user_domain( $user_id ) . '"></span>' . bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'width' => 15, 'height' => 15 ) ) . ' &nbsp;' . bp_core_get_user_displayname( $user_id ) . ' (' . $username . ')
     719            echo '<span id="link-' . $username . '" href="' . bp_core_get_user_domain( $user_id ) . '"></span>' . bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'width' => 15, 'height' => 15, 'alt' => $ud->display_name ) ) . ' &nbsp;' . bp_core_get_user_displayname( $user_id ) . ' (' . $username . ')
    720720            ';
    721721        }
  • trunk/bp-themes/bp-default/groups/single/admin.php

    r5374 r5503  
    183183            <?php while ( bp_members() ) : bp_the_member(); ?>
    184184            <li>
    185                 <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => __( 'Profile picture of %s', 'buddypress' ) ) ) ?>
     185                <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ) ?>
    186186                <h5>
    187187                    <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
     
    208208                    <?php while ( bp_members() ) : bp_the_member(); ?>                 
    209209                    <li>
    210                         <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => __( 'Profile picture of %s', 'buddypress' ) ) ) ?>
     210                        <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ) ?>
    211211                        <h5>
    212212                            <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
Note: See TracChangeset for help on using the changeset viewer.