mirror of
https://github.com/friendica/friendica
synced 2025-04-30 15:44:24 +02:00
add "Show Forum" Button to Profile
This commit is contained in:
parent
ad414f33c9
commit
e6a4467557
2 changed files with 24 additions and 0 deletions
|
@ -68,6 +68,7 @@ class VCard
|
|||
$follow_link = '';
|
||||
$unfollow_link = '';
|
||||
$wallmessage_link = '';
|
||||
$showforum_link = '';
|
||||
|
||||
$photo = Contact::getPhoto($contact);
|
||||
|
||||
|
@ -99,6 +100,10 @@ class VCard
|
|||
if (in_array($rel, [Contact::FOLLOWER, Contact::FRIEND]) && Contact::canReceivePrivateMessages($contact)) {
|
||||
$wallmessage_link = 'message/new/' . $id;
|
||||
}
|
||||
|
||||
if (in_array($rel, [Contact::SHARING])) {
|
||||
$showforum_link = 'network/group/' . $id;
|
||||
}
|
||||
}
|
||||
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/vcard.tpl'), [
|
||||
|
@ -119,6 +124,9 @@ class VCard
|
|||
'$unfollow_link' => $unfollow_link,
|
||||
'$wallmessage' => DI::l10n()->t('Message'),
|
||||
'$wallmessage_link' => $wallmessage_link,
|
||||
'$showforum' => DI::l10n()->t('Show Forum'),
|
||||
'$showforum_link' => $showforum_link,
|
||||
'$mentioning' => DI::l10n()->t('Mention'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue