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

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

OEL-1147: Remove footer pattern, layouts and extra blocks.

parent 9e8649c8
No related branches found
No related tags found
1 merge request!81OEL-1147 - Footer
Showing
with 0 additions and 222 deletions
<div class="col-12 col-lg-4 pb-lg-4">
<p class="fw-bold pb-2 mb-2"> {{ 'European Commission'|t }} </p>
</div>
{% if links is defined and links is not empty and links is iterable %}
<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 %}
<div class="col-12 col-lg-4">
{% for link in links %}
{{ pattern('link', link) }}
{% endfor %}
</div>
{% endif %}
<div class="col-12 col-lg-4">
<p class="fw-bold pb-2 mb-2"> {{ 'More information on:'|t }}</p>
{% if links is defined and links is not empty and links is iterable %}
{% for link in links %}
{{ pattern('link', link) }}
{% endfor %}
{% endif %}
</div>
<div class="col-12 col-lg-4 pb-4">
{{ bcl_block('whitelabel_eu_logo_block') }}
</div>
<div class="col-12 col-lg-4">
<p class="fw-bold border-bottom pb-2 mb-2"> {{ contact_eu_title }} </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 }} </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 %}
{{ pattern('link', social_link) }}
{% endfor %}
{% endif %}
<p class="fw-bold border-bottom pb-2 pt-3 mb-2"> {{ legal_title }} </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>
<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 }} </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>
<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 %}
<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'
]
} %}
{% for link in section.links %}
{{ pattern('link', {
label: link.label,
path: link.path|render,
icon: link.icon,
icon_position: link.icon_position,
attributes: attributes
}) }}
{% endfor %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if sections is defined and sections is not empty and sections is iterable %}
<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 %}
{{ pattern('link', {
label: link.label,
path: link.path|render,
icon: link.icon,
icon_position: link.icon_position,
attributes: attributes,
}) }}
{% endfor %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{{ content }}
{{ content }}
footer:
label: Footer
description: Footer for oe_corporate blocks
variants:
ec:
label: European Commission
eu:
label: European Union
fields:
top_sections:
type: array
label: Sections at the top row of the footer
middle_sections:
type: array
label: Sections at the middle row the footer
bottom_sections:
type: array
label: Sections at the bottom row of the footer
<div class="pt-4 pt-lg-5 row">
{% for section in top_sections %}
{% set section_id = section.section_id %}
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
description: section.description,
sections: section.sections
} %}
{% endfor %}
</div>
{% if middle_sections is defined and middle_sections is not empty and middle_sections is iterable %}
<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 %}
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
links: section.links,
} %}
{% endfor %}
</div>
{% endif %}
{% if bottom_sections is defined and bottom_sections is not empty and bottom_sections is iterable %}
<div class="pb-4 pb-lg-5 bcl-footer__bordered-row row">
{% for section in bottom_sections %}
{% set section_id = section.section_id %}
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
links: section.links,
contact_eu_title: section.contact_eu_title,
contact_eu_links: section.contact_eu_links,
social_media_title: section.social_media_title,
social_media_links: section.social_media_links,
social_media_link: section.social_media_link,
legal_title: section.legal_title,
legal_links: section.legal_links,
eu_institutions_title: section.eu_institutions_title,
eu_institutions_links: section.eu_institutions_links
} %}
{% endfor %}
</div>
{% endif %}
<div class="pt-4 pt-lg-5 row">
{% for section in top_sections %}
{% set section_id = section.section_id %}
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
description: section.description,
sections: section.sections
} %}
{% endfor %}
</div>
{% if middle_sections is defined and middle_sections is not empty and middle_sections is iterable %}
<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 %}
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
links: section.links,
} %}
{% endfor %}
</div>
{% endif %}
{% if bottom_sections is defined and bottom_sections is not empty and bottom_sections is iterable %}
<div class="pb-4 pb-lg-5 mt-4 mt-lg-5 bcl-footer__bordered-row row">
{% for section in bottom_sections %}
{% set section_id = section.section_id %}
{% include '@oe_whitelabel/layouts/' ~ section_id ~ '.html.twig' with {
title: section.title,
links: section.links,
contact_eu_title: section.contact_eu_title,
contact_eu_links: section.contact_eu_links,
social_media_title: section.social_media_title,
social_media_links: section.social_media_links,
social_media_link: section.social_media_link,
legal_title: section.legal_title,
legal_links: section.legal_links,
eu_institutions_title: section.eu_institutions_title,
eu_institutions_links: section.eu_institutions_links
} %}
{% 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