summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-05 11:17:06 -0400
committerEvan Prodromou <evan@status.net>2010-04-05 11:17:06 -0400
commit98905de69df7371f7ce010680416525036a1c400 (patch)
treefb78f8797587969b3901ebc708abb401c10b8c50
parent0b30230b5ad482b9510775510f77dbbc62970150 (diff)
make profilelist homepage link attributes overrideable
-rw-r--r--lib/profilelist.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php
index 934907bc3..b010fb724 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -222,8 +222,8 @@ class ProfileListItem extends Widget
{
if (!empty($this->profile->homepage)) {
$this->out->text(' ');
- $this->out->elementStart('a', array('href' => $this->profile->homepage,
- 'class' => 'url'));
+ $aAttrs = $this->homepageAttributes();
+ $this->out->elementStart('a', $aAttrs);
$this->out->raw($this->highlight($this->profile->homepage));
$this->out->elementEnd('a');
}
@@ -305,4 +305,10 @@ class ProfileListItem extends Widget
'class' => 'url entry-title',
'rel' => 'contact');
}
+
+ function homepageAttributes()
+ {
+ return array('href' => $this->profile->homepage,
+ 'class' => 'url');
+ }
}