| 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 | {user object=$userProfile type='avatar128' ariaHidden='true' tabindex='-1'} |
| 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="{$userProfile->getLink()}" class="username userLink" data-object-id="{@$userProfile->userID}"{if $enableMicrodata} itemprop="url"{/if}> |
| 28 | <span{if $enableMicrodata} itemprop="name"{/if}>{@$userProfile->getFormattedUsername()}</span> |
| 29 | </a> |
| 30 | {if !$isReply} |
| 31 | {if $userProfile->banned} |
| 32 | <span class="jsTooltip jsUserBanned" title="{lang user=$userProfile}wcf.user.banned{/lang}"> |
| 33 | {icon name='lock'} |
| 34 | </span> |
| 35 | {/if} |
| 36 | |
| 37 | {event name='messageAuthorContainer'} |
| 38 | {/if} |
| 39 | </div> |
| 40 | |
| 41 | {if !$isReply} |
| 42 | {hascontent} |
| 43 | <div class="userTitle"> |
| 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} |
| 53 | </div> |
| 54 | {/hascontent} |
| 55 | |
| 56 | {if MODULE_USER_RANK && $userProfile->getRank() && $userProfile->getRank()->rankImage} |
| 57 | <div class="userRank">{@$userProfile->getRank()->getImage()}</div> |
| 58 | {/if} |
| 59 | {/if} |
| 60 | |
| 61 | {if !$isReply && MODULE_TROPHY && $__wcf->session->getPermission('user.profile.trophy.canSeeTrophies') && ($userProfile->isAccessible('canViewTrophies') || $userProfile->userID == $__wcf->session->userID) && $userProfile->getSpecialTrophies()|count} |
| 62 | <div class="specialTrophyContainer"> |
| 63 | <ul> |
| 64 | {foreach from=$userProfile->getSpecialTrophies() item=trophy} |
| 65 | <li><a href="{@$trophy->getLink()}">{@$trophy->renderTrophy(32, true)}</a></li> |
| 66 | {/foreach} |
| 67 | </ul> |
| 68 | </div> |
| 69 | {/if} |
| 70 | {else} |
| 71 | <div class="userAvatar"> |
| 72 | <span>{@$userProfile->getAvatar()->getImageTag(128)}</span> |
| 73 | </div> |
| 74 | |
| 75 | <div class="messageAuthorContainer"> |
| 76 | {if $userProfile->username} |
| 77 | <span class="username"{if $enableMicrodata} itemprop="name"{/if}>{$userProfile->username}</span> |
| 78 | {/if} |
| 79 | |
| 80 | {event name='messageAuthorContainer'} |
| 81 | </div> |
| 82 | |
| 83 | <div class="userTitle"> |
| 84 | <span class="badge">{lang}wcf.user.guest{/lang}</span> |
| 85 | </div> |
| 86 | {/if} |
| 87 | </div> |
| 88 | |
| 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} |
| 97 | {if MODULE_LIKE && MESSAGE_SIDEBAR_ENABLE_LIKES_RECEIVED && !$isReply && $userProfile->likesReceived} |
| 98 | <dt><a href="{$userProfile->getLink()}#likes" class="jsTooltip" title="{lang user=$userProfile}wcf.like.showLikesReceived{/lang}">{lang}wcf.like.likesReceived{/lang}</a></dt> |
| 99 | <dd>{#$userProfile->likesReceived}</dd> |
| 100 | {/if} |
| 101 | |
| 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 | |
| 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 | |
| 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 | |
| 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} |
| 128 | {/if} |
| 129 | {/foreach} |
| 130 | {/if} |
| 131 | {/content} |
| 132 | </dl> |
| 133 | </div> |
| 134 | {/hascontent} |
| 135 | {/if} |
| 136 | |
| 137 | {event name='afterCredits'} |
| 138 | {/if} |
| 139 | </aside> |