{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 $level > 1}
{/if}

{foreach from=$children item=Child}
- {if count($Child->getNavigation())} {* With children *} {if $ActiveSite->getId() == $Child->getId()} {else} {/if} {else} {* Without children *} {/if} {$Child->getAttribute('title')}
  {include file="`$FileMenu`" Site=$Child ActiveSite=$ActiveSite level=$level }
{/foreach}

{if $level > 1}
{/if} {/if}