<{$module.name}>
<{/if}>
<{/if}>
<{* build sub-menu for each module *}>
<{foreach name=submenu item=sublink from=$module.sublinks}>
<{* if there is one submenu, it is possible for .first and .last to be
true at the same time *}>
<{if $smarty.foreach.submenu.first}>