Commit | Line | Data |
---|---|---|
3bdd1b55 AE |
1 | {if !$isReply|isset} |
2 | {assign var=isReply value=false} | |
3 | {/if} | |
956745ba MW |
4 | {if !$enableMicrodata|isset} |
5 | {assign var=enableMicrodata value=false} | |
6 | {/if} | |
1e18b5ed | 7 | {if !$__messageSidebarJavascript|isset} |
1e18b5ed MW |
8 | {assign var=__messageSidebarJavascript value=true} |
9 | {/if} | |
10 | ||
3bdd1b55 | 11 | <aside class="messageSidebar{if MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS && !$isReply && $userProfile->isOnline()} userOnline{/if} {if $userProfile->userID}member{else}guest{/if}"{if $enableMicrodata} itemprop="author" itemscope itemtype="http://schema.org/Person"{/if}> |
b8eab696 | 12 | <div class="messageAuthor"> |
3321b9c6 MW |
13 | {event name='messageAuthor'} |
14 | ||
1e18b5ed MW |
15 | {if $userProfile->userID} |
16 | {assign var='username' value=$userProfile->username} | |
17 | ||
ff2d9e86 MW |
18 | {if $userProfile->getAvatar()} |
19 | <div class="userAvatar"> | |
ec18aac8 | 20 | <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}">{@$userProfile->getAvatar()->getImageTag(128)}</a> |
ff2d9e86 | 21 | |
3bdd1b55 | 22 | {if MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS && !$isReply && $userProfile->isOnline()}<span class="badge green badgeOnline" title="{lang}wcf.user.online.title{/lang}">{lang}wcf.user.online{/lang}</span>{/if} |
ff2d9e86 | 23 | </div> |
1e18b5ed MW |
24 | {/if} |
25 | ||
3321b9c6 | 26 | <div class="messageAuthorContainer"> |
956745ba MW |
27 | <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" class="username userLink" data-user-id="{@$userProfile->userID}"{if $enableMicrodata} itemprop="url"{/if}> |
28 | <span{if $enableMicrodata} itemprop="name"{/if}>{if MESSAGE_SIDEBAR_ENABLE_USER_ONLINE_MARKING}{@$userProfile->getFormattedUsername()}{else}{$username}{/if}</span> | |
b8eab696 | 29 | </a> |
3bdd1b55 AE |
30 | {if !$isReply} |
31 | {if $userProfile->banned}<span class="icon icon16 fa-lock jsTooltip jsUserBanned" title="{lang user=$userProfile}wcf.user.banned{/lang}"></span>{/if} | |
32 | ||
33 | {event name='messageAuthorContainer'} | |
34 | {/if} | |
3321b9c6 | 35 | </div> |
b8eab696 | 36 | |
3bdd1b55 | 37 | {if MODULE_USER_RANK && !$isReply} |
1e18b5ed MW |
38 | {if $userProfile->getUserTitle()} |
39 | <div class="userTitle"> | |
ec18aac8 | 40 | <span class="badge userTitleBadge{if $userProfile->getRank() && $userProfile->getRank()->cssClassName} {@$userProfile->getRank()->cssClassName}{/if}">{$userProfile->getUserTitle()}</span> |
1e18b5ed MW |
41 | </div> |
42 | {/if} | |
43 | {if $userProfile->getRank() && $userProfile->getRank()->rankImage} | |
44 | <div class="userRank">{@$userProfile->getRank()->getImage()}</div> | |
45 | {/if} | |
46 | {/if} | |
a83d788a | 47 | |
00622aec | 48 | {if !$isReply && MODULE_TROPHY && $__wcf->session->getPermission('user.profile.trophy.canSeeTrophies') && ($userProfile->isAccessible('canViewTrophies') || $userProfile->userID == $__wcf->session->userID) && $userProfile->getSpecialTrophies()|count} |
a83d788a JR |
49 | <div class="specialTrophyContainer"> |
50 | <ul> | |
51 | {foreach from=$userProfile->getSpecialTrophies() item=trophy} | |
c194c001 | 52 | <li><a href="{@$trophy->getLink()}">{@$trophy->renderTrophy(32, true)}</a></li> |
a83d788a JR |
53 | {/foreach} |
54 | </ul> | |
55 | </div> | |
56 | {/if} | |
1e18b5ed | 57 | {else} |
dc7018c8 | 58 | <div class="userAvatar"> |
c269e6f0 | 59 | <span>{@$userProfile->getAvatar()->getImageTag(128)}</span> |
dc7018c8 AE |
60 | </div> |
61 | ||
3321b9c6 | 62 | <div class="messageAuthorContainer"> |
232e5d12 MW |
63 | {if $userProfile->username} |
64 | <span class="username"{if $enableMicrodata} itemprop="name"{/if}>{$userProfile->username}</span> | |
65 | {/if} | |
1e18b5ed | 66 | |
3321b9c6 MW |
67 | {event name='messageAuthorContainer'} |
68 | </div> | |
69 | ||
70 | <div class="userTitle"> | |
71 | <span class="badge">{lang}wcf.user.guest{/lang}</span> | |
72 | </div> | |
1e18b5ed | 73 | {/if} |
1e18b5ed | 74 | </div> |
b8eab696 | 75 | |
3bdd1b55 AE |
76 | {if !$isReply} |
77 | {event name='beforeCredits'} | |
78 | ||
79 | {if $userProfile->userID} | |
80 | {hascontent} | |
81 | <div class="userCredits"> | |
82 | <dl class="plain dataList"> | |
83 | {content} | |
84 | {if MODULE_LIKE && MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED && $userProfile->likesReceived} | |
85 | <dt><a href="{link controller='User' object=$userProfile}{/link}#likes" class="jsTooltip" title="{lang user=$userProfile}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.likesReceived{/lang}</a></dt> | |
86 | <dd>{#$userProfile->likesReceived}</dd> | |
87 | {/if} | |
88 | ||
89 | {if MESSAGE_SIDEBAR_ENABLE_ACTIVITY_POINTS && $userProfile->activityPoints} | |
90 | <dt><a href="#" class="activityPointsDisplay jsTooltip" title="{lang user=$userProfile}wcf.user.activityPoint.showActivityPoints{/lang}" data-user-id="{@$userProfile->userID}">{lang}wcf.user.activityPoint{/lang}</a></dt> | |
91 | <dd>{#$userProfile->activityPoints}</dd> | |
92 | {/if} | |
93 | ||
90d4b4c9 JR |
94 | {if MODULE_TROPHY && MESSAGE_SIDEBAR_ENABLE_TROPHY_POINTS && $userProfile->trophyPoints && $__wcf->session->getPermission('user.profile.trophy.canSeeTrophies') && ($userProfile->isAccessible('canViewTrophies') || $userProfile->userID == $__wcf->session->userID)} |
95 | <dt><a href="#" class="trophyPoints jsTooltip userTrophyOverlayList" data-user-id="{$userProfile->userID}" title="{lang user=$userProfile}wcf.user.trophy.showTrophies{/lang}">{lang}wcf.user.trophy.trophyPoints{/lang}</a></dt> | |
96 | <dd>{#$userProfile->trophyPoints}</dd> | |
97 | {/if} | |
98 | ||
3bdd1b55 AE |
99 | {event name='userCredits'} |
100 | ||
101 | {if MESSAGE_SIDEBAR_USER_OPTIONS && $userProfile->isAccessible('canViewProfile')} | |
102 | {assign var='__sidebarUserOptions' value=','|explode:MESSAGE_SIDEBAR_USER_OPTIONS} | |
103 | {foreach from=$__sidebarUserOptions item='__sidebarUserOption'} | |
104 | {if $userProfile->getUserOption($__sidebarUserOption)} | |
105 | {assign var='__formattedUserOption' value=$userProfile->getFormattedUserOption($__sidebarUserOption)} | |
106 | {if $__formattedUserOption} | |
107 | <dt>{lang}wcf.user.option.{$__sidebarUserOption}{/lang}</dt> | |
108 | <dd>{@$__formattedUserOption}</dd> | |
109 | {/if} | |
b8eab696 | 110 | {/if} |
3bdd1b55 AE |
111 | {/foreach} |
112 | {/if} | |
113 | {/content} | |
114 | </dl> | |
115 | </div> | |
116 | {/hascontent} | |
117 | {/if} | |
118 | ||
119 | {event name='afterCredits'} | |
b8eab696 | 120 | {/if} |
1e18b5ed | 121 | </aside> |