@openeuropa/bcl-twig-templates 0.4230.202512021730 → 0.4360.202601141610

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/package.json +67 -67
  2. package/templates/bcl-accordion/accordion.html.twig +42 -43
  3. package/templates/bcl-alert/alert.html.twig +18 -18
  4. package/templates/bcl-badge/badge.html.twig +11 -12
  5. package/templates/bcl-banner/banner.html.twig +34 -34
  6. package/templates/bcl-base-templates/content-type.html.twig +63 -64
  7. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  8. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  9. package/templates/bcl-blockquote/blockquote.html.twig +17 -17
  10. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -25
  11. package/templates/bcl-button/button.html.twig +24 -24
  12. package/templates/bcl-button-group/button-group.html.twig +25 -26
  13. package/templates/bcl-card/card.html.twig +98 -98
  14. package/templates/bcl-card-layout/card-layout.html.twig +34 -34
  15. package/templates/bcl-carousel/carousel.html.twig +64 -64
  16. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  17. package/templates/bcl-content-banner/content-banner.html.twig +37 -37
  18. package/templates/bcl-date-block/date-block.html.twig +26 -26
  19. package/templates/bcl-description-list/description-list-details.html.twig +6 -6
  20. package/templates/bcl-description-list/description-list-title.html.twig +11 -11
  21. package/templates/bcl-description-list/description-list.html.twig +44 -45
  22. package/templates/bcl-dropdown/dropdown.html.twig +48 -49
  23. package/templates/bcl-event/event.html.twig +7 -7
  24. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -34
  25. package/templates/bcl-featured-media/featured-media.html.twig +42 -43
  26. package/templates/bcl-file/file-translations.html.twig +29 -29
  27. package/templates/bcl-file/file.html.twig +46 -46
  28. package/templates/bcl-footer/footer.html.twig +31 -31
  29. package/templates/bcl-form/form.html.twig +70 -70
  30. package/templates/bcl-form-input/form-input.html.twig +57 -58
  31. package/templates/bcl-gallery/gallery-item.html.twig +20 -20
  32. package/templates/bcl-gallery/gallery.html.twig +62 -63
  33. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  34. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  35. package/templates/bcl-group/group-landing.html.twig +69 -69
  36. package/templates/bcl-group/group.html.twig +19 -19
  37. package/templates/bcl-header/header.html.twig +71 -79
  38. package/templates/bcl-heading/heading.html.twig +13 -14
  39. package/templates/bcl-icon/icon.html.twig +10 -10
  40. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -20
  41. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  42. package/templates/bcl-language-list/language-list-grid.html.twig +25 -25
  43. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  44. package/templates/bcl-language-list/language-list.html.twig +33 -34
  45. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -12
  46. package/templates/bcl-link/link.html.twig +24 -24
  47. package/templates/bcl-links-block/links-block.html.twig +29 -30
  48. package/templates/bcl-list-group/list-group.html.twig +43 -44
  49. package/templates/bcl-listing/listing.html.twig +88 -88
  50. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -18
  51. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +27 -22
  52. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -35
  53. package/templates/bcl-modal/modal.html.twig +17 -17
  54. package/templates/bcl-navbar/navbar.html.twig +35 -35
  55. package/templates/bcl-navigation/navigation.html.twig +106 -106
  56. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -33
  57. package/templates/bcl-page/page.html.twig +27 -27
  58. package/templates/bcl-pagination/pagination-item.html.twig +22 -23
  59. package/templates/bcl-pagination/pagination.html.twig +59 -59
  60. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -32
  61. package/templates/bcl-pagination-v2/pagination.html.twig +79 -79
  62. package/templates/bcl-person/person.html.twig +12 -12
  63. package/templates/bcl-placeholder/placeholder.html.twig +14 -15
  64. package/templates/bcl-progress/progress.html.twig +16 -17
  65. package/templates/bcl-project/project-lists.html.twig +25 -25
  66. package/templates/bcl-project/project.html.twig +35 -35
  67. package/templates/bcl-project-status/project-contributions.html.twig +25 -25
  68. package/templates/bcl-project-status/project-status.html.twig +32 -34
  69. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -13
  70. package/templates/bcl-search/search.html.twig +12 -12
  71. package/templates/bcl-search-form/search-form.html.twig +21 -21
  72. package/templates/bcl-select/select.html.twig +52 -53
  73. package/templates/bcl-spinner/spinner.html.twig +10 -10
  74. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  75. package/templates/bcl-subscription/subscription.html.twig +3 -3
  76. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -14
  77. package/templates/bcl-table/table.html.twig +61 -62
  78. package/templates/bcl-textarea/textarea.html.twig +44 -44
  79. package/templates/bcl-timeline/timeline-item.html.twig +12 -12
  80. package/templates/bcl-timeline/timeline.html.twig +42 -42
  81. package/templates/bcl-toasts/toasts.html.twig +56 -57
  82. package/templates/bcl-user/user-compact.html.twig +24 -24
  83. package/templates/bcl-user/user-terms.html.twig +6 -6
  84. package/templates/bcl-user/user.html.twig +117 -117
