- foreach($r as $rr) {
-
- $connlnk = $a->get_baseurl() . '/follow/?url=' . (($rr['connect']) ? $rr['connect'] : $rr['url']);
-
- $entry = array(
- 'url' => zrl($rr['url']),
- 'url_clean' => $rr['url'],
- 'name' => $rr['name'],
- 'photo' => proxy_url($rr['photo'], false, PROXY_SIZE_THUMB),
- 'ignlnk' => $a->get_baseurl() . '/suggest?ignore=' . $rr['id'],
+ $id = 0;
+
+ foreach ($r as $rr) {
+
+ $connlnk = System::baseUrl() . '/follow/?url=' . (($rr['connect']) ? $rr['connect'] : $rr['url']);
+ $ignlnk = System::baseUrl() . '/suggest?ignore=' . $rr['id'];
+ $photo_menu = [
+ 'profile' => [L10n::t("View Profile"), Contact::magicLink($rr["url"])],
+ 'follow' => [L10n::t("Connect/Follow"), $connlnk],
+ 'hide' => [L10n::t('Ignore/Hide'), $ignlnk]
+ ];
+
+ $contact_details = Contact::getDetailsByURL($rr["url"], local_user(), $rr);
+
+ $entry = [
+ 'url' => Contact::magicLink($rr['url']),
+ 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
+ 'img_hover' => $rr['url'],
+ 'name' => $contact_details['name'],
+ 'thumb' => ProxyUtils::proxifyUrl($contact_details['thumb'], false, ProxyUtils::SIZE_THUMB),
+ 'details' => $contact_details['location'],
+ 'tags' => $contact_details['keywords'],
+ 'about' => $contact_details['about'],
+ 'account_type' => Contact::getAccountType($contact_details),
+ 'ignlnk' => $ignlnk,