1
0
Fork 0

The contact template now displays the address if available

This commit is contained in:
Michael Vogel 2015-11-06 00:47:54 +01:00
commit 0f41f35041
13 changed files with 164 additions and 18 deletions

View file

@ -35,6 +35,7 @@ function nogroup_content(&$a) {
if(count($r)) {
foreach($r as $rr) {
$contact_details = get_contact_details_by_url($rr['url'], local_user());
$contacts[] = array(
'img_hover' => sprintf( t('Visit %s\'s profile [%s]'),$rr['name'],$rr['url']),
@ -46,8 +47,11 @@ function nogroup_content(&$a) {
'thumb' => $rr['thumb'],
'name' => $rr['name'],
'username' => $rr['name'],
'details' => $contact_details['location'],
'tags' => $contact_details['keywords'],
'about' => $contact_details['about'],
'sparkle' => $sparkle,
'itemurl' => $rr['url'],
'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
'url' => $url,
'network' => network_to_name($rr['network'], $url),
);