use homepage link attributes method for peopletaglist
This commit is contained in:
parent
98905de69d
commit
95229bc7a0
|
@ -166,19 +166,11 @@ class PeopleTagListItem extends ProfileListItem
|
||||||
return $aAttrs;
|
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')) {
|
if (common_config('nofollow', 'peopletag')) {
|
||||||
$aAttrs['rel'] = 'nofollow';
|
$aAttrs['rel'] = 'nofollow';
|
||||||
}
|
}
|
||||||
$this->out->elementStart('a', $aAttrs);
|
|
||||||
$this->out->raw($this->highlight($this->profile->homepage));
|
|
||||||
$this->out->elementEnd('a');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user