- $account_type = Contact::getAccountType($a->profile);
-
- $tpl = Renderer::getMarkupTemplate('widget/vcard.tpl');
-
- $vcard_widget = Renderer::replaceMacros($tpl, [
- '$name' => $a->profile['name'],
- '$photo' => $a->profile['photo'],
- '$addr' => $a->profile['addr'] ?: '',
- '$account_type' => $account_type,
- '$about' => BBCode::convert($a->profile['about']),
- ]);
-
- $cal_widget = Widget\CalendarExport::getHTML();
-