{foreach $children as $Child} {assign var=hasUrl value=1} {if !$Child->getUrl()} {assign var=hasUrl value=0} {/if}
{if $hasUrl} getTarget()}target="{$Child->getTarget()}"{/if} > {if $Child->getIcon() && $Child->getIcon()|strpos:'image.php' !== 0 } {image src=$Child->getIcon() onlyicon=1} {/if} {$Child->getTitle()} {if $Child->getShort()}
{$Child->getShort()}
{/if} {else} getType() ==='QUI\Menu\Independent\Items\Custom' && $Child->getClickEvent()}onclick="{$Child->getClickEvent()}" data-name="custom-event"{/if} > {if $Child->getIcon() && $Child->getIcon()|strpos:'image.php' !== 0 } {image src=$Child->getIcon() onlyicon=1} {/if} {$Child->getTitle()} {if $Child->getShort()}
{$Child->getShort()}
{/if} {/if}
{/foreach}