Advertisement
Guest User

Plik category-tree-branch.php

a guest
Oct 22nd, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <li class="{if $node.children|@count > 0}sub{/if}{if isset($last) && $last == 'true'} last{/if}">
  2. <a href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if}>{$node.name|escape:html:'UTF-8'}</a>
  3. {if $node.children|@count > 0}
  4. <ul class="subcat">
  5. {foreach from=$node.children item=child name=categoryTreeBranch}
  6. {if isset($smarty.foreach.categoryTreeBranch) && $smarty.foreach.categoryTreeBranch.last}
  7. {include file="$branche_tpl_path" node=$child last='true'}
  8. {else}
  9. {include file="$branche_tpl_path" node=$child last='false'}
  10. {/if}
  11. {/foreach}
  12. </ul>
  13. {/if}
  14. </li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement