| |
<#Player#> |
<#Kills#> |
<#Online#> |
|
<#Player#> |
<#Kills#> |
<#Online#> |
{foreach name='plrs' from=$pq.players item='p'}
{strip}
{* Start new row every other iteration (even) *}
{if ($smarty.foreach.plrs.iteration % 2)}
{/if}
{/strip}
| |
{$p.name|escape} |
{$p.kills} |
{$p.onlinetime|compacttime} |
{* End row every other iteration (odd) or if we're on the LAST iteration *}
{if !($smarty.foreach.plrs.iteration % 2) or $smarty.foreach.plrs.last}
{* If there are an ODD number of players, add 1 extra blank line to make it even *}
{if ($smarty.foreach.plrs.iteration % 2) } | {/if}
{/if}
{foreachelse}
<#No Players Connected#>
|
{/foreach}
| |
{if count($conf.serverip) > 1}
{/if}
|