Commit | Line | Data |
---|---|---|
1e18b5ed | 1 | {if !$__messageSidebarJavascript|isset} |
9543d9fe | 2 | <script data-relocate="true"> |
1e18b5ed MW |
3 | //<![CDATA[ |
4 | $(function() { | |
5 | WCF.Language.addObject({ | |
6 | 'wcf.user.activityPoint': '{lang}wcf.user.activityPoint{/lang}' | |
7 | }); | |
8 | ||
9 | WCF.User.Profile.ActivityPointList.init(); | |
10 | }); | |
11 | //]]> | |
12 | </script> | |
13 | {assign var=__messageSidebarJavascript value=true} | |
14 | {/if} | |
15 | ||
16 | <aside class="messageSidebar{if MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS && $userProfile->isOnline()} userOnline{/if} {if $userProfile->userID}member{else}guest{/if}"{if $userProfile->userID} itemscope="itemscope" itemtype="http://data-vocabulary.org/Person"{/if}> | |
17 | <div> | |
18 | {if $userProfile->userID} | |
19 | {assign var='username' value=$userProfile->username} | |
20 | ||
21 | <header> | |
22 | <h2 class="username"> | |
23 | <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" class="userLink" data-user-id="{@$userProfile->userID}" rel="author"> | |
2fd304c6 | 24 | <span itemprop="name">{if MESSAGE_SIDEBAR_ENABLE_USER_ONLINE_MARKING}{@$userProfile->getFormattedUsername()}{else}{$username}{/if}</span> |
1e18b5ed MW |
25 | </a> |
26 | </h2> | |
27 | ||
28 | {event name='header'} | |
29 | </header> | |
30 | ||
31 | {if MESSAGE_SIDEBAR_ENABLE_AVATAR} | |
32 | {if $userProfile->getAvatar()} | |
33 | <div class="userAvatar"> | |
34 | {capture assign='__userAvatar'}{@$userProfile->getAvatar()->getImageTag(128)}{/capture} | |
35 | <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" class="framed">{@'<img'|str_replace:'<img itemprop="photo"':$__userAvatar}</a> | |
36 | ||
37 | {if MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS && $userProfile->isOnline()}<span class="badge green badgeOnline" title="{lang}wcf.user.online.title{/lang}">{lang}wcf.user.online{/lang}</span>{/if} | |
38 | </div> | |
39 | {/if} | |
40 | {/if} | |
41 | ||
42 | {if MODULE_USER_RANK && MESSAGE_SIDEBAR_ENABLE_RANK} | |
43 | {if $userProfile->getUserTitle()} | |
44 | <div class="userTitle"> | |
45 | <p class="badge userTitleBadge{if $userProfile->getRank() && $userProfile->getRank()->cssClassName} {@$userProfile->getRank()->cssClassName}{/if}" itemprop="title">{$userProfile->getUserTitle()}</p> | |
46 | </div> | |
47 | {/if} | |
48 | {if $userProfile->getRank() && $userProfile->getRank()->rankImage} | |
49 | <div class="userRank">{@$userProfile->getRank()->getImage()}</div> | |
50 | {/if} | |
51 | {/if} | |
52 | {else} | |
53 | <header> | |
54 | <h2 class="username"> | |
55 | <span>{@$userProfile->username}</span> | |
56 | </h2> | |
57 | ||
58 | <div class="userTitle"> | |
59 | <p class="badge">{lang}wcf.user.guest{/lang}</p> | |
60 | </div> | |
61 | ||
62 | {event name='header'} | |
63 | </header> | |
64 | {/if} | |
65 | ||
66 | {event name='beforeCredits'} | |
67 | ||
68 | {if $userProfile->userID} | |
69 | {hascontent} | |
70 | <div class="userCredits"> | |
71 | <dl class="plain dataList"> | |
72 | {content} | |
d8c4ac1c | 73 | {if MODULE_LIKE && MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED && $userProfile->likesReceived} |
1e18b5ed MW |
74 | <dt>{lang}wcf.like.likesReceived{/lang}</dt> |
75 | <dd>{#$userProfile->likesReceived}</dd> | |
76 | {/if} | |
77 | ||
78 | {if MESSAGE_SIDEBAR_ENABLE_ACTIVITY_POINTS && $userProfile->activityPoints} | |
79 | <dt><a class="activityPointsDisplay jsTooltip" title="{lang}wcf.user.activityPoint.showDetails{/lang}" data-user-id="{@$userProfile->userID}">{lang}wcf.user.activityPoint{/lang}</a></dt> | |
80 | <dd>{#$userProfile->activityPoints}</dd> | |
81 | {/if} | |
82 | {event name='userCredits'} | |
d2fbf646 | 83 | {if MESSAGE_SIDEBAR_USER_OPTIONS && $userProfile->isAccessible('canViewProfile')} |
1e18b5ed MW |
84 | {assign var='__sidebarUserOptions' value=','|explode:MESSAGE_SIDEBAR_USER_OPTIONS} |
85 | {foreach from=$__sidebarUserOptions item='__sidebarUserOption'} | |
86 | {if $userProfile->getUserOption($__sidebarUserOption)} | |
5985380b MW |
87 | {assign var='__formattedUserOption' value=$userProfile->getFormattedUserOption($__sidebarUserOption)} |
88 | {if $__formattedUserOption} | |
1995ac1a | 89 | <dt>{lang}wcf.user.option.{$__sidebarUserOption}{/lang}</dt> |
5985380b | 90 | <dd{if $__sidebarUserOption == 'location'} itemprop="locality"{/if}>{@$__formattedUserOption}</dd> |
1995ac1a | 91 | {/if} |
1e18b5ed MW |
92 | {/if} |
93 | {/foreach} | |
94 | {/if} | |
95 | {/content} | |
96 | </dl> | |
97 | </div> | |
98 | {/hascontent} | |
99 | {/if} | |
100 | ||
101 | {event name='afterCredits'} | |
102 | </div> | |
103 | </aside> |