Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 1c9b4810 authored by escuriola's avatar escuriola
Browse files

OEL-579: Fix footer.

parent 7dfadf6c
No related branches found
No related tags found
1 merge request!36OEL-579 - Whitelabel - Medley branch with BCL 0.9.0 upgradel
Showing
with 92 additions and 103 deletions
<p class="fw-bold pb-2 mb-2"> European Commission </p>
<div class="col-12 col-lg-4 pb-lg-4">
<p class="fw-bold pb-2 mb-2"> European Commission </p>
</div>
{% if links is defined and links is not empty and links is iterable %}
<ul class="nav flex-column">
{% for link in links %}
<li class="nav-item">{{ pattern('link', link) }}</li>
{% endfor %}
</ul>
<div class="col-12 col-lg-4">
{% for link in links %}
{{ pattern('link', link) }}
{% endfor %}
</div>
{% endif %}
{% if links is defined and links is not empty and links is iterable %}
<ul class="nav flex-column">
<div class="col-12 col-lg-4">
{% for link in links %}
<li class="nav-item">{{ pattern('link', link) }}</li>
{{ pattern('link', link) }}
{% endfor %}
</ul>
</div>
{% endif %}
<p class="fw-bold pb-2 mb-2">More information on:</p>
{% if links is defined and links is not empty and links is iterable %}
<ul class="nav flex-column">
{% for link in links %}
<li class="nav-item">{{ pattern('link', link) }}</li>
{% endfor %}
</ul>
{% endif %}
<div class="col-12 col-lg-4 pb-lg-4">
<p class="fw-bold pb-2 mb-2">More information on:</p>
{% if links is defined and links is not empty and links is iterable %}
{% for link in links %}
{{ pattern('link', link) }}
{% endfor %}
{% endif %}
</div>
{{ bcl_block('whitelabel_eu_logo_block') }}
<div class="col-12 col-lg-4 pb-4">
{{ bcl_block('whitelabel_eu_logo_block') }}
</div>
<p class="fw-bold border-bottom pb-2 mb-2"> {{ contact_eu_title|t }} </p>
{% if contact_eu_links is defined and contact_eu_links is not empty and contact_eu_links is iterable %}
<ul class="nav flex-column">
{% for contact_link in contact_eu_links %}
<li class="nav-item">{{ pattern('link', contact_link) }}</li>
{% endfor %}
</ul>
{% endif %}
<div class="col-12 col-lg-4">
<p class="fw-bold border-bottom pb-2 mb-2"> {{ contact_eu_title|t }} </p>
{% if contact_eu_links is defined and contact_eu_links is not empty and contact_eu_links is iterable %}
{% for contact_link in contact_eu_links %}
{{ pattern('link', contact_link) }}
{% endfor %}
{% endif %}
<p class="fw-bold border-bottom pb-2 pt-3 mb-2"> {{ social_media_title|t }} </p>
{% if social_media_links is defined and social_media_links is not empty and social_media_links is iterable %}
<ul class="nav flex-column">
<p class="fw-bold border-bottom pb-2 pt-3 mb-2"> {{ social_media_title|t }} </p>
{% if social_media_links is defined and social_media_links is not empty and social_media_links is iterable %}
{% for social_link in social_media_links %}
<li class="nav-item">{{ pattern('link', social_link) }}</li>
{ pattern('link', social_link) }}
{% endfor %}
</ul>
{% endif %}
{% endif %}
<p class="fw-bold border-bottom pb-2 pt-3 mb-2"> {{ legal_title|t }} </p>
{% if legal_links is defined and legal_links is not empty and legal_links is iterable %}
<ul class="nav flex-column">
{% for legal_link in legal_links %}
<li class="nav-item">{{ pattern('link', legal_link) }}</li>
{% endfor %}
</ul>
{% endif %}
<p class="fw-bold border-bottom pb-2 pt-3 mb-2"> {{ legal_title|t }} </p>
{% if legal_links is defined and legal_links is not empty and legal_links is iterable %}
{% for legal_link in legal_links %}
{{ pattern('link', legal_link) }}
{% endfor %}
{% endif %}
</div>
<p class="fw-bold border-bottom pb-2 pt-4 pt-lg-0 mb-2"> {{ eu_institutions_title|t }} </p>
{% if eu_institutions_links is defined and eu_institutions_links is not empty and eu_institutions_links is iterable %}
<ul class="nav flex-column">
{% for eu_link in eu_institutions_links %}
<li class="nav-item">{{ pattern('link', eu_link) }}</li>
{% endfor %}
</ul>
{% endif %}
<div class="col-12 col-lg-4">
<p class="fw-bold border-bottom pb-2 pt-4 pt-lg-0 mb-2"> {{ eu_institutions_title|t }} </p>
{% if eu_institutions_links is defined and eu_institutions_links is not empty and eu_institutions_links is iterable %}
{% for eu_link in eu_institutions_links %}
{{ pattern('link', eu_link) }}
{% endfor %}
{% endif %}
</div>
<p class="fw-bold mb-2">{{ title.link.label }}</p>
<p> {{ description }} </p>
<div class="col-12 col-lg-4">
<p class="fw-bold mb-2">{{ title.link.label }}</p>
<p> {{ description }} </p>
</div>
{% if sections is defined and sections is not empty and sections is iterable %}
{% for section in sections %}
{% if loop.first %}
<p class="fw-bold border-bottom pb-2 mb-2">{{ section.title }}</p>
{% else %}
<p class="fw-bold border-bottom pb-2 mb-2 mt-3">{{ section.title }}</p>
{% endif %}
{% if section.links is defined and section.links is not empty and section.links is iterable %}
{% set attributes = {
<div class="col-12 col-lg-4 pb-4 pb-lg-0">
{% for section in sections %}
{% if loop.first %}
<p class="fw-bold border-bottom pb-2 mb-2">{{ section.title }}</p>
{% else %}
<p class="fw-bold border-bottom pb-2 mb-2 mt-3">{{ section.title }}</p>
{% endif %}
{% if section.links is defined and section.links is not empty and section.links is iterable %}
{% set attributes = {
'class': [
'text-decoration-none',
'd-block',
'mb-1'
]
} %}
<ul class="nav flex-column">
} %}
{% for link in section.links %}
<li class="nav-item">{{ pattern('link', {
{{ pattern('link', {
label: link.label,
path: link.path|render,
icon: link.icon,
icon_position: link.icon_position,
attributes: attributes
}) }}</li>
}) }}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if sections is defined and sections is not empty and sections is iterable %}
{% for section in sections %}
{% if loop.first %}
<p class="fw-bold border-bottom pb-2 mb-2">{{ section.title }}</p>
{% else %}
<p class="fw-bold border-bottom pb-2 mb-2 mt-3">{{ section.title }}</p>
{% endif %}
{% if section.links is defined and section.links is not empty and section.links is iterable %}
{% set attributes = {
'class': [
'text-decoration-none',
'd-block',
'mb-1'
]
} %}
<ul class="nav flex-column">
<div class="col-12 col-lg-4">
{% for section in sections %}
{% if loop.first %}
<p class="fw-bold border-bottom pb-2 mb-2">{{ section.title }}</p>
{% else %}
<p class="fw-bold border-bottom pb-2 mb-2 mt-3">{{ section.title }}</p>
{% endif %}
{% if section.links is defined and section.links is not empty and section.links is iterable %}
{% set attributes = {
'class': [
'text-decoration-none',
'd-block',
'mb-1'
]
} %}
{% for link in section.links %}
<li class="nav-item">{{ pattern('link', {
{{ pattern('link', {
label: link.label,
path: link.path|render,
icon: link.icon,
icon_position: link.icon_position,
attributes: attributes,
}) }}</li>
}) }}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{{ content }}
-{{ content }}
<div class="pt-4 pt-lg-5 row">
{% for section in top_sections %}
{% set section_id = section.section_id %}
<div class="col footer-section">
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
description: section.description,
sections: section.sections
} %}
</div>
{% endfor %}
</div>
{%
set row_class = [
'pb-4',
'pb-lg-5',
'mt-4',
'mt-lg-5',
'bcl-footer__bordered-row',
'row',
]
%}
{% if middle_sections is defined and middle_sections is not empty and middle_sections is iterable %}
<div {{ attributes.addClass(row_class) }}>
<div class="pb-4 pb-lg-5 mt-4 mt-lg-5 bcl-footer__bordered-row row">
{% for section in middle_sections %}
{% set section_id = section.section_id %}
<div class="col">
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
links: section.links,
} %}
</div>
{% endfor %}
</div>
{% endif %}
{% if bottom_sections is defined and bottom_sections is not empty and bottom_sections is iterable %}
<div {{ attributes.addClass(row_class) }} >
<div class="pb-4 pb-lg-5 bcl-footer__bordered-row row">
{% for section in bottom_sections %}
{% set section_id = section.section_id %}
<div class="col">
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
links: section.links,
......@@ -51,7 +37,6 @@
eu_institutions_title: section.eu_institutions_title,
eu_institutions_links: section.eu_institutions_links
} %}
</div>
{% endfor %}
</div>
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment