- $a->data['user'] = $user[0];
- $a->profile_uid = $user[0]['uid'];
-
- $profile = User::getOwnerDataByNick($nick);
-
- $account_type = Contact::getAccountType($profile);
-
- $tpl = Renderer::getMarkupTemplate('widget/vcard.tpl');
-
- $vcard_widget = Renderer::replaceMacros($tpl, [
- '$name' => $profile['name'],
- '$photo' => $profile['photo'],
- '$addr' => $profile['addr'] ?? '',
- '$account_type' => $account_type,
- '$about' => BBCode::convert($profile['about']),
- ]);
-