Location: PHPKode > projects > JakCMS > JAKCMS_PRO_2_2_6/upload/template/jakcms/gallerysidebar.html
<?php if ($JAK_GALLERY_CAT) { ?>
	
	<?php if (isset($JAK_GALLERY_CAT) && is_array($JAK_GALLERY_CAT)) foreach($JAK_GALLERY_CAT as $carray) { 
		
		$catexistid = array($carray["catparent"]);
		
	} ?>
	
		<h4>{$tl.title.t18}</h4>
		<ul class="sidebarcat">
		<?php if (isset($JAK_GALLERY_CAT) && is_array($JAK_GALLERY_CAT)) foreach($JAK_GALLERY_CAT as $c) { ?>
		<?php if ($c["catparent"] == 0) { ?>
		<li><a href="{$BASE_URL}{$c.parseurl}" title="{$c.content|strip_tags}"><?php if ($c["catimg"]) { ?><img src="{$BASE_URL}{$c.catimg}" alt="sideimg" /> <?php } ?>{$c.name}</a> ({$c.count})
		<?php if ($catexistid) { ?>
		<ul>
		<?php if (isset($JAK_GALLERY_CAT) && is_array($JAK_GALLERY_CAT)) foreach($JAK_GALLERY_CAT as $c1) { ?>
		<?php if ($c1["catparent"] != '0' && $c1["catparent"] == $c["id"]) { ?>
		<li><a href="{$BASE_URL}{$c1.parseurl}" title="{$c1.content|strip_tags}"><?php if ($c1["catimg"]) { ?><img src="{$BASE_URL}{$c1.catimg}" alt="sideimg" /> <?php } ?>{$c1.name}</a> ({$c1.count})</li>
		<?php } } ?>
		</ul></li>
		<?php } } } ?>
		</ul>
		<div class="clear"></div>	
<?php } ?>
Return current item: JakCMS