templates/layouts/sidebar.html.twig line 1

Open in your IDE?
  1. <div class="hiddenMenu d-flex flex-column justify-content-between shadow">
  2.     <div class="hiddenMenu--header d-flex align-items-center">
  3.         <ul class="hiddenMenu--header-list d-flex align-items-center col-12">
  4.             {% for locale in locales %}
  5.                 {% if params_extra is defined %}
  6.                     {% for index, param_extra in params_extra %}
  7.                         {% if index in params|keys %}
  8.                             {% set params = params|merge({(''~index): attribute(param_extra, locale)}) %}
  9.                         {% endif %}
  10.                     {% endfor %}
  11.                 {% endif %}
  12.                 <li class="hiddenMenu--header-list-item">
  13.                     <a href="{{ path(route, params|merge({ _locale: locale })) }}"
  14.                        hreflang="{% if locale == 'ja'  %}x-default{% else %}{{ locale }}{% endif %}"
  15.                        class="{% if currentLocale == locale %}current{% endif %}">
  16.                         {{ locale|upper }}
  17.                     </a>
  18.                 </li>
  19.             {% endfor %}
  20.         </ul>
  21.         <span class="hiddenMenu--header-close"><i class="fas fa-times fa-2x"></i></span>
  22.     </div>
  23.     <div class="hiddenMenu--menu d-flex justify-content-center justify-content-sm-start ">
  24.         <ul class="hiddenMenu--menu-list d-flex col-12 flex-wrap m-0">
  25.             {% for key, menu in menus %}
  26.                 <li class="hiddenMenu--menu-list-item p-0 col-12">
  27.                     {{ key }}.
  28.                     {% if key == '07' %}
  29.                         <a href="{{ path(menu.route, menu.params|merge({ _locale:  currentLocale, sectionSlug: section_acoustic.slug })) }}">{{ "Acoustic Comfort Backing"|trans }}</a>
  30.                     {% elseif key == '08' %}
  31.                         <a href="{{ path(menu.route, menu.params|merge({ _locale:  currentLocale, sectionSlug: section_sustainability.slug })) }}">{{ menu.title|trans }}</a>
  32.                     {% else %}
  33.                         {% if key == '10' %}
  34.                             <a id="btn-contact-side-bar" href="{{ contact_url }}" hreflang="{% if app.request.getLocale() == 'ja'  %}x-default{% else %}{{ currentLocale }}{% endif %}">{{ menu.title|trans }}</a>
  35.                         {% else %}
  36.                             <a href="{{ path(menu.route, menu.params|merge({ _locale: currentLocale })) }}" hreflang="{% if app.request.getLocale() == 'ja'  %}x-default{% else %}{{ currentLocale }}{% endif %}">{{ menu.title|trans }}</a>
  37.                         {% endif  %}
  38.                     {% endif  %}
  39.                 </li>
  40.             {% endfor %}
  41.         </ul>
  42.     </div>
  43.     <div class="hiddenMenu--footer mb-sm-0">
  44.     </div>
  45. </div>