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 | ||
0e98ee97 | 11 | <aside role="presentation" 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"> | |
2ee5392c | 20 | {user object=$userProfile type='avatar128' ariaHidden='true' tabindex='-1'} |
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"> |
b5332f78 | 27 | <a href="{$userProfile->getLink()}" class="username userLink" data-object-id="{@$userProfile->userID}"{if $enableMicrodata} itemprop="url"{/if}> |
e6fa5c10 | 28 | <span{if $enableMicrodata} itemprop="name"{/if}>{@$userProfile->getFormattedUsername()}</span> |
b8eab696 | 29 | </a> |
3bdd1b55 | 30 | {if !$isReply} |
ae4dd172 AE |
31 | {if $userProfile->banned} |
32 | <span class="jsTooltip jsUserBanned" title="{lang user=$userProfile}wcf.user.banned{/lang}"> | |
ab43711a | 33 | {icon name='lock'} |
ae4dd172 AE |
34 | </span> |
35 | {/if} | |
3bdd1b55 AE |
36 | |
37 | {event name='messageAuthorContainer'} | |
38 | {/if} | |
3321b9c6 | 39 | </div> |
b8eab696 | 40 | |
b9fca69e MW |
41 | {if !$isReply} |
42 | {hascontent} | |
1e18b5ed | 43 | <div class="userTitle"> |
b9fca69e MW |
44 | {content} |
45 | {event name='beforeUserTitle'} | |
46 | ||
47 | {if MODULE_USER_RANK && $userProfile->getUserTitle()} | |
48 | <span class="badge userTitleBadge{if $userProfile->getRank() && $userProfile->getRank()->cssClassName} {@$userProfile->getRank()->cssClassName}{/if}">{$userProfile->getUserTitle()}</span> | |
49 | {/if} | |
50 | ||
51 | {event name='afterUserTitle'} | |
52 | {/content} | |
1e18b5ed | 53 | </div> |
b9fca69e MW |
54 | {/hascontent} |
55 | ||
56 | {if MODULE_USER_RANK && $userProfile->getRank() && $userProfile->getRank()->rankImage} | |
1e18b5ed MW |
57 | <div class="userRank">{@$userProfile->getRank()->getImage()}</div> |
58 | {/if} | |
59 | {/if} | |
a83d788a | 60 | |
00622aec | 61 | {if !$isReply && MODULE_TROPHY && $__wcf->session->getPermission('user.profile.trophy.canSeeTrophies') && ($userProfile->isAccessible('canViewTrophies') || $userProfile->userID == $__wcf->session->userID) && $userProfile->getSpecialTrophies()|count} |
a83d788a JR |
62 | <div class="specialTrophyContainer"> |
63 | <ul> | |
64 | {foreach from=$userProfile->getSpecialTrophies() item=trophy} | |
c194c001 | 65 | <li><a href="{@$trophy->getLink()}">{@$trophy->renderTrophy(32, true)}</a></li> |
a83d788a JR |
66 | {/foreach} |
67 | </ul> | |
68 | </div> | |
69 | {/if} | |
1e18b5ed | 70 | {else} |
dc7018c8 | 71 | <div class="userAvatar"> |
c269e6f0 | 72 | <span>{@$userProfile->getAvatar()->getImageTag(128)}</span> |
dc7018c8 AE |
73 | </div> |
74 | ||
3321b9c6 | 75 | <div class="messageAuthorContainer"> |
232e5d12 MW |
76 | {if $userProfile->username} |
77 | <span class="username"{if $enableMicrodata} itemprop="name"{/if}>{$userProfile->username}</span> | |
78 | {/if} | |
1e18b5ed | 79 | |
3321b9c6 MW |
80 | {event name='messageAuthorContainer'} |
81 | </div> | |
82 | ||
83 | <div class="userTitle"> | |
84 | <span class="badge">{lang}wcf.user.guest{/lang}</span> | |
85 | </div> | |
1e18b5ed | 86 | {/if} |
1e18b5ed | 87 | </div> |
b8eab696 | 88 | |
3bdd1b55 AE |
89 | {if !$isReply} |
90 | {event name='beforeCredits'} | |
91 | ||
92 | {if $userProfile->userID} | |
93 | {hascontent} | |
94 | <div class="userCredits"> | |
95 | <dl class="plain dataList"> | |
96 | {content} | |
b3745114 | 97 | {if MODULE_LIKE && MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED && !$isReply && $userProfile->likesReceived} |
72c85f64 | 98 | <dt><a href="{$userProfile->getLink()}#likes" class="jsTooltip" title="{lang user=$userProfile}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.likesReceived{/lang}</a></dt> |
b3745114 | 99 | <dd>{#$userProfile->likesReceived}</dd> |
fdcbfcef JR |
100 | {/if} |
101 | ||
3bdd1b55 AE |
102 | {if MESSAGE_SIDEBAR_ENABLE_ACTIVITY_POINTS && $userProfile->activityPoints} |
103 | <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> | |
104 | <dd>{#$userProfile->activityPoints}</dd> | |
105 | {/if} | |
106 | ||
90d4b4c9 JR |
107 | {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)} |
108 | <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> | |
109 | <dd>{#$userProfile->trophyPoints}</dd> | |
110 | {/if} | |
111 | ||
bd1067ab AE |
112 | {if MESSAGE_SIDEBAR_ENABLE_ARTICLES && $userProfile->articles} |
113 | <dt><a href="{link controller='ArticleList' userID=$userProfile->userID}{/link}" class="jsTooltip" title="{lang user=$userProfile}wcf.article.showArticlesWritten{/lang}">{lang}wcf.user.articles{/lang}</a></dt> | |
114 | <dd>{#$userProfile->articles}</dd> | |
115 | {/if} | |
116 | ||
3bdd1b55 AE |
117 | {event name='userCredits'} |
118 | ||
119 | {if MESSAGE_SIDEBAR_USER_OPTIONS && $userProfile->isAccessible('canViewProfile')} | |
120 | {assign var='__sidebarUserOptions' value=','|explode:MESSAGE_SIDEBAR_USER_OPTIONS} | |
121 | {foreach from=$__sidebarUserOptions item='__sidebarUserOption'} | |
122 | {if $userProfile->getUserOption($__sidebarUserOption)} | |
123 | {assign var='__formattedUserOption' value=$userProfile->getFormattedUserOption($__sidebarUserOption)} | |
124 | {if $__formattedUserOption} | |
125 | <dt>{lang}wcf.user.option.{$__sidebarUserOption}{/lang}</dt> | |
126 | <dd>{@$__formattedUserOption}</dd> | |
127 | {/if} | |
b8eab696 | 128 | {/if} |
3bdd1b55 AE |
129 | {/foreach} |
130 | {/if} | |
131 | {/content} | |
132 | </dl> | |
133 | </div> | |
134 | {/hascontent} | |
135 | {/if} | |
136 | ||
137 | {event name='afterCredits'} | |
b8eab696 | 138 | {/if} |
1e18b5ed | 139 | </aside> |