]> Raphaƫl G. Git Repositories - userbundle/blobdiff - templates/_footer.html.twig
Set rapsysuser.default.{admin,group} keys
[userbundle] / templates / _footer.html.twig
index 8df1ba803f914bd74cacf630eba5cc2d9abd2435..843ac855112f387dc66a8e7948e309ff485a7ae0 100644 (file)
@@ -1,17 +1,20 @@
-<footer id="rapsysuser_footer">
-       {% if alternates is defined and alternates %}
-               {% set langs = alternates|keys|filter(v => v|length == 5) %}
-               {% if langs|length > 1 %}
-                       <ul>
-                               {% for lang in langs %}
-                                       <li><a href="{{ alternates[lang].relative }}" hreflang="{{ lang|replace({'_': '-'}) }}" title="{{ alternates[lang].title }}">{{ alternates[lang].translated }}</a></li>
-                               {% endfor %}
-                       </ul>
-               {% else %}
-                       {% set lang = langs|first %}
-                       <a href="{{ alternates[lang].relative }}" hreflang="{{ lang|replace({'_': '-'}) }}" title="{{ alternates[lang].title }}">{{ alternates[lang].translated }}</a>
+{% if (alternates is defined and alternates) or (copy is defined and copy) %}
+       <footer id="rapsysuser_footer">
+               {% if copy is defined and copy %}
+                       <span>{{ copy.long }} - {{ copy.short }}</span>
                {% endif %}
                {% endif %}
-       {% else %}
-               <span>&nbsp;</span>
-       {% endif %}
-</footer>
+               {% if alternates is defined and alternates %}
+                       {% set langs = alternates|keys|filter(v => v|length == 5) %}
+                       {% if langs|length > 1 %}
+                               <ul>
+                                       {% for lang in langs %}
+                                               <li><a href="{{ alternates[lang].relative }}" hreflang="{{ lang|replace({'_': '-'}) }}" title="{{ alternates[lang].title }}">{{ alternates[lang].translated }}</a></li>
+                                       {% endfor %}
+                               </ul>
+                       {% else %}
+                               {% set lang = langs|first %}
+                               <a href="{{ alternates[lang].relative }}" hreflang="{{ lang|replace({'_': '-'}) }}" title="{{ alternates[lang].title }}">{{ alternates[lang].translated }}</a>
+                       {% endif %}
+               {% endif %}
+       </footer>
+{% endif %}