templates/navigation/language.html.twig line 1

Open in your IDE?
  1. {#
  2. project: Pimcore - Schutzverband Nuernberg Rostbratwuerste
  3. User: erikb
  4. Year: 2022
  5. #}
  6. <div></div>
  7. {#
  8. <nav class="navigation navigation--language" aria-label="{{ 'wcag.label.navigation.language'|trans }}">
  9.     <ul class="navigation__container">
  10.         {% for key, lang in get_localized_links(document) %}
  11.             {% set active = lang.language == document.getProperty('language') ? true : false %}
  12.         <li class="navigation__item {{ active ? 'navigation__item--active' : '' }}">
  13.             <a href="{{ lang.link }}"
  14.                class="navigation__link"
  15.                aria-current="{{ active ? 'true' : 'false' }}"
  16.                aria-label="{{ 'wcag-label.navigation.language-item { label }'|trans({ '{{ label }}': lang.text }) }}">{{ lang.language }}</a>
  17.         </li>
  18.         {% endfor %}
  19.     </ul>
  20. </nav>
  21.     #}