From: Alexander Ebert Date: Sun, 14 Jul 2019 11:20:06 +0000 (+0200) Subject: Generic event before the username X-Git-Tag: 5.2.0_Alpha_2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7dddf9578c2167b0c1554e0bfd024bfeffa54d2b;p=GitHub%2FWoltLab%2FWCF.git Generic event before the username Replaces #2946 --- diff --git a/com.woltlab.wcf/templates/boxSignedInAs.tpl b/com.woltlab.wcf/templates/boxSignedInAs.tpl index 3bd70c4300..cf7bfb3b00 100644 --- a/com.woltlab.wcf/templates/boxSignedInAs.tpl +++ b/com.woltlab.wcf/templates/boxSignedInAs.tpl @@ -3,7 +3,10 @@
-

{$__wcf->user->username}

+

+ {event name='beforeUsername'} + {$__wcf->user->username} +

{if MODULE_USER_RANK} {if $__wcf->getUserProfileHandler()->getUserTitle()}

{$__wcf->getUserProfileHandler()->getUserTitle()}

@@ -18,4 +21,4 @@ {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()->getUserProfile()}
-
\ No newline at end of file + diff --git a/com.woltlab.wcf/templates/boxStaffOnline.tpl b/com.woltlab.wcf/templates/boxStaffOnline.tpl index fe2b9172f2..6e464e7e2c 100644 --- a/com.woltlab.wcf/templates/boxStaffOnline.tpl +++ b/com.woltlab.wcf/templates/boxStaffOnline.tpl @@ -4,7 +4,10 @@
-

{$userOnline->username}

+

+ {event name='beforeUsername'} + {$userOnline->username} +

{if MODULE_USER_RANK} {if $userOnline->getUserTitle()}

{$userOnline->getUserTitle()}

diff --git a/com.woltlab.wcf/templates/recentActivityListItem.tpl b/com.woltlab.wcf/templates/recentActivityListItem.tpl index 5e609c54e9..7c847e04e5 100644 --- a/com.woltlab.wcf/templates/recentActivityListItem.tpl +++ b/com.woltlab.wcf/templates/recentActivityListItem.tpl @@ -6,6 +6,7 @@

+ {event name='beforeUsername'} {$event->getUserProfile()->username} {@$event->time|time}