{% if v2 %}
<ul class="footer-links">
{% for pg in page %}
<li class="footer-link {% if loop.last %}fl-last{% elseif loop.first %}fl-first{% else %}fl-center{% endif %}">
{% if pg.url is defined and pg.url|length>6 %}
<a href="{{ pg.url }}" target="_blank" title="{{pg.name}}">{{pg.name}}</a>
{% else %}
<a href="{{ path('staticpages', {'alias': pg.alias}) }}" title="{{pg.name}}">{{pg.name}}</a>
{% endif%}
</li>
{% endfor %}
</ul>
{% else %}
{% for pg in page %}
{% if pg.url is defined and pg.url|length>6 %}
<a href="{{ pg.url }}" target="_blank" title="{{pg.name}}">{{pg.name}}</a>
{% else %}
<a href="{{ path('staticpages', {'alias': pg.alias}) }}" title="{{pg.name}}">{{pg.name}}</a>
{% endif%}
{% if loop.last %} {% else %} | {% endif %}
{% endfor %}
{% endif %}