templates/component/header/lang_selector.html.twig line 1

Open in your IDE?
  1. {#
  2.     component: hero content
  3.     title {string}: Titre
  4.     titleAnnex {string|null}: Sur titre au dessus du titre (Default: null, pas de sur titre)
  5.   background {image}: image de fond
  6.   breadcrumb {array|null}: tableau des liens du fil d'ariane (chacun contenant title, to, et text) (Default: null, pas de breadcrumb)
  7. #}
  8. {% set props = {
  9.     langs:[]
  10. }|merge(props|default({}))  %}
  11. <div data-component="lang-selector" class="LangSelector-component">
  12.     {% for lang in props.langs %}
  13.         <a href="{{ lang.to }}">
  14.             <span class="LangSelector {% if lang.active is defined and lang.active %} LangSelector-activeLang{% endif %}">{{ lang.value }}</span>
  15.         </a>
  16.     {% endfor %}
  17. </div>