<div class="row">
  <{foreach from=$subcategories item=cat key=count}>
    <div class="one fourth two-up-mobile">
      <{if $cat.imgurl != ""}>
        <a href="<{$mod_url}>/index.php?page=viewcat&cid=<{$cat.cid}>">
          <img src="<{$cat.imgurl}>" width="120" border="0" alt="" />
        </a>
      <{else}>
        <a href="<{$mod_url}>/index.php?page=viewcat&cid=<{$cat.cid}>">
          <i class="icon-folder-open"></i>
        </a>
      <{/if}>
      <a href="<{$mod_url}>/index.php?page=viewcat&cid=<{$cat.cid}>"><span style="font:bold 150%;"><{$cat.title}></span></a>&nbsp;<{$lang_total}><{$cat.photo_total_sum}>&nbsp;(<{$cat.photo_small_sum}>)
      <br />
      <{foreach from=$cat.subcategories item=subcat}>
        <{if $subcat.number_of_subcat}>
          <a href="<{$mod_url}>/index.php?page=viewcat&cid=<{$subcat.cid}>"><i class="icon-folder-open-alt"></i><{$subcat.title}><i class="icon-folder-close-alt"></i></a><br />
        <{else}>
          <a href="<{$mod_url}>/index.php?page=viewcat&cid=<{$subcat.cid}>"><i class="icon-folder-open-alt"></i><{$subcat.title}></a>&nbsp;(<{$subcat.photo_small_sum}>)<br />
        <{/if}>
      <{/foreach}>
		</div>
  <{/foreach}>
</div>
