<!-- 全局置顶的帖子 -->
{php}
	$lists_top = \app\forum\model\Thread::with('user') -> where(['status'=>['eq',1],'top'=>['eq',2]]) -> order('id desc') -> limit(100) -> select();
{/php}
{if condition="count($lists_top)"}
	{foreach name='lists_top' item='vo'}
		<tr>
			<td>{notempty name='vo.user.nickname'}<a href="{$vo.user.space_url}" class="text-overflow"><img src="{$vo.user.avatar|thumb=14,14,3}" width="14" height="14" alt=""> {$vo.user.nickname}</a>{else}<img src="__ROOT__/system/image/avatar.gif" width="14" height="14" alt=""> 游客{/notempty}</td>
			<td>
				<span class="text-danger"><b>全局置顶</b></span>
				<a href="{$vo.url}" style="{$vo.style}">{$vo.title}</a>
			</td>
			<td class="hidden-xs">{$vo.create_time|date='Y-m-d H:i',###}</td>
			<td class="hidden-xs">{$vo.views}</td>
			<td class="hidden-xs">{$vo.rethreads}</td>
			<td class="hidden-xs">{$vo.rethread_time|date='Y-m-d H:i',###}</td>
		</tr>
	{/foreach}
{/if}