bootstrap_menu.tpl 913 Bytes
Newer Older
1
<ul class="{if $bs_menu_class}{$bs_menu_class}{else}nav{/if}">
2
	{foreach from=$list item=item}
3
		{if !empty($item.children)}
4
			<li class="{$item.class|escape|default:null}{if !empty($item.selected)} active{/if}">
5
				<a href="#menu_option{$item.optionId|escape}" class="collapse-toggle" data-toggle="collapse">
6
					{tr}{$item.name}{/tr}
7
					<span class="caret"></span>
8
				</a>
9
				<ul id="menu_option{$item.optionId|escape}" class="nav collapse">
10
					{foreach from=$item.children item=sub}
11
						<li class="{$sub.class|escape|default:null}{if !empty($sub.selected)} active{/if}">
12
							<a href="{$sub.sefurl|escape}">{icon name="menuitem"} {tr}{$sub.name}{/tr}</a>
13
						</li>
14 15 16 17
					{/foreach}
				</ul>
			</li>
		{else}
18
			<li class="{$item.class|escape|default:null}{if !empty($item.selected)} active{/if}">
chealer's avatar
chealer committed
19 20
				<a href="{$item.sefurl|escape}">{tr}{$item.name}{/tr}</a>
			</li>
21 22 23
		{/if}
	{/foreach}
</ul>