@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
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
- attributes (drupal attrs)
|
|
23
23
|
#}
|
|
24
24
|
|
|
25
|
-
{
|
|
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() %}
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
{% set _items = items|default([]) %}
|
|
32
32
|
{% set _submit = submit|default({}) %}
|
|
33
33
|
|
|
34
|
-
{
|
|
35
|
-
{
|
|
34
|
+
{%- if attributes is empty %}
|
|
35
|
+
{%- set attributes = create_attribute() %}
|
|
36
36
|
{% endif %}
|
|
37
37
|
|
|
38
|
-
{
|
|
39
|
-
{
|
|
38
|
+
{%- if _title is not empty %}
|
|
39
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
40
40
|
title: _title,
|
|
41
41
|
title_tag: _title_tag,
|
|
42
42
|
title_link: _title_link,
|
|
@@ -44,39 +44,39 @@
|
|
|
44
44
|
} only %}
|
|
45
45
|
{% endif %}
|
|
46
46
|
|
|
47
|
-
{
|
|
47
|
+
{%- if _helper_text is not empty -%}
|
|
48
48
|
<p>{{ _helper_text }}</p>
|
|
49
|
-
{
|
|
49
|
+
{%- endif -%}
|
|
50
50
|
|
|
51
51
|
<form
|
|
52
52
|
{{ attributes }}
|
|
53
53
|
>
|
|
54
|
-
{
|
|
54
|
+
{%- if _items is not empty and _items is iterable %}
|
|
55
55
|
{% for _item_group in _items %}
|
|
56
|
-
{
|
|
57
|
-
{
|
|
58
|
-
{
|
|
59
|
-
{
|
|
60
|
-
{
|
|
61
|
-
{
|
|
62
|
-
{
|
|
63
|
-
{
|
|
64
|
-
{
|
|
65
|
-
{
|
|
66
|
-
{
|
|
67
|
-
{
|
|
56
|
+
{%- set _group_classes = '' %}
|
|
57
|
+
{%- set _legend_classes = '' %}
|
|
58
|
+
{%- set _fieldset_classes = '' %}
|
|
59
|
+
{%- if _item_group is not empty and _item_group is iterable %}
|
|
60
|
+
{%- if _item_group[0].classes is defined and _item_group[0].classes is not empty %}
|
|
61
|
+
{%- set _group_classes = _item_group[0].classes %}
|
|
62
|
+
{%- endif %}
|
|
63
|
+
{#- fieldset #}
|
|
64
|
+
{%- if _item_group[0].type == 'fieldset' %}
|
|
65
|
+
{%- if _item_group[0].fieldset_classes is defined and _item_group[0].fieldset_classes is not empty %}
|
|
66
|
+
{%- set _fieldset_classes = _item_group[0].fieldset_classes %}
|
|
67
|
+
{%- endif -%}
|
|
68
68
|
<fieldset
|
|
69
69
|
{% if _fieldset_classes is not empty %}
|
|
70
70
|
class="{{ _fieldset_classes }}"
|
|
71
71
|
{% endif %}
|
|
72
|
-
{
|
|
72
|
+
{%- if _item_group[0].disabled %}
|
|
73
73
|
disabled
|
|
74
74
|
{% endif %}
|
|
75
75
|
>
|
|
76
|
-
{
|
|
77
|
-
{
|
|
78
|
-
{
|
|
79
|
-
{
|
|
76
|
+
{%- if _item_group[0].legend is defined and _item_group[0].legend is not empty %}
|
|
77
|
+
{%- if _item_group[0].legend_classes is defined and _item_group[0].legend_classes is not empty %}
|
|
78
|
+
{%- set _legend_classes = _item_group[0].legend_classes %}
|
|
79
|
+
{%- endif -%}
|
|
80
80
|
<legend
|
|
81
81
|
{% if _legend_classes is not empty %}
|
|
82
82
|
class="{{ _legend_classes }}"
|
|
@@ -84,64 +84,64 @@
|
|
|
84
84
|
>
|
|
85
85
|
{{- _item_group[0].legend -}}
|
|
86
86
|
</legend>
|
|
87
|
-
{
|
|
88
|
-
{
|
|
89
|
-
{
|
|
87
|
+
{%- endif %}
|
|
88
|
+
{%- endif %}
|
|
89
|
+
{%- if _group_classes is not empty -%}
|
|
90
90
|
<div class="{{ _group_classes }}">
|
|
91
|
-
{
|
|
92
|
-
{
|
|
93
|
-
{
|
|
94
|
-
{
|
|
95
|
-
{
|
|
91
|
+
{%- endif %}
|
|
92
|
+
{%- for _item in _item_group %}
|
|
93
|
+
{%- if _item.type != 'fieldset' %}
|
|
94
|
+
{#- grouping input fields wrapper #}
|
|
95
|
+
{%- if _item.wrapper_classes is defined and _item.wrapper_classes is not empty -%}
|
|
96
96
|
<div class="{{ _item.wrapper_classes }}">
|
|
97
|
-
{
|
|
98
|
-
{
|
|
99
|
-
{
|
|
100
|
-
{
|
|
101
|
-
{
|
|
102
|
-
{
|
|
103
|
-
{
|
|
104
|
-
{
|
|
105
|
-
{
|
|
106
|
-
{
|
|
107
|
-
{
|
|
108
|
-
{
|
|
97
|
+
{%- endif %}
|
|
98
|
+
{#- textarea #}
|
|
99
|
+
{%- if _item.type == 'textarea' %}
|
|
100
|
+
{%- include '@oe-bcl/bcl-textarea/textarea.html.twig' with _item only %}
|
|
101
|
+
{#- select #}
|
|
102
|
+
{%- elseif _item.type == 'select' %}
|
|
103
|
+
{%- include '@oe-bcl/bcl-select/select.html.twig' with _item only %}
|
|
104
|
+
{%- else %}
|
|
105
|
+
{#- any other input type #}
|
|
106
|
+
{%- include '@oe-bcl/bcl-form-input/form-input.html.twig' with _item only %}
|
|
107
|
+
{%- endif %}
|
|
108
|
+
{%- if _item.wrapper_classes is defined and _item.wrapper_classes is not empty -%}
|
|
109
109
|
</div>
|
|
110
|
-
{
|
|
111
|
-
{
|
|
112
|
-
{
|
|
113
|
-
{
|
|
110
|
+
{%- endif %}
|
|
111
|
+
{%- endif %}
|
|
112
|
+
{%- endfor %}
|
|
113
|
+
{%- if _group_classes is not empty -%}
|
|
114
114
|
</div>
|
|
115
|
-
{
|
|
116
|
-
{
|
|
115
|
+
{%- endif %}
|
|
116
|
+
{%- if _item_group[0].type == 'fieldset' -%}
|
|
117
117
|
</fieldset>
|
|
118
|
-
{
|
|
119
|
-
{
|
|
118
|
+
{%- endif %}
|
|
119
|
+
{%- endif %}
|
|
120
120
|
{% endfor %}
|
|
121
121
|
{% endif %}
|
|
122
|
-
{% if _antispam is not empty
|
|
123
|
-
<div class="mt-4 mb-2">
|
|
122
|
+
{% if _antispam is not empty -%}
|
|
123
|
+
<div class="mt-4 mb-2">{# -#}
|
|
124
124
|
<div class="text-bg-light">
|
|
125
|
-
{{ _antispam }}
|
|
126
|
-
</div>
|
|
125
|
+
{{- _antispam -}}
|
|
126
|
+
</div>{# -#}
|
|
127
127
|
</div>
|
|
128
|
-
{
|
|
128
|
+
{%- endif %}
|
|
129
129
|
{# submit #}
|
|
130
130
|
{% if _submit is not empty %}
|
|
131
|
-
{
|
|
132
|
-
{
|
|
131
|
+
{%- if _submit.items is empty %}
|
|
132
|
+
{%- set _submit = _submit|merge({
|
|
133
133
|
items: [_submit]
|
|
134
134
|
}) %}
|
|
135
|
-
{
|
|
136
|
-
{
|
|
135
|
+
{%- endif %}
|
|
136
|
+
{%- if _submit.wrapper is defined and _submit.wrapper is not empty -%}
|
|
137
137
|
<div class="{{ _submit.wrapper }}">
|
|
138
|
-
{
|
|
139
|
-
{
|
|
140
|
-
{
|
|
141
|
-
{
|
|
142
|
-
{
|
|
138
|
+
{%- endif %}
|
|
139
|
+
{%- for _item in _submit.items %}
|
|
140
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _item only %}
|
|
141
|
+
{%- endfor %}
|
|
142
|
+
{%- if _submit.wrapper is defined and _submit.wrapper is not empty -%}
|
|
143
143
|
</div>
|
|
144
|
-
{
|
|
145
|
-
{% endif
|
|
144
|
+
{%- endif %}
|
|
145
|
+
{% endif -%}
|
|
146
146
|
</form>
|
|
147
|
-
|
|
147
|
+
{#--#}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
- attributes (drupal attrs)
|
|
27
27
|
#}
|
|
28
28
|
|
|
29
|
-
{
|
|
29
|
+
{%- set _id = id|default('') %}
|
|
30
30
|
{% set _input_type = input_type|default('text') %}
|
|
31
31
|
{% set _label = label|default('') %}
|
|
32
32
|
{% set _required = required ?? false %}
|
|
@@ -50,70 +50,70 @@
|
|
|
50
50
|
{% set _toggle_variant = toggle_variant|default('primary') %}
|
|
51
51
|
{% set _remove_wrapper = remove_wrapper ?? false %}
|
|
52
52
|
|
|
53
|
-
{
|
|
53
|
+
{%- set _label_block = false %}
|
|
54
54
|
{% set _label_class = 'form-label' %}
|
|
55
55
|
{% set _classes = ['form-control'] %}
|
|
56
56
|
|
|
57
|
-
{
|
|
58
|
-
{
|
|
57
|
+
{%- if input_type == 'range' %}
|
|
58
|
+
{%- set _classes = ['form-range'] %}
|
|
59
59
|
{% endif %}
|
|
60
60
|
{% if _input_type == 'checkbox' or _input_type == 'radio' %}
|
|
61
|
-
{
|
|
62
|
-
{
|
|
61
|
+
{%- set _classes = ['form-check-input'] %}
|
|
62
|
+
{%- set _label_class = 'form-check-label' %}
|
|
63
63
|
{% endif %}
|
|
64
64
|
{% if _invalid is not empty %}
|
|
65
|
-
{
|
|
65
|
+
{%- set _classes = _classes|merge(['is-invalid']) %}
|
|
66
66
|
{% endif %}
|
|
67
67
|
{% if _valid is not empty %}
|
|
68
|
-
{
|
|
68
|
+
{%- set _classes = _classes|merge(['is-valid']) %}
|
|
69
69
|
{% endif %}
|
|
70
70
|
{% if _horizontal %}
|
|
71
|
-
{
|
|
71
|
+
{%- set _label_class = 'col-form-label ' ~ _horizontal_label_class %}
|
|
72
72
|
{% endif %}
|
|
73
73
|
{% if _hidden_label %}
|
|
74
|
-
{
|
|
74
|
+
{%- set _label_class = _label_class ~ ' visually-hidden' %}
|
|
75
75
|
{% endif %}
|
|
76
76
|
{% if _toggle %}
|
|
77
|
-
{
|
|
78
|
-
{
|
|
77
|
+
{%- set _label_class = _label_class ~ ' btn btn-' ~ _toggle_variant %}
|
|
78
|
+
{%- set _classes = _classes|merge(['btn-check']) %}
|
|
79
79
|
{% endif %}
|
|
80
80
|
|
|
81
|
-
{
|
|
82
|
-
{
|
|
81
|
+
{%- if attributes is empty %}
|
|
82
|
+
{%- set attributes = create_attribute() %}
|
|
83
83
|
{% endif %}
|
|
84
84
|
|
|
85
|
-
{
|
|
85
|
+
{%- set attributes = attributes.addClass(_classes).setAttribute('type', _input_type) %}
|
|
86
86
|
|
|
87
|
-
{
|
|
88
|
-
{
|
|
87
|
+
{%- if _id %}
|
|
88
|
+
{%- set attributes = attributes.setAttribute('id', _id) %}
|
|
89
89
|
{% endif %}
|
|
90
90
|
|
|
91
|
-
{
|
|
92
|
-
{
|
|
91
|
+
{%- if _required %}
|
|
92
|
+
{%- set attributes = attributes.setAttribute('required', true) %}
|
|
93
93
|
{% endif %}
|
|
94
94
|
|
|
95
|
-
{
|
|
96
|
-
{
|
|
95
|
+
{%- if _disabled %}
|
|
96
|
+
{%- set attributes = attributes.setAttribute('disabled', true) %}
|
|
97
97
|
{% endif %}
|
|
98
98
|
|
|
99
|
-
{
|
|
100
|
-
{
|
|
99
|
+
{%- if _readonly %}
|
|
100
|
+
{%- set attributes = attributes.setAttribute('readonly', true) %}
|
|
101
101
|
{% endif %}
|
|
102
102
|
|
|
103
|
-
{
|
|
104
|
-
{
|
|
103
|
+
{%- if _checked %}
|
|
104
|
+
{%- set attributes = attributes.setAttribute('checked', true) %}
|
|
105
105
|
{% endif %}
|
|
106
106
|
|
|
107
|
-
{
|
|
108
|
-
{
|
|
107
|
+
{%- if _placeholder is not empty %}
|
|
108
|
+
{%- set attributes = attributes.setAttribute('placeholder', _placeholder) %}
|
|
109
109
|
{% endif %}
|
|
110
110
|
|
|
111
|
-
{
|
|
112
|
-
{
|
|
111
|
+
{%- if _helper_text_id is not empty %}
|
|
112
|
+
{%- set attributes = attributes.setAttribute('aria-describedby', _helper_text_id) %}
|
|
113
113
|
{% endif %}
|
|
114
114
|
|
|
115
|
-
{
|
|
116
|
-
{
|
|
115
|
+
{%- if _label is not empty %}
|
|
116
|
+
{%- set _label_block -%}
|
|
117
117
|
<label
|
|
118
118
|
{% if _id %}
|
|
119
119
|
for="{{ _id }}"
|
|
@@ -122,50 +122,50 @@
|
|
|
122
122
|
>
|
|
123
123
|
{{- label -}}
|
|
124
124
|
</label>
|
|
125
|
-
{
|
|
125
|
+
{%- endset %}
|
|
126
126
|
{% endif %}
|
|
127
127
|
|
|
128
|
-
{
|
|
128
|
+
{%- if (_floating or _horizontal or _input_type == 'checkbox' or _input_type == 'radio') and
|
|
129
129
|
not _toggle and
|
|
130
130
|
not _remove_wrapper
|
|
131
131
|
%}
|
|
132
|
-
{
|
|
132
|
+
{%- set _wrapper_class = _floating ? 'form-floating' : '' %}
|
|
133
133
|
{% if (_input_type == 'checkbox' or _input_type == 'radio') %}
|
|
134
|
-
{
|
|
135
|
-
{
|
|
136
|
-
{
|
|
137
|
-
{
|
|
134
|
+
{%- set _wrapper_class = 'form-check' %}
|
|
135
|
+
{%- if _switch %}
|
|
136
|
+
{%- set _wrapper_class = _wrapper_class ~ ' form-switch' %}
|
|
137
|
+
{%- endif %}
|
|
138
138
|
{% endif %}
|
|
139
|
-
{% if _wrapper_class is not empty
|
|
139
|
+
{% if _wrapper_class is not empty -%}
|
|
140
140
|
<div class="{{ _wrapper_class }}">
|
|
141
|
-
{
|
|
141
|
+
{%- endif %}
|
|
142
142
|
{% endif %}
|
|
143
143
|
{% if _label_block and _floating == false and _input_type != 'checkbox' and _input_type != 'radio' %}
|
|
144
|
-
{{ _label_block|raw }}
|
|
145
|
-
{
|
|
146
|
-
{% if _horizontal and floating == false
|
|
144
|
+
{{- _label_block|raw }}
|
|
145
|
+
{%- endif %}
|
|
146
|
+
{% if _horizontal and floating == false -%}
|
|
147
147
|
<div class="{{ _horizontal_class }}">
|
|
148
|
-
{
|
|
148
|
+
{%- endif -%}
|
|
149
149
|
<input
|
|
150
150
|
{{ attributes }}
|
|
151
151
|
>
|
|
152
|
-
{
|
|
152
|
+
{%- if _horizontal and floating == false -%}
|
|
153
153
|
</div>
|
|
154
|
-
{
|
|
155
|
-
{% if _label_block and (_floating or _input_type == 'checkbox' or _input_type == 'radio')
|
|
156
|
-
{{ _label_block|raw }}
|
|
157
|
-
{
|
|
158
|
-
{% if _invalid_feedback is not empty
|
|
154
|
+
{%- endif %}
|
|
155
|
+
{% if _label_block and (_floating or _input_type == 'checkbox' or _input_type == 'radio') %}
|
|
156
|
+
{{- _label_block|raw }}
|
|
157
|
+
{%- endif %}
|
|
158
|
+
{% if _invalid_feedback is not empty -%}
|
|
159
159
|
<div class="invalid-feedback">
|
|
160
160
|
{{- _invalid_feedback -}}
|
|
161
161
|
</div>
|
|
162
|
-
{
|
|
163
|
-
{% if _valid_feedback is not empty
|
|
162
|
+
{%- endif %}
|
|
163
|
+
{% if _valid_feedback is not empty -%}
|
|
164
164
|
<div class="valid-feedback">
|
|
165
165
|
{{- _valid_feedback -}}
|
|
166
166
|
</div>
|
|
167
|
-
{
|
|
168
|
-
{% if _helper_text is not empty
|
|
167
|
+
{%- endif %}
|
|
168
|
+
{% if _helper_text is not empty -%}
|
|
169
169
|
<div
|
|
170
170
|
class="form-text"
|
|
171
171
|
{%- if _helper_text_id is not empty -%}
|
|
@@ -173,8 +173,7 @@
|
|
|
173
173
|
{%- endif -%}>
|
|
174
174
|
{{- _helper_text -}}
|
|
175
175
|
</div>
|
|
176
|
-
{
|
|
177
|
-
{% if _wrapper_class is not empty
|
|
176
|
+
{%- endif %}
|
|
177
|
+
{% if _wrapper_class is not empty -%}
|
|
178
178
|
</div>
|
|
179
|
-
{
|
|
180
|
-
|
|
179
|
+
{%- endif -%}
|
|
@@ -15,48 +15,48 @@ Parameters:
|
|
|
15
15
|
- attributes (drupal attrs)
|
|
16
16
|
#}
|
|
17
17
|
|
|
18
|
-
{
|
|
18
|
+
{%- set _item = item|default({}) %}
|
|
19
19
|
{% set _carousel_id = carousel_id|default('') %}
|
|
20
20
|
{% set _modal_id = modal_id|default('') %}
|
|
21
21
|
{% set _icon_path = icon_path|default('') %}
|
|
22
22
|
{% set _carousel_anchor = carousel_anchor|default('') %}
|
|
23
23
|
|
|
24
|
-
{
|
|
25
|
-
{
|
|
24
|
+
{%- if attributes is empty %}
|
|
25
|
+
{%- set attributes = create_attribute() %}
|
|
26
26
|
{% endif %}
|
|
27
27
|
|
|
28
|
-
{
|
|
28
|
+
{%- set attributes = attributes.addClass(['bcl-gallery__item', 'd-block', 'w-100', 'img-fluid'])
|
|
29
29
|
.setAttribute('data-bs-target', '#' ~ _carousel_id)
|
|
30
30
|
.setAttribute('data-bs-slide-to', _carousel_anchor)
|
|
31
31
|
.setAttribute('tabindex', '0')
|
|
32
|
-
|
|
32
|
+
-%}
|
|
33
33
|
|
|
34
|
-
<a
|
|
34
|
+
<a
|
|
35
35
|
{{ attributes }}
|
|
36
|
-
>
|
|
36
|
+
>{# -#}
|
|
37
37
|
<div class="bcl-gallery__item-overlay" data-bs-target="#{{ _modal_id }}" data-bs-toggle="modal">
|
|
38
|
-
{
|
|
38
|
+
{%- if _item.is_playable -%}
|
|
39
39
|
<span class="bcl-gallery__item-play-icon">
|
|
40
|
-
{
|
|
40
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
41
41
|
name: 'play-fill',
|
|
42
42
|
size: 's',
|
|
43
43
|
path: _icon_path,
|
|
44
|
-
} only
|
|
44
|
+
} only -%}
|
|
45
45
|
</span>
|
|
46
|
-
{
|
|
47
|
-
{
|
|
46
|
+
{%- endif %}
|
|
47
|
+
{%- if _item.caption is not empty or item.caption_title is not empty -%}
|
|
48
48
|
<div class="bcl-gallery__item-caption">
|
|
49
|
-
{
|
|
49
|
+
{%- if _item.caption_title is not empty -%}
|
|
50
50
|
<div class="fs-5">{{ _item.caption_title }}</div>
|
|
51
|
-
{
|
|
52
|
-
{
|
|
51
|
+
{%- endif %}
|
|
52
|
+
{%- if _item.caption is not empty -%}
|
|
53
53
|
<div class="bcl-gallery__item-description">
|
|
54
|
-
{{ _item.caption }}
|
|
54
|
+
{{- _item.caption -}}
|
|
55
55
|
</div>
|
|
56
|
-
{
|
|
56
|
+
{%- endif -%}
|
|
57
57
|
</div>
|
|
58
|
-
{
|
|
58
|
+
{%- endif -%}
|
|
59
59
|
</div>
|
|
60
|
-
{{ _item.thumbnail }}
|
|
60
|
+
{{- _item.thumbnail -}}
|
|
61
61
|
</a>
|
|
62
|
-
|
|
62
|
+
{#--#}
|