The contact template now displays the address if available

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

View file

@ -70,7 +70,7 @@ function common_content(&$a) {
if($cid == 0 && $zcid == 0)
return;
return;
if($cid)
@ -112,7 +112,7 @@ function common_content(&$a) {
$entry = array(
'url' => $rr['url'],
'itemurl' => $rr['url'],
'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
'name' => $rr['name'],
'thumb' => proxy_url($rr['photo'], false, PROXY_SIZE_THUMB),
'img_hover' => htmlentities($rr['name']),