Merge branch '3.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / userSidebar.tpl
CommitLineData
93823e40
MW
1{if !$user->isProtected()}
2 {if $followingCount}
af3d18c7 3 <section class="box" data-static-box-identifier="com.woltlab.wcf.UserProfileFollowing">
929f7e47 4 <h2 class="boxTitle">{lang}wcf.user.profile.following{/lang} <span class="badge">{#$followingCount}</span></h2>
320f4a6d 5
929f7e47
MW
6 <div class="boxContent">
7 <ul class="userAvatarList">
93823e40 8 {foreach from=$following item=followingUser}
95961bdf 9 <li><a href="{link controller='User' object=$followingUser}{/link}" title="{$followingUser->username}" class="jsTooltip">{@$followingUser->getAvatar()->getImageTag(48)}</a></li>
93823e40
MW
10 {/foreach}
11 </ul>
320f4a6d 12
cd358fd9 13 {if $followingCount > 7}
93823e40
MW
14 <a id="followingAll" class="button small more jsOnly">{lang}wcf.global.button.showAll{/lang}</a>
15 {/if}
16 </div>
b8eab696 17 </section>
93823e40
MW
18 {/if}
19
20 {if $followerCount}
af3d18c7 21 <section class="box" data-static-box-identifier="com.woltlab.wcf.UserProfileFollowers">
929f7e47 22 <h2 class="boxTitle">{lang}wcf.user.profile.followers{/lang} <span class="badge">{#$followerCount}</span></h2>
93823e40 23
929f7e47
MW
24 <div class="boxContent">
25 <ul class="userAvatarList">
93823e40 26 {foreach from=$followers item=follower}
95961bdf 27 <li><a href="{link controller='User' object=$follower}{/link}" title="{$follower->username}" class="jsTooltip">{@$follower->getAvatar()->getImageTag(48)}</a></li>
93823e40
MW
28 {/foreach}
29 </ul>
30
cd358fd9 31 {if $followerCount > 7}
93823e40
MW
32 <a id="followerAll" class="button small more jsOnly">{lang}wcf.global.button.showAll{/lang}</a>
33 {/if}
34 </div>
b8eab696 35 </section>
93823e40
MW
36 {/if}
37
38 {if $visitorCount}
af3d18c7 39 <section class="box" data-static-box-identifier="com.woltlab.wcf.UserProfileVisitors">
929f7e47 40 <h2 class="boxTitle">{lang}wcf.user.profile.visitors{/lang} <span class="badge">{#$visitorCount}</span></h2>
93823e40 41
929f7e47
MW
42 <div class="boxContent">
43 <ul class="userAvatarList">
93823e40 44 {foreach from=$visitors item=visitor}
95961bdf 45 <li><a href="{link controller='User' object=$visitor}{/link}" title="{$visitor->username} ({@$visitor->time|plainTime})" class="jsTooltip">{@$visitor->getAvatar()->getImageTag(48)}</a></li>
93823e40
MW
46 {/foreach}
47 </ul>
48
cd358fd9 49 {if $visitorCount > 7}
93823e40
MW
50 <a id="visitorAll" class="button small more jsOnly">{lang}wcf.global.button.showAll{/lang}</a>
51 {/if}
52 </div>
b8eab696 53 </section>
93823e40
MW
54 {/if}
55
56 {event name='boxes'}
320f4a6d 57{/if}