Add missing `license` element in `package.xsd`
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / messageSidebar.tpl
1 {if !$isReply|isset}
2 {assign var=isReply value=false}
3 {/if}
4 {if !$enableMicrodata|isset}
5 {assign var=enableMicrodata value=false}
6 {/if}
7 {if !$__messageSidebarJavascript|isset}
8 {assign var=__messageSidebarJavascript value=true}
9 {/if}
10
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}>
12 <div class="messageAuthor">
13 {event name='messageAuthor'}
14
15 {if $userProfile->userID}
16 {assign var='username' value=$userProfile->username}
17
18 {if $userProfile->getAvatar()}
19 <div class="userAvatar">
20 <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" aria-hidden="true">{@$userProfile->getAvatar()->getImageTag(128)}</a>
21
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}
23 </div>
24 {/if}
25
26 <div class="messageAuthorContainer">
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>
29 </a>
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}
35 </div>
36
37 {if !$isReply}
38 {hascontent}
39 <div class="userTitle">
40 {content}
41 {event name='beforeUserTitle'}
42
43 {if MODULE_USER_RANK && $userProfile->getUserTitle()}
44 <span class="badge userTitleBadge{if $userProfile->getRank() && $userProfile->getRank()->cssClassName} {@$userProfile->getRank()->cssClassName}{/if}">{$userProfile->getUserTitle()}</span>
45 {/if}
46
47 {event name='afterUserTitle'}
48 {/content}
49 </div>
50 {/hascontent}
51
52 {if MODULE_USER_RANK && $userProfile->getRank() && $userProfile->getRank()->rankImage}
53 <div class="userRank">{@$userProfile->getRank()->getImage()}</div>
54 {/if}
55 {/if}
56
57 {if !$isReply && MODULE_TROPHY && $__wcf->session->getPermission('user.profile.trophy.canSeeTrophies') && ($userProfile->isAccessible('canViewTrophies') || $userProfile->userID == $__wcf->session->userID) && $userProfile->getSpecialTrophies()|count}
58 <div class="specialTrophyContainer">
59 <ul>
60 {foreach from=$userProfile->getSpecialTrophies() item=trophy}
61 <li><a href="{@$trophy->getLink()}">{@$trophy->renderTrophy(32, true)}</a></li>
62 {/foreach}
63 </ul>
64 </div>
65 {/if}
66 {else}
67 <div class="userAvatar">
68 <span>{@$userProfile->getAvatar()->getImageTag(128)}</span>
69 </div>
70
71 <div class="messageAuthorContainer">
72 {if $userProfile->username}
73 <span class="username"{if $enableMicrodata} itemprop="name"{/if}>{$userProfile->username}</span>
74 {/if}
75
76 {event name='messageAuthorContainer'}
77 </div>
78
79 <div class="userTitle">
80 <span class="badge">{lang}wcf.user.guest{/lang}</span>
81 </div>
82 {/if}
83 </div>
84
85 {if !$isReply}
86 {event name='beforeCredits'}
87
88 {if $userProfile->userID}
89 {hascontent}
90 <div class="userCredits">
91 <dl class="plain dataList">
92 {content}
93 {if MODULE_LIKE && MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED && !$isReply && $userProfile->likesReceived}
94 <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>
95 <dd>{#$userProfile->likesReceived}</dd>
96 {/if}
97
98 {if MESSAGE_SIDEBAR_ENABLE_ACTIVITY_POINTS && $userProfile->activityPoints}
99 <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>
100 <dd>{#$userProfile->activityPoints}</dd>
101 {/if}
102
103 {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)}
104 <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>
105 <dd>{#$userProfile->trophyPoints}</dd>
106 {/if}
107
108 {if MESSAGE_SIDEBAR_ENABLE_ARTICLES && $userProfile->articles}
109 <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>
110 <dd>{#$userProfile->articles}</dd>
111 {/if}
112
113 {event name='userCredits'}
114
115 {if MESSAGE_SIDEBAR_USER_OPTIONS && $userProfile->isAccessible('canViewProfile')}
116 {assign var='__sidebarUserOptions' value=','|explode:MESSAGE_SIDEBAR_USER_OPTIONS}
117 {foreach from=$__sidebarUserOptions item='__sidebarUserOption'}
118 {if $userProfile->getUserOption($__sidebarUserOption)}
119 {assign var='__formattedUserOption' value=$userProfile->getFormattedUserOption($__sidebarUserOption)}
120 {if $__formattedUserOption}
121 <dt>{lang}wcf.user.option.{$__sidebarUserOption}{/lang}</dt>
122 <dd>{@$__formattedUserOption}</dd>
123 {/if}
124 {/if}
125 {/foreach}
126 {/if}
127 {/content}
128 </dl>
129 </div>
130 {/hascontent}
131 {/if}
132
133 {event name='afterCredits'}
134 {/if}
135 </aside>