From: Evan Prodromou Date: Mon, 5 Apr 2010 15:17:36 +0000 (-0400) Subject: use homepage link attributes method for peopletaglist X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95229bc7a060bb6289aa9b7950f4e69acd96a1e7;p=quix0rs-gnu-social.git use homepage link attributes method for peopletaglist --- diff --git a/actions/peopletag.php b/actions/peopletag.php index af40b9d82a..456cc21c4c 100644 --- a/actions/peopletag.php +++ b/actions/peopletag.php @@ -166,18 +166,10 @@ class PeopleTagListItem extends ProfileListItem return $aAttrs; } - function showHomepage() + function homepageAttributes() { - if (!empty($this->profile->homepage)) { - $this->out->text(' '); - $aAttrs = array('href' => $this->profile->homepage, - 'class' => 'url'); - if (common_config('nofollow', 'peopletag')) { - $aAttrs['rel'] = 'nofollow'; - } - $this->out->elementStart('a', $aAttrs); - $this->out->raw($this->highlight($this->profile->homepage)); - $this->out->elementEnd('a'); + if (common_config('nofollow', 'peopletag')) { + $aAttrs['rel'] = 'nofollow'; } } }