@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
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-theme-joinup",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.4360.202601141610",
|
|
6
6
|
"description": "OE - BCL theme joinup",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"align-templates": "lerna --scope \"@openeuropa/bcl-twig-templates\" run prepublish",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"@ecl/resources-eu-logo": "3.7.1",
|
|
29
29
|
"@ecl/resources-flag-icons": "3.7.1",
|
|
30
30
|
"@fontsource/roboto": "5.2.8",
|
|
31
|
-
"@openeuropa/bcl-bootstrap": "^0.
|
|
32
|
-
"@openeuropa/bcl-builder": "^0.
|
|
33
|
-
"@openeuropa/bcl-theme-default": "^0.
|
|
34
|
-
"@openeuropa/bcl-twig-templates": "^0.
|
|
31
|
+
"@openeuropa/bcl-bootstrap": "^0.4360.202601141610",
|
|
32
|
+
"@openeuropa/bcl-builder": "^0.4360.202601141610",
|
|
33
|
+
"@openeuropa/bcl-theme-default": "^0.4360.202601141610",
|
|
34
|
+
"@openeuropa/bcl-twig-templates": "^0.4360.202601141610",
|
|
35
35
|
"@rollup/plugin-replace": "6.0.2",
|
|
36
36
|
"copyfiles": "2.4.1",
|
|
37
37
|
"cross-env": "10.1.0",
|
|
38
38
|
"flag-icons": "6.9.2",
|
|
39
|
-
"glob": "11.0
|
|
39
|
+
"glob": "11.1.0",
|
|
40
40
|
"npm-run-all": "4.1.5",
|
|
41
41
|
"slim-select": "1.27.1"
|
|
42
42
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"design-system",
|
|
58
58
|
"twig"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "2caf9255f88587416f6e83e572a1f20e4cf206f5"
|
|
61
61
|
}
|
package/src/js/index.esm.js
CHANGED
|
@@ -23,6 +23,7 @@ import ScrollSpy from "@openeuropa/bcl-bootstrap/js/src/scrollspy-legacy";
|
|
|
23
23
|
import Tab from "@openeuropa/bcl-bootstrap/js/src/tab";
|
|
24
24
|
import Toast from "@openeuropa/bcl-bootstrap/js/src/toast";
|
|
25
25
|
import Tooltip from "@openeuropa/bcl-bootstrap/js/src/tooltip";
|
|
26
|
+
import Header from "@openeuropa/bcl-theme-default/src/js/header/header";
|
|
26
27
|
|
|
27
28
|
export {
|
|
28
29
|
Alert,
|
|
@@ -43,4 +44,5 @@ export {
|
|
|
43
44
|
Tab,
|
|
44
45
|
Toast,
|
|
45
46
|
Tooltip,
|
|
47
|
+
Header,
|
|
46
48
|
};
|
package/src/js/index.umd.js
CHANGED
|
@@ -23,6 +23,7 @@ import ScrollSpy from "@openeuropa/bcl-bootstrap/js/src/scrollspy-legacy";
|
|
|
23
23
|
import Tab from "@openeuropa/bcl-bootstrap/js/src/tab";
|
|
24
24
|
import Toast from "@openeuropa/bcl-bootstrap/js/src/toast";
|
|
25
25
|
import Tooltip from "@openeuropa/bcl-bootstrap/js/src/tooltip";
|
|
26
|
+
import Header from "@openeuropa/bcl-theme-default/src/js/header/header";
|
|
26
27
|
|
|
27
28
|
export default {
|
|
28
29
|
Alert,
|
|
@@ -43,4 +44,5 @@ export default {
|
|
|
43
44
|
Tab,
|
|
44
45
|
Toast,
|
|
45
46
|
Tooltip,
|
|
47
|
+
Header,
|
|
46
48
|
};
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
- attributes (drupal attrs)
|
|
21
21
|
#}
|
|
22
22
|
|
|
23
|
-
{
|
|
23
|
+
{%- set _title = title|default('') %}
|
|
24
24
|
{% set _title_tag = title_tag|default('h2') %}
|
|
25
25
|
{% set _title_link = title_link|default({}) %}
|
|
26
26
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
{% set _open_item_id = open_item_id|default(0) %}
|
|
33
33
|
{% set _classes = ['accordion'] %}
|
|
34
34
|
{% if _flush %}
|
|
35
|
-
{
|
|
35
|
+
{%- set _classes = _classes|merge(['accordion-flush']) %}
|
|
36
36
|
{% endif %}
|
|
37
37
|
|
|
38
|
-
{
|
|
39
|
-
{
|
|
38
|
+
{%- if attributes is empty %}
|
|
39
|
+
{%- set attributes = create_attribute() %}
|
|
40
40
|
{% endif %}
|
|
41
41
|
|
|
42
|
-
{
|
|
42
|
+
{%- set attributes = attributes.addClass(_classes).setAttribute('id', 'accordion-' ~ _id) %}
|
|
43
43
|
|
|
44
|
-
{
|
|
44
|
+
{%- if _items is not empty -%}
|
|
45
45
|
<div
|
|
46
46
|
{{ attributes }}
|
|
47
47
|
>
|
|
@@ -55,52 +55,52 @@
|
|
|
55
55
|
{%- endif -%}
|
|
56
56
|
|
|
57
57
|
{% if _items|length > 1 and (_expand_button is not empty or _collapse_button is not empty) %}
|
|
58
|
-
{
|
|
58
|
+
{%- set wrapper_attributes = create_attribute().addClass(['d-flex', 'justify-content-end', 'gap-3', 'mb-3']) -%}
|
|
59
59
|
<div
|
|
60
60
|
{{ wrapper_attributes }}
|
|
61
61
|
>
|
|
62
|
-
{
|
|
63
|
-
{
|
|
64
|
-
{
|
|
62
|
+
{%- if _expand_button is not empty %}
|
|
63
|
+
{%- if _expand_button.attributes is empty %}
|
|
64
|
+
{%- set _expand_button = _expand_button|merge({
|
|
65
65
|
attributes: create_attribute()
|
|
66
66
|
})
|
|
67
67
|
%}
|
|
68
|
-
{
|
|
69
|
-
{
|
|
68
|
+
{%- endif %}
|
|
69
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _expand_button|merge({
|
|
70
70
|
attributes: _expand_button.attributes
|
|
71
71
|
.setAttribute('data-target', 'accordion-' ~ _id)
|
|
72
72
|
.setAttribute('data-action', 'expand')
|
|
73
73
|
}) only %}
|
|
74
|
-
{
|
|
75
|
-
{
|
|
76
|
-
{
|
|
77
|
-
{
|
|
74
|
+
{%- endif %}
|
|
75
|
+
{%- if _collapse_button is not empty %}
|
|
76
|
+
{%- if _collapse_button.attributes is empty %}
|
|
77
|
+
{%- set _collapse_button = _collapse_button|merge({
|
|
78
78
|
attributes: create_attribute()
|
|
79
79
|
})
|
|
80
80
|
%}
|
|
81
|
-
{
|
|
82
|
-
{
|
|
81
|
+
{%- endif %}
|
|
82
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _collapse_button|merge({
|
|
83
83
|
attributes: _collapse_button.attributes
|
|
84
84
|
.setAttribute('data-target', 'accordion-' ~ _id)
|
|
85
85
|
.setAttribute('data-action', 'collapse')
|
|
86
86
|
}) only %}
|
|
87
|
-
{
|
|
87
|
+
{%- endif -%}
|
|
88
88
|
</div>
|
|
89
|
-
{
|
|
89
|
+
{%- endif -%}
|
|
90
90
|
<div class="accordion-items-wrapper">
|
|
91
|
-
{
|
|
92
|
-
{
|
|
93
|
-
{
|
|
94
|
-
{
|
|
95
|
-
{
|
|
96
|
-
{
|
|
91
|
+
{%- for _item in _items %}
|
|
92
|
+
{%- set _open_item = _open_item_id == loop.index %}
|
|
93
|
+
{%- set _button_classes = ['accordion-button'] %}
|
|
94
|
+
{%- if not _open_item %}
|
|
95
|
+
{%- set _button_classes = _button_classes|merge(['collapsed']) %}
|
|
96
|
+
{%- endif -%}
|
|
97
97
|
<div class="accordion-item">
|
|
98
|
-
{%- set _item_title_tag = _item.title_tag|default('h2')
|
|
99
|
-
<{{ _item_title_tag }}
|
|
100
|
-
class="accordion-header"
|
|
98
|
+
{%- set _item_title_tag = _item.title_tag|default('h2') -%}
|
|
99
|
+
<{{ _item_title_tag }}
|
|
100
|
+
class="accordion-header"
|
|
101
101
|
id="heading-{{ _id }}-{{ loop.index }}"
|
|
102
102
|
>
|
|
103
|
-
{
|
|
103
|
+
{%- set button_attributes = create_attribute()
|
|
104
104
|
.addClass(_button_classes)
|
|
105
105
|
.setAttribute('data-bs-toggle', 'collapse')
|
|
106
106
|
.setAttribute('autocomplete', 'off')
|
|
@@ -108,34 +108,33 @@
|
|
|
108
108
|
.setAttribute('aria-controls', 'collapse-' ~ _id ~ '-' ~ loop.index)
|
|
109
109
|
.setAttribute('aria-expanded', open_item ? 'true' : 'false')
|
|
110
110
|
%}
|
|
111
|
-
{
|
|
111
|
+
{%- set item_title -%}
|
|
112
112
|
<span>
|
|
113
113
|
{{- _item.title -}}
|
|
114
114
|
</span>
|
|
115
|
-
{
|
|
116
|
-
{
|
|
115
|
+
{%- endset %}
|
|
116
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
117
117
|
label: item_title,
|
|
118
118
|
clean_class: true,
|
|
119
119
|
attributes: button_attributes
|
|
120
|
-
} only
|
|
121
|
-
</{{ _item_title_tag }}>
|
|
120
|
+
} only -%}
|
|
121
|
+
</{{ _item_title_tag }}>{# -#}
|
|
122
122
|
<div
|
|
123
123
|
id="collapse-{{ _id }}-{{ loop.index }}"
|
|
124
124
|
class="accordion-collapse collapse{{ _open_item ? ' show' }}"
|
|
125
125
|
aria-labelledby="heading-{{ _id }}-{{ loop.index }}"
|
|
126
126
|
role="region"
|
|
127
|
-
{% if not _item.stay_open and _expand_button is empty
|
|
127
|
+
{% if not _item.stay_open and _expand_button is empty %}
|
|
128
128
|
data-bs-parent="#accordion-{{ _id }}"
|
|
129
129
|
{% endif %}
|
|
130
|
-
>
|
|
130
|
+
>{# -#}
|
|
131
131
|
<div class="accordion-body">
|
|
132
132
|
{%- set _content = _item.content|default('') %}
|
|
133
133
|
{%- block content _content -%}
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
134
|
+
</div>{# -#}
|
|
135
|
+
</div>{# -#}
|
|
136
136
|
</div>
|
|
137
|
-
{
|
|
138
|
-
</div>
|
|
137
|
+
{%- endfor -%}
|
|
138
|
+
</div>{# -#}
|
|
139
139
|
</div>
|
|
140
|
-
{
|
|
141
|
-
|
|
140
|
+
{%- endif -%}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- attributes (drupal attrs)
|
|
10
10
|
#}
|
|
11
11
|
|
|
12
|
-
{
|
|
12
|
+
{%- set _message = message|default('') %}
|
|
13
13
|
{% set _heading = heading|default('') %}
|
|
14
14
|
{% set _variant = variant|default('primary') %}
|
|
15
15
|
{% set _dismissible = dismissible ?? true %}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{% set _icon_path = icon_path|default('') %}
|
|
18
18
|
{% set _icon_name = icon_name|default('') %}
|
|
19
19
|
|
|
20
|
-
{
|
|
20
|
+
{%- set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
|
|
21
21
|
{% set _icon_names = {
|
|
22
22
|
primary: "info-circle-fill",
|
|
23
23
|
secondary: "info-circle-fill",
|
|
@@ -30,36 +30,36 @@
|
|
|
30
30
|
}
|
|
31
31
|
%}
|
|
32
32
|
|
|
33
|
-
{
|
|
34
|
-
{
|
|
33
|
+
{%- if _dismissible %}
|
|
34
|
+
{%- set _classes = _classes|merge(['alert-dismissible']) %}
|
|
35
35
|
{% endif %}
|
|
36
36
|
{% if _animated_dismiss %}
|
|
37
|
-
{
|
|
37
|
+
{%- set _classes = _classes|merge(['fade', 'show']) %}
|
|
38
38
|
{% endif %}
|
|
39
39
|
|
|
40
|
-
{
|
|
40
|
+
{%- set _classes = _classes|merge(['text-dark']) %}
|
|
41
41
|
|
|
42
|
-
{
|
|
42
|
+
{%- set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
|
|
43
43
|
|
|
44
|
-
{
|
|
45
|
-
{
|
|
44
|
+
{%- if _variant != 'light' %}
|
|
45
|
+
{%- set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
|
|
46
46
|
{% endif %}
|
|
47
47
|
|
|
48
|
-
{
|
|
49
|
-
{
|
|
48
|
+
{%- if attributes is empty %}
|
|
49
|
+
{%- set attributes = create_attribute() %}
|
|
50
50
|
{% endif %}
|
|
51
51
|
|
|
52
|
-
{
|
|
52
|
+
{%- set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') -%}
|
|
53
53
|
|
|
54
54
|
<div {{ attributes }}>
|
|
55
|
-
{
|
|
56
|
-
{
|
|
55
|
+
{%- if _icon_path is not empty %}
|
|
56
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
57
57
|
name: _icon_name ?: _icon_names[_variant],
|
|
58
58
|
size: 's',
|
|
59
59
|
path: _icon_path,
|
|
60
60
|
attributes: create_attribute().addClass(_icon_classes),
|
|
61
61
|
} only %}
|
|
62
|
-
{% endif
|
|
62
|
+
{% endif -%}
|
|
63
63
|
<div class="alert-content flex-grow-1">
|
|
64
64
|
{%- if _heading is not empty -%}
|
|
65
65
|
<div class="alert-heading h4">{{ _heading }}</div>
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
type="button"
|
|
74
74
|
class="btn-close"
|
|
75
75
|
data-bs-dismiss="alert"
|
|
76
|
-
aria-label="Close"
|
|
77
|
-
|
|
76
|
+
aria-label="Close"
|
|
77
|
+
></button>
|
|
78
78
|
{%- endif -%}
|
|
79
79
|
</div>
|
|
80
|
-
|
|
80
|
+
{#--#}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- attributes (drupal attrs)
|
|
12
12
|
#}
|
|
13
13
|
|
|
14
|
-
{
|
|
14
|
+
{%- set _label = label|default('') %}
|
|
15
15
|
{% set _background = background|default('primary') %}
|
|
16
16
|
{% set _url = url|default('') %}
|
|
17
17
|
{% set _title = title|default('') %}
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
{% set _icon_path = icon_path|default('') %}
|
|
23
23
|
{% set _classes = ['badge'] %}
|
|
24
24
|
|
|
25
|
-
{
|
|
26
|
-
{
|
|
25
|
+
{%- if _rounded_pill %}
|
|
26
|
+
{%- set _classes = _classes|merge(['rounded-pill']) %}
|
|
27
27
|
{% endif %}
|
|
28
28
|
|
|
29
|
-
{
|
|
30
|
-
{
|
|
29
|
+
{%- if _outline %}
|
|
30
|
+
{%- set _classes = _classes|merge(['badge-outline-' ~ _background]) %}
|
|
31
31
|
{% else %}
|
|
32
|
-
{
|
|
32
|
+
{%- set _classes = _classes|merge(['text-bg-' ~ _background]) %}
|
|
33
33
|
{% endif %}
|
|
34
34
|
|
|
35
|
-
{
|
|
36
|
-
{
|
|
35
|
+
{%- if attributes is empty %}
|
|
36
|
+
{%- set attributes = create_attribute() %}
|
|
37
37
|
{% endif %}
|
|
38
38
|
|
|
39
39
|
{%- if _title is not empty -%}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
{% set attributes = attributes.addClass(_classes) %}
|
|
44
44
|
|
|
45
|
-
{
|
|
45
|
+
{%- set _label %}
|
|
46
46
|
{%- if _assistive_text is not empty -%}
|
|
47
47
|
<span class="visually-hidden">
|
|
48
48
|
{{- _assistive_text -}}
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
{{- _label -}}
|
|
52
52
|
{%- if _dismissible -%}
|
|
53
53
|
<span class="icon--close" aria-hidden="true">
|
|
54
|
-
{
|
|
54
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
55
55
|
name: "x-circle-fill",
|
|
56
56
|
size: "xs",
|
|
57
57
|
path: _icon_path,
|
|
58
|
-
} only
|
|
58
|
+
} only -%}
|
|
59
59
|
</span>
|
|
60
60
|
{%- endif -%}
|
|
61
61
|
{% endset %}
|
|
@@ -73,4 +73,3 @@
|
|
|
73
73
|
{{- _label -}}
|
|
74
74
|
</span>
|
|
75
75
|
{%- endif -%}
|
|
76
|
-
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
- attributes (drupal attrs)
|
|
15
15
|
#}
|
|
16
16
|
|
|
17
|
-
{
|
|
17
|
+
{%- set _title = title|default('') %}
|
|
18
18
|
{% set _title_tag = title_tag|default('div') %}
|
|
19
19
|
{% set _title_link = title_link|default({}) %}
|
|
20
20
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -27,67 +27,67 @@
|
|
|
27
27
|
{% set _fixed_height = fixed_height ?? false %}
|
|
28
28
|
{% set _content_classes = content_classes|default('') %}
|
|
29
29
|
|
|
30
|
-
{
|
|
30
|
+
{%- set _content_class = 'bcl-banner__content' %}
|
|
31
31
|
{% if _content_classes is not empty %}
|
|
32
|
-
{
|
|
32
|
+
{%- set _content_class = _content_class ~ " " ~ _content_classes %}
|
|
33
33
|
{% endif %}
|
|
34
34
|
|
|
35
|
-
{
|
|
35
|
+
{%- set _title_classes = ['display-6'] %}
|
|
36
36
|
{% if _description is not empty or _link is not empty %}
|
|
37
|
-
{
|
|
37
|
+
{%- set _title_classes = _title_classes|merge(['mb-3']) %}
|
|
38
38
|
{% endif %}
|
|
39
39
|
|
|
40
|
-
{
|
|
40
|
+
{%- set _title_attributes = _title_attributes.addClass(_title_classes) %}
|
|
41
41
|
|
|
42
|
-
{
|
|
42
|
+
{%- set _classes = ['bcl-banner'] %}
|
|
43
43
|
|
|
44
|
-
{
|
|
45
|
-
{
|
|
44
|
+
{%- if _shade %}
|
|
45
|
+
{%- set _classes = _classes|merge(['shade']) %}
|
|
46
46
|
{% endif %}
|
|
47
47
|
|
|
48
|
-
{
|
|
49
|
-
{
|
|
48
|
+
{%- if _image and not _shade %}
|
|
49
|
+
{%- set _classes = _classes|merge(['overlay']) %}
|
|
50
50
|
{% endif %}
|
|
51
51
|
|
|
52
|
-
{
|
|
53
|
-
{
|
|
52
|
+
{%- if _hero %}
|
|
53
|
+
{%- set _classes = _classes|merge(['hero']) %}
|
|
54
54
|
{% endif %}
|
|
55
55
|
|
|
56
|
-
{
|
|
57
|
-
{
|
|
56
|
+
{%- if _full_width %}
|
|
57
|
+
{%- set _classes = _classes|merge(['full-width']) %}
|
|
58
58
|
{% endif %}
|
|
59
59
|
|
|
60
|
-
{
|
|
61
|
-
{
|
|
60
|
+
{%- if _fixed_height %}
|
|
61
|
+
{%- set _classes = _classes|merge(['fixed-height']) %}
|
|
62
62
|
{% endif %}
|
|
63
63
|
|
|
64
|
-
{
|
|
65
|
-
{
|
|
64
|
+
{%- if attributes is empty %}
|
|
65
|
+
{%- set attributes = create_attribute() %}
|
|
66
66
|
{% endif %}
|
|
67
67
|
|
|
68
|
-
{
|
|
68
|
+
{%- set attributes = attributes.addClass(_classes) -%}
|
|
69
69
|
|
|
70
70
|
<div {{ attributes }}>
|
|
71
|
-
{
|
|
71
|
+
{%- if _image is not empty -%}
|
|
72
72
|
<div class="bcl-banner__image" style="background-image:url({{ _image }})"></div>
|
|
73
|
-
{
|
|
74
|
-
<div class="container">
|
|
73
|
+
{%- endif -%}
|
|
74
|
+
<div class="container">{# -#}
|
|
75
75
|
<div class="{{ _content_class }}">
|
|
76
|
-
{
|
|
77
|
-
{
|
|
76
|
+
{%- if _title is not empty %}
|
|
77
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
78
78
|
title: _title,
|
|
79
79
|
title_tag: _title_tag,
|
|
80
80
|
title_link: _title_link,
|
|
81
81
|
attributes: _title_attributes,
|
|
82
82
|
} only %}
|
|
83
|
-
{
|
|
84
|
-
{
|
|
83
|
+
{%- endif %}
|
|
84
|
+
{%- if _description is not empty -%}
|
|
85
85
|
<p class="mb-4">{{ _description }}</p>
|
|
86
|
-
{
|
|
87
|
-
{
|
|
88
|
-
{
|
|
89
|
-
{
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
86
|
+
{%- endif %}
|
|
87
|
+
{%- if _link.path %}
|
|
88
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
|
|
89
|
+
{%- endif -%}
|
|
90
|
+
</div>{# -#}
|
|
91
|
+
</div>{# -#}
|
|
92
92
|
</div>
|
|
93
|
-
|
|
93
|
+
{#--#}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
- messages_area
|
|
24
24
|
#}
|
|
25
25
|
|
|
26
|
-
{
|
|
26
|
+
{%- set _with_header = header ?? false %}
|
|
27
27
|
{% set _with_footer = footer ?? false %}
|
|
28
28
|
{% set _with_banner = banner ?? false %}
|
|
29
29
|
{% set _with_sidebar = sidebar ?? false %}
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
{% set _content_type = content_type|default('') %}
|
|
33
33
|
{% set _classes = ['bcl-node-type'] %}
|
|
34
34
|
|
|
35
|
-
{
|
|
36
|
-
{
|
|
35
|
+
{%- if _with_sidebar %}
|
|
36
|
+
{%- set _col_classes = {
|
|
37
37
|
left: [
|
|
38
38
|
'col-12',
|
|
39
39
|
'bcl-sidebar',
|
|
@@ -43,94 +43,93 @@
|
|
|
43
43
|
],
|
|
44
44
|
} %}
|
|
45
45
|
|
|
46
|
-
{
|
|
47
|
-
{
|
|
46
|
+
{%- if _sidebar_size == 'normal' %}
|
|
47
|
+
{%- set _col_classes = _col_classes|merge({
|
|
48
48
|
left: _col_classes.left|merge(['col-lg-3']),
|
|
49
49
|
right: _col_classes.right|merge(['col-lg-9', 'col-xxl-8']),
|
|
50
50
|
}) %}
|
|
51
|
-
{
|
|
51
|
+
{%- endif %}
|
|
52
52
|
|
|
53
|
-
{
|
|
54
|
-
{
|
|
53
|
+
{%- if _sidebar_size == 'large' %}
|
|
54
|
+
{%- set _col_classes = _col_classes|merge({
|
|
55
55
|
left: _col_classes.left|merge(['col-lg-4']),
|
|
56
56
|
right: _col_classes.right|merge(['col-lg-8']),
|
|
57
57
|
}) %}
|
|
58
|
-
{
|
|
58
|
+
{%- endif %}
|
|
59
59
|
{% endif %}
|
|
60
60
|
|
|
61
|
-
{
|
|
62
|
-
{
|
|
61
|
+
{%- if _content_type is not empty %}
|
|
62
|
+
{%- set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
|
|
63
63
|
{% endif %}
|
|
64
64
|
|
|
65
|
-
{
|
|
66
|
-
{
|
|
65
|
+
{%- if attributes is empty %}
|
|
66
|
+
{%- set attributes = create_attribute() %}
|
|
67
67
|
{% endif %}
|
|
68
68
|
|
|
69
|
-
{
|
|
70
|
-
{
|
|
71
|
-
{% endif
|
|
69
|
+
{%- if _with_header %}
|
|
70
|
+
{%- include '@oe-bcl/bcl-header/header.html.twig' with header only %}
|
|
71
|
+
{% endif -%}
|
|
72
72
|
|
|
73
73
|
<main {{ attributes }}>
|
|
74
|
-
{
|
|
75
|
-
{
|
|
74
|
+
{%- if messages is defined and messages is not empty %}
|
|
75
|
+
{%- block messages_area -%}
|
|
76
76
|
<div class="container">
|
|
77
|
-
{
|
|
78
|
-
{
|
|
79
|
-
{
|
|
77
|
+
{%- for message in messages %}
|
|
78
|
+
{%- set message_attributes = create_attribute().addClass(['mt-lg-5', 'mt-2']) %}
|
|
79
|
+
{%- include '@oe-bcl/bcl-alert/alert.html.twig' with message|merge({
|
|
80
80
|
attributes: message_attributes,
|
|
81
81
|
}) only %}
|
|
82
|
-
{
|
|
82
|
+
{%- endfor -%}
|
|
83
83
|
</div>
|
|
84
|
-
{
|
|
84
|
+
{%- endblock %}
|
|
85
85
|
{% endif %}
|
|
86
86
|
|
|
87
|
-
{
|
|
88
|
-
{
|
|
89
|
-
{
|
|
90
|
-
{
|
|
91
|
-
{% endif
|
|
87
|
+
{%- if _with_banner %}
|
|
88
|
+
{%- block banner %}
|
|
89
|
+
{%- include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
|
|
90
|
+
{%- endblock %}
|
|
91
|
+
{% endif -%}
|
|
92
92
|
|
|
93
|
-
<div class="container mt-md-4-75 mt-4">
|
|
93
|
+
<div class="container mt-md-4-75 mt-4">{# -#}
|
|
94
94
|
<div class="row">
|
|
95
|
-
{
|
|
96
|
-
{{ content_row }}
|
|
97
|
-
{
|
|
98
|
-
{
|
|
95
|
+
{%- block content_row %}
|
|
96
|
+
{{- content_row }}
|
|
97
|
+
{%- endblock %}
|
|
98
|
+
{%- if _with_sidebar -%}
|
|
99
99
|
<div class="{{ _col_classes.left|join(' ') }}">
|
|
100
|
-
{
|
|
101
|
-
</div>
|
|
100
|
+
{%- block sidebar %}{% endblock -%}
|
|
101
|
+
</div>{# -#}
|
|
102
102
|
<div class="{{ _col_classes.right|join(' ') }}">
|
|
103
|
-
{
|
|
104
|
-
{
|
|
103
|
+
{%- else %}
|
|
104
|
+
{%- if _landing -%}
|
|
105
105
|
<div class="col-12">
|
|
106
|
-
{
|
|
106
|
+
{%- else -%}
|
|
107
107
|
<div class="col-lg-10 col-xl-9 col-xxl-8">
|
|
108
|
-
{
|
|
109
|
-
{
|
|
110
|
-
{
|
|
111
|
-
{{ content_top }}
|
|
112
|
-
{
|
|
113
|
-
{
|
|
114
|
-
{{ content }}
|
|
115
|
-
{
|
|
116
|
-
{
|
|
117
|
-
{{ content_bottom }}
|
|
118
|
-
{
|
|
119
|
-
{
|
|
120
|
-
{{ related }}
|
|
121
|
-
{
|
|
122
|
-
{
|
|
123
|
-
{{ share }}
|
|
124
|
-
{
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
108
|
+
{%- endif %}
|
|
109
|
+
{%- endif %}
|
|
110
|
+
{%- block content_top %}
|
|
111
|
+
{{- content_top }}
|
|
112
|
+
{%- endblock %}
|
|
113
|
+
{%- block content %}
|
|
114
|
+
{{- content }}
|
|
115
|
+
{%- endblock %}
|
|
116
|
+
{%- block content_bottom %}
|
|
117
|
+
{{- content_bottom }}
|
|
118
|
+
{%- endblock %}
|
|
119
|
+
{%- block related %}
|
|
120
|
+
{{- related }}
|
|
121
|
+
{%- endblock %}
|
|
122
|
+
{%- block share %}
|
|
123
|
+
{{- share }}
|
|
124
|
+
{%- endblock -%}
|
|
125
|
+
</div>{# -#}
|
|
126
|
+
</div>{# -#}
|
|
127
127
|
</main>
|
|
128
128
|
|
|
129
|
-
{
|
|
130
|
-
{{ feedback }}
|
|
131
|
-
{
|
|
132
|
-
|
|
133
|
-
{% if _with_footer %}
|
|
134
|
-
{% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
|
|
135
|
-
{% endif %}
|
|
129
|
+
{%- block feedback %}
|
|
130
|
+
{{- feedback }}
|
|
131
|
+
{%- endblock %}
|
|
136
132
|
|
|
133
|
+
{%- if _with_footer %}
|
|
134
|
+
{%- include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
|
|
135
|
+
{% endif -%}
|