@openeuropa/bcl-theme-default 0.12.0 → 0.16.0
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/bcl-builder.config.js +4 -0
- package/css/oe-bcl-default.css +1604 -63
- package/css/oe-bcl-default.css.map +1 -1
- package/css/oe-bcl-default.min.css +1 -1
- package/css/oe-bcl-default.min.css.map +1 -1
- package/icons/icons-flag.svg +1 -0
- package/js/oe-bcl-default.bundle.js +53 -21
- package/js/oe-bcl-default.bundle.js.map +1 -1
- package/js/oe-bcl-default.bundle.min.js +1 -1
- package/js/oe-bcl-default.bundle.min.js.map +1 -1
- package/js/oe-bcl-default.esm.min.js.map +1 -1
- package/js/oe-bcl-default.umd.js +61 -24
- package/js/oe-bcl-default.umd.js.map +1 -1
- package/js/oe-bcl-default.umd.min.js +1 -1
- package/js/oe-bcl-default.umd.min.js.map +1 -1
- package/package.json +6 -5
- package/src/scss/_badge.scss +17 -1
- package/src/scss/_banners.scss +9 -7
- package/src/scss/_bcl-offcanvas.scss +4 -4
- package/src/scss/_footer.scss +16 -7
- package/src/scss/_header.scss +68 -17
- package/src/scss/_inpage-navigation.scss +19 -0
- package/src/scss/_multiselect.scss +3 -2
- package/src/scss/_timeline.scss +78 -0
- package/src/scss/_utilities.scss +70 -0
- package/src/scss/_variables.scss +27 -15
- package/src/scss/oe-bcl-default.scss +2 -14
- package/templates/bcl-badge/badge.html.twig +9 -1
- package/templates/bcl-banner/banner.html.twig +22 -5
- package/templates/bcl-base-templates/content-type.html.twig +116 -0
- package/templates/bcl-base-templates/listing-page.html.twig +63 -0
- package/templates/{bcl-group-landing-listing/group-landing-listing-offcanvas.html.twig → bcl-base-templates/sidebar-search.html.twig} +0 -1
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +2 -2
- package/templates/bcl-card/card.html.twig +43 -42
- package/templates/bcl-content-banner/content-banner.html.twig +103 -0
- package/templates/bcl-date-block/date-block.html.twig +42 -0
- package/templates/bcl-description-list/description-list.html.twig +110 -0
- package/templates/bcl-event/event.html.twig +41 -0
- package/templates/bcl-fact-figures/fact-figures.html.twig +115 -0
- package/templates/bcl-featured-media/featured-media.html.twig +49 -5
- package/templates/bcl-file/file.html.twig +205 -0
- package/templates/bcl-footer/footer.html.twig +4 -2
- package/templates/bcl-group/group-landing.html.twig +101 -0
- package/templates/bcl-group/group.html.twig +27 -0
- package/templates/bcl-header/header.html.twig +11 -2
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +42 -0
- package/templates/bcl-landing-page/landing-page.html.twig +59 -0
- package/templates/bcl-link/link.html.twig +5 -0
- package/templates/bcl-links-block/links-block.html.twig +5 -2
- package/templates/bcl-listing/listing.html.twig +67 -38
- package/templates/bcl-navbar/navbar.html.twig +22 -20
- package/templates/bcl-navigation/navigation.html.twig +135 -110
- package/templates/bcl-page/page.html.twig +64 -0
- package/templates/bcl-recent-activities/recent-activities.html.twig +1 -1
- package/templates/bcl-timeline/timeline.html.twig +109 -0
- package/templates/bcl-user/user-edit.html.twig +38 -0
- package/templates/{bcl-user-view → bcl-user}/user-view-compact.html.twig +2 -2
- package/templates/bcl-user/user-view.html.twig +96 -0
- package/templates/bcl-group-landing/group-landing.html.twig +0 -106
- package/templates/bcl-group-landing-listing/group-landing-listing.html.twig +0 -74
- package/templates/bcl-search/search-offcanvas.html.twig +0 -8
- package/templates/bcl-search/search.html.twig +0 -48
- package/templates/bcl-user-edit/edit-contents.html.twig +0 -32
- package/templates/bcl-user-edit/user-edit.html.twig +0 -19
- package/templates/bcl-user-listing/user-listing-offcanvas.html.twig +0 -8
- package/templates/bcl-user-listing/user-listing.html.twig +0 -48
- package/templates/bcl-user-view/user-view.html.twig +0 -106
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{% spaceless %}
|
|
2
|
+
|
|
3
|
+
{#
|
|
4
|
+
Parameters:
|
|
5
|
+
- with_header (boolean) (default: false)
|
|
6
|
+
- with_footer (boolean) (default: false)
|
|
7
|
+
- with_banner (boolean) (default: false)
|
|
8
|
+
- with_sidebar (boolean) (default: false)
|
|
9
|
+
- sidebar_size (string) (default: 'normal')
|
|
10
|
+
options: ['normal', 'large']
|
|
11
|
+
- landing (boolean) (default: false)
|
|
12
|
+
- content_type (string) (default: '')
|
|
13
|
+
- attributes (drupal attrs)
|
|
14
|
+
|
|
15
|
+
BLOCKS:
|
|
16
|
+
- header
|
|
17
|
+
- footer
|
|
18
|
+
- content
|
|
19
|
+
- sidebar
|
|
20
|
+
- banner
|
|
21
|
+
- feedback
|
|
22
|
+
- share
|
|
23
|
+
- related
|
|
24
|
+
#}
|
|
25
|
+
|
|
26
|
+
{% set _with_header = header|default(false) %}
|
|
27
|
+
{% set _with_footer = footer|default(false) %}
|
|
28
|
+
{% set _with_banner = banner|default(false) %}
|
|
29
|
+
{% set _with_sidebar = sidebar|default(false) %}
|
|
30
|
+
{% set _sidebar_size = sidebar_size|default('normal') %}
|
|
31
|
+
{% set _landing = landing|default(false) %}
|
|
32
|
+
{% set _content_type = content_type|default('') %}
|
|
33
|
+
{% set _classes = ['bcl-node-type'] %}
|
|
34
|
+
|
|
35
|
+
{% if _with_sidebar %}
|
|
36
|
+
{% set _col_classes = {
|
|
37
|
+
left: [
|
|
38
|
+
'col-12',
|
|
39
|
+
],
|
|
40
|
+
right: [
|
|
41
|
+
'col-12',
|
|
42
|
+
],
|
|
43
|
+
} %}
|
|
44
|
+
|
|
45
|
+
{% if _sidebar_size == 'normal' %}
|
|
46
|
+
{% set _col_classes = _col_classes|merge({
|
|
47
|
+
left: _col_classes.left|merge(['col-lg-3']),
|
|
48
|
+
right: _col_classes.right|merge(['col-lg-9', 'col-xxl-8']),
|
|
49
|
+
}) %}
|
|
50
|
+
{% endif %}
|
|
51
|
+
|
|
52
|
+
{% if _sidebar_size == 'large' %}
|
|
53
|
+
{% set _col_classes = _col_classes|merge({
|
|
54
|
+
left: _col_classes.left|merge(['col-lg-4']),
|
|
55
|
+
right: _col_classes.right|merge(['col-lg-8']),
|
|
56
|
+
}) %}
|
|
57
|
+
{% endif %}
|
|
58
|
+
{% endif %}
|
|
59
|
+
|
|
60
|
+
{% if _content_type is not empty %}
|
|
61
|
+
{% set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
|
|
62
|
+
{% endif %}
|
|
63
|
+
|
|
64
|
+
{% if _with_header %}
|
|
65
|
+
{% include '@oe-bcl/bcl-header/header.html.twig' with header only %}
|
|
66
|
+
{% endif %}
|
|
67
|
+
|
|
68
|
+
<main {{ attributes }}>
|
|
69
|
+
{% if _with_banner %}
|
|
70
|
+
{% block banner %}
|
|
71
|
+
{% include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
|
|
72
|
+
{% endblock %}
|
|
73
|
+
{% endif %}
|
|
74
|
+
|
|
75
|
+
<div class="container mt-md-4-75 mt-4">
|
|
76
|
+
<div class="row">
|
|
77
|
+
{% if _with_sidebar %}
|
|
78
|
+
<div class="{{ _col_classes.left|join(' ') }}">
|
|
79
|
+
{% block sidebar %}{% endblock %}
|
|
80
|
+
</div>
|
|
81
|
+
<div class="{{ _col_classes.right|join(' ') }}">
|
|
82
|
+
{% else %}
|
|
83
|
+
{% if _landing %}
|
|
84
|
+
<div class="col-12">
|
|
85
|
+
{% else %}
|
|
86
|
+
<div class="col-12 col-lg-10 col-xl-9 col-xxl-8">
|
|
87
|
+
{% endif %}
|
|
88
|
+
{% endif %}
|
|
89
|
+
{% block content_top %}
|
|
90
|
+
{{ content_top }}
|
|
91
|
+
{% endblock %}
|
|
92
|
+
{% block content %}
|
|
93
|
+
{{ content }}
|
|
94
|
+
{% endblock %}
|
|
95
|
+
{% block content_bottom %}
|
|
96
|
+
{{ content_bottom }}
|
|
97
|
+
{% endblock %}
|
|
98
|
+
{% block related %}
|
|
99
|
+
{{ related }}
|
|
100
|
+
{% endblock %}
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</main>
|
|
104
|
+
|
|
105
|
+
{% block feedback %}
|
|
106
|
+
{{ feedback }}
|
|
107
|
+
{% endblock %}
|
|
108
|
+
{% block share %}
|
|
109
|
+
{{ share }}
|
|
110
|
+
{% endblock %}
|
|
111
|
+
|
|
112
|
+
{% if _with_footer %}
|
|
113
|
+
{% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
|
|
114
|
+
{% endif %}
|
|
115
|
+
|
|
116
|
+
{% endspaceless %}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{#
|
|
2
|
+
Parameters:
|
|
3
|
+
- listing (object) (default: {})
|
|
4
|
+
- pagination (object) (default: {})
|
|
5
|
+
- sidebar (object) (default: '')
|
|
6
|
+
- page_title (string) (default: '')
|
|
7
|
+
#}
|
|
8
|
+
|
|
9
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
|
|
10
|
+
|
|
11
|
+
{% set _listing = listing|default({}) %}
|
|
12
|
+
{% set _pagination = pagination|default({}) %}
|
|
13
|
+
{% set _search = search|default({}) %}
|
|
14
|
+
{% set _sidebar = sidebar|default({}) %}
|
|
15
|
+
{% set _page_title = page_title|default({}) %}
|
|
16
|
+
|
|
17
|
+
{% block content_top %}
|
|
18
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
|
|
19
|
+
<div class="row">
|
|
20
|
+
<div class="col-md-6 col-lg-8">
|
|
21
|
+
<h4>
|
|
22
|
+
<span class="text-capitalize">
|
|
23
|
+
{{- _page_title -}}
|
|
24
|
+
</span>
|
|
25
|
+
({{ listing.items.length }})
|
|
26
|
+
</h4>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-md-12 order-md-2 mt-3 mt-md-1">
|
|
29
|
+
{% if badges is not empty and badges is iterable %}
|
|
30
|
+
{% for badge in badges %}
|
|
31
|
+
{% include '@oe-bcl/bcl-badge/badge.html.twig' with badge|merge({
|
|
32
|
+
attributes: create_attribute().addClass(["mb-2", "me-2"])
|
|
33
|
+
}) only %}
|
|
34
|
+
{% endfor %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-md-6 col-lg-4 mt-3 mt-md-0">
|
|
38
|
+
<div class="float-md-end d-md-flex align-items-center mb-4 mb-md-0">
|
|
39
|
+
{% include '@oe-bcl/bcl-select/select.html.twig' with sort_select|merge({
|
|
40
|
+
attributes: create_attribute().addClass(['ms-md-2 mb-2']),
|
|
41
|
+
}) only %}
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<hr class="d-none d-md-block mb-4"/>
|
|
46
|
+
{% endblock %}
|
|
47
|
+
|
|
48
|
+
{% block content %}
|
|
49
|
+
{% if _listing is not empty %}
|
|
50
|
+
{% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing %}
|
|
51
|
+
{% endif %}
|
|
52
|
+
{% endblock %}
|
|
53
|
+
|
|
54
|
+
{% block content_bottom %}
|
|
55
|
+
{% if _pagination is not empty %}
|
|
56
|
+
<hr class="d-none d-md-block mt-4-5">
|
|
57
|
+
{% include '@oe-bcl/bcl-pagination/pagination.html.twig' with _pagination only %}
|
|
58
|
+
{% endif %}
|
|
59
|
+
{% endblock %}
|
|
60
|
+
|
|
61
|
+
{% block sidebar %}
|
|
62
|
+
{% include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
|
|
63
|
+
{% endblock %}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
class="{{ _classes }}"
|
|
19
19
|
>
|
|
20
20
|
{% for _link in _links %}
|
|
21
|
-
{% set _segment_classes = 'breadcrumb-item d-none d-md-block' %}
|
|
21
|
+
{% set _segment_classes = 'breadcrumb-item d-none d-md-block' %}
|
|
22
22
|
{% if loop.revindex == 2 %}
|
|
23
23
|
{% set _segment_classes = 'breadcrumb-item' %}
|
|
24
24
|
{% endif %}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
{% endif %}
|
|
30
30
|
<li
|
|
31
31
|
class="{{ _segment_classes }}"
|
|
32
|
-
{{ _segment_attrs }}
|
|
32
|
+
{{ _segment_attrs|raw }}
|
|
33
33
|
>
|
|
34
34
|
{%- if _link.path -%}
|
|
35
35
|
{% if loop.revindex == 2 %}
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
alt (string),
|
|
27
27
|
position (string)
|
|
28
28
|
}
|
|
29
|
+
- date (object) (default: {})
|
|
29
30
|
- horizontal (boolean) (default: false)
|
|
30
31
|
- horizontal_grid (object) (default: {})
|
|
31
32
|
format: {
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
{% set _text = text|default({}) %}
|
|
51
52
|
{% set _content = content|default('') %}
|
|
52
53
|
{% set _image = image|default({}) %}
|
|
54
|
+
{% set _date = date|default({}) %}
|
|
53
55
|
{% set _variant = variant|default('') %}
|
|
54
56
|
{% set _horizontal = horizontal|default(false) %}
|
|
55
57
|
{% set _horizontal_grid = horizontal_grid|default({
|
|
@@ -130,54 +132,35 @@
|
|
|
130
132
|
{% if _image.classes is not empty %}
|
|
131
133
|
{% set _img_class = _img_class ~ " " ~ _image.classes %}
|
|
132
134
|
{% endif %}
|
|
133
|
-
|
|
135
|
+
{% endif %}
|
|
136
|
+
{% if _horizontal and (_image is not empty or _date is not empty) %}
|
|
134
137
|
<div class='{{ _horizontal_grid.left_col_classes }}'>
|
|
138
|
+
{% endif %}
|
|
139
|
+
{% if _date is not empty %}
|
|
140
|
+
{% include '@oe-bcl/bcl-date-block/date-block.html.twig' with _date only %}
|
|
141
|
+
{% elseif _image is not empty and _image.position != "bottom" %}
|
|
142
|
+
<img
|
|
143
|
+
src="{{ _image.path }}"
|
|
144
|
+
alt="{{ _image.alt }}"
|
|
145
|
+
class="{{ _img_class }}"
|
|
146
|
+
>
|
|
135
147
|
{% endif %}
|
|
136
|
-
|
|
137
|
-
src='{{ _image.path }}'
|
|
138
|
-
alt='{{ _image.alt }}'
|
|
139
|
-
class='{{ _img_class }}'
|
|
140
|
-
>
|
|
141
|
-
{% if _horizontal %}
|
|
148
|
+
{% if _horizontal and (_image is not empty or _date is not empty) %}
|
|
142
149
|
</div>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
<div class=
|
|
146
|
-
{% endif %}
|
|
150
|
+
{% endif %}
|
|
151
|
+
{% if _image.position == 'background' %}
|
|
152
|
+
<div class="card-img-overlay">
|
|
147
153
|
{% endif %}
|
|
148
154
|
{% if _horizontal %}
|
|
149
155
|
<div class='{{ _horizontal_grid.right_col_classes }}'>
|
|
150
156
|
{% endif %}
|
|
151
157
|
<div class='{{ _body_classes }}'>
|
|
152
|
-
{%- if _badges is not empty and _badges is iterable -%}
|
|
153
|
-
<div class="mb-3">
|
|
154
|
-
{% for _badge in _badges %}
|
|
155
|
-
{% if _badge.attributes is empty %}
|
|
156
|
-
{% set _badge = _badge|merge({
|
|
157
|
-
attributes: create_attribute()
|
|
158
|
-
}) %}
|
|
159
|
-
{% endif %}
|
|
160
|
-
{% if not loop.last %}
|
|
161
|
-
{% set _badge = _badge|merge({
|
|
162
|
-
attributes: _badge.attributes.addClass('me-2')
|
|
163
|
-
})
|
|
164
|
-
%}
|
|
165
|
-
{% endif %}
|
|
166
|
-
{% include '@oe-bcl/bcl-badge/badge.html.twig' with _badge only %}
|
|
167
|
-
{% endfor %}
|
|
168
|
-
</div>
|
|
169
|
-
{%- endif -%}
|
|
170
158
|
{%- if _title is not empty -%}
|
|
171
159
|
{% set _title_tag = _title.tag ?? 'h5' %}
|
|
172
160
|
<{{ _title_tag }}
|
|
173
|
-
|
|
174
|
-
{%
|
|
175
|
-
|
|
176
|
-
{% for attribute in _title.attributes %}
|
|
177
|
-
{% set _title_attributes = _title_attributes.setAttribute(attribute.name, attribute.value) %}
|
|
178
|
-
{% endfor %}
|
|
179
|
-
{{ _title_attributes }}
|
|
180
|
-
{% endif %}
|
|
161
|
+
{% set _title_attributes = title.attributes ?: create_attribute() %}
|
|
162
|
+
{% set _title_attributes = _title_attributes.addClass("card-title") %}
|
|
163
|
+
{{ _title_attributes }}
|
|
181
164
|
>
|
|
182
165
|
{{- title.content -}}
|
|
183
166
|
</{{ _title_tag }}>
|
|
@@ -201,6 +184,24 @@
|
|
|
201
184
|
{%- if _content is not empty -%}
|
|
202
185
|
{{- _content -}}
|
|
203
186
|
{%- endif -%}
|
|
187
|
+
{%- if _badges is not empty and _badges is iterable -%}
|
|
188
|
+
<div class="mt-2-5">
|
|
189
|
+
{% for _badge in _badges %}
|
|
190
|
+
{% if _badge.attributes is empty %}
|
|
191
|
+
{% set _badge = _badge|merge({
|
|
192
|
+
attributes: create_attribute()
|
|
193
|
+
}) %}
|
|
194
|
+
{% endif %}
|
|
195
|
+
{% if not loop.last %}
|
|
196
|
+
{% set _badge = _badge|merge({
|
|
197
|
+
attributes: _badge.attributes.addClass('me-2')
|
|
198
|
+
})
|
|
199
|
+
%}
|
|
200
|
+
{% endif %}
|
|
201
|
+
{% include '@oe-bcl/bcl-badge/badge.html.twig' with _badge only %}
|
|
202
|
+
{% endfor %}
|
|
203
|
+
</div>
|
|
204
|
+
{%- endif -%}
|
|
204
205
|
</div>
|
|
205
206
|
{% if _horizontal %}
|
|
206
207
|
</div>
|
|
@@ -215,12 +216,12 @@
|
|
|
215
216
|
{% endif %}
|
|
216
217
|
{% if _image.position == 'bottom' %}
|
|
217
218
|
{% if _horizontal %}
|
|
218
|
-
<div class=
|
|
219
|
+
<div class="col-4">
|
|
219
220
|
{% endif %}
|
|
220
221
|
<img
|
|
221
|
-
src=
|
|
222
|
-
alt=
|
|
223
|
-
class=
|
|
222
|
+
src="{{ _image.path }}"
|
|
223
|
+
alt="{{ _image.alt }}"
|
|
224
|
+
class="{{ _img_class }}"
|
|
224
225
|
>
|
|
225
226
|
{% if _horizontal %}
|
|
226
227
|
</div>
|
|
@@ -231,7 +232,7 @@
|
|
|
231
232
|
</div>
|
|
232
233
|
{% endif %}
|
|
233
234
|
{% if _card_footer is not empty %}
|
|
234
|
-
<div class=
|
|
235
|
+
<div class="{{ _footer_classes }}">
|
|
235
236
|
{{- _card_footer -}}
|
|
236
237
|
</div>
|
|
237
238
|
{% endif %}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{% spaceless %}
|
|
2
|
+
|
|
3
|
+
{#
|
|
4
|
+
Parameters:
|
|
5
|
+
- "background" (string) (default: 'white')
|
|
6
|
+
options: [ white, gray ]
|
|
7
|
+
- "banner" (object)
|
|
8
|
+
- "title" (object)
|
|
9
|
+
- "image" (object)
|
|
10
|
+
- "content" (string)
|
|
11
|
+
- "badges" (array of objects of type badge)
|
|
12
|
+
- "action_button" (object of type button) (default: {})
|
|
13
|
+
- "service_buttons" (array of objects of type button) (default: [])
|
|
14
|
+
- "attributes" (drupal attrs)
|
|
15
|
+
#}
|
|
16
|
+
|
|
17
|
+
{% set _background = background|default('white') %}
|
|
18
|
+
{% set _action_button = action_button|default({}) %}
|
|
19
|
+
{% set _service_buttons = service_buttons|default([]) %}
|
|
20
|
+
{% set _image = image|default({}) %}
|
|
21
|
+
|
|
22
|
+
{% set _css_classes = [
|
|
23
|
+
'bcl-content-banner',
|
|
24
|
+
'vw-100',
|
|
25
|
+
'pt-lg-4-75',
|
|
26
|
+
] %}
|
|
27
|
+
|
|
28
|
+
{% if _background != 'white' %}
|
|
29
|
+
{% set _css_classes = _css_classes|merge([
|
|
30
|
+
'pb-md-4-75',
|
|
31
|
+
'pb-4',
|
|
32
|
+
'pt-4',
|
|
33
|
+
]) %}
|
|
34
|
+
{% else %}
|
|
35
|
+
{% set _css_classes = _css_classes|merge([
|
|
36
|
+
'pt-3'
|
|
37
|
+
]) %}
|
|
38
|
+
{% endif %}
|
|
39
|
+
|
|
40
|
+
{% set _modifiers = {
|
|
41
|
+
'white': 'bg-white',
|
|
42
|
+
'gray': 'bg-lighter',
|
|
43
|
+
} %}
|
|
44
|
+
|
|
45
|
+
{% set _card = {
|
|
46
|
+
title: title|default({})|merge({
|
|
47
|
+
tag: 'h2',
|
|
48
|
+
attributes: create_attribute().addClass(['fw-bold']),
|
|
49
|
+
}),
|
|
50
|
+
horizontal: true,
|
|
51
|
+
horizontal_grid: {
|
|
52
|
+
right_col_classes: 'col-md-8 col-lg-9 col-xxl-8',
|
|
53
|
+
},
|
|
54
|
+
extra_classes_header: 'bg-transparent pt-0 pb-0 border-0',
|
|
55
|
+
extra_classes_body: 'pt-0 px-0 pb-0',
|
|
56
|
+
} %}
|
|
57
|
+
|
|
58
|
+
{% if _image is not empty %}
|
|
59
|
+
{% set _card = _card|merge({
|
|
60
|
+
horizontal_grid: _card.horizontal_grid|merge({
|
|
61
|
+
left_col_classes: 'col-md-4 col-lg-3',
|
|
62
|
+
}),
|
|
63
|
+
extra_classes_body: 'pt-md-0 px-0 px-md-3 pb-0',
|
|
64
|
+
}) %}
|
|
65
|
+
{% else %}
|
|
66
|
+
{% set _card = _card|merge({
|
|
67
|
+
horizontal_grid: {
|
|
68
|
+
right_col_classes: 'col-md-8 col-lg-9 col-xxl-8 px-sm-0 px-md-2-5',
|
|
69
|
+
},
|
|
70
|
+
}) %}
|
|
71
|
+
{% endif %}
|
|
72
|
+
|
|
73
|
+
{% set _css_classes = _css_classes|merge([_modifiers[_background]]) %}
|
|
74
|
+
{% set _attributes = attributes.addClass(['bg-transparent', 'border-0']) %}
|
|
75
|
+
|
|
76
|
+
{% if _button is not empty %}
|
|
77
|
+
{% set _attributes = attributes.addClass(['col-md-10']) %}
|
|
78
|
+
{% endif %}
|
|
79
|
+
|
|
80
|
+
<div class="{{ _css_classes|join(' ') }}">
|
|
81
|
+
<div class="container">
|
|
82
|
+
<div class="row">
|
|
83
|
+
{% include '@oe-bcl/bcl-card/card.html.twig' with _card %}
|
|
84
|
+
|
|
85
|
+
{% if _action_button is not empty %}
|
|
86
|
+
<div class="col-12 col-md-2 text-end">
|
|
87
|
+
<div class="d-grid d-md-block">
|
|
88
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _action_button only %}
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
{% endif %}
|
|
92
|
+
{% if _service_buttons is not empty %}
|
|
93
|
+
<div class="d-flex justify-content-end">
|
|
94
|
+
{% for _button in _service_buttons %}
|
|
95
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _button only %}
|
|
96
|
+
{% endfor %}
|
|
97
|
+
</div>
|
|
98
|
+
{% endif %}
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
{% endspaceless %}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{% spaceless %}
|
|
2
|
+
|
|
3
|
+
{#
|
|
4
|
+
Parameters:
|
|
5
|
+
- "variant" (string) (default: '')
|
|
6
|
+
- "day" (integer) (default: '')
|
|
7
|
+
- "month" (string) (default: '')
|
|
8
|
+
- "date_time" (string) (default: '')
|
|
9
|
+
- "year" (integer) (default: '')
|
|
10
|
+
#}
|
|
11
|
+
|
|
12
|
+
{% set _month = month|default('') %}
|
|
13
|
+
{% set _day = day|default('') %}
|
|
14
|
+
{% set _year = year|default('') %}
|
|
15
|
+
{% set _date_time = date_time|default('') %}
|
|
16
|
+
{% set _variant = variant|default('') %}
|
|
17
|
+
{% set _css_classes = [
|
|
18
|
+
'bcl-date-block',
|
|
19
|
+
'd-flex',
|
|
20
|
+
'flex-column',
|
|
21
|
+
'align-items-center',
|
|
22
|
+
'justify-content-center',
|
|
23
|
+
'bg-date',
|
|
24
|
+
'text-light',
|
|
25
|
+
'pt-3',
|
|
26
|
+
'rounded-top',
|
|
27
|
+
'mw-date',
|
|
28
|
+
] %}
|
|
29
|
+
|
|
30
|
+
{% set attributes = attributes.addClass(_css_classes) %}
|
|
31
|
+
|
|
32
|
+
{% if _date_time is not empty %}
|
|
33
|
+
{% set attributes = attributes.setAttribute('datetime', _date_time) %}
|
|
34
|
+
{% endif %}
|
|
35
|
+
|
|
36
|
+
<time {{ attributes }}>
|
|
37
|
+
<span>{{ _day }}</span>
|
|
38
|
+
<span class="pb-3 text-uppercase">{{ _month }}</span>
|
|
39
|
+
<span class="bg-light w-100 text-center py-2 text-dark rounded-bottom mb-n1">{{ _year }}</span>
|
|
40
|
+
</time>
|
|
41
|
+
|
|
42
|
+
{% endspaceless %}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{% spaceless %}
|
|
2
|
+
|
|
3
|
+
{#
|
|
4
|
+
Parameters:
|
|
5
|
+
- title: (string) (default: "")
|
|
6
|
+
- title_tag: (string) (default: "h4")
|
|
7
|
+
- "items" (array) (default: []): format: [
|
|
8
|
+
{
|
|
9
|
+
"term" (object or array of object) -format: {
|
|
10
|
+
icon: {} - icon object,
|
|
11
|
+
label: ""
|
|
12
|
+
}
|
|
13
|
+
"definition" (block or array of string)
|
|
14
|
+
},
|
|
15
|
+
...
|
|
16
|
+
]
|
|
17
|
+
- "variant" (string) (default: '')
|
|
18
|
+
- option: ["horizontal"]
|
|
19
|
+
#}
|
|
20
|
+
|
|
21
|
+
{# Parameters #}
|
|
22
|
+
|
|
23
|
+
{% set _title = title|default('') %}
|
|
24
|
+
{% set _title_tag = title_tag|default('h4') %}
|
|
25
|
+
{% set _items = items|default([]) %}
|
|
26
|
+
{% set _variant = variant|default('') %}
|
|
27
|
+
|
|
28
|
+
{% if _variant == 'horizontal' %}
|
|
29
|
+
{% set attributes = attributes.addClass(["d-md-grid", "grid-3-9"]) %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
|
|
32
|
+
{% if _title is not empty %}
|
|
33
|
+
{% set _title_classes = 'fw-bold mb-4' %}
|
|
34
|
+
<{{ _title_tag }} class="{{ _title_classes }}">
|
|
35
|
+
{{- _title -}}
|
|
36
|
+
</{{ _title_tag }}>
|
|
37
|
+
{% endif %}
|
|
38
|
+
|
|
39
|
+
<dl
|
|
40
|
+
{{ attributes }}
|
|
41
|
+
>
|
|
42
|
+
{% for _item in _items %}
|
|
43
|
+
{% if _item.term is not empty %}
|
|
44
|
+
{% if _item.term is iterable %}
|
|
45
|
+
{% if _variant == 'horizontal' %}
|
|
46
|
+
<div>
|
|
47
|
+
{% endif %}
|
|
48
|
+
{% for _term in _item.term %}
|
|
49
|
+
<dt
|
|
50
|
+
{% if _variant == 'horizontal' and _term.icon is not empty %}
|
|
51
|
+
class="d-flex"
|
|
52
|
+
{% endif %}
|
|
53
|
+
>
|
|
54
|
+
{%- if _term.icon is not empty -%}
|
|
55
|
+
{% set _icon_classes = ["me-2"] %}
|
|
56
|
+
{% if _variant == 'horizontal' %}
|
|
57
|
+
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
58
|
+
{% endif %}
|
|
59
|
+
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
|
|
60
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
61
|
+
}) only %}
|
|
62
|
+
{%- endif -%}
|
|
63
|
+
{{- _term.label -}}
|
|
64
|
+
</dt>
|
|
65
|
+
{% endfor %}
|
|
66
|
+
{% if _variant == 'horizontal' %}
|
|
67
|
+
</div>
|
|
68
|
+
{% endif %}
|
|
69
|
+
{% else %}
|
|
70
|
+
<dt
|
|
71
|
+
{% if _variant == 'horizontal' and _item.term.icon is not empty %}
|
|
72
|
+
class="d-flex"
|
|
73
|
+
{% endif %}
|
|
74
|
+
>
|
|
75
|
+
{% if _item.term.icon is not empty %}
|
|
76
|
+
{% set _icon_classes = ["me-2"] %}
|
|
77
|
+
{% if _variant == 'horizontal' %}
|
|
78
|
+
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
79
|
+
{% endif %}
|
|
80
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
|
|
81
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
82
|
+
}) only -%}
|
|
83
|
+
{% endif %}
|
|
84
|
+
{{- _item.term.label -}}
|
|
85
|
+
</dt>
|
|
86
|
+
{% endif %}
|
|
87
|
+
{% endif %}
|
|
88
|
+
{% if _item.definition is not empty %}
|
|
89
|
+
{% if _item.definition is iterable %}
|
|
90
|
+
{% if _variant == 'horizontal' %}
|
|
91
|
+
<div>
|
|
92
|
+
{% endif %}
|
|
93
|
+
{% for _definition in _item.definition %}
|
|
94
|
+
{% if _definition.label is not defined %}
|
|
95
|
+
<dd>{{- _definition -}}</dd>
|
|
96
|
+
{% endif %}
|
|
97
|
+
{% endfor %}
|
|
98
|
+
{% if _variant == 'horizontal' %}
|
|
99
|
+
</div>
|
|
100
|
+
{% endif %}
|
|
101
|
+
{% else %}
|
|
102
|
+
<dd>
|
|
103
|
+
{%- block definition _item.definition -%}
|
|
104
|
+
</dd>
|
|
105
|
+
{% endif %}
|
|
106
|
+
{% endif %}
|
|
107
|
+
{% endfor %}
|
|
108
|
+
</dl>
|
|
109
|
+
|
|
110
|
+
{% endspaceless %}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' %}
|
|
2
|
+
|
|
3
|
+
{% block sidebar %}
|
|
4
|
+
{% if sidebar.image is not empty %}
|
|
5
|
+
<img class="mb-4" src="https://picsum.photos/275?random=1" alt="image" />
|
|
6
|
+
{% endif %}
|
|
7
|
+
<div class="bcl-event-details mb-4">
|
|
8
|
+
<h3 class="fw-bold mb-4">Event Details</h3>
|
|
9
|
+
{% include '@oe-bcl/bcl-description-list/description-list.html.twig' with sidebar only %}
|
|
10
|
+
<div class="mt-3-5">
|
|
11
|
+
{% for badge in sidebar.badges %}
|
|
12
|
+
{% include '@oe-bcl/bcl-badge/badge.html.twig' with badge only %}
|
|
13
|
+
{% endfor %}
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
{% endblock %}
|
|
17
|
+
|
|
18
|
+
{% block content %}
|
|
19
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet eleifend tortor. In facilisis eros vitae turpis ullamcorper,
|
|
20
|
+
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
|
|
21
|
+
posuere ante ut, rhoncus tortor. Proin sed erat vel nisl luctus vulputate. Nunc tristique ultricies turpis, eu dictum enim ultrices vel.
|
|
22
|
+
Sed posuere at leo sit amet placerat. Sed dapibus viverra urna ac pretium. Praesent et laoreet erat, eget volutpat metus. Duis ac augue
|
|
23
|
+
sed tortor elementum dignissim in sit amet velit. Nullam nec viverra mi.
|
|
24
|
+
</p>
|
|
25
|
+
<h3 class="fw-bold my-4">Description</h3>
|
|
26
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet eleifend tortor. In facilisis eros vitae turpis ullamcorper,
|
|
27
|
+
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
|
|
28
|
+
posuere ante ut, rhoncus tortor. Proin sed erat vel nisl luctus vulputate. Nunc tristique ultricies turpis, eu dictum enim ultrices vel.
|
|
29
|
+
Sed posuere at leo sit amet placerat. Sed dapibus viverra urna ac pretium. Praesent et laoreet erat, eget volutpat metus. Duis ac augue
|
|
30
|
+
sed tortor elementum dignissim in sit amet velit. Nullam nec viverra mi.
|
|
31
|
+
</p>
|
|
32
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet eleifend tortor. In facilisis eros vitae turpis ullamcorper,
|
|
33
|
+
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet.
|
|
34
|
+
</p>
|
|
35
|
+
{% endblock %}
|
|
36
|
+
|
|
37
|
+
{% block related %}
|
|
38
|
+
<h3 class="fw-bold my-4">Related documents</h3>
|
|
39
|
+
{% include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
|
|
40
|
+
{% include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
|
|
41
|
+
{% endblock %}
|