From: Marcel Werk Date: Sun, 8 Mar 2020 13:01:34 +0000 (+0100) Subject: Added additional template events in message sidebar template X-Git-Tag: 5.2.4~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9fca69efcdec9a62eb2c4de942f11281c8eedb9;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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}