Issue 1925 - display nickname@hostname.com
This commit is contained in:
parent
9df70a6eed
commit
25c0c5d4ad
|
@ -943,6 +943,9 @@ function micropro($contact, $redirect = false, $class = '', $textmode = false) {
|
||||||
if($class)
|
if($class)
|
||||||
$class = ' ' . $class;
|
$class = ' ' . $class;
|
||||||
|
|
||||||
|
if ($contact["addr"] == "")
|
||||||
|
$contact["addr"] = $contact["url"];
|
||||||
|
|
||||||
$url = $contact['url'];
|
$url = $contact['url'];
|
||||||
$sparkle = '';
|
$sparkle = '';
|
||||||
$redir = false;
|
$redir = false;
|
||||||
|
@ -966,7 +969,7 @@ function micropro($contact, $redirect = false, $class = '', $textmode = false) {
|
||||||
. (($click) ? ' fakelink' : '') . '" '
|
. (($click) ? ' fakelink' : '') . '" '
|
||||||
. (($redir) ? ' target="redir" ' : '')
|
. (($redir) ? ' target="redir" ' : '')
|
||||||
. (($url) ? ' href="' . $url . '"' : '') . $click
|
. (($url) ? ' href="' . $url . '"' : '') . $click
|
||||||
. '" title="' . $contact['name'] . ' [' . $contact['url'] . ']" alt="' . $contact['name']
|
. '" title="' . $contact['name'] . ' [' . $contact['addr'] . ']" alt="' . $contact['name']
|
||||||
. '" >'. $contact['name'] . '</a></div>' . "\r\n";
|
. '" >'. $contact['name'] . '</a></div>' . "\r\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -974,7 +977,7 @@ function micropro($contact, $redirect = false, $class = '', $textmode = false) {
|
||||||
. (($click) ? ' fakelink' : '') . '" '
|
. (($click) ? ' fakelink' : '') . '" '
|
||||||
. (($redir) ? ' target="redir" ' : '')
|
. (($redir) ? ' target="redir" ' : '')
|
||||||
. (($url) ? ' href="' . $url . '"' : '') . $click . ' ><img class="contact-block-img' . $class . $sparkle . '" src="'
|
. (($url) ? ' href="' . $url . '"' : '') . $click . ' ><img class="contact-block-img' . $class . $sparkle . '" src="'
|
||||||
. proxy_url($contact['micro'], false, PROXY_SIZE_THUMB) . '" title="' . $contact['name'] . ' [' . $contact['url'] . ']" alt="' . $contact['name']
|
. proxy_url($contact['micro'], false, PROXY_SIZE_THUMB) . '" title="' . $contact['name'] . ' [' . $contact['addr'] . ']" alt="' . $contact['name']
|
||||||
. '" /></a></div>' . "\r\n";
|
. '" /></a></div>' . "\r\n";
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -64,6 +64,7 @@ function viewcontacts_content(&$a) {
|
||||||
$contacts[] = array(
|
$contacts[] = array(
|
||||||
'id' => $rr['id'],
|
'id' => $rr['id'],
|
||||||
'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $rr['name'], $rr['url']),
|
'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $rr['name'], $rr['url']),
|
||||||
|
'photo_menu' => contact_photo_menu($rr),
|
||||||
'thumb' => proxy_url($rr['thumb'], false, PROXY_SIZE_THUMB),
|
'thumb' => proxy_url($rr['thumb'], false, PROXY_SIZE_THUMB),
|
||||||
'name' => htmlentities(substr($rr['name'],0,20)),
|
'name' => htmlentities(substr($rr['name'],0,20)),
|
||||||
'username' => htmlentities($rr['name']),
|
'username' => htmlentities($rr['name']),
|
||||||
|
|
Loading…
Reference in a new issue