- $r = Model\GContact::allFriends(local_user(), $cid, $a->pager['start'], $a->pager['itemspage']);
+ $r = Model\GContact::allFriends(local_user(), $cid, $pager->getStart(), $pager->getItemsPerPage());
//get further details of the contact
$contact_details = Model\Contact::getDetailsByURL($rr['url'], $uid, $rr);
//get further details of the contact
$contact_details = Model\Contact::getDetailsByURL($rr['url'], $uid, $rr);
$connlnk = '';
// $rr[cid] is only available for common contacts. So if the contact is a common one, use contact_photo_menu to generate the photo_menu
// If the contact is not common to the user, Connect/Follow' will be added to the photo menu
$connlnk = '';
// $rr[cid] is only available for common contacts. So if the contact is a common one, use contact_photo_menu to generate the photo_menu
// If the contact is not common to the user, Connect/Follow' will be added to the photo menu
'itemurl' => defaults($contact_details, 'addr', $rr['url']),
'itemurl' => defaults($contact_details, 'addr', $rr['url']),
'thumb' => ProxyUtils::proxifyUrl($contact_details['thumb'], false, ProxyUtils::SIZE_THUMB),
'thumb' => ProxyUtils::proxifyUrl($contact_details['thumb'], false, ProxyUtils::SIZE_THUMB),
'details' => $contact_details['location'],
'tags' => $contact_details['keywords'],
'about' => $contact_details['about'],
'details' => $contact_details['location'],
'tags' => $contact_details['keywords'],
'about' => $contact_details['about'],
- $tab_str = Contact::getTabsHTML($a, $contact, 4);
-
- $tpl = get_markup_template('viewcontact_template.tpl');
+ $tab_str = Module\Contact::getTabsHTML($a, $contact, 4);
- $o .= replace_macros($tpl, [
- //'$title' => L10n::t('Friends of %s', htmlentities($c[0]['name'])),
+ $tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl');
+ $o .= Renderer::replaceMacros($tpl, [