make profilelist homepage link attributes overrideable
This commit is contained in:
parent
0b30230b5a
commit
98905de69d
|
@ -222,8 +222,8 @@ class ProfileListItem extends Widget
|
||||||
{
|
{
|
||||||
if (!empty($this->profile->homepage)) {
|
if (!empty($this->profile->homepage)) {
|
||||||
$this->out->text(' ');
|
$this->out->text(' ');
|
||||||
$this->out->elementStart('a', array('href' => $this->profile->homepage,
|
$aAttrs = $this->homepageAttributes();
|
||||||
'class' => 'url'));
|
$this->out->elementStart('a', $aAttrs);
|
||||||
$this->out->raw($this->highlight($this->profile->homepage));
|
$this->out->raw($this->highlight($this->profile->homepage));
|
||||||
$this->out->elementEnd('a');
|
$this->out->elementEnd('a');
|
||||||
}
|
}
|
||||||
|
@ -305,4 +305,10 @@ class ProfileListItem extends Widget
|
||||||
'class' => 'url entry-title',
|
'class' => 'url entry-title',
|
||||||
'rel' => 'contact');
|
'rel' => 'contact');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function homepageAttributes()
|
||||||
|
{
|
||||||
|
return array('href' => $this->profile->homepage,
|
||||||
|
'class' => 'url');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user