]> Raphaƫl G. Git Repositories - userbundle/blob - templates/_footer.html.twig
Version 0.5.2
[userbundle] / templates / _footer.html.twig
1 {% if (alternates is defined and alternates) or (copy is defined and copy) %}
2 <footer id="rapsysuser_footer">
3 {% if copy is defined and copy %}
4 <span>{{ copy.long }} - {{ copy.short }}</span>
5 {% endif %}
6 {% if alternates is defined and alternates %}
7 {% set langs = alternates|keys|filter(v => v|length == 5) %}
8 {% if langs|length > 1 %}
9 <ul>
10 {% for lang in langs %}
11 <li><a href="{{ alternates[lang].relative }}" hreflang="{{ lang|replace({'_': '-'}) }}" title="{{ alternates[lang].title }}">{{ alternates[lang].translated }}</a></li>
12 {% endfor %}
13 </ul>
14 {% else %}
15 {% set lang = langs|first %}
16 <a href="{{ alternates[lang].relative }}" hreflang="{{ lang|replace({'_': '-'}) }}" title="{{ alternates[lang].title }}">{{ alternates[lang].translated }}</a>
17 {% endif %}
18 {% endif %}
19 </footer>
20 {% endif %}