From: Marcel Werk Date: Fri, 26 Jan 2024 12:01:35 +0000 (+0100) Subject: Add conversation button to user cards X-Git-Tag: 6.1.0_Alpha_1~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=adbc78b683eb060b8e63f61dd3a5f5695f0bb8b5;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Add conversation button to user cards --- diff --git a/templateListener.xml b/templateListener.xml index bc8b258..0ad5690 100644 --- a/templateListener.xml +++ b/templateListener.xml @@ -13,6 +13,12 @@ buttons + + user + userCard + buttons + + user diff --git a/templates/userCard_buttons_conversationButton.tpl b/templates/userCard_buttons_conversationButton.tpl new file mode 100644 index 0000000..55a2ece --- /dev/null +++ b/templates/userCard_buttons_conversationButton.tpl @@ -0,0 +1,3 @@ +{if MODULE_CONVERSATION && $__wcf->user->userID && $__wcf->session->getPermission('user.conversation.canUseConversation') && $__wcf->session->getPermission('user.conversation.canStartConversation') && $user->userID != $__wcf->user->userID} + {icon name='comments' type='solid' size=24} +{/if}