From: Evan Prodromou Date: Mon, 30 Mar 2009 14:17:10 +0000 (-0400) Subject: add a title to attention notice links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3af66807161628969395bfb65ada38f977c94edf;p=quix0rs-gnu-social.git add a title to attention notice links --- diff --git a/lib/util.php b/lib/util.php index a43666fa5c..7b2930914f 100644 --- a/lib/util.php +++ b/lib/util.php @@ -622,9 +622,13 @@ function common_at_link($sender_id, $nickname) $url = $recipient->profileurl; } $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('a', array('href' => $url, - 'class' => 'url')); + $xs->elementStart('a', $attrs); $xs->element('span', 'fn nickname', $nickname); $xs->elementEnd('a'); $xs->elementEnd('span');