-function viewcontacts_init(App $a) {
-
- if((Config::get('system','block_public')) && (! local_user()) && (! remote_user())) {
+function viewcontacts_init(App $a)
+{
+ if ((Config::get('system', 'block_public')) && (! local_user()) && (! remote_user())) {
- 'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $contact_details['name'], $rr['url']),
+ 'img_hover' => sprintf(L10n::t('Visit %s\'s profile [%s]'), $contact_details['name'], $rr['url']),
'photo_menu' => Contact::photoMenu($rr),
'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB),
'photo_menu' => Contact::photoMenu($rr),
'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB),
- 'name' => htmlentities(substr($contact_details['name'],0,20)),
+ 'name' => htmlentities(substr($contact_details['name'], 0, 20)),
'username' => htmlentities($contact_details['name']),
'details' => $contact_details['location'],
'tags' => $contact_details['keywords'],
'username' => htmlentities($contact_details['name']),
'details' => $contact_details['location'],
'tags' => $contact_details['keywords'],
$tpl = get_markup_template("viewcontact_template.tpl");
$o .= replace_macros($tpl, [
$tpl = get_markup_template("viewcontact_template.tpl");
$o .= replace_macros($tpl, [
'$contacts' => $contacts,
'$paginate' => paginate($a),
]);
'$contacts' => $contacts,
'$paginate' => paginate($a),
]);