{strip} {assign var=children value=$Site->getNavigation()} {if !isset($level)} {assign var=level value=1} {else} {assign var=level value=$level+1} {/if} {if count( $children )}

{if $homeLink && $level == 1}
- {if $homeIcon} {/if} {$Site->getAttribute('title')} {$this->getAttribute('homelink')}
{/if} {foreach from=$children item=Child}
- {assign var=subnavigation value=$Child->getNavigation()} {if $listIcon} {/if} {$Child->getAttribute('title')} {if count ( $subnavigation )} {/if}
  {if $levels === false || $levels-1 >= $level} {include file=$navTemplate Site=$Child level=$level levels=$levels } {/if}
{/foreach}

{/if} {/strip}