From b9fca69efcdec9a62eb2c4de942f11281c8eedb9 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 8 Mar 2020 14:01:34 +0100 Subject: [PATCH] Added additional template events in message sidebar template The template events allow the display of individual user titles that are not based on the user rank system. --- com.woltlab.wcf/templates/messageSidebar.tpl | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/com.woltlab.wcf/templates/messageSidebar.tpl b/com.woltlab.wcf/templates/messageSidebar.tpl index 30641bd2db..2dda86da10 100644 --- a/com.woltlab.wcf/templates/messageSidebar.tpl +++ b/com.woltlab.wcf/templates/messageSidebar.tpl @@ -34,13 +34,22 @@ {/if} - {if MODULE_USER_RANK && !$isReply} - {if $userProfile->getUserTitle()} + {if !$isReply} + {hascontent}
- {$userProfile->getUserTitle()} + {content} + {event name='beforeUserTitle'} + + {if MODULE_USER_RANK && $userProfile->getUserTitle()} + {$userProfile->getUserTitle()} + {/if} + + {event name='afterUserTitle'} + {/content}
- {/if} - {if $userProfile->getRank() && $userProfile->getRank()->rankImage} + {/hascontent} + + {if MODULE_USER_RANK && $userProfile->getRank() && $userProfile->getRank()->rankImage}
{@$userProfile->getRank()->getImage()}
{/if} {/if} -- 2.20.1