@@ -22,7 +22,7 @@
22
22
  - link_more (object of type link) (default {})
23
23
  #}
24
24
 
25
- {% set _title = title|default('') %}
25
+ {%- set _title = title|default('') %}
26
26
  {% set _title_tag = title_tag|default('h2') %}
27
27
  {% set _title_link = title_link|default({}) %}
28
28
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -38,88 +38,88 @@
38
38
  {% set _icon_path = icon_path|default('') %}
39
39
  {% set _link_more = link_more|default({}) %}
40
40
 
41
- {% set _cols_classes = 'col' %}
41
+ {%- set _cols_classes = 'col' %}
42
42
  {% set _classes = ['bcl-fact-figures', 'bcl-fact-figures--' ~ _variant] %}
43
43
  {% set _wrapper_classes = [] %}
44
44
 
45
- {% set _grid_classes = [
45
+ {%- set _grid_classes = [
46
46
  'row-cols-' ~ _responsiveness ~ '-' ~ _responsive_columns,
47
47
  'row', 'row-cols-' ~ _grid_columns
48
48
  ] %}
49
49
  {% if _responsive_columns == 3 %}
50
- {% set _grid_classes = _grid_classes|merge(['row-cols-sm-2']) %}
50
+ {%- set _grid_classes = _grid_classes|merge(['row-cols-sm-2']) %}
51
51
  {% endif %}
52
52
  {% if _variant == 'block' or _variant == 'block-primary' %}
53
- {% set _wrapper_classes = _wrapper_classes|merge(['bg-light p-3-5 pt-0']) %}
53
+ {%- set _wrapper_classes = _wrapper_classes|merge(['bg-light p-3-5 pt-0']) %}
54
54
  {% endif %}
55
55
  {% if _gutter is not empty %}
56
- {% set _grid_classes = _grid_classes|merge(['g-' ~ _gutter]) %}
56
+ {%- set _grid_classes = _grid_classes|merge(['g-' ~ _gutter]) %}
57
57
  {% endif %}
58
58
  {% if _title is not empty %}
59
- {% set _grid_classes = _grid_classes|merge(['mt-3']) %}
59
+ {%- set _grid_classes = _grid_classes|merge(['mt-3']) %}
60
60
  {% endif %}
61
61
  {% if _equal_height %}
62
- {% set _cols_classes = _cols_classes ~ ' h-100' %}
62
+ {%- set _cols_classes = _cols_classes ~ ' h-100' %}
63
63
  {% endif %}
64
64
  {% if attributes is empty %}
65
- {% set attributes = create_attribute() %}
65
+ {%- set attributes = create_attribute() %}
66
66
  {% endif %}
67
67
 
68
- {% set attributes = attributes.addClass(_classes) %}
68
+ {%- set attributes = attributes.addClass(_classes) -%}
69
69
 
70
70
  <div {{ attributes }}>
71
- {% if _title is not empty %}
72
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
71
+ {%- if _title is not empty %}
72
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
73
73
  title: _title,
74
74
  title_tag: _title_tag,
75
75
  title_link: _title_link,
76
76
  attributes: _title_attributes,
77
77
  } only %}
