@openeuropa/bcl-theme-joinup 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.
- package/css/oe-bcl-joinup.css +61 -48
- package/css/oe-bcl-joinup.css.map +1 -1
- package/css/oe-bcl-joinup.min.css +1 -1
- package/css/oe-bcl-joinup.min.css.map +1 -1
- package/js/oe-bcl-joinup.bundle.js +112 -1
- package/js/oe-bcl-joinup.bundle.js.map +1 -1
- package/js/oe-bcl-joinup.bundle.min.js +1 -1
- package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
- package/js/oe-bcl-joinup.esm.js +111 -1
- package/js/oe-bcl-joinup.esm.js.map +1 -1
- package/js/oe-bcl-joinup.esm.min.js +1 -1
- package/js/oe-bcl-joinup.esm.min.js.map +1 -1
- package/js/oe-bcl-joinup.umd.js +112 -1
- package/js/oe-bcl-joinup.umd.js.map +1 -1
- package/js/oe-bcl-joinup.umd.min.js +1 -1
- package/js/oe-bcl-joinup.umd.min.js.map +1 -1
- package/package.json +7 -7
- package/src/js/index.esm.js +2 -0
- package/src/js/index.umd.js +2 -0
- package/templates/bcl-accordion/accordion.html.twig +42 -43
- package/templates/bcl-alert/alert.html.twig +18 -18
- package/templates/bcl-badge/badge.html.twig +11 -12
- package/templates/bcl-banner/banner.html.twig +34 -34
- package/templates/bcl-base-templates/content-type.html.twig +63 -64
- package/templates/bcl-base-templates/listing-page.html.twig +31 -31
- package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
- package/templates/bcl-blockquote/blockquote.html.twig +17 -17
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -25
- package/templates/bcl-button/button.html.twig +24 -24
- package/templates/bcl-button-group/button-group.html.twig +25 -26
- package/templates/bcl-card/card.html.twig +98 -98
- package/templates/bcl-card-layout/card-layout.html.twig +34 -34
- package/templates/bcl-carousel/carousel.html.twig +64 -64
- package/templates/bcl-contact-form/contact-form.html.twig +1 -1
- package/templates/bcl-content-banner/content-banner.html.twig +37 -37
- package/templates/bcl-date-block/date-block.html.twig +26 -26
- package/templates/bcl-description-list/description-list-details.html.twig +6 -6
- package/templates/bcl-description-list/description-list-title.html.twig +11 -11
- package/templates/bcl-description-list/description-list.html.twig +44 -45
- package/templates/bcl-dropdown/dropdown.html.twig +48 -49
- package/templates/bcl-event/event.html.twig +7 -7
- package/templates/bcl-fact-figures/fact-figures.html.twig +34 -34
- package/templates/bcl-featured-media/featured-media.html.twig +42 -43
- package/templates/bcl-file/file-translations.html.twig +29 -29
- package/templates/bcl-file/file.html.twig +46 -46
- package/templates/bcl-footer/footer.html.twig +31 -31
- package/templates/bcl-form/form.html.twig +70 -70
- package/templates/bcl-form-input/form-input.html.twig +57 -58
- package/templates/bcl-gallery/gallery-item.html.twig +20 -20
- package/templates/bcl-gallery/gallery.html.twig +62 -63
- package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
- package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
- package/templates/bcl-group/group-landing.html.twig +69 -69
- package/templates/bcl-group/group.html.twig +19 -19
- package/templates/bcl-header/header.html.twig +71 -79
- package/templates/bcl-heading/heading.html.twig +13 -14
- package/templates/bcl-icon/icon.html.twig +10 -10
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -20
- package/templates/bcl-landing-page/landing-page.html.twig +33 -33
- package/templates/bcl-language-list/language-list-grid.html.twig +25 -25
- package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
- package/templates/bcl-language-list/language-list.html.twig +33 -34
- package/templates/bcl-language-switcher/language-switcher.html.twig +12 -12
- package/templates/bcl-link/link.html.twig +24 -24
- package/templates/bcl-links-block/links-block.html.twig +29 -30
- package/templates/bcl-list-group/list-group.html.twig +43 -44
- package/templates/bcl-listing/listing.html.twig +88 -88
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -18
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +27 -22
- package/templates/bcl-mega-menu/mega-menu.html.twig +37 -35
- package/templates/bcl-modal/modal.html.twig +17 -17
- package/templates/bcl-navbar/navbar.html.twig +35 -35
- package/templates/bcl-navigation/navigation.html.twig +106 -106
- package/templates/bcl-offcanvas/offcanvas.html.twig +33 -33
- package/templates/bcl-page/page.html.twig +27 -27
- package/templates/bcl-pagination/pagination-item.html.twig +22 -23
- package/templates/bcl-pagination/pagination.html.twig +59 -59
- package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -32
- package/templates/bcl-pagination-v2/pagination.html.twig +79 -79
- package/templates/bcl-person/person.html.twig +12 -12
- package/templates/bcl-placeholder/placeholder.html.twig +14 -15
- package/templates/bcl-progress/progress.html.twig +16 -17
- package/templates/bcl-project/project-lists.html.twig +25 -25
- package/templates/bcl-project/project.html.twig +35 -35
- package/templates/bcl-project-status/project-contributions.html.twig +25 -25
- package/templates/bcl-project-status/project-status.html.twig +32 -34
- package/templates/bcl-recent-activities/recent-activities.html.twig +13 -13
- package/templates/bcl-search/search.html.twig +12 -12
- package/templates/bcl-search-form/search-form.html.twig +21 -21
- package/templates/bcl-select/select.html.twig +52 -53
- package/templates/bcl-spinner/spinner.html.twig +10 -10
- package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
- package/templates/bcl-subscription/subscription.html.twig +3 -3
- package/templates/bcl-subscription-block/subscription-block.html.twig +14 -14
- package/templates/bcl-table/table.html.twig +61 -62
- package/templates/bcl-textarea/textarea.html.twig +44 -44
- package/templates/bcl-timeline/timeline-item.html.twig +12 -12
- package/templates/bcl-timeline/timeline.html.twig +42 -42
- package/templates/bcl-toasts/toasts.html.twig +56 -57
- package/templates/bcl-user/user-compact.html.twig +24 -24
- package/templates/bcl-user/user-terms.html.twig +6 -6
- package/templates/bcl-user/user.html.twig +117 -117
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
- card_links
|
|
50
50
|
#}
|
|
51
51
|
|
|
52
|
-
{
|
|
53
|
-
{% set _title_tag = title_tag|default('
|
|
52
|
+
{%- set _title = title|default('') %}
|
|
53
|
+
{% set _title_tag = title_tag|default('div') %}
|
|
54
54
|
{% set _title_link = title_link|default({}) %}
|
|
55
55
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
56
56
|
{% set _subtitle = subtitle|default({}) %}
|
|
@@ -75,112 +75,112 @@
|
|
|
75
75
|
{% set _badges = badges|default([]) %}
|
|
76
76
|
{% set _links = links|default([]) %}
|
|
77
77
|
|
|
78
|
-
{
|
|
78
|
+
{%- set _classes = ['card'] %}
|
|
79
79
|
{% if _text_color is not empty %}
|
|
80
|
-
{
|
|
80
|
+
{%- set _classes = _classes|merge(['text-' ~ _text_color]) %}
|
|
81
81
|
{% endif %}
|
|
82
82
|
{% if _variant is not empty %}
|
|
83
|
-
{
|
|
83
|
+
{%- set _classes = _classes|merge(['text-bg-' ~ _variant]) %}
|
|
84
84
|
{% endif %}
|
|
85
85
|
{% if _border_variant is not empty %}
|
|
86
|
-
{
|
|
86
|
+
{%- set _classes = _classes|merge(['border-' ~ _border_variant]) %}
|
|
87
87
|
{% endif %}
|
|
88
88
|
|
|
89
|
-
{
|
|
90
|
-
{
|
|
89
|
+
{%- if attributes is empty %}
|
|
90
|
+
{%- set attributes = create_attribute() %}
|
|
91
91
|
{% endif %}
|
|
92
92
|
|
|
93
|
-
{
|
|
93
|
+
{%- set _body_classes = 'card-body' %}
|
|
94
94
|
{% if _extra_classes_body is not empty %}
|
|
95
|
-
{
|
|
95
|
+
{%- set _body_classes = _body_classes ~ ' ' ~ _extra_classes_body %}
|
|
96
96
|
{% endif %}
|
|
97
97
|
|
|
98
|
-
{
|
|
98
|
+
{%- set _header_classes = 'card-header' %}
|
|
99
99
|
{% if _extra_classes_header is not empty %}
|
|
100
|
-
{
|
|
100
|
+
{%- set _header_classes = _header_classes ~ ' ' ~ _extra_classes_header %}
|
|
101
101
|
{% endif %}
|
|
102
102
|
|
|
103
|
-
{
|
|
103
|
+
{%- set _footer_classes = 'card-footer' %}
|
|
104
104
|
{% if _extra_classes_footer is not empty %}
|
|
105
|
-
{
|
|
105
|
+
{%- set _footer_classes = _footer_classes ~ ' ' ~ _extra_classes_footer %}
|
|
106
106
|
{% endif %}
|
|
107
107
|
|
|
108
|
-
{
|
|
108
|
+
{%- set _row_classes = 'row' %}
|
|
109
109
|
{% if _horizontal_grid.gutter is not empty %}
|
|
110
|
-
{
|
|
110
|
+
{%- set _row_classes = _row_classes ~ ' g-' ~ _horizontal_grid.gutter %}
|
|
111
111
|
{% endif %}
|
|
112
112
|
|
|
113
|
-
{
|
|
113
|
+
{%- set attributes = attributes.addClass(_classes) -%}
|
|
114
114
|
|
|
115
115
|
<article
|
|
116
116
|
{{ attributes }}
|
|
117
117
|
>
|
|
118
|
-
{
|
|
118
|
+
{%- if _card_header is not empty -%}
|
|
119
119
|
<div class='{{ _header_classes }}'>
|
|
120
120
|
{{- _card_header -}}
|
|
121
121
|
</div>
|
|
122
|
-
{
|
|
123
|
-
{% if _horizontal
|
|
122
|
+
{%- endif %}
|
|
123
|
+
{% if _horizontal -%}
|
|
124
124
|
<div class='{{ _row_classes }}'>
|
|
125
|
-
{
|
|
125
|
+
{%- endif %}
|
|
126
126
|
{% if _image is not empty and _image.position != 'bottom' %}
|
|
127
|
-
{
|
|
128
|
-
{
|
|
129
|
-
{
|
|
130
|
-
{
|
|
131
|
-
{
|
|
132
|
-
{
|
|
133
|
-
{
|
|
134
|
-
{
|
|
135
|
-
{
|
|
136
|
-
{
|
|
137
|
-
{
|
|
138
|
-
{
|
|
139
|
-
{
|
|
140
|
-
{
|
|
141
|
-
{
|
|
142
|
-
{
|
|
143
|
-
{
|
|
144
|
-
{
|
|
127
|
+
{%- set _img_class = 'card-img-top' %}
|
|
128
|
+
{%- if _image.position == 'background' %}
|
|
129
|
+
{%- set _img_class = 'card-img' %}
|
|
130
|
+
{%- endif %}
|
|
131
|
+
{%- if _image.rounded is not empty %}
|
|
132
|
+
{%- set _img_class = _img_class ~ ' rounded-' ~ _image.rounded %}
|
|
133
|
+
{%- elseif _horizontal %}
|
|
134
|
+
{%- if attributes.hasClass('border-0') %}
|
|
135
|
+
{%- set _img_class = _img_class ~ ' rounded-1' %}
|
|
136
|
+
{%- else %}
|
|
137
|
+
{%- set _img_class = _img_class ~ ' rounded-0 rounded-start' %}
|
|
138
|
+
{%- endif %}
|
|
139
|
+
{%- elseif _card_header is not empty %}
|
|
140
|
+
{%- set _img_class = _img_class ~ ' rounded-0' %}
|
|
141
|
+
{%- endif %}
|
|
142
|
+
{%- if _image.classes is not empty %}
|
|
143
|
+
{%- set _img_class = _img_class ~ " " ~ _image.classes %}
|
|
144
|
+
{%- endif %}
|
|
145
145
|
{% endif %}
|
|
146
|
-
{% if _horizontal and (_image is not empty or _date is not empty)
|
|
147
|
-
<div class='{{ _horizontal_grid.left_col_classes
|
|
148
|
-
{
|
|
149
|
-
{
|
|
150
|
-
{
|
|
151
|
-
{
|
|
152
|
-
{
|
|
153
|
-
{
|
|
146
|
+
{% if _horizontal and (_image is not empty or _date is not empty) -%}
|
|
147
|
+
<div class='{{ _horizontal_grid.left_col_classes }}'>
|
|
148
|
+
{%- endif %}
|
|
149
|
+
{%- if _date is not empty %}
|
|
150
|
+
{%- block card_date %}
|
|
151
|
+
{%- include '@oe-bcl/bcl-date-block/date-block.html.twig' with _date only %}
|
|
152
|
+
{%- endblock %}
|
|
153
|
+
{%- elseif _image is not empty and _image.position != "bottom" -%}
|
|
154
154
|
<img
|
|
155
155
|
src="{{ _image.path }}"
|
|
156
156
|
alt="{{ _image.alt }}"
|
|
157
157
|
class="{{ _img_class }}"
|
|
158
158
|
>
|
|
159
|
-
{
|
|
160
|
-
{% if _horizontal and (_image is not empty or _date is not empty)
|
|
159
|
+
{%- endif %}
|
|
160
|
+
{% if _horizontal and (_image is not empty or _date is not empty) -%}
|
|
161
161
|
</div>
|
|
162
|
-
{
|
|
163
|
-
{% if _image.position == 'background'
|
|
162
|
+
{%- endif %}
|
|
163
|
+
{% if _image.position == 'background' -%}
|
|
164
164
|
<div class="card-img-overlay">
|
|
165
|
-
{
|
|
166
|
-
{% if _horizontal
|
|
165
|
+
{%- endif %}
|
|
166
|
+
{% if _horizontal -%}
|
|
167
167
|
<div class='{{ _horizontal_grid.right_col_classes }}'>
|
|
168
|
-
{
|
|
168
|
+
{%- endif -%}
|
|
169
169
|
<div class='{{ _body_classes }}'>
|
|
170
|
-
{
|
|
171
|
-
{
|
|
172
|
-
{
|
|
173
|
-
{
|
|
174
|
-
{
|
|
175
|
-
{
|
|
170
|
+
{%- if _title is not empty %}
|
|
171
|
+
{%- if _title_attributes.class is empty %}
|
|
172
|
+
{%- set _title_attributes = _title_attributes.addClass('h4') %}
|
|
173
|
+
{%- endif %}
|
|
174
|
+
{%- set _title_attributes = _title_attributes.addClass('card-title') %}
|
|
175
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
176
176
|
title: _title,
|
|
177
177
|
title_tag: _title_tag,
|
|
178
178
|
title_link: _title_link,
|
|
179
179
|
attributes: _title_attributes,
|
|
180
180
|
} only %}
|
|
181
|
-
{
|
|
181
|
+
{%- endif %}
|
|
182
182
|
{%- if _subtitle is not empty -%}
|
|
183
|
-
{% set _subtitle_tag = _subtitle.tag ?? 'h6'
|
|
183
|
+
{% set _subtitle_tag = _subtitle.tag ?? 'h6' -%}
|
|
184
184
|
<{{ _subtitle_tag }}
|
|
185
185
|
class='card-subtitle{{ _subtitle.classes ? ' ' ~ _subtitle.classes }}'
|
|
186
186
|
>
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
</{{ _subtitle_tag }}>
|
|
189
189
|
{%- endif -%}
|
|
190
190
|
{%- if _text is not empty -%}
|
|
191
|
-
{% set _text_tag = _text.tag ?? 'p'
|
|
191
|
+
{% set _text_tag = _text.tag ?? 'p' -%}
|
|
192
192
|
<{{ _text_tag }}
|
|
193
193
|
class='card-text{{ _text.classes ? ' ' ~ _text.classes }}'
|
|
194
194
|
>
|
|
@@ -201,72 +201,72 @@
|
|
|
201
201
|
{% block card_badges %}
|
|
202
202
|
{%- if _badges is not empty and _badges is iterable -%}
|
|
203
203
|
<div class="mt-2-5">
|
|
204
|
-
{
|
|
205
|
-
{
|
|
206
|
-
{
|
|
204
|
+
{%- for _badge in _badges %}
|
|
205
|
+
{%- if _badge.attributes is empty %}
|
|
206
|
+
{%- set _badge = _badge|merge({
|
|
207
207
|
attributes: create_attribute()
|
|
208
208
|
}) %}
|
|
209
|
-
{
|
|
210
|
-
{
|
|
209
|
+
{%- endif %}
|
|
210
|
+
{%- set _badge = _badge|merge({
|
|
211
211
|
attributes: _badge.attributes.addClass('mb-2')
|
|
212
212
|
})
|
|
213
213
|
%}
|
|
214
|
-
{
|
|
215
|
-
{
|
|
214
|
+
{%- if not loop.last %}
|
|
215
|
+
{%- set _badge = _badge|merge({
|
|
216
216
|
attributes: _badge.attributes.addClass('me-2')
|
|
217
217
|
})
|
|
218
218
|
%}
|
|
219
|
-
{
|
|
220
|
-
{
|
|
221
|
-
|
|
222
|
-
{
|
|
219
|
+
{%- endif %}
|
|
220
|
+
{%- include '@oe-bcl/bcl-badge/badge.html.twig' with _badge only %}
|
|
221
|
+
|
|
222
|
+
{%- endfor -%}
|
|
223
223
|
</div>
|
|
224
224
|
{%- endif -%}
|
|
225
225
|
{% endblock %}
|
|
226
|
-
{
|
|
226
|
+
{%- block card_links %}
|
|
227
227
|
{%- if _links is not empty and _links is iterable -%}
|
|
228
228
|
<div class="mt-2-5 mb-2">
|
|
229
|
-
{
|
|
229
|
+
{%- for _link in _links -%}
|
|
230
230
|
<div class="mb-3 mb-md-0 d-block d-md-inline-block me-md-4-5">
|
|
231
|
-
{
|
|
231
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _link only -%}
|
|
232
232
|
</div>
|
|
233
|
-
{
|
|
233
|
+
{%- endfor -%}
|
|
234
234
|
</div>
|
|
235
235
|
{%- endif -%}
|
|
236
|
-
{% endblock
|
|
236
|
+
{% endblock -%}
|
|
237
237
|
</div>
|
|
238
|
-
{
|
|
238
|
+
{%- if _horizontal -%}
|
|
239
239
|
</div>
|
|
240
|
-
{
|
|
240
|
+
{%- endif %}
|
|
241
241
|
{% if _image is not empty %}
|
|
242
|
-
{
|
|
242
|
+
{%- if _image.position == 'background' -%}
|
|
243
243
|
</div>
|
|
244
|
-
{
|
|
245
|
-
{
|
|
246
|
-
{
|
|
247
|
-
{
|
|
248
|
-
{
|
|
249
|
-
{
|
|
250
|
-
{
|
|
244
|
+
{%- endif %}
|
|
245
|
+
{%- set _img_class = "card-img-bottom" %}
|
|
246
|
+
{%- if _image.classes is not empty %}
|
|
247
|
+
{%- set _img_class = _img_class ~ " " ~ _image.classes %}
|
|
248
|
+
{%- endif %}
|
|
249
|
+
{%- if _image.position == 'bottom' %}
|
|
250
|
+
{%- if _horizontal -%}
|
|
251
251
|
<div class="col-4">
|
|
252
|
-
{
|
|
252
|
+
{%- endif -%}
|
|
253
253
|
<img
|
|
254
254
|
src="{{ _image.path }}"
|
|
255
255
|
alt="{{ _image.alt }}"
|
|
256
256
|
class="{{ _img_class }}"
|
|
257
257
|
>
|
|
258
|
-
{
|
|
258
|
+
{%- if _horizontal -%}
|
|
259
259
|
</div>
|
|
260
|
-
{
|
|
261
|
-
{
|
|
260
|
+
{%- endif %}
|
|
261
|
+
{%- endif %}
|
|
262
262
|
{% endif %}
|
|
263
|
-
{% if _horizontal
|
|
263
|
+
{% if _horizontal -%}
|
|
264
264
|
</div>
|
|
265
|
-
{
|
|
266
|
-
{% if _card_footer is not empty
|
|
265
|
+
{%- endif %}
|
|
266
|
+
{% if _card_footer is not empty -%}
|
|
267
267
|
<div class="{{ _footer_classes }}">
|
|
268
268
|
{{- _card_footer -}}
|
|
269
269
|
</div>
|
|
270
|
-
{
|
|
270
|
+
{%- endif -%}
|
|
271
271
|
</article>
|
|
272
|
-
|
|
272
|
+
{#--#}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
- card_layout_card
|
|
19
19
|
#}
|
|
20
20
|
|
|
21
|
-
{
|
|
21
|
+
{%- set _type = type|default('group') %}
|
|
22
22
|
{% set _items = items|default([]) %}
|
|
23
23
|
{% set _grid_columns = grid_columns|default(1) %}
|
|
24
24
|
{% set _responsiveness = responsiveness|default('md') %}
|
|
@@ -27,58 +27,58 @@
|
|
|
27
27
|
{% set _equal_height = equal_height ?? false %}
|
|
28
28
|
{% set _cols_extra_classes = cols_extra_classes|default('') %}
|
|
29
29
|
|
|
30
|
-
{
|
|
30
|
+
{%- set _cols_classes = 'col' %}
|
|
31
31
|
|
|
32
|
-
{
|
|
33
|
-
{
|
|
32
|
+
{%- if _cols_extra_classes is not empty %}
|
|
33
|
+
{%- set _cols_classes = _cols_classes ~ ' ' ~ _cols_extra_classes %}
|
|
34
34
|
{% endif %}
|
|
35
35
|
{% if _type == 'group' %}
|
|
36
|
-
{
|
|
36
|
+
{%- set _classes = ['card-group'] %}
|
|
37
37
|
{% elseif type == 'grid' or type == 'masonry' %}
|
|
38
|
-
{
|
|
39
|
-
{
|
|
40
|
-
{
|
|
41
|
-
{
|
|
42
|
-
{
|
|
43
|
-
{
|
|
44
|
-
{
|
|
38
|
+
{%- set _classes = ['row', 'row-cols-' ~ _grid_columns] %}
|
|
39
|
+
{%- if _responsive_columns is not empty %}
|
|
40
|
+
{%- set _classes = _classes|merge(['row-cols-' ~ _responsiveness ~ '-' ~ _responsive_columns]) %}
|
|
41
|
+
{%- endif %}
|
|
42
|
+
{%- if _gutter is not empty %}
|
|
43
|
+
{%- set _classes = _classes|merge(['g-' ~ _gutter]) %}
|
|
44
|
+
{%- endif %}
|
|
45
45
|
{% endif %}
|
|
46
46
|
|
|
47
|
-
{
|
|
48
|
-
{
|
|
47
|
+
{%- if attributes is empty %}
|
|
48
|
+
{%- set attributes = create_attribute() %}
|
|
49
49
|
{% endif %}
|
|
50
50
|
|
|
51
|
-
{
|
|
51
|
+
{%- set attributes = attributes.addClass(_classes) -%}
|
|
52
52
|
|
|
53
53
|
<div
|
|
54
54
|
{{ attributes }}
|
|
55
|
-
{
|
|
55
|
+
{%- if _type == 'masonry' %}
|
|
56
56
|
data-masonry='{"percentPosition": true }'
|
|
57
57
|
{% endif %}
|
|
58
58
|
>
|
|
59
|
-
{
|
|
60
|
-
{
|
|
61
|
-
{
|
|
62
|
-
{
|
|
59
|
+
{%- if _items is not empty and _items is iterable %}
|
|
60
|
+
{%- for _item in _items %}
|
|
61
|
+
{%- if _item.attributes is empty %}
|
|
62
|
+
{%- set _item = _item|merge({
|
|
63
63
|
attributes: create_attribute()
|
|
64
64
|
}) %}
|
|
65
|
-
{
|
|
66
|
-
{
|
|
67
|
-
{
|
|
65
|
+
{%- endif %}
|
|
66
|
+
{%- if _equal_height %}
|
|
67
|
+
{%- set _item = _item|merge({
|
|
68
68
|
attributes: _item.attributes.addClass('h-100')
|
|
69
69
|
})
|
|
70
70
|
%}
|
|
71
|
-
{
|
|
72
|
-
{
|
|
71
|
+
{%- endif %}
|
|
72
|
+
{%- if _type == 'grid' or _type == 'masonry' -%}
|
|
73
73
|
<div class="{{ _cols_classes }}">
|
|
74
|
-
{
|
|
75
|
-
{
|
|
76
|
-
{
|
|
77
|
-
{
|
|
78
|
-
{
|
|
74
|
+
{%- endif %}
|
|
75
|
+
{%- block card_layout_card %}
|
|
76
|
+
{%- include '@oe-bcl/bcl-card/card.html.twig' with _item only %}
|
|
77
|
+
{%- endblock %}
|
|
78
|
+
{%- if _type == 'grid' or _type == 'masonry' -%}
|
|
79
79
|
</div>
|
|
80
|
-
{
|
|
81
|
-
{
|
|
82
|
-
{% endif
|
|
80
|
+
{%- endif %}
|
|
81
|
+
{%- endfor %}
|
|
82
|
+
{% endif -%}
|
|
83
83
|
</div>
|
|
84
|
-
|
|
84
|
+
{#--#}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
image: (string) <img> tag
|
|
13
13
|
caption (string)
|
|
14
14
|
caption_classes (string)
|
|
15
|
-
caption_title (string)
|
|
15
|
+
caption_title (string)
|
|
16
16
|
interval (integer) (default: 0)
|
|
17
17
|
}
|
|
18
18
|
],
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
- attributes (drupal attrs)
|
|
27
27
|
#}
|
|
28
28
|
|
|
29
|
-
{
|
|
29
|
+
{%- set _title = title|default('') %}
|
|
30
30
|
{% set _title_tag = title_tag|default('h2') %}
|
|
31
31
|
{% set _title_link = title_link|default({}) %}
|
|
32
32
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -43,36 +43,36 @@
|
|
|
43
43
|
{% set _rounded_indicators = rounded_indicators ?? false %}
|
|
44
44
|
{% set _disable_touch = disable_touch ?? false %}
|
|
45
45
|
|
|
46
|
-
{
|
|
46
|
+
{%- set _classes = ['carousel', 'slide'] %}
|
|
47
47
|
|
|
48
|
-
{
|
|
49
|
-
{
|
|
48
|
+
{%- if _fade %}
|
|
49
|
+
{%- set _classes = _classes|merge(['carousel-fade']) %}
|
|
50
50
|
{% endif %}
|
|
51
51
|
{% if _dark %}
|
|
52
|
-
{
|
|
52
|
+
{%- set _classes = _classes|merge(['carousel-dark']) %}
|
|
53
53
|
{% endif %}
|
|
54
54
|
|
|
55
|
-
{
|
|
56
|
-
{
|
|
55
|
+
{%- if attributes is empty %}
|
|
56
|
+
{%- set attributes = create_attribute() %}
|
|
57
57
|
{% endif %}
|
|
58
58
|
|
|
59
|
-
{
|
|
60
|
-
{
|
|
59
|
+
{%- if _id is not empty %}
|
|
60
|
+
{%- set attributes = attributes.setAttribute('id', _id) %}
|
|
61
61
|
{% endif %}
|
|
62
62
|
|
|
63
|
-
{
|
|
64
|
-
{
|
|
63
|
+
{%- if _autoplay %}
|
|
64
|
+
{%- set attributes = attributes.setAttribute('data-bs-ride', 'carousel') %}
|
|
65
65
|
{% endif %}
|
|
66
66
|
|
|
67
|
-
{
|
|
68
|
-
{
|
|
67
|
+
{%- if _disable_touch %}
|
|
68
|
+
{%- set attributes = attributes.setAttribute('data-bs-touch', 'false') %}
|
|
69
69
|
{% endif %}
|
|
70
70
|
|
|
71
|
-
{
|
|
72
|
-
{
|
|
71
|
+
{%- if _rounded_indicators %}
|
|
72
|
+
{%- set attributes = attributes.addClass('rounded-indicators') %}
|
|
73
73
|
{% endif %}
|
|
74
74
|
|
|
75
|
-
{
|
|
75
|
+
{%- set attributes = attributes.addClass(_classes) %}
|
|
76
76
|
|
|
77
77
|
{%- if _title is not empty -%}
|
|
78
78
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
@@ -86,92 +86,92 @@
|
|
|
86
86
|
<div
|
|
87
87
|
{{ attributes }}
|
|
88
88
|
>
|
|
89
|
-
{
|
|
89
|
+
{%- if _with_indicators -%}
|
|
90
90
|
<div class="carousel-indicators d-none d-md-flex">
|
|
91
|
-
{
|
|
92
|
-
{
|
|
91
|
+
{%- for _i in 0..(_items|length - 1) %}
|
|
92
|
+
{%- set button_attributes = create_attribute()
|
|
93
93
|
.setAttribute('aria-label', 'Slide ' ~ (_i + 1))
|
|
94
94
|
.setAttribute('data-bs-target', '#' ~ _id)
|
|
95
95
|
.setAttribute('data-bs-slide-to', _i)
|
|
96
96
|
%}
|
|
97
|
-
{
|
|
98
|
-
{
|
|
99
|
-
{
|
|
100
|
-
{
|
|
97
|
+
{%- if loop.index == _active_item %}
|
|
98
|
+
{%- set button_attributes = button_attributes.setAttribute('aria-current', true).addClass(['active']) %}
|
|
99
|
+
{%- endif %}
|
|
100
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
101
101
|
clean_class: true,
|
|
102
102
|
attributes: button_attributes
|
|
103
103
|
} only %}
|
|
104
|
-
{
|
|
104
|
+
{%- endfor -%}
|
|
105
105
|
</div>
|
|
106
|
-
{
|
|
106
|
+
{%- endif -%}
|
|
107
107
|
<div class="carousel-inner">
|
|
108
|
-
{
|
|
109
|
-
{
|
|
110
|
-
{
|
|
111
|
-
{
|
|
112
|
-
{
|
|
113
|
-
{
|
|
108
|
+
{%- if _items is not empty and _items is iterable %}
|
|
109
|
+
{%- for _item in items %}
|
|
110
|
+
{%- set _item_classes = 'carousel-item' %}
|
|
111
|
+
{%- if loop.index == _active_item %}
|
|
112
|
+
{%- set _item_classes = _item_classes ~ ' active' %}
|
|
113
|
+
{%- endif -%}
|
|
114
114
|
<div
|
|
115
115
|
class="{{ _item_classes }}"
|
|
116
116
|
{% if _item.interval is defined %}
|
|
117
117
|
data-bs-interval="{{ _item.interval }}"
|
|
118
118
|
{% endif %}
|
|
119
119
|
>
|
|
120
|
-
{
|
|
121
|
-
{{ _item.image }}
|
|
122
|
-
{
|
|
123
|
-
{
|
|
124
|
-
{
|
|
125
|
-
{
|
|
126
|
-
{
|
|
127
|
-
{
|
|
120
|
+
{%- if _item.image is defined and _item.image is not empty %}
|
|
121
|
+
{{- _item.image }}
|
|
122
|
+
{%- endif %}
|
|
123
|
+
{%- if (_item.caption is defined and _item.caption is not empty) or (_item.link is defined and _item.link is not empty) or (_item.caption_title is defined and _item.caption_title is not empty) %}
|
|
124
|
+
{%- set _caption_classes = 'carousel-caption' %}
|
|
125
|
+
{%- if _item.caption is not empty and _item.link is empty %}
|
|
126
|
+
{%- set _caption_classes = _caption_classes ~ ' d-none d-md-block' %}
|
|
127
|
+
{%- endif -%}
|
|
128
128
|
<div
|
|
129
129
|
class="{{ _caption_classes }}"
|
|
130
130
|
>
|
|
131
|
-
{
|
|
132
|
-
{
|
|
131
|
+
{%- if _item.caption is not empty or _item.caption_title is not empty %}
|
|
132
|
+
{%- if _item.caption_classes is defined and _item.caption_classes is not empty -%}
|
|
133
133
|
<div class="{{ _item.caption_classes }}">
|
|
134
|
-
{
|
|
135
|
-
{
|
|
134
|
+
{%- endif %}
|
|
135
|
+
{%- if _item.caption_title is not empty -%}
|
|
136
136
|
<div class="fs-5">{{ _item.caption_title }}</div>
|
|
137
|
-
{
|
|
137
|
+
{%- endif %}
|
|
138
138
|
{{- _item.caption -}}
|
|
139
|
-
{% if _item.caption_classes is defined and _item.caption_classes is not empty
|
|
139
|
+
{% if _item.caption_classes is defined and _item.caption_classes is not empty -%}
|
|
140
140
|
</div>
|
|
141
|
-
{
|
|
142
|
-
{
|
|
143
|
-
{
|
|
144
|
-
{
|
|
145
|
-
{
|
|
141
|
+
{%- endif %}
|
|
142
|
+
{%- endif %}
|
|
143
|
+
{%- if _item.link is defined and _item.link is not empty %}
|
|
144
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _item.link only %}
|
|
145
|
+
{%- endif -%}
|
|
146
146
|
</div>
|
|
147
|
-
{
|
|
147
|
+
{%- endif -%}
|
|
148
148
|
</div>
|
|
149
|
-
{
|
|
150
|
-
{
|
|
149
|
+
{%- endfor %}
|
|
150
|
+
{%- endif -%}
|
|
151
151
|
</div>
|
|
152
|
-
{
|
|
152
|
+
{%- if _with_controls -%}
|
|
153
153
|
<button
|
|
154
154
|
class="carousel-control-prev"
|
|
155
155
|
type="button"
|
|
156
156
|
data-bs-target="#{{ _id }}"
|
|
157
157
|
data-bs-slide="prev"
|
|
158
|
-
>
|
|
158
|
+
>{# -#}
|
|
159
159
|
<span class="carousel-control-prev-icon"></span>
|
|
160
|
-
{
|
|
160
|
+
{%- if _prev_label is not empty -%}
|
|
161
161
|
<span class="visually-hidden">{{ _prev_label }}</span>
|
|
162
|
-
{
|
|
163
|
-
</button>
|
|
162
|
+
{%- endif -%}
|
|
163
|
+
</button>{# -#}
|
|
164
164
|
<button
|
|
165
165
|
class="carousel-control-next"
|
|
166
166
|
type="button"
|
|
167
167
|
data-bs-target="#{{ _id }}"
|
|
168
168
|
data-bs-slide="next"
|
|
169
|
-
>
|
|
169
|
+
>{# -#}
|
|
170
170
|
<span class="carousel-control-next-icon"></span>
|
|
171
|
-
{
|
|
171
|
+
{%- if _next_label is not empty -%}
|
|
172
172
|
<span class="visually-hidden">{{ _next_label }}</span>
|
|
173
|
-
{
|
|
173
|
+
{%- endif -%}
|
|
174
174
|
</button>
|
|
175
|
-
{
|
|
175
|
+
{%- endif -%}
|
|
176
176
|
</div>
|
|
177
|
-
|
|
177
|
+
{#--#}
|