{% trans_default_domain 'front_default' %} {% set template = configuration.template %} {% set links = tree.main is defined ? tree.main : [] %} {% if links %}
{% if logo %}
{{ imgRender({'src': asset(logo), 'width': 80, 'height': 80, 'title': companyName, 'id': 'main-navigation-logo'}) }}
{% endif %}
{% set indexActive = masterRequest().requestUri == '' or masterRequest().requestUri == '/' %} {% if isMobile() or isTablet() %}
{{ "Accueil"|trans|raw }}
{% endif %} {% for link in links %} {% include 'front/' ~ template ~ '/actions/menu/main-element.html.twig' with {'link': link, 'tree': tree, 'dropdownItem': false, 'template': template} only %} {% endfor %} {% if havRegistartion and isMobile() or havRegistartion and isTablet() %}
{{ "Inscrivez-vous"|trans|raw }}
{% endif %}
{% if multiLingues and isMobile() or multiLingues and isTablet() %} {{ render_esi(controller('App\\Controller\\Front\\Module\\LocaleController::switcher', { 'website': website.id, 'class': 'ml-auto'|url_encode } )) }} {% endif %}
{% if multiLingues and not isMobile() %} {{ render_esi(controller('App\\Controller\\Front\\Module\\LocaleController::switcher', { 'website': website.id, 'class': 'ml-auto'|url_encode } )) }} {% endif %} {% if havRegistartion and not isMobile() or havRegistartion and not isTablet() %}
{{ "Inscrivez-vous"|trans|raw }}
{% endif %}
{% endif %}