mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:50:10 +00:00
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
|
@ -70,10 +70,15 @@ function match_content(&$a) {
|
|||
$photo_menu = array(array(t("View Profile"), zrl($jj->url)));
|
||||
$photo_menu[] = array(t("Connect/Follow"), $connlnk);
|
||||
|
||||
$contact_details = get_contact_details_by_url($jj->url, local_user());
|
||||
|
||||
$entry = array(
|
||||
'url' => zrl($jj->url),
|
||||
'itemurl' => $jj->url,
|
||||
'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $jj->url),
|
||||
'name' => $jj->name,
|
||||
'details' => $contact_details['location'],
|
||||
'tags' => $contact_details['keywords'],
|
||||
'about' => $contact_details['about'],
|
||||
'thumb' => proxy_url($jj->photo, false, PROXY_SIZE_THUMB),
|
||||
'inttxt' => ' ' . t('is interested in:'),
|
||||
'conntxt' => t('Connect'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue