<{if $auto_mainmenu}>
    <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="index.php">
            <{$smarty.const.THEME_MODULE0}>
            <span class="caret"></span>
        </a>
        <ul class="dropdown-menu" role="menu">
            <{foreach from=$main_menu_var item=menu}>
                <li><a href="<{$menu.url}>"><span class="fa <{$menu.icon}>" target="<{$menu.target}>"></span> <{$menu.title}></a></li>
            <{/foreach}>
        </ul>
    </li>
<{/if}>