Skip to content

Instantly share code, notes, and snippets.

@phase
Created March 25, 2016 08:21
Show Gist options
  • Save phase/ba2df6805ab90dac746d to your computer and use it in GitHub Desktop.
Save phase/ba2df6805ab90dac746d to your computer and use it in GitHub Desktop.
List Subforums in Blargboard
{foreach $categories as $cat}
{foreach $cat.forums as $forum}
<tr class="cell1">
<td class="cell2 newMarker">{$forum.new}</td>
<td>
<h4{if $forum.ignored} class="ignored"{/if}>{$forum.link}</h4>
<span class="smallFonts{if $forum.ignored} ignored{/if}">
{$forum.description}
{if $forum.localmods}<br>Moderated by: {$forum.localmods}{/if}
</span>
</td>
<td class="center cell2"><span{if $forum.ignored} class="ignored"{/if}>{$forum.threads}</span></td>
<td class="center cell2"><span{if $forum.ignored} class="ignored"{/if}>{$forum.posts}</span></td>
<td class="center smallFonts">
<span{if $forum.ignored} class="ignored"{/if}>
{if $forum.lastpostdate}
{$forum.lastpostdate}<br>
by {$forum.lastpostuser} <a href="{$forum.lastpostlink}">&raquo;</a>
{else}
&mdash;
{/if}
</span>
</td>
</tr>
{/foreach}
{/foreach}