use Friendica\Core\Config;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
+use Friendica\Model\Profile;
function hovercard_init(App $a)
{
}
// Move the contact data to the profile array so we can deliver it to
- $profile = array(
+ $profile = [
'name' => $contact['name'],
'nick' => $contact['nick'],
'addr' => defaults($contact, 'addr', $contact['url']),
'bd' => $contact['birthday'] <= '0001-01-01' ? '' : $contact['birthday'],
'account_type' => Contact::getAccountType($contact),
'actions' => $actions,
- );
+ ];
if ($datatype == 'html') {
$tpl = get_markup_template('hovercard.tpl');
- $o = replace_macros($tpl, array(
+ $o = replace_macros($tpl, [
'$profile' => $profile,
- ));
+ ]);
return $o;
} else {