Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/01/2011 06:26:18 PM (14 years ago)
Author:
djpaul
Message:

Improves avatars' HTML alt and title tags. Fixes #2606.

File:
1 edited

Legend:

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

    r3610 r3635  
    457457            'height' => 20,
    458458            'class'  => 'avatar',
    459             'alt'    => __( 'Avatar', 'buddypress' ),
     459            'alt'    => __( 'Profile picture of %s', 'buddypress' ),
    460460            'email'  => false
    461461        );
     
    503503            'height' => 20,
    504504            'class'  => 'avatar',
    505             'alt'    => __( 'Avatar', 'buddypress' ),
    506505            'email'  => false
    507506        );
     
    515514                $object = 'group';
    516515                $item_id = $activities_template->activity->item_id;
     516
     517                if ( !$alt )
     518                    $alt = __( 'Group logo of %s', 'buddypress' );
     519
    517520                break;
    518521            case 'blogs' :
    519522                $object = 'blog';
    520523                $item_id = $activities_template->activity->item_id;
     524
     525                if ( !$alt )
     526                    $alt = sprintf( __( 'Blog authored by %s', 'buddypress' ), get_blog_option( $item_id, 'blogname' ) );
     527
    521528                break;
    522529            case 'friends' :
    523530                $object  = 'user';
    524531                $item_id = $activities_template->activity->secondary_item_id;
     532
     533                if ( !$alt )
     534                    $alt = __( 'Profile picture of %s', 'buddypress' );
     535
    525536                break;
    526537            default :
     
    528539                $item_id = $activities_template->activity->user_id;
    529540                $email = $activities_template->activity->user_email;
     541
     542                if ( !$alt )
     543                    $alt = __( 'Profile picture of %s', 'buddypress' );
     544
    530545                break;
    531546        }
Note: See TracChangeset for help on using the changeset viewer.