{* 
 *  @author    DeoTemplate <deotemplate@gmail.com>
 *  @copyright by DeoTemplate
 *  @license   http://deotemplate.com - prestashop template provider
*}

{if isset($formAtts.has_error) && $formAtts.has_error}
	<div class="alert alert-warning deo-widget-error">{$formAtts.msg_error}</div>
{else}
	<div id="memgamenu-{$formAtts.form_id}" class="{(isset($formAtts.class)) ? $formAtts.class : ''}">
		{if count($groups)}
			<div class="tab-megamenu">
				{foreach from=$groups item=group name=group}
					<div class="tab-megamenu-item">
						<a href="#group-megamenu-tab-{$group.randkey}" class="{if $megamenu_group_tab_active == $group.randkey} active{/if}">{$group.title_fo}</a>
					</div>
				{/foreach}
			</div>
		{/if}
		<div class="navbar-header">
			<button type="button" class="navbar-toggler hidden-lg-up">
				<span class="icon-bar line-top"></span>
				<span class="icon-bar line-middle"></span>
				<span class="icon-bar line-bottom"></span>
			</button>
			<span class="text-menu-toggler">{l s='Menu' mod='deotemplate'}</span>
		</div>
	</div>
{/if}