78
- {% endif %}
78
+ {% endif -%}
79
79
  <div
80
80
  {% if _wrapper_classes is not empty %}
81
81
  class="{{ _wrapper_classes|join(' ') }}"
82
82
  {% endif %}
83
- >
83
+ >{# -#}
84
84
  <div class="{{ _grid_classes|join(' ') }}">
85
- {% if _items is defined and _items is not empty and _items is iterable %}
86
- {% for _item in _items %}
85
+ {%- if _items is defined and _items is not empty and _items is iterable %}
86
+ {%- for _item in _items -%}
87
87
  <div class="{{ _cols_classes }}">
88
- {% if _item.icon is defined and _item.icon is not empty and _display_icons %}
89
- {% set _icon_attributes = _item.icon.attributes ?: create_attribute() %}
90
- {% set _item = _item|merge({
88
+ {%- if _item.icon is defined and _item.icon is not empty and _display_icons %}
89
+ {%- set _icon_attributes = _item.icon.attributes ?: create_attribute() %}
90
+ {%- set _item = _item|merge({
91
91
  icon: _item.icon|merge({
92
92
  path: _icon_path,
93
93
  size: 'l',
94
94
  attributes: _icon_attributes.addClass(['mb-2', 'icon--primary']),
95
95
  })
96
96
  }) %}
97
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with _item.icon only %}
98
- {% endif %}
99
- {% if _item.title is defined and _item.title is not empty %}
97
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.icon only %}
98
+ {%- endif %}
99
+ {%- if _item.title is defined and _item.title is not empty -%}
100
100
  <div class="fs-4 fw-medium">
101
101
  {{- _item.title -}}
102
102
  </div>
103
- {% endif %}
104
- {% if _item.subtitle is defined and _item.subtitle is not empty %}
103
+ {%- endif %}
104
+ {%- if _item.subtitle is defined and _item.subtitle is not empty -%}
105
105
  <div class="fs-5 fw-medium">
106
106
  {{- _item.subtitle -}}
107
107
  </div>
108
- {% endif %}
109
- {% if _item.description is defined and _item.description is not empty %}
108
+ {%- endif %}
109
+ {%- if _item.description is defined and _item.description is not empty -%}
110
110
  <p>
111
111
  {{- _item.description -}}
112
112
  </p>
113
- {% endif %}
113
+ {%- endif -%}
114
114
  </div>
115
- {% endfor %}
116
- {% endif %}
115
+ {%- endfor %}
116
+ {%- endif -%}
117
117
  </div>
118
- {% if _link_more is defined and _link_more is not empty %}
118
+ {%- if _link_more is defined and _link_more is not empty -%}
119
119
  <div class="border-top d-block pt-3 mt-3">
120
- {% include '@oe-bcl/bcl-link/link.html.twig' with _link_more only %}
120
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _link_more only -%}
121
121
  </div>
122
- {% endif %}
123
- </div>
122
+ {%- endif -%}
123
+ </div>{# -#}
124
124
  </div>
125
-
125
+ {#--#}
@@ -38,7 +38,7 @@
38
38
  - "embedded_media"
39
39
  #}
40
40
 
41
- {% set _title = title|default('') %}
41
+ {%- set _title = title|default('') %}
42
42
  {% set _title_tag = title_tag|default('h2') %}
43
43
  {% set _title_link = title_link|default({}) %}
44
44
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -60,34 +60,34 @@
60
60
  {% set _tracks = tracks|default([]) %}
61
61
  {% set _embedded_media = embedded_media|default('') %}
62
62
 
63
- {% set _classes = 'bcl-featured-item' %}
63
+ {%- set _classes = 'bcl-featured-item' %}
64
64
  {% set _col_classes = 'col-12 col-md-6' %}
65
65
 
66
- {% if _wrapper_classes is not empty %}
67
- {% set _classes = _classes ~ ' ' ~ wrapper_classes %}
66
+ {%- if _wrapper_classes is not empty %}
67
+ {%- set _classes = _classes ~ ' ' ~ wrapper_classes %}
68
68
  {% endif %}
69
69
 
70
- {% if attributes is empty %}
71
- {% set attributes = create_attribute() %}
70
+ {%- if attributes is empty %}
71
+ {%- set attributes = create_attribute() %}
72
72
  {% endif %}
73
73
 
74
- {% set attributes = attributes.addClass(["rounded", "overflow-hidden"]) %}
74
+ {%- set attributes = attributes.addClass(["rounded", "overflow-hidden"]) %}
75
75
 
76
- {% if _image is not empty %}
77
- {% set attributes = attributes.addClass(["d-inline-flex", "flex-wrap"]) %}
78
- {% if _content_classes is not empty %}
79
- {% set _content_classes = _content_classes ~ ' flex-1 w-min-content' %}
80
- {% else %}
81
- {% set _content_classes = 'flex-1 w-min-content' %}
82
- {% endif %}
76
+ {%- if _image is not empty %}
77
+ {%- set attributes = attributes.addClass(["d-inline-flex", "flex-wrap"]) %}
78
+ {%- if _content_classes is not empty %}
79
+ {%- set _content_classes = _content_classes ~ ' flex-1 w-min-content' %}
80
+ {%- else %}
81
+ {%- set _content_classes = 'flex-1 w-min-content' %}
82
+ {%- endif %}
83
83
  {% endif %}
84
84
 
85
- {% if _with_text or _force_wrapper %}
85
+ {%- if _with_text or _force_wrapper -%}
86
86
  <div class="{{ _classes }}">
87
- {% endif %}
88
- {% if _with_text %}
87
+ {%- endif %}
88
+ {% if _with_text -%}
89
89
  <div class="row">
90
- {% endif %}
90
+ {%- endif %}
91
91
 
92
92
  {%- if _title is not empty -%}
93
93
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
@@ -98,7 +98,7 @@
98
98
  } only %}
99
99
  {%- endif -%}
100
100
 
101
- {% if _with_text %}
101
+ {% if _with_text -%}
102
102
  <div class="{{ _col_classes }} order-{{ _alignment == "right" ? '1' : '2' }}">
103
103
  {%- if _description_title is not empty -%}
104
104
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
@@ -110,45 +110,45 @@
110
110
  {{- _description|default('') -}}
111
111
 
112
112
  {% if _read_more is not empty %}
113
- {% include '@oe-bcl/bcl-link/link.html.twig' with _read_more only %}
114
- {% endif %}
115
- </div>
113
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _read_more only %}
114
+ {%- endif -%}
115
+ </div>{# -#}
116
116
  <div class="{{ _col_classes }} order-{{ _alignment == "right" ? '2 mt-4 mt-md-0' : '1' }}">
117
- {% endif %}
117
+ {%- endif -%}
118
118
 
119
119
  <figure
120
120
  {{ attributes }}
121
121
  >
122
- {% if _embedded_media is not empty %}
123
- {% set _video_classes = "ratio ratio-" ~ _ratio %}
122
+ {%- if _embedded_media is not empty %}
123
+ {%- set _video_classes = "ratio ratio-" ~ _ratio -%}
124
124
  <div class="{{ _video_classes }}">
125
125
  {%- block embedded_media _embedded_media -%}
126
126
  </div>
127
- {% elseif _sources is not empty and _sources is iterable %}
127
+ {%- elseif _sources is not empty and _sources is iterable -%}
128
128
  <video
129
129
  controls
130
130
  poster="{{ _poster_image }}"
131
131
  class="w-100 d-block"
132
132
  >
133
- {% for source in _sources %}
133
+ {%- for source in _sources -%}
134
134
  <source type="{{ source.type }}" src="{{ source.src }}" />
135
- {% endfor %}
136
- {% if _tracks is not empty and _tracks is iterable %}
137
- {% for track in _tracks %}
135
+ {%- endfor %}
136
+ {%- if _tracks is not empty and _tracks is iterable %}
137
+ {%- for track in _tracks -%}
138
138
  <track
139
139
  kind="{{ track.kind }}"
140
140
  label="{{ track.label }}"
141
141
  src="{{ track.src }}"
142
142
  srclang="{{ track.src_lang }}"
143
143
  />
144
- {% endfor %}
145
- {% endif %}
144
+ {%- endfor %}
145
+ {%- endif -%}
146
146
  </video>
147
- {% else %}
148
- {{ _image }}
149
- {% endif %}
147
+ {%- else %}
148
+ {{- _image }}
149
+ {%- endif %}
150
150
 
151
- {% if _content is not empty %}
151
+ {%- if _content is not empty -%}
152
152
  <figcaption
153
153
  {% if _content_classes is not empty %}
154
154
  class="{{ _content_classes }}"
@@ -156,14 +156,13 @@
156
156
  >
157
157
  {{- _content -}}
158
158
  </figcaption>
159
- {% endif %}
159
+ {%- endif -%}
160
160
  </figure>
161
161
 
162
- {% if _with_text %}
163
- </div>
162
+ {%- if _with_text -%}
163
+ </div>{# -#}
164
164
  </div>
165
- {% endif %}
166
- {% if _with_text or _force_wrapper %}
165
+ {%- endif %}
166
+ {% if _with_text or _force_wrapper -%}
167
167
  </div>
168
- {% endif %}
169
-
168
+ {%- endif -%}
@@ -13,21 +13,21 @@
13
13
  ]
14
14
  #}
15
15
 
16
- {% set _id = id|default('language-dropdown' ~ random(10000)) %}
16
+ {%- set _id = id|default('language-dropdown' ~ random(10000)) %}
17
17
  {% set _label = label|default('') %}
18
18
  {% set _icon_path = icon_path|default('') %}
19
19
  {% set _items = items|default([]) %}
20
20
 
21
- {% if attributes is empty %}
22
- {% set attributes = create_attribute() %}
21
+ {%- if attributes is empty %}
22
+ {%- set attributes = create_attribute() %}
23
23
  {% endif %}
24
24
 
25
- {% set attributes = attributes.addClass(['bg-lighter', 'py-3', 'px-4', 'border-top']) %}
25
+ {%- set attributes = attributes.addClass(['bg-lighter', 'py-3', 'px-4', 'border-top']) -%}
26
26
 
27
27
  <div
28
- {{ attributes }}>
28
+ {{ attributes }}>{# -#}
29
29
  <div class="text-end text-md-center">
30
- {% include '@oe-bcl/bcl-link/link.html.twig' with _label|merge({
30
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _label|merge({
31
31
  path: '#' ~ _id,
32
32
  attributes: create_attribute()
33
33
  .addClass(['standalone'])
@@ -35,25 +35,25 @@
35
35
  .setAttribute('data-bs-toggle', 'collapse')
36
36
  .setAttribute('aria-expanded', 'false')
37
37
  .setAttribute('role', 'button'),
38
- }) only %}
38
+ }) only -%}
39
39
  </div>
40
- {% if _items is not empty and _items is iterable %}
40
+ {%- if _items is not empty and _items is iterable -%}
41
41
  <div class="collapse" id="{{ _id }}">
42
- {% for _item in _items %}
43
- {% set _item_classes = loop.last ? 'pt-3' : 'py-3 border-bottom' %}
42
+ {%- for _item in _items %}
43
+ {%- set _item_classes = loop.last ? 'pt-3' : 'py-3 border-bottom' -%}
44
44
  <div class="{{ _item_classes }}">
45
- {% if _item.type == 'content' %}
46
- {{ _item.content }}
47
- {% else %}
48
- <div class="row">
45
+ {%- if _item.type == 'content' %}
46
+ {{- _item.content }}
47
+ {%- else -%}
48
+ <div class="row">{# -#}
49
49
  <div class="col-12 col-md-9">
50
- {% if _item.title is not empty %}
50
+ {%- if _item.title is not empty -%}
51
51
  <p class="fw-bold m-0">{{ _item.title }}</p>
52
- {% endif %}
53
- {% if _item.description is not empty %}
52
+ {%- endif %}
53
+ {%- if _item.description is not empty -%}
54
54
  <p class="m-0">{{ _item.description }}</p>
55
- {% endif %}
56
- {% if _item.language is not empty or _item.meta is not empty %}
55
+ {%- endif %}
56
+ {%- if _item.language is not empty or _item.meta is not empty -%}
57
57
  <small class="fw-bold m-0">
58
58
  {%- if _item.language is not empty -%}
59
59
  {{- _item.language -}}
@@ -64,15 +64,15 @@
64
64
  </span>
65
65
  {%- endif -%}
66
66
  </small>
67
- {% endif %}
68
- </div>
67
+ {%- endif -%}
68
+ </div>{# -#}
69
69
  <div class="col-12 col-md-3 align-self-end text-md-end">
70
- {% set download_attributes = create_attribute()
70
+ {%- set download_attributes = create_attribute()
71
71
  .setAttribute('download', true)
72
72
  .setAttribute('target', '_blank')
73
73
  .addClass(['d-block', 'standalone', 'mt-1'])
74
74
  %}
75
- {% set _download_item = _item.download|merge({
75
+ {%- set _download_item = _item.download|merge({
76
76
  icon_position: "after",
77
77
  icon: {
78
78
  name: "download",
@@ -81,13 +81,13 @@
81
81
  }|merge(_item.download.icon|default({})),
82
82
  attributes: download_attributes.merge(_item.download.attributes|default(create_attribute()))
83
83
  }) %}
84
- {% include '@oe-bcl/bcl-link/link.html.twig' with _download_item only %}
85
- </div>
84
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _download_item only -%}
85
+ </div>{# -#}
86
86
  </div>
87
- {% endif %}
87
+ {%- endif -%}
88
88
  </div>
89
- {% endfor %}
89
+ {%- endfor -%}
90
90
  </div>
91
- {% endif %}
91
+ {%- endif -%}
92
92
  </div>
93
-
93
+ {#--#}
@@ -34,9 +34,9 @@
34
34
  - attributes (drupal attrs)
35
35
  #}
36
36
 
37
- {# Internal properties #}
37
+ {#- Internal properties #}
38
38
 
39
- {% set _title = title|default('') %}
39
+ {%- set _title = title|default('') %}
40
40
  {% set _title_tag = title_tag|default('h2') %}
41
41
  {% set _title_link = title_link|default({}) %}
42
42
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -54,23 +54,23 @@
54
54
  {% set _translation = translation|default({}) %}
55
55
  {% set _icon_path = icon_path|default('') %}
56
56
 
57
- {% set _classes = ['bcl-file'] %}
57
+ {%- set _classes = ['bcl-file'] %}
58
58
 
59
- {% if attributes is empty %}
60
- {% set attributes = create_attribute() %}
59
+ {%- if attributes is empty %}
60
+ {%- set attributes = create_attribute() %}
61
61
  {% endif %}
62
62
 
63
- {% set attributes = attributes.addClass(_classes) %}
63
+ {%- set attributes = attributes.addClass(_classes) %}
64
64
 
65
- {% if _icon is not empty %}
66
- {% set _container_classes = _container_classes ~ ' ms-2-5' %}
67
- {% set _icon = _icon|merge({
65
+ {%- if _icon is not empty %}
66
+ {%- set _container_classes = _container_classes ~ ' ms-2-5' %}
67
+ {%- set _icon = _icon|merge({
68
68
  attributes: create_attribute().addClass(['mt-1', 'icon--file'])
69
69
  }) %}
70
70
  {% endif %}
71
71
 
72
- {% if _title is not empty %}
73
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
72
+ {%- if _title is not empty %}
73
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
74
74
  title: _title,
75
75
  title_tag: _title_tag,
76
76
  title_link: _title_link,
@@ -78,52 +78,52 @@
78
78
  } only %}
79
79
  {% endif %}
80
80
 
81
- {% set attributes = attributes.addClass(['border', 'rounded']) %}
81
+ {%- set attributes = attributes.addClass(['border', 'rounded']) %}
82
82
 
83
- {% set _container_classes = 'd-md-flex flex-grow-1' %}
83
+ {%- set _container_classes = 'd-md-flex flex-grow-1' -%}
84
84
 
85
85
  <div
86
86
  {{ attributes }}
87
87
  >
88
- {% if _variant == 'card' %}
89
- <div class="border-bottom px-3-5 py-3 d-md-flex">
88
+ {%- if _variant == 'card' -%}
89
+ <div class="border-bottom px-3-5 py-3 d-md-flex">{# -#}
90
90
  <div class="pe-2 pb-2">
91
- {% if _icon is not empty %}
91
+ {%- if _icon is not empty %}
92
92
  {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon|merge({
93
93
  path: _icon_path,
94
94
  }) only -%}
95
- {% endif %}
96
- </div>
95
+ {% endif -%}
96
+ </div>{# -#}
97
97
  <div>
98
- {% if _item_title is not empty %}
98
+ {%- if _item_title is not empty -%}
99
99
  <p class="fw-medium mb-2 fs-5">{{ _item_title }}</p>
100
- {% endif %}
101
- {% if _text is not empty %}
100
+ {%- endif %}
101
+ {%- if _text is not empty -%}
102
102
  <p class="mb-3">{{ _text }}</p>
103
- {% endif %}
104
- {% if _content is not empty %}
105
- {{ _content }}
106
- {% endif %}
107
- </div>
103
+ {%- endif %}
104
+ {%- if _content is not empty %}
105
+ {{- _content }}
106
+ {%- endif -%}
107
+ </div>{# -#}
108
108
  </div>
109
- {% endif %}
110
- <div class="px-3-5 py-3">
109
+ {%- endif -%}
110
+ <div class="px-3-5 py-3">{# -#}
111
111
  <div class="d-md-flex">
112
- {% if _icon is not empty and _variant == 'default' %}
112
+ {%- if _icon is not empty and _variant == 'default' -%}
113
113
  <div class="pe-2 pb-2">
114
- {% if _icon is not empty %}
114
+ {%- if _icon is not empty %}
115
115
  {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon|merge({
116
116
  path: _icon_path,
117
117
  }) only -%}
118
- {% endif %}
118
+ {% endif -%}
119
119
  </div>
120
- {% endif %}
121
- <div class="{{ _container_classes }}">
120
+ {%- endif -%}
121
+ <div class="{{ _container_classes }}">{# -#}
122
122
  <div class="flex-grow-1">
123
- {% if _item_title is not empty and _variant == 'default' %}
123
+ {%- if _item_title is not empty and _variant == 'default' -%}
124
124
  <p class="fw-medium m-0 fs-5">{{ _item_title }}</p>
125
- {% endif %}
126
- {% if _language is not empty or _meta is not empty %}
125
+ {%- endif %}
126
+ {%- if _language is not empty or _meta is not empty -%}
127
127
  <small class="fw-medium m-0">
128
128
  {%- if _language is not empty -%}
129
129
  {{- _language -}}
@@ -134,13 +134,13 @@
134
134
  </span>
135
135
  {%- endif -%}
136
136
  </small>
137
- {% endif %}
137
+ {%- endif -%}
138
138
  </div>
139
- {% set download_attributes = create_attribute()
139
+ {%- set download_attributes = create_attribute()
140
140
  .setAttribute('download', true)
141
141
  .setAttribute('target', '_blank')
142
142
  .addClass(['standalone', 'align-self-center', 'd-inline-block', 'mt-1', 'mt-md-0', 'flex-shrink-0']) %}
143
- {% set _download = _download|merge({
143
+ {%- set _download = _download|merge({
144
144
  icon_position: "after",
145
145
  icon: {
146
146
  name: "download",
@@ -149,14 +149,14 @@
149
149
  }|merge(_download.icon|default({})),
150
150
  attributes: download_attributes.merge(_download.attributes|default(create_attribute()))
151
151
  }) %}
152
- {% include '@oe-bcl/bcl-link/link.html.twig' with _download only %}
153
- </div>
154
- </div>
152
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _download only -%}
153
+ </div>{# -#}
154
+ </div>{# -#}
155
155
  </div>
156
- {% if _translation is not empty %}
157
- {% include '@oe-bcl/bcl-file/file-translations.html.twig' with _translation|merge({
156
+ {%- if _translation is not empty %}
157
+ {%- include '@oe-bcl/bcl-file/file-translations.html.twig' with _translation|merge({
158
158
  icon_path: _icon_path
159
159
  }) only %}
160
- {% endif %}
160
+ {%- endif -%}
161
161
  </div>
162
-
162
+ {#--#}
@@ -1,7 +1,7 @@
1
1
  {# Parameters:
2
2
  - variant (string) (default: 'neutral')
3
3
  - options: ['eu', 'ec', 'neutral']
4
- - rows (object[]) (default: []) - format:
4
+ - rows (object[]) (default: []) - format:
5
5
  [
6
6
  {
7
7
  extra_classes: ""
@@ -30,58 +30,58 @@
30
30
  - attributes (drupal attrs)
31
31
  #}
32
32
 
33
- {% set _variant = variant|default('neutral') %}
33
+ {%- set _variant = variant|default('neutral') %}
34
34
  {% set _rows = rows|default([]) %}
35
35
 
36
- {% if attributes is empty %}
37
- {% set attributes = create_attribute() %}
36
+ {%- if attributes is empty %}
37
+ {%- set attributes = create_attribute() %}
38
38
  {% endif %}
39
39
 
40
- {% set attributes = attributes.addClass(['bcl-footer', 'bcl-footer--' ~ _variant]) %}
40
+ {%- set attributes = attributes.addClass(['bcl-footer', 'bcl-footer--' ~ _variant]) -%}
41
41
 
42
42
  <footer
43
43
  {{ attributes }}
44
- >
44
+ >{# -#}
45
45
  <div class="container">
46
- {% if rows is not empty and rows is iterable %}
47
- {% for row in _rows %}
46
+ {%- if rows is not empty and rows is iterable %}
47
+ {%- for row in _rows -%}
48
48
  <div class="{{ row.extra_classes ? row.extra_classes ~ ' row' : 'row' }}">
49
- {% for col in row.cols %}
49
+ {%- for col in row.cols -%}
50
50
  <div class="{{ col.classes }}">
51
- {% if col.items is not empty and col.items is iterable %}
52
- {% for item in col.items %}
53
- {% if item.type == 'image' %}
51
+ {%- if col.items is not empty and col.items is iterable %}
52
+ {%- for item in col.items %}
53
+ {%- if item.type == 'image' -%}
54
54
  <img
55
55
  {% if item.path is not empty %}
56
56
  src="{{ item.path }}"
57
57
  {% endif %}
58
- {% if item.alt is not empty %}
58
+ {%- if item.alt is not empty %}
59
59
  alt="{{ item.alt }}"
60
60
  {% endif %}
61
- {% if item.classes is not empty %}
61
+ {%- if item.classes is not empty %}
62
62
  class="{{ item.classes }}"
63
63
  {% endif %}
64
64
  >
65
- {% endif %}
66
- {% if item.type == 'content' %}
67
- {{ item.content }}
68
- {% endif %}
69
- {% if item.type == 'links' %}
70
- {% for link in item.links %}
65
+ {%- endif %}
66
+ {%- if item.type == 'content' %}
67
+ {{- item.content }}
68
+ {%- endif %}
69
+ {%- if item.type == 'links' %}
70
+ {%- for link in item.links -%}
71
71
  <div class="mb-1">
72
- {% include '@oe-bcl/bcl-link/link.html.twig' with link|merge({
72
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with link|merge({
73
73
  attributes: create_attribute().addClass(['standalone'])
74
- }) only %}
74
+ }) only -%}
75
75
  </div>
76
- {% endfor %}
77
- {% endif %}
78
- {% endfor %}
79
- {% endif %}
76
+ {%- endfor %}
77
+ {%- endif %}
78
+ {%- endfor %}
79
+ {%- endif -%}
80
80
  </div>
81
- {% endfor %}
81
+ {%- endfor -%}
82
82
  </div>
83
- {% endfor %}
84
- {% endif %}
85
- </div>
83
+ {%- endfor %}
84
+ {%- endif -%}
85
+ </div>{# -#}
86
86
  </footer>
87
-
87
+ {#--#}