From f614bb5bf24ca063ab99994776fab9fc54bea4d9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 20 May 2008 09:46:31 -0400 Subject: add alt to all images darcs-hash:20080520134631-84dde-249574ec7e16108cf47f3001c2bc726bdc6f8751.gz --- actions/showstream.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'actions/showstream.php') diff --git a/actions/showstream.php b/actions/showstream.php index 5e8802cd7..6cd4773ee 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -102,7 +102,7 @@ class ShowstreamAction extends StreamAction { 'class' => 'avatar profile', 'width' => AVATAR_PROFILE_SIZE, 'height' => AVATAR_PROFILE_SIZE, - 'title' => $profile->nickname)); + 'alt' => $profile->nickname)); } if ($profile->fullname) { if ($profile->homepage) { @@ -161,7 +161,8 @@ class ShowstreamAction extends StreamAction { common_element_start('div', 'row'); } - common_element_start('a', array('title' => $subs->fullname || + common_element_start('a', array('title' => ($subs->fullname) ? + $subs->fullname : $subs->nickname, 'href' => $subs->profileurl, 'class' => 'subscription')); @@ -169,7 +170,10 @@ class ShowstreamAction extends StreamAction { common_element('img', array('src' => (($avatar) ? $avatar->url : DEFAULT_MINI_AVATAR), 'width' => AVATAR_MINI_SIZE, 'height' => AVATAR_MINI_SIZE, - 'class' => 'avatar mini')); + 'class' => 'avatar mini', + 'alt' => ($subs->fullname) ? + $subs->fullname : + $subs->nickname)); common_element_end('a'); if ($cnt % SUBSCRIPTIONS_PER_ROW == 0) { -- cgit v1.2.3-54-g00ecf