summaryrefslogtreecommitdiff
path: root/lib/profilelist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-05 11:04:47 -0400
committerEvan Prodromou <evan@status.net>2010-04-05 11:04:47 -0400
commit0b30230b5ad482b9510775510f77dbbc62970150 (patch)
tree222e2466b96369fd687b7fce581df36f28da905d /lib/profilelist.php
parentd4940fe148002bfd6619bcbef95763395bb6d9cc (diff)
parent2882e40540b6ca0aaeb7b9e1841622cf0442ae3d (diff)
Merge branch 'nofollow'
Diffstat (limited to 'lib/profilelist.php')
-rw-r--r--lib/profilelist.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php
index 3e5513895..934907bc3 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -181,9 +181,8 @@ class ProfileListItem extends Widget
function showAvatar()
{
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
- $this->out->elementStart('a', array('href' => $this->profile->profileurl,
- 'class' => 'url entry-title',
- 'rel' => 'contact'));
+ $aAttrs = $this->linkAttributes();
+ $this->out->elementStart('a', $aAttrs);
$this->out->element('img', array('src' => ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE),
'class' => 'photo avatar',
'width' => AVATAR_STREAM_SIZE,
@@ -299,4 +298,11 @@ class ProfileListItem extends Widget
{
return htmlspecialchars($text);
}
+
+ function linkAttributes()
+ {
+ return array('href' => $this->profile->profileurl,
+ 'class' => 'url entry-title',
+ 'rel' => 'contact');
+ }
}