From adbc78b683eb060b8e63f61dd3a5f5695f0bb8b5 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 26 Jan 2024 13:01:35 +0100 Subject: [PATCH] Add conversation button to user cards --- templateListener.xml | 6 ++++++ templates/userCard_buttons_conversationButton.tpl | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 templates/userCard_buttons_conversationButton.tpl 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} -- 2.20.1