The contact template now displays the address if available
This commit is contained in:
parent
2e81d0a2b3
commit
0f41f35041
13 changed files with 164 additions and 18 deletions
|
@ -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),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue