105 lines
4.8 KiB
Smarty
Raw Normal View History

2016-10-10 15:24:25 +02:00
<!-- Menu -->
<nav id="mainmenu" role="navigation" class="no-print">
<div >
{if isset($menuLinks) && !empty($menuLinks)}
<ul class="menu-content valign-middle">
<li class="hidden-lg hidden-md close-tab">
<a href="#">
<span>{l s='Fermer' mod='advmenu'}</span>
<i class="icon icon-cross"></i>
</a>
</li>
<!-- Liens racine du menu -->
{foreach $menuLinks item='rootLink' name='rootlink'}
<li>
{if !empty($rootLink.url)}
<a title="{$rootLink.title}" href="{if !$rootLink.external}{$base_uri}{/if}{$rootLink.url}" {if !empty($rootLink.classbloc)}class="{$rootLink.classbloc}"{/if} {if $rootLink.external}target="_blank"{/if}>{$rootLink.title}</a>
{else}
<span {if !empty($rootLink.classbloc)}class="{$rootLink.classbloc}"{/if}>{$rootLink.title}</span>
{/if}
<!-- Lien enfants (représentent les colonnes...) -->
{if isset($rootLink.children) && !empty($rootLink.children)}
<div class="submenu ctn">
<div class="inner">
<div class="{if !empty($rootLink.url)} padded{/if}">
<div class="row overflow">
<div class="md8 sm12 links">
<div class="close-tab hidden-lg hidden-md">
<a href="#">
<i class="icon icon-arrow-left"></i>{l s='Back' mod='advmenu'}
</a>
</div>
<div class="row">
{foreach $rootLink.children item='columnLink' name='columnLink'}
<div class="md6 sm6 column">
{if !empty($columnLink.url)}
<a {if !empty($columnLink.classbloc)}class="{$columnLink.classbloc}"{/if} href="{$base_uri}{$lang_iso}{$columnLink.url}">{$columnLink.title}</a>
{else}
<span {if !empty($columnLink.classbloc)}class="{$columnLink.classbloc}"{/if}>{$columnLink.title}</span>
{/if}
<!-- Lien enfants -->
{if isset($columnLink.children) && !empty($columnLink.children)}
<ul>
{foreach $columnLink.children item='childrenLink' name='childrenLink'}
<li>
{if !empty($childrenLink.url)}
<a href="{$base_uri}{$lang_iso}{$childrenLink.url}" {if !empty($childrenLink.classbloc)}class="{$childrenLink.classbloc}"{/if}>
{$childrenLink.title}
<i class="icon-arrow-full animated"></i>
</a>
{else}
<span {if !empty($childrenLink.classbloc)}class="{$childrenLink.classbloc}"{/if}>{$childrenLink.title}</span>
{/if}
</li>
{/foreach}
</ul>
{/if}
</div>
{/foreach}
</div>
</div>
<div class="md4 sm4 cta-menu">
<!-- produit à mettre -->
{foreach $rootLink.text item=desc key=key}
{if $desc && $rootLink.id_link}
{if !empty($rootLink.text)}
<a href="{substr($rootLink.url, 3)}">
{$desc}
</a>
{/if}
{/if}
{/foreach}
{*{if !empty($rootLink.url)}*}
{*<div class="see-more">*}
{*<a href="{$rootLink.url}" class="btn">*}
{*<span>{l s='Tout l\'univers '}<br/>{$rootLink.title}</span>*}
{*</a>*}
{*</div>*}
{*{/if}*}
</div>
</div>
</div>
</div>
</div>
{/if}
<div class="overlay-submenu"></div>
</li>
{/foreach}
</ul>
{/if}
</div>
</nav>
<!-- <div id="menu-mobile" class="hidden-lg hidden-md animated-full">
<a href="#" class="hidden-lg hidden-md">
<i class="icon icon-menu"></i>
<span>{l s='Menu' mod='advmenu'}</span>
</a>
</div> -->
<!--/ Menu -->