{% spaceless %} {# Parameters: - "rows" (array of objects) (default: []) - "section_class_name" (string) (default: '') - "logo" (EU only) - "alt" (string) alt attribute for the logo link - "aria_label" (string) aria-label attribute for the logo link - "title" (string) title attribute for the logo img - "path" (string) logo link path - "language" (string) Language code - "src_mobile" (string) Path the mobile logo - "src_desktop" (string) Path to the desktop logo - "title" (optional) (string) OR (object with Link component in property) - "title_with_separator" (optional) (bolean) (default: false) - "description" (optional) (string) (default: '') - "content_before" (optional) (string) (default: '') - "links" (optional) (array of objects) (default: []), - "link" (link object) - "content_before" (string) Optional text before the link - "content_after" (string) Optional text after the link - "links_inline" (optional) (bolean) (default: false) Optional inline style for the list - "split_columns" (boolean) (optional) (default: false) Split columns in the footer, used for Core EC version - "extra_classes" (optional) (string) (default: '') Extra classes (space separated) for the icon - "extra_attributes" (optional) (array) (default: []) Extra attributes for icon - "name" (string) Attribute name, eg. 'data-test' - "value" (string) Attribute value, eg: 'data-test-1' #} {# Internal properties #} {% set _split_columns = split_columns|default(false) %} {% set _rows = rows|default([]) %} {% set _css_class = 'ecl-site-footer' %} {% set _extra_attributes = '' %} {# Internal logic - Process properties #} {% if _split_columns %} {% set _css_class = _css_class ~ ' ecl-site-footer--split-columns' %} {% endif %} {% if extra_classes is defined and extra_classes is not empty %} {% set _css_class = _css_class ~ ' ' ~ extra_classes %} {% endif %} {% if extra_attributes is defined and extra_attributes is not empty and extra_attributes is iterable %} {% for attr in extra_attributes %} {% if attr.value is defined %} {% set _extra_attributes = _extra_attributes ~ ' ' ~ attr.name|e('html_attr') ~ '="' ~ attr.value|e('html_attr') ~ '"' %} {% else %} {% set _extra_attributes = _extra_attributes ~ ' ' ~ attr.name|e('html_attr') %} {% endif %} {% endfor %} {% endif %} {# Print the result #} {% endspaceless %}