add a title to attention notice links
This commit is contained in:
parent
ce212c3903
commit
3af6680716
|
@ -622,9 +622,13 @@ function common_at_link($sender_id, $nickname)
|
||||||
$url = $recipient->profileurl;
|
$url = $recipient->profileurl;
|
||||||
}
|
}
|
||||||
$xs = new XMLStringer(false);
|
$xs = new XMLStringer(false);
|
||||||
|
$attrs = array('href' => $url,
|
||||||
|
'class' => 'url');
|
||||||
|
if (!empty($recipient->fullname)) {
|
||||||
|
$attrs['title'] = $recipient->fullname . ' (' . $recipient->nickname . ')';
|
||||||
|
}
|
||||||
$xs->elementStart('span', 'vcard');
|
$xs->elementStart('span', 'vcard');
|
||||||
$xs->elementStart('a', array('href' => $url,
|
$xs->elementStart('a', $attrs);
|
||||||
'class' => 'url'));
|
|
||||||
$xs->element('span', 'fn nickname', $nickname);
|
$xs->element('span', 'fn nickname', $nickname);
|
||||||
$xs->elementEnd('a');
|
$xs->elementEnd('a');
|
||||||
$xs->elementEnd('span');
|
$xs->elementEnd('span');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user