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