Generic event before the username
authorAlexander Ebert <ebert@woltlab.com>
Sun, 14 Jul 2019 11:20:06 +0000 (13:20 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 14 Jul 2019 11:20:06 +0000 (13:20 +0200)
Replaces #2946

com.woltlab.wcf/templates/boxSignedInAs.tpl
com.woltlab.wcf/templates/boxStaffOnline.tpl
com.woltlab.wcf/templates/recentActivityListItem.tpl

index 3bd70c43006988e2c8c6dfa620fb38eb7a2940d3..cf7bfb3b007362370cc909cf995bce231187cedf 100644 (file)
@@ -3,7 +3,10 @@
        
        <div>
                <div class="containerHeadline">
-                       <h3><a href="{link controller='User' object=$__wcf->user}{/link}">{$__wcf->user->username}</a></h3>
+                       <h3>
+                               {event name='beforeUsername'}
+                               <a href="{link controller='User' object=$__wcf->user}{/link}">{$__wcf->user->username}</a>
+                       </h3>
                        {if MODULE_USER_RANK}
                                {if $__wcf->getUserProfileHandler()->getUserTitle()}
                                        <p><span class="badge userTitleBadge{if $__wcf->getUserProfileHandler()->getRank() && $__wcf->getUserProfileHandler()->getRank()->cssClassName} {@$__wcf->getUserProfileHandler()->getRank()->cssClassName}{/if}">{$__wcf->getUserProfileHandler()->getUserTitle()}</span></p>
@@ -18,4 +21,4 @@
                        {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()->getUserProfile()}
                </dl>
        </div>
-</div>
\ No newline at end of file
+</div>
index fe2b9172f245bbcd71ec0355f6d0d760de25da58..6e464e7e2cc8c6226bc4a37c92305e7270126fb6 100644 (file)
@@ -4,7 +4,10 @@
                        <a href="{link controller='User' object=$userOnline}{/link}" aria-hidden="true">{@$userOnline->getAvatar()->getImageTag(32)}</a>
                        
                        <div class="sidebarItemTitle">
-                               <h3><a href="{link controller='User' object=$userOnline}{/link}" class="userLink" data-user-id="{@$userOnline->userID}">{$userOnline->username}</a></h3>
+                               <h3>
+                                       {event name='beforeUsername'}
+                                       <a href="{link controller='User' object=$userOnline}{/link}" class="userLink" data-user-id="{@$userOnline->userID}">{$userOnline->username}</a>
+                               </h3>
                                {if MODULE_USER_RANK}
                                        {if $userOnline->getUserTitle()}
                                                <p><span class="badge userTitleBadge{if $userOnline->getRank() && $userOnline->getRank()->cssClassName} {@$userOnline->getRank()->cssClassName}{/if}">{$userOnline->getUserTitle()}</span></p>
index 5e609c54e9e934ba972a7cb00c2023046d6d9d19..7c847e04e51488834584732f9f8d476201892bde 100644 (file)
@@ -6,6 +6,7 @@
                        <div>
                                <div class="containerHeadline">
                                        <h3>
+                                               {event name='beforeUsername'}
                                                <a href="{link controller='User' object=$event->getUserProfile()}{/link}" class="userLink" data-user-id="{@$event->getUserProfile()->userID}">{$event->getUserProfile()->username}</a>
                                                <small class="separatorLeft">{@$event->time|time}</small>
                                        </h3>