@openeuropa/bcl-theme-joinup 0.4298.202511051800 → 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 +167 -85
- 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 -46
- package/templates/bcl-alert/alert.html.twig +18 -21
- package/templates/bcl-badge/badge.html.twig +11 -15
- package/templates/bcl-banner/banner.html.twig +34 -37
- package/templates/bcl-base-templates/content-type.html.twig +63 -67
- 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 -20
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
- package/templates/bcl-button/button.html.twig +24 -27
- package/templates/bcl-button-group/button-group.html.twig +25 -29
- package/templates/bcl-card/card.html.twig +98 -101
- package/templates/bcl-card-layout/card-layout.html.twig +34 -37
- package/templates/bcl-carousel/carousel.html.twig +64 -67
- package/templates/bcl-contact-form/contact-form.html.twig +1 -1
- package/templates/bcl-content-banner/content-banner.html.twig +37 -40
- package/templates/bcl-date-block/date-block.html.twig +26 -29
- package/templates/bcl-description-list/description-list-details.html.twig +6 -9
- package/templates/bcl-description-list/description-list-title.html.twig +11 -14
- package/templates/bcl-description-list/description-list.html.twig +44 -48
- package/templates/bcl-dropdown/dropdown.html.twig +48 -52
- package/templates/bcl-event/event.html.twig +7 -7
- package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
- package/templates/bcl-featured-media/featured-media.html.twig +42 -46
- package/templates/bcl-file/file-translations.html.twig +29 -32
- package/templates/bcl-file/file.html.twig +47 -50
- package/templates/bcl-footer/footer.html.twig +31 -34
- package/templates/bcl-form/form.html.twig +70 -73
- package/templates/bcl-form-input/form-input.html.twig +57 -61
- package/templates/bcl-gallery/gallery-item.html.twig +20 -23
- package/templates/bcl-gallery/gallery.html.twig +62 -66
- 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 -82
- package/templates/bcl-heading/heading.html.twig +13 -17
- package/templates/bcl-icon/icon.html.twig +10 -13
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
- package/templates/bcl-landing-page/landing-page.html.twig +33 -33
- package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
- package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
- package/templates/bcl-language-list/language-list.html.twig +33 -37
- package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
- package/templates/bcl-link/link.html.twig +24 -27
- package/templates/bcl-links-block/links-block.html.twig +30 -34
- package/templates/bcl-list-group/list-group.html.twig +43 -47
- package/templates/bcl-listing/listing.html.twig +88 -91
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +28 -26
- package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
- package/templates/bcl-modal/modal.html.twig +21 -23
- package/templates/bcl-navbar/navbar.html.twig +35 -38
- package/templates/bcl-navigation/navigation.html.twig +105 -110
- package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
- package/templates/bcl-page/page.html.twig +27 -27
- package/templates/bcl-pagination/pagination-item.html.twig +22 -26
- package/templates/bcl-pagination/pagination.html.twig +59 -62
- package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
- package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
- package/templates/bcl-person/person.html.twig +12 -12
- package/templates/bcl-placeholder/placeholder.html.twig +14 -18
- package/templates/bcl-progress/progress.html.twig +16 -20
- package/templates/bcl-project/project-lists.html.twig +25 -29
- package/templates/bcl-project/project.html.twig +35 -35
- package/templates/bcl-project-status/project-contributions.html.twig +25 -28
- package/templates/bcl-project-status/project-status.html.twig +32 -37
- package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
- package/templates/bcl-search/search.html.twig +12 -12
- package/templates/bcl-search-form/search-form.html.twig +21 -24
- package/templates/bcl-select/select.html.twig +52 -56
- package/templates/bcl-spinner/spinner.html.twig +10 -13
- 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 -17
- package/templates/bcl-table/table.html.twig +61 -65
- package/templates/bcl-textarea/textarea.html.twig +44 -47
- package/templates/bcl-timeline/timeline-item.html.twig +12 -15
- package/templates/bcl-timeline/timeline.html.twig +42 -45
- package/templates/bcl-toasts/toasts.html.twig +56 -60
- package/templates/bcl-user/user-compact.html.twig +24 -27
- package/templates/bcl-user/user-terms.html.twig +6 -6
- package/templates/bcl-user/user.html.twig +117 -117
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{#
|
|
4
2
|
Parameters:
|
|
5
3
|
- with_header (boolean) (default: false)
|
|
@@ -25,7 +23,7 @@
|
|
|
25
23
|
- messages_area
|
|
26
24
|
#}
|
|
27
25
|
|
|
28
|
-
{
|
|
26
|
+
{%- set _with_header = header ?? false %}
|
|
29
27
|
{% set _with_footer = footer ?? false %}
|
|
30
28
|
{% set _with_banner = banner ?? false %}
|
|
31
29
|
{% set _with_sidebar = sidebar ?? false %}
|
|
@@ -34,8 +32,8 @@
|
|
|
34
32
|
{% set _content_type = content_type|default('') %}
|
|
35
33
|
{% set _classes = ['bcl-node-type'] %}
|
|
36
34
|
|
|
37
|
-
{
|
|
38
|
-
{
|
|
35
|
+
{%- if _with_sidebar %}
|
|
36
|
+
{%- set _col_classes = {
|
|
39
37
|
left: [
|
|
40
38
|
'col-12',
|
|
41
39
|
'bcl-sidebar',
|
|
@@ -45,95 +43,93 @@
|
|
|
45
43
|
],
|
|
46
44
|
} %}
|
|
47
45
|
|
|
48
|
-
{
|
|
49
|
-
{
|
|
46
|
+
{%- if _sidebar_size == 'normal' %}
|
|
47
|
+
{%- set _col_classes = _col_classes|merge({
|
|
50
48
|
left: _col_classes.left|merge(['col-lg-3']),
|
|
51
49
|
right: _col_classes.right|merge(['col-lg-9', 'col-xxl-8']),
|
|
52
50
|
}) %}
|
|
53
|
-
{
|
|
51
|
+
{%- endif %}
|
|
54
52
|
|
|
55
|
-
{
|
|
56
|
-
{
|
|
53
|
+
{%- if _sidebar_size == 'large' %}
|
|
54
|
+
{%- set _col_classes = _col_classes|merge({
|
|
57
55
|
left: _col_classes.left|merge(['col-lg-4']),
|
|
58
56
|
right: _col_classes.right|merge(['col-lg-8']),
|
|
59
57
|
}) %}
|
|
60
|
-
{
|
|
58
|
+
{%- endif %}
|
|
61
59
|
{% endif %}
|
|
62
60
|
|
|
63
|
-
{
|
|
64
|
-
{
|
|
61
|
+
{%- if _content_type is not empty %}
|
|
62
|
+
{%- set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
|
|
65
63
|
{% endif %}
|
|
66
64
|
|
|
67
|
-
{
|
|
68
|
-
{
|
|
65
|
+
{%- if attributes is empty %}
|
|
66
|
+
{%- set attributes = create_attribute() %}
|
|
69
67
|
{% endif %}
|
|
70
68
|
|
|
71
|
-
{
|
|
72
|
-
{
|
|
73
|
-
{% endif
|
|
69
|
+
{%- if _with_header %}
|
|
70
|
+
{%- include '@oe-bcl/bcl-header/header.html.twig' with header only %}
|
|
71
|
+
{% endif -%}
|
|
74
72
|
|
|
75
73
|
<main {{ attributes }}>
|
|
76
|
-
{
|
|
77
|
-
{
|
|
74
|
+
{%- if messages is defined and messages is not empty %}
|
|
75
|
+
{%- block messages_area -%}
|
|
78
76
|
<div class="container">
|
|
79
|
-
{
|
|
80
|
-
{
|
|
81
|
-
{
|
|
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({
|
|
82
80
|
attributes: message_attributes,
|
|
83
81
|
}) only %}
|
|
84
|
-
{
|
|
82
|
+
{%- endfor -%}
|
|
85
83
|
</div>
|
|
86
|
-
{
|
|
84
|
+
{%- endblock %}
|
|
87
85
|
{% endif %}
|
|
88
86
|
|
|
89
|
-
{
|
|
90
|
-
{
|
|
91
|
-
{
|
|
92
|
-
{
|
|
93
|
-
{% 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 -%}
|
|
94
92
|
|
|
95
|
-
<div class="container mt-md-4-75 mt-4">
|
|
93
|
+
<div class="container mt-md-4-75 mt-4">{# -#}
|
|
96
94
|
<div class="row">
|
|
97
|
-
{
|
|
98
|
-
{{ content_row }}
|
|
99
|
-
{
|
|
100
|
-
{
|
|
95
|
+
{%- block content_row %}
|
|
96
|
+
{{- content_row }}
|
|
97
|
+
{%- endblock %}
|
|
98
|
+
{%- if _with_sidebar -%}
|
|
101
99
|
<div class="{{ _col_classes.left|join(' ') }}">
|
|
102
|
-
{
|
|
103
|
-
</div>
|
|
100
|
+
{%- block sidebar %}{% endblock -%}
|
|
101
|
+
</div>{# -#}
|
|
104
102
|
<div class="{{ _col_classes.right|join(' ') }}">
|
|
105
|
-
{
|
|
106
|
-
{
|
|
103
|
+
{%- else %}
|
|
104
|
+
{%- if _landing -%}
|
|
107
105
|
<div class="col-12">
|
|
108
|
-
{
|
|
106
|
+
{%- else -%}
|
|
109
107
|
<div class="col-lg-10 col-xl-9 col-xxl-8">
|
|
110
|
-
{
|
|
111
|
-
{
|
|
112
|
-
{
|
|
113
|
-
{{ content_top }}
|
|
114
|
-
{
|
|
115
|
-
{
|
|
116
|
-
{{ content }}
|
|
117
|
-
{
|
|
118
|
-
{
|
|
119
|
-
{{ content_bottom }}
|
|
120
|
-
{
|
|
121
|
-
{
|
|
122
|
-
{{ related }}
|
|
123
|
-
{
|
|
124
|
-
{
|
|
125
|
-
{{ share }}
|
|
126
|
-
{
|
|
127
|
-
</div>
|
|
128
|
-
</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>{# -#}
|
|
129
127
|
</main>
|
|
130
128
|
|
|
131
|
-
{
|
|
132
|
-
{{ feedback }}
|
|
133
|
-
{
|
|
134
|
-
|
|
135
|
-
{% if _with_footer %}
|
|
136
|
-
{% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
|
|
137
|
-
{% endif %}
|
|
129
|
+
{%- block feedback %}
|
|
130
|
+
{{- feedback }}
|
|
131
|
+
{%- endblock %}
|
|
138
132
|
|
|
139
|
-
{
|
|
133
|
+
{%- if _with_footer %}
|
|
134
|
+
{%- include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
|
|
135
|
+
{% endif -%}
|
|
@@ -13,60 +13,60 @@
|
|
|
13
13
|
{% set _listing = listing|default({}) %}
|
|
14
14
|
|
|
15
15
|
{%- block content_top %}
|
|
16
|
-
{
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
16
|
+
{%- set _title = title|default('') %}
|
|
17
|
+
{%- set _title_tag = title_tag|default('h2') %}
|
|
18
|
+
{%- set _title_link = title_link|default({}) %}
|
|
19
|
+
{%- set _title_attributes = title_attributes ?: create_attribute() %}
|
|
20
|
+
{%- set _title_attributes = _title_attributes ?: create_attribute() %}
|
|
21
21
|
{% if filter_button %}
|
|
22
|
-
{
|
|
23
|
-
{% endif
|
|
24
|
-
<div class="row">
|
|
22
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
|
|
23
|
+
{% endif -%}
|
|
24
|
+
<div class="row">{# -#}
|
|
25
25
|
<div class="col-md-6 col-lg-8 align-self-center">
|
|
26
|
-
{
|
|
27
|
-
{
|
|
26
|
+
{%- if _title is not empty %}
|
|
27
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
28
28
|
title: _title ~ ' (' ~ (_listing.items|length) ~ ')',
|
|
29
29
|
title_tag: _title_tag,
|
|
30
30
|
title_link: _title_link,
|
|
31
31
|
attributes: _title_attributes.addClass(['mb-0', 'text-capitalize']),
|
|
32
32
|
} only %}
|
|
33
|
-
{
|
|
33
|
+
{%- endif -%}
|
|
34
34
|
</div>
|
|
35
|
-
{
|
|
35
|
+
{%- if badges is not empty and badges is iterable -%}
|
|
36
36
|
<div class="col-md-12 order-md-2 mt-3">
|
|
37
|
-
{
|
|
38
|
-
{
|
|
37
|
+
{%- for badge in badges %}
|
|
38
|
+
{%- include '@oe-bcl/bcl-badge/badge.html.twig' with badge|merge({
|
|
39
39
|
attributes: create_attribute().addClass(["mb-2", "me-2"])
|
|
40
40
|
}) only %}
|
|
41
|
-
{
|
|
41
|
+
{%- endfor -%}
|
|
42
42
|
</div>
|
|
43
|
-
{
|
|
44
|
-
<div class="col-md-6 col-lg-4 mt-3 mt-md-0">
|
|
43
|
+
{%- endif -%}
|
|
44
|
+
<div class="col-md-6 col-lg-4 mt-3 mt-md-0">{# -#}
|
|
45
45
|
<div class="float-md-end d-md-flex align-items-center mb-4 mb-md-0">
|
|
46
|
-
{
|
|
46
|
+
{%- include '@oe-bcl/bcl-select/select.html.twig' with sort_select|merge({
|
|
47
47
|
attributes: create_attribute().addClass(['ms-md-2']),
|
|
48
|
-
}) only
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
48
|
+
}) only -%}
|
|
49
|
+
</div>{# -#}
|
|
50
|
+
</div>{# -#}
|
|
51
|
+
</div>{# -#}
|
|
52
52
|
<hr class="d-none d-md-block mb-4-75"/>
|
|
53
53
|
{%- endblock -%}
|
|
54
54
|
|
|
55
55
|
{%- block content %}
|
|
56
|
-
{
|
|
57
|
-
{
|
|
58
|
-
{
|
|
56
|
+
{%- if _listing is not empty %}
|
|
57
|
+
{%- include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
|
|
58
|
+
{%- endif %}
|
|
59
59
|
{%- endblock -%}
|
|
60
60
|
|
|
61
61
|
{%- block content_bottom %}
|
|
62
|
-
{
|
|
63
|
-
{
|
|
62
|
+
{%- set _pagination = pagination|default({}) %}
|
|
63
|
+
{%- if _pagination is not empty -%}
|
|
64
64
|
<hr class="d-none d-md-block mt-4-5">
|
|
65
|
-
{
|
|
66
|
-
{
|
|
65
|
+
{%- include '@oe-bcl/bcl-pagination/pagination.html.twig' with _pagination only %}
|
|
66
|
+
{%- endif %}
|
|
67
67
|
{%- endblock -%}
|
|
68
68
|
|
|
69
69
|
{%- block sidebar %}
|
|
70
|
-
{
|
|
71
|
-
{
|
|
70
|
+
{%- set _sidebar = sidebar|default({}) %}
|
|
71
|
+
{%- include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
|
|
72
72
|
{%- endblock -%}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{% extends "@oe-bcl/bcl-offcanvas/offcanvas.html.twig" %}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- set responsiveness = 'lg' %}
|
|
4
4
|
{% if extra_classes_header is empty %}
|
|
5
|
-
{
|
|
5
|
+
{%- set extra_classes_header = 'd-lg-block' %}
|
|
6
6
|
{% else %}
|
|
7
|
-
{
|
|
7
|
+
{%- set extra_classes_header = extra_classes_header ~ ' d-lg-block' %}
|
|
8
8
|
{% endif %}
|
|
9
9
|
|
|
10
|
-
{
|
|
11
|
-
{
|
|
12
|
-
{
|
|
13
|
-
{
|
|
10
|
+
{%- block body %}
|
|
11
|
+
{%- if search_form.attributes is empty %}
|
|
12
|
+
{%- set attributes = search_form.create_attribute() %}
|
|
13
|
+
{%- endif -%}
|
|
14
14
|
|
|
15
15
|
<div class="offcanvas-body p-lg-0">
|
|
16
|
-
{
|
|
16
|
+
{%- include '@oe-bcl/bcl-form/form.html.twig' with search_form|merge({
|
|
17
17
|
attributes: search_form.attributes.addClass('w-100')
|
|
18
|
-
}) only
|
|
18
|
+
}) only -%}
|
|
19
19
|
</div>
|
|
20
|
-
{
|
|
20
|
+
{%- endblock %}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- title (string) (default: '')
|
|
5
3
|
- title_tag (string) (default: 'h2')
|
|
@@ -13,7 +11,7 @@
|
|
|
13
11
|
- attributes (drupal attrs)
|
|
14
12
|
#}
|
|
15
13
|
|
|
16
|
-
{
|
|
14
|
+
{%- set _title = title|default('') %}
|
|
17
15
|
{% set _title_tag = title_tag|default('h2') %}
|
|
18
16
|
{% set _title_link = title_link|default({}) %}
|
|
19
17
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
@@ -22,7 +20,7 @@
|
|
|
22
20
|
{% set _cite = cite|default('') %}
|
|
23
21
|
{% set _alignment = alignment|default('left') %}
|
|
24
22
|
|
|
25
|
-
{
|
|
23
|
+
{%- set _classes = [
|
|
26
24
|
'text-' ~ _alignment,
|
|
27
25
|
"bg-lighter",
|
|
28
26
|
"p-2",
|
|
@@ -31,19 +29,19 @@
|
|
|
31
29
|
"border-secondary"
|
|
32
30
|
] %}
|
|
33
31
|
|
|
34
|
-
{
|
|
35
|
-
{
|
|
32
|
+
{%- if _alignment == "center" %}
|
|
33
|
+
{%- set _classes = _classes|merge(["border-top"]) %}
|
|
36
34
|
{% elseif _alignment == "end" %}
|
|
37
|
-
{
|
|
35
|
+
{%- set _classes = _classes|merge(["border-end"]) %}
|
|
38
36
|
{% else %}
|
|
39
|
-
{
|
|
37
|
+
{%- set _classes = _classes|merge(["border-start"]) %}
|
|
40
38
|
{% endif %}
|
|
41
39
|
|
|
42
|
-
{
|
|
43
|
-
{
|
|
40
|
+
{%- if attributes is empty %}
|
|
41
|
+
{%- set attributes = create_attribute() %}
|
|
44
42
|
{% endif %}
|
|
45
43
|
|
|
46
|
-
{
|
|
44
|
+
{%- set attributes = attributes.addClass(_classes) %}
|
|
47
45
|
|
|
48
46
|
{%- if _title is not empty -%}
|
|
49
47
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
@@ -56,18 +54,17 @@
|
|
|
56
54
|
|
|
57
55
|
<figure
|
|
58
56
|
{{ attributes }}
|
|
59
|
-
>
|
|
60
|
-
<blockquote class="blockquote mb-2">
|
|
61
|
-
<p>{{- _quote -}}</p>
|
|
57
|
+
>{# -#}
|
|
58
|
+
<blockquote class="blockquote mb-2">{# -#}
|
|
59
|
+
<p>{{- _quote -}}</p>{# -#}
|
|
62
60
|
</blockquote>
|
|
63
|
-
{
|
|
61
|
+
{%- if _attribution is not empty -%}
|
|
64
62
|
<figcaption class="blockquote-footer m-0">
|
|
65
63
|
{{- _attribution -}}
|
|
66
|
-
{% if _cite is not empty
|
|
64
|
+
{% if _cite is not empty -%}
|
|
67
65
|
<cite title="{{ _cite }}">{{- _cite -}}</cite>
|
|
68
|
-
{
|
|
66
|
+
{%- endif -%}
|
|
69
67
|
</figcaption>
|
|
70
|
-
{
|
|
68
|
+
{%- endif -%}
|
|
71
69
|
</figure>
|
|
72
|
-
|
|
73
|
-
{% endapply %}
|
|
70
|
+
{#--#}
|
|
@@ -1,46 +1,44 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- links (link[]) (default: [])
|
|
5
3
|
- icon_path (string) (default: '')
|
|
6
4
|
- attributes (drupal attrs)
|
|
7
5
|
#}
|
|
8
6
|
|
|
9
|
-
{
|
|
7
|
+
{%- set _links = links|default([]) %}
|
|
10
8
|
{% set _icon_path = icon_path|default('') %}
|
|
11
9
|
|
|
12
|
-
{
|
|
10
|
+
{%- set _classes = 'breadcrumb' %}
|
|
13
11
|
|
|
14
|
-
{
|
|
15
|
-
{
|
|
12
|
+
{%- if attributes is empty %}
|
|
13
|
+
{%- set attributes = create_attribute() %}
|
|
16
14
|
{% endif %}
|
|
17
15
|
|
|
18
|
-
{
|
|
16
|
+
{%- set attributes = attributes.setAttribute('aria-label', 'breadcrumb') %}
|
|
19
17
|
|
|
20
|
-
{
|
|
18
|
+
{%- if _links is not empty -%}
|
|
21
19
|
<nav
|
|
22
20
|
{{ attributes }}
|
|
23
|
-
>
|
|
21
|
+
>{# -#}
|
|
24
22
|
<ol
|
|
25
23
|
class="{{ _classes }}"
|
|
26
24
|
>
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
32
|
-
{
|
|
33
|
-
{
|
|
34
|
-
{
|
|
35
|
-
{
|
|
36
|
-
{
|
|
25
|
+
{%- for _link in _links %}
|
|
26
|
+
{%- set _segment_classes = 'breadcrumb-item d-none d-md-block' %}
|
|
27
|
+
{%- if loop.revindex == 2 %}
|
|
28
|
+
{%- set _segment_classes = 'breadcrumb-item' %}
|
|
29
|
+
{%- endif %}
|
|
30
|
+
{%- set _segment_attrs = '' %}
|
|
31
|
+
{%- if loop.last %}
|
|
32
|
+
{%- set _segment_classes = _segment_classes ~ ' active' %}
|
|
33
|
+
{%- set _segment_attrs = 'aria-current="page"' %}
|
|
34
|
+
{%- endif -%}
|
|
37
35
|
<li
|
|
38
36
|
class="{{ _segment_classes }}"
|
|
39
37
|
{{ _segment_attrs|raw }}
|
|
40
38
|
>
|
|
41
39
|
{%- if _link.path -%}
|
|
42
40
|
{% if loop.revindex == 2 %}
|
|
43
|
-
{
|
|
41
|
+
{%- set _link = _link|merge({
|
|
44
42
|
icon_position: 'before',
|
|
45
43
|
icon: {
|
|
46
44
|
name: "arrow-left",
|
|
@@ -48,15 +46,13 @@
|
|
|
48
46
|
attributes: create_attribute().addClass(['d-md-none ms-0 me-2']),
|
|
49
47
|
},
|
|
50
48
|
}) %}
|
|
51
|
-
{
|
|
52
|
-
{
|
|
53
|
-
{
|
|
49
|
+
{%- endif %}
|
|
50
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
|
|
51
|
+
{%- else %}
|
|
54
52
|
{{- _link.label -}}
|
|
55
53
|
{%- endif -%}
|
|
56
54
|
</li>
|
|
57
|
-
{
|
|
58
|
-
</ol>
|
|
55
|
+
{%- endfor -%}
|
|
56
|
+
</ol>{# -#}
|
|
59
57
|
</nav>
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
{% endapply %}
|
|
58
|
+
{%- endif -%}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{#
|
|
4
2
|
Parameters:
|
|
5
3
|
- label (string) (default: '')
|
|
@@ -23,7 +21,7 @@
|
|
|
23
21
|
- attributes (drupal attrs)
|
|
24
22
|
#}
|
|
25
23
|
|
|
26
|
-
{
|
|
24
|
+
{%- set _label = label|default('') %}
|
|
27
25
|
{% set _variant = variant|default('primary') %}
|
|
28
26
|
{% set _size = size|default('md') %}
|
|
29
27
|
{% set _type = type|default('button') %}
|
|
@@ -40,58 +38,58 @@
|
|
|
40
38
|
{% set _clean_class = clean_class ?? false %}
|
|
41
39
|
{% set _remove_icon_spacers = remove_icon_spacers ?? false %}
|
|
42
40
|
|
|
43
|
-
{
|
|
41
|
+
{%- set _classes = [] %}
|
|
44
42
|
{% if _clean_class == false %}
|
|
45
|
-
{
|
|
46
|
-
{
|
|
43
|
+
{%- set _classes = _classes|merge(['btn', 'btn-' ~ (_outline ? 'outline-' : '') ~ _variant|e('html_attr')]) %}
|
|
44
|
+
{%- set _classes = _classes|merge(['btn-' ~ _size|e('html_attr')]) %}
|
|
47
45
|
{% endif %}
|
|
48
46
|
{% if _text_nowrap %}
|
|
49
|
-
{
|
|
47
|
+
{%- set _classes = _classes|merge(['text-nowrap']) %}
|
|
50
48
|
{% endif %}
|
|
51
49
|
{% if attributes is empty %}
|
|
52
|
-
{
|
|
50
|
+
{%- set attributes = create_attribute() %}
|
|
53
51
|
{% endif %}
|
|
54
52
|
{% if _disabled %}
|
|
55
|
-
{
|
|
53
|
+
{%- set attributes = attributes.setAttribute('disabled', true).setAttribute('aria-disabled', 'true') %}
|
|
56
54
|
{% endif %}
|
|
57
55
|
{% if _id is not empty %}
|
|
58
|
-
{
|
|
56
|
+
{%- set attributes = attributes.setAttribute('id', _id) %}
|
|
59
57
|
{% endif %}
|
|
60
58
|
{% if _classes is not empty %}
|
|
61
|
-
{
|
|
59
|
+
{%- set attributes = attributes.addClass(_classes) %}
|
|
62
60
|
{% endif %}
|
|
63
61
|
{% if _icon_spacing is not empty %}
|
|
64
|
-
{
|
|
62
|
+
{%- set _icon_spacing = _icon_spacing ~ '-' %}
|
|
65
63
|
{% endif %}
|
|
66
64
|
{% set attributes = attributes.setAttribute('type', _type) %}
|
|
67
65
|
{% if _icon is not empty %}
|
|
68
|
-
{
|
|
66
|
+
{%- set _icon = _icon|merge({
|
|
69
67
|
size: "fluid",
|
|
70
68
|
})
|
|
71
69
|
%}
|
|
72
|
-
{
|
|
73
|
-
{
|
|
74
|
-
{
|
|
70
|
+
{%- if _label is not empty and not _remove_icon_spacers %}
|
|
71
|
+
{%- if _icon.attributes is empty %}
|
|
72
|
+
{%- set _icon = _icon|merge({
|
|
75
73
|
attributes: create_attribute()
|
|
76
74
|
})
|
|
77
75
|
%}
|
|
78
|
-
{
|
|
79
|
-
{
|
|
80
|
-
{
|
|
76
|
+
{%- endif %}
|
|
77
|
+
{%- if _icon_position == 'before' %}
|
|
78
|
+
{%- set _icon = _icon|merge({
|
|
81
79
|
attributes: _icon.attributes.addClass('me-' ~ _icon_spacing ~ '2-5')
|
|
82
80
|
})
|
|
83
81
|
%}
|
|
84
|
-
{
|
|
85
|
-
{
|
|
82
|
+
{%- else %}
|
|
83
|
+
{%- set _icon = _icon|merge({
|
|
86
84
|
attributes: _icon.attributes.addClass('ms-' ~ _icon_spacing ~ '2-5')
|
|
87
85
|
})
|
|
88
86
|
%}
|
|
89
|
-
{
|
|
90
|
-
{
|
|
87
|
+
{%- endif %}
|
|
88
|
+
{%- endif %}
|
|
91
89
|
{%- set _icon_markup -%}
|
|
92
90
|
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon only -%}
|
|
93
91
|
{%- endset -%}
|
|
94
|
-
{% endif
|
|
92
|
+
{% endif -%}
|
|
95
93
|
|
|
96
94
|
<button
|
|
97
95
|
{{ attributes }}
|
|
@@ -101,7 +99,7 @@
|
|
|
101
99
|
{%- endif -%}
|
|
102
100
|
{%- if _assistive_text is not empty -%}
|
|
103
101
|
<span class="visually-hidden">{{- _assistive_text -}}</span>
|
|
104
|
-
{
|
|
102
|
+
{%- endif %}
|
|
105
103
|
{%- if _icon_position == 'before' and _icon_markup is defined -%}
|
|
106
104
|
{{ _icon_markup|raw }}
|
|
107
105
|
{%- endif -%}
|
|
@@ -110,5 +108,4 @@
|
|
|
110
108
|
{{ _icon_markup|raw }}
|
|
111
109
|
{%- endif -%}
|
|
112
110
|
</button>
|
|
113
|
-
|
|
114
|
-
{% endapply %}
|
|
111
|
+
{#--#}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- vertical (boolean) (default: false)
|
|
5
3
|
- size (string) (default: 'md')
|
|
@@ -11,57 +9,55 @@
|
|
|
11
9
|
- attributes (drupal attrs)
|
|
12
10
|
#}
|
|
13
11
|
|
|
14
|
-
{
|
|
12
|
+
{%- set _vertical = vertical ?? false %}
|
|
15
13
|
{% set _size = size|default('md') %}
|
|
16
14
|
{% set _aria_label = aria_label|default('') %}
|
|
17
15
|
{% set _toolbar = toolbar ?? false %}
|
|
18
16
|
{% set _toolbar_aria_label = toolbar_aria_label|default('') %}
|
|
19
17
|
{% set _items = items|default([]) %}
|
|
20
18
|
|
|
21
|
-
{
|
|
19
|
+
{%- set _classes = ['btn-group'] %}
|
|
22
20
|
|
|
23
|
-
{
|
|
24
|
-
{
|
|
21
|
+
{%- if _vertical %}
|
|
22
|
+
{%- set _classes = ['btn-group-vertical'] %}
|
|
25
23
|
{% endif %}
|
|
26
24
|
|
|
27
|
-
{
|
|
25
|
+
{%- set _classes = _classes|merge(['btn-group-' ~ _size]) %}
|
|
28
26
|
|
|
29
|
-
{
|
|
30
|
-
{
|
|
27
|
+
{%- if attributes is empty %}
|
|
28
|
+
{%- set attributes = create_attribute() %}
|
|
31
29
|
{% endif %}
|
|
32
30
|
|
|
33
|
-
{
|
|
34
|
-
{
|
|
31
|
+
{%- if _aria_label is not empty %}
|
|
32
|
+
{%- set attributes = attributes.setAttribute('aria-label', _aria_label) %}
|
|
35
33
|
{% endif %}
|
|
36
34
|
|
|
37
|
-
{
|
|
35
|
+
{%- set attributes = attributes.setAttribute('role', 'group').addClass(_classes) %}
|
|
38
36
|
|
|
39
|
-
{
|
|
37
|
+
{%- if _toolbar -%}
|
|
40
38
|
<div class="btn-toolbar" role="toolbar"
|
|
41
39
|
{% if _toolbar_aria_label is not empty %}
|
|
42
40
|
aria-label="{{ _toolbar_aria_label }}"
|
|
43
41
|
{% endif %}
|
|
44
42
|
>
|
|
45
|
-
{
|
|
43
|
+
{%- endif %}
|
|
46
44
|
{% if _items is not empty %}
|
|
47
|
-
{
|
|
45
|
+
{%- for _items_group in _items -%}
|
|
48
46
|
<div
|
|
49
47
|
{{ attributes }}
|
|
50
48
|
>
|
|
51
|
-
{
|
|
52
|
-
{
|
|
53
|
-
{
|
|
54
|
-
{
|
|
55
|
-
{
|
|
56
|
-
{
|
|
57
|
-
{
|
|
58
|
-
{
|
|
59
|
-
{
|
|
49
|
+
{%- if _items_group is not empty and _items_group is iterable %}
|
|
50
|
+
{%- for _item in _items_group %}
|
|
51
|
+
{%- if _item.input is defined %}
|
|
52
|
+
{%- include '@oe-bcl/bcl-form-input/form-input.html.twig' with _item only %}
|
|
53
|
+
{%- else %}
|
|
54
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _item only %}
|
|
55
|
+
{%- endif %}
|
|
56
|
+
{%- endfor %}
|
|
57
|
+
{%- endif -%}
|
|
60
58
|
</div>
|
|
61
|
-
{
|
|
59
|
+
{%- endfor %}
|
|
62
60
|
{% endif %}
|
|
63
|
-
{% if _toolbar
|
|
61
|
+
{% if _toolbar -%}
|
|
64
62
|
</div>
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
{% endapply %}
|
|
63
|
+
{%- endif -%}
|