2.39.0 • Published 3 years ago
@ecl-twig/ec-component-footer-harmonised v2.39.0
ECL-Twig Footer Harmonised component
npm package: @ecl-twig/ec-component-footer-harmonised
npm install --save @ecl-twig/ec-component-footer-harmonised
Parameters
- "group" (string) (default: 'group1'): 'group1' or 'group2'
- "sections" (array of objects) (default: [])
- "type" (string) (optional) 'dg_services_navigation, site_name, legal_navigation, service_navigation, dg_related_navigation, corporate_name, partnership_logos, commission_logo'
- "section_id" (integer) (default: '') The id will be used to form the class name
- "title" (optional) (string) OR (object with Link component in property)
- "title_class_name" (optional) (string) (default: '')
- "description" (optional) (string) (default: '')
- "content_before" (optional) (string) (default: '')
- "list_class_name" (optional) (string) (default: '')
- "links" (optional) (array of Link components) (default: [])
- "logos" (optional) (array of images objects) (default: []): "title": (string) (default: '') Title attribute "alt": (string) (default: '') Alternative text "src": (string) (default: '') Url of the image
- "logo" (EU only)
- "alt" (string) alt attribute for the logo link
- "path" (string) logo link path
- "language" (string) Language code
- "src_mobile" (string) Path the mobile logo
- "src_desktop" (string) Path to the desktop logo
- "extra_classes" (optional) (string) (default: '') Extra classes (space separated)
- "extra_attributes" (optional) (array) (default: []) Extra attributes
- "name" (string) Attribute name, eg. 'data-test'
- "value" (string) Attribute value, eg: 'data-test-1',
- "_compliance_" (boolean) (default: false) Activates debug
Example:
{% include '@ecl-twig/ec-component-footer-harmonised/ecl-footer-harmonised.html.twig' with {
group: 'group1',
sections: [
{
type: 'site_name',
section_id: 1,
title: {
link: {
label: "Site name",
path: "/example"
}
},
description:
'This site is managed by the Directorate-General for "DG identification"',
},
{
section_id: 2,
title: 'Contact us',
title_class_name: 'ecl-footer-harmonised__title--separator',
links: [
{
link: {
label: 'Contact information of the DG',
path: '/example',
},
},
],
},
{
section_id: 2,
title: 'Follow us on',
title_class_name: 'ecl-footer-harmonised__title--separator',
links: [
{
link: {
label: 'Facebook',
path: '/example',
icon_position: 'before',
icon: {
path: '/path-to-the-icon-file',
type: 'branded',
name: 'facebook',
size: 'xs',
},
},
...
},
],
list_class_name: 'ecl-footer-harmonised__list--inline',
},
{
section_id: 3,
content_before: 'More information on:',
links: [
{
link: {
label: 'Related link 1',
path: '/example',
},
...
},
],
list_class_name: 'ecl-footer-harmonised__list--condensed',
},
...
]
}
%}
2.39.0
3 years ago
2.38.0
4 years ago
2.37.0
4 years ago
2.36.0
4 years ago
2.35.2
4 years ago
2.35.1
4 years ago
2.35.0
4 years ago
2.34.0
4 years ago
2.33.2
4 years ago
2.33.1
4 years ago
2.33.0
4 years ago
2.32.0
4 years ago
2.31.1
4 years ago
2.31.0
4 years ago
2.30.0
4 years ago
2.29.0
5 years ago
2.28.1
5 years ago
2.28.0
5 years ago
2.27.0
5 years ago
2.26.0
5 years ago
2.25.1
5 years ago
2.25.0
5 years ago
2.24.0
5 years ago
2.23.0
5 years ago
2.22.1
5 years ago
2.22.0
5 years ago
2.21.0
5 years ago
2.19.0
5 years ago
2.18.0
5 years ago
2.17.3
5 years ago
2.17.0
5 years ago
2.16.1
5 years ago
2.15.1
5 years ago
2.15.0
5 years ago