Ups
Sollte so gehen, (eigentlich)
Code
<div>
<ul class="containerBoxList tripleColumned">
<li>
<div class="marginTop tabularBox top5Box tabularBoxTitle messageGroupList jsClipboardContainer"
data-type="com.woltlab.wbb.thread">
<header>
<h2>{lang}de.wbb-elite.top5.poster{/lang}</h2>
</header>
<table class="table">
<thead>
<tr>
<th class="columnTitle columnUsername">{lang}wcf.user.username{/lang}</th>
<th class="columnDigits columnPosts">{lang}wbb.post.posts{/lang}</th>
</tr>
</thead>
<tbody>
{foreach from=$topPoster item="user"}
<tr>
<td class="columnTitle">
<a href="{link controller="User" object=$user}{/link}" class="userLink"
data-user-id="{@$user->userID}">{$user->username}</a>
</td>
<td class="columnDigits">
{#$user->wbbPosts}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</li>
<li>
<div class="marginTop tabularBox top5Box tabularBoxTitle messageGroupList jsClipboardContainer"
data-type="com.woltlab.wbb.thread">
<header>
<h2>{lang}de.wbb-elite.top5.member{/lang}</h2>
</header>
<table class="table">
<thead>
<tr>
<th class="columnTitle columnUsername">{lang}wcf.user.username{/lang}</th>
<th class="columnDigits columnPosts">{lang}wbb.post.posts{/lang}</th>
</tr>
</thead>
<tbody>
{foreach from=$newUser item="user"}
<tr>
<td class="columnTitle">
<a href="{link controller="User" object=$user}{/link}" class="userLink"
data-user-id="{@$user->userID}">{$user->username}</a>
</td>
<td class="columnDigits">
{#$user->wbbPosts}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</li>
<li>
<div class="marginTop tabularBox top5Box tabularBoxTitle messageGroupList jsClipboardContainer"
data-type="com.woltlab.wbb.thread">
<header>
<h2>{lang}de.wbb-elite.top5.posts{/lang}</h2>
</header>
<table class="table">
<thead>
<tr>
<th class="columnTitle columnSubject">{lang}wbb.thread.topic{/lang}</th>
<th class="columnTitle columnUsername">{lang}wcf.user.username{/lang}</th>
<th class="columnDigits columnViews">{lang}wbb.thread.views{/lang}</th>
</tr>
</thead>
<tbody>
{foreach from=$postList item="latestPost"}
<tr>
<td class="columnTitle">
<a href="{link controller="Thread" object=$latestPost->getDecoratedObject()}action=firstNew{/link}"
class="wbbTopicLink"{if $latestPost->getBoard()->getPermission('canReadThread')} class="wbbTopicLink"{/if}
data-thread-id="{@$latestPost->threadID}" data-sort-order="DESC"
title="{$latestPost->topic}">{$latestPost->topic}</a>
</td>
<td class="columnTitle">
<a href="{link controller='User' id=$latestPost->lastPosterID title=$latestPost->lastPoster}{/link}"
class="userLink"
data-user-id="{@$latestPost->lastPosterID}">{$latestPost->lastPoster}</a>
</td>
<td class="columnDigits">
{#$latestPost->views}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</li>
</ul>
{if $topThread || $bestRateThread}
<ul class="containerBoxList">
<li>
<div class="marginTop top5BoxBest tabularBoxTitle tabularBox messageGroupList">
<header>
<ul class="containerBoxList doubleColumned">
<li class="textLeft">
{if $topThread}
{lang}de.wbb-elite.top5.thread{/lang}:
<a
href="{link controller="Thread" object=$topThread->getDecoratedObject()}{/link}"
{if $topThread->getBoard()->getPermission('canReadThread')} class="wbbTopicLink"{/if}
data-thread-id="{@$topThread->threadID}"
data-sort-order="DESC">{$topThread->topic}</a>
| {#$topThread->views}
{lang}wbb.thread.views{/lang}
{/if}
</li>
<li class="textRight">
{if $bestRateThread}
{lang}de.wbb-elite.top5.thread.rate{/lang}:
<a
href="{link controller="Thread" object=$bestRateThread->getDecoratedObject()}{/link}"
{if $topThread->getBoard()->getPermission('canReadThread')} class="wbbTopicLink"{/if}
data-thread-id="{@$topThread->threadID}"
data-sort-order="DESC">{$bestRateThread->topic}</a>
<span class="likesBadge badge green">+{#$bestRateThread->cumulativeLikes}</span>
{/if}
</li>
</ul>
</header>
</div>
</li>
</ul>
{/if}
</div>
Alles anzeigen