$follow_link = '';
$unfollow_link = '';
$wallmessage_link = '';
+ $showgroup_link = '';
$photo = Contact::getPhoto($contact);
if (in_array($rel, [Contact::FOLLOWER, Contact::FRIEND]) && Contact::canReceivePrivateMessages($contact)) {
$wallmessage_link = 'message/new/' . $id;
}
+
+ if (in_array($rel, [Contact::SHARING])) {
+ $showgroup_link = 'network/group/' . $id;
+ }
}
return Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/vcard.tpl'), [
'$unfollow_link' => $unfollow_link,
'$wallmessage' => DI::l10n()->t('Message'),
'$wallmessage_link' => $wallmessage_link,
+ '$mentioning' => DI::l10n()->t('Mention'),
+ '$post2group' => DI::l10n()->t('Post to group'),
+ '$showgroup' => DI::l10n()->t('View group'),
+ '$showgroup_link' => $showgroup_link,
]);
}
}