summaryrefslogtreecommitdiff
path: root/templates/board_cat.tpl
blob: c311ffc57eeeb5ae1af3bf059c9ae10440a89e08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{strip}
	<div class="indent">
		{if $child.data.title}
			<a href="javascript:BitBase.toggle('bcat{$child.data.content_id|escape}','block',true);"><h{$heading|default:2}>{$child.data.title|escape}</h{$heading|default:2}></a>
		{elseif $gBitSystem->isPackageActive('pigeonholes') and count($ns) > 1}
			<a href="javascript:BitBase.toggle('bcatnone','block',true);"><h{$heading|default:2}>Uncategorized</h{$heading|default:2}></a>
		{/if}
		<div id="bcat{$child.data.content_id|default:none}">
			{if count($child.members) > 0}
				{include file="bitpackage:boards/board_table.tpl" boardsList=$child.members heading=$heading}
			{/if}

			{if !empty($child.sub_count) and count($child.children)>0}
				{foreach from=$child.children item=schild}
					{include file="bitpackage:boards/board_cat.tpl" child=$schild color=$color}
				{/foreach}
			{/if}
		</div>
	</div>
{/strip}