From: Evan Prodromou Date: Mon, 5 Apr 2010 15:17:06 +0000 (-0400) Subject: make profilelist homepage link attributes overrideable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=98905de69df7371f7ce010680416525036a1c400;p=quix0rs-gnu-social.git make profilelist homepage link attributes overrideable --- diff --git a/lib/profilelist.php b/lib/profilelist.php index 934907bc35..b010fb7249 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'); + } }