@openeuropa/bcl-theme-default 0.14.0 → 0.18.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 +252 -46
- 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/bcl-default-icons.svg +1 -0
- package/icons/icons-flag.svg +1 -0
- package/js/slimselect.min.js +1 -1
- package/package.json +7 -6
- package/src/scss/_badge.scss +15 -0
- package/src/scss/_bcl-offcanvas.scss +4 -4
- package/src/scss/_footer.scss +19 -7
- package/src/scss/_header.scss +90 -18
- package/src/scss/_inpage-navigation.scss +1 -1
- package/src/scss/_multiselect.scss +3 -2
- package/src/scss/_utilities.scss +1 -1
- package/src/scss/_variables.scss +16 -7
- package/src/scss/oe-bcl-default.scss +1 -0
- package/templates/bcl-accordion/accordion.html.twig +9 -0
- package/templates/bcl-alert/alert.html.twig +4 -0
- package/templates/bcl-badge/badge.html.twig +9 -1
- package/templates/bcl-banner/banner.html.twig +12 -5
- package/templates/bcl-base-templates/content-type.html.twig +48 -20
- package/templates/bcl-base-templates/listing-page.html.twig +26 -21
- package/templates/bcl-blockquote/blockquote.html.twig +4 -0
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +6 -2
- package/templates/bcl-button/button.html.twig +8 -2
- package/templates/bcl-button-group/button-group.html.twig +4 -0
- package/templates/bcl-card/card.html.twig +24 -20
- package/templates/bcl-card-layout/card-layout.html.twig +4 -0
- package/templates/bcl-carousel/carousel.html.twig +4 -0
- package/templates/bcl-content-banner/content-banner.html.twig +33 -8
- package/templates/bcl-date-block/date-block.html.twig +4 -0
- package/templates/bcl-description-list/description-list.html.twig +37 -8
- package/templates/bcl-event/event.html.twig +41 -0
- package/templates/bcl-fact-figures/fact-figures.html.twig +15 -7
- package/templates/bcl-featured-media/featured-media.html.twig +53 -5
- package/templates/bcl-file/file.html.twig +19 -4
- package/templates/bcl-footer/footer.html.twig +4 -1
- package/templates/bcl-form/form.html.twig +4 -0
- 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 +14 -1
- package/templates/bcl-landing-page/landing-page.html.twig +46 -52
- package/templates/bcl-links-block/links-block.html.twig +5 -2
- package/templates/bcl-list-group/list-group.html.twig +6 -0
- package/templates/bcl-listing/listing.html.twig +29 -16
- package/templates/bcl-navbar/navbar.html.twig +22 -20
- package/templates/bcl-navigation/navigation.html.twig +141 -111
- package/templates/bcl-offcanvas/offcanvas.html.twig +4 -0
- package/templates/bcl-page/page.html.twig +64 -0
- package/templates/bcl-pagination/pagination.html.twig +13 -1
- package/templates/bcl-placeholder/placeholder.html.twig +43 -0
- package/templates/bcl-progress/progress.html.twig +5 -0
- package/templates/bcl-recent-activities/recent-activities.html.twig +4 -0
- package/templates/bcl-search/search.html.twig +10 -40
- package/templates/bcl-search-form/search-form.html.twig +52 -0
- package/templates/bcl-select/select.html.twig +6 -0
- package/templates/bcl-table/table.html.twig +4 -0
- package/templates/bcl-timeline/timeline.html.twig +16 -1
- package/templates/bcl-toast/toasts.html.twig +5 -0
- package/templates/bcl-user/user-edit.html.twig +38 -0
- package/templates/{bcl-user-view → bcl-user}/user-view-compact.html.twig +5 -1
- 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-offcanvas.html.twig +0 -8
- package/templates/bcl-group-landing-listing/group-landing-listing.html.twig +0 -69
- package/templates/bcl-search/search-offcanvas.html.twig +0 -8
- 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 -45
- package/templates/bcl-user-view/user-view.html.twig +0 -106
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- title: (string) (default: "")
|
|
5
|
+
- title_tag: (string) (default: "div")
|
|
5
6
|
- description: (string) (default: "")
|
|
6
7
|
- link: (link object) (default: {}): predefined structure for Link component
|
|
7
8
|
- image: (string) <img> tag
|
|
@@ -11,14 +12,15 @@
|
|
|
11
12
|
- content_classes: (string) (default: "")
|
|
12
13
|
#}
|
|
13
14
|
|
|
14
|
-
{% set _title = title|default(
|
|
15
|
-
{% set
|
|
15
|
+
{% set _title = title|default('') %}
|
|
16
|
+
{% set _title_tag = title_tag|default('div') %}
|
|
17
|
+
{% set _description = description|default('') %}
|
|
16
18
|
{% set _link = link|default({}) %}
|
|
17
|
-
{% set _image = image|default(
|
|
19
|
+
{% set _image = image|default('') %}
|
|
18
20
|
{% set _shade = shade|default(false) %}
|
|
19
21
|
{% set _hero = hero|default(false) %}
|
|
20
22
|
{% set _full_width = full_width|default(false) %}
|
|
21
|
-
{% set _content_classes = content_classes|default(
|
|
23
|
+
{% set _content_classes = content_classes|default('') %}
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
{% set _content_class = 'bcl-banner__content' %}
|
|
@@ -38,6 +40,11 @@
|
|
|
38
40
|
_hero ? 'hero',
|
|
39
41
|
_full_width ? 'full-width'
|
|
40
42
|
] %}
|
|
43
|
+
|
|
44
|
+
{% if attributes is empty %}
|
|
45
|
+
{% set attributes = create_attribute() %}
|
|
46
|
+
{% endif %}
|
|
47
|
+
|
|
41
48
|
{% set attributes = attributes.addClass(_classes) %}
|
|
42
49
|
|
|
43
50
|
<div {{ attributes }}>
|
|
@@ -47,7 +54,7 @@
|
|
|
47
54
|
<div class="container">
|
|
48
55
|
<div class="{{ _content_class }}">
|
|
49
56
|
{% if _title is not empty %}
|
|
50
|
-
<
|
|
57
|
+
<{{ _title_tag }} class="{{ _title_classes }}">{{ _title }}</{{ _title_tag }}>
|
|
51
58
|
{% if _description is not empty %}
|
|
52
59
|
<p class="mb-4">{{ _description }}</p>
|
|
53
60
|
{% endif %}
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
- with_footer (boolean) (default: false)
|
|
7
7
|
- with_banner (boolean) (default: false)
|
|
8
8
|
- with_sidebar (boolean) (default: false)
|
|
9
|
-
-
|
|
10
|
-
|
|
9
|
+
- sidebar_size (string) (default: 'normal')
|
|
10
|
+
options: ['normal', 'large']
|
|
11
|
+
- landing (boolean) (default: false)
|
|
11
12
|
- content_type (string) (default: '')
|
|
12
13
|
- attributes (drupal attrs)
|
|
13
14
|
|
|
@@ -26,41 +27,68 @@
|
|
|
26
27
|
{% set _with_footer = footer|default(false) %}
|
|
27
28
|
{% set _with_banner = banner|default(false) %}
|
|
28
29
|
{% set _with_sidebar = sidebar|default(false) %}
|
|
29
|
-
{% set
|
|
30
|
-
{% set
|
|
30
|
+
{% set _sidebar_size = sidebar_size|default('normal') %}
|
|
31
|
+
{% set _landing = landing|default(false) %}
|
|
31
32
|
{% set _content_type = content_type|default('') %}
|
|
32
33
|
{% set _classes = ['bcl-node-type'] %}
|
|
33
|
-
{% set _col_classes = { left: 'col-md-3', right: 'col-12 col-lg-9' } %}
|
|
34
34
|
|
|
35
|
-
{% if
|
|
36
|
-
{% set _col_classes = {
|
|
37
|
-
|
|
38
|
-
|
|
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 %}
|
|
39
58
|
{% endif %}
|
|
40
59
|
|
|
41
60
|
{% if _content_type is not empty %}
|
|
42
61
|
{% set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
|
|
43
62
|
{% endif %}
|
|
44
63
|
|
|
64
|
+
{% if attributes is empty %}
|
|
65
|
+
{% set attributes = create_attribute() %}
|
|
66
|
+
{% endif %}
|
|
67
|
+
|
|
45
68
|
{% if _with_header %}
|
|
46
69
|
{% include '@oe-bcl/bcl-header/header.html.twig' with header only %}
|
|
47
70
|
{% endif %}
|
|
48
71
|
|
|
49
72
|
<main {{ attributes }}>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
73
|
+
{% if _with_banner %}
|
|
74
|
+
{% block banner %}
|
|
75
|
+
{% include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
|
|
76
|
+
{% endblock %}
|
|
77
|
+
{% endif %}
|
|
78
|
+
|
|
55
79
|
<div class="container mt-md-4-75 mt-4">
|
|
56
80
|
<div class="row">
|
|
57
81
|
{% if _with_sidebar %}
|
|
58
|
-
<div class="{{ _col_classes.left }}">
|
|
82
|
+
<div class="{{ _col_classes.left|join(' ') }}">
|
|
59
83
|
{% block sidebar %}{% endblock %}
|
|
60
84
|
</div>
|
|
61
|
-
<div class="{{ _col_classes.right }}">
|
|
85
|
+
<div class="{{ _col_classes.right|join(' ') }}">
|
|
62
86
|
{% else %}
|
|
63
|
-
|
|
87
|
+
{% if _landing %}
|
|
88
|
+
<div class="col-12">
|
|
89
|
+
{% else %}
|
|
90
|
+
<div class="col-12 col-lg-10 col-xl-9 col-xxl-8">
|
|
91
|
+
{% endif %}
|
|
64
92
|
{% endif %}
|
|
65
93
|
{% block content_top %}
|
|
66
94
|
{{ content_top }}
|
|
@@ -71,13 +99,13 @@
|
|
|
71
99
|
{% block content_bottom %}
|
|
72
100
|
{{ content_bottom }}
|
|
73
101
|
{% endblock %}
|
|
102
|
+
{% block related %}
|
|
103
|
+
{{ related }}
|
|
104
|
+
{% endblock %}
|
|
74
105
|
</div>
|
|
75
106
|
</div>
|
|
76
107
|
</main>
|
|
77
108
|
|
|
78
|
-
{% block related %}
|
|
79
|
-
{{ related }}
|
|
80
|
-
{% endblock %}
|
|
81
109
|
{% block feedback %}
|
|
82
110
|
{{ feedback }}
|
|
83
111
|
{% endblock %}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
- listing (object) (default: {})
|
|
4
4
|
- pagination (object) (default: {})
|
|
5
5
|
- sidebar (object) (default: '')
|
|
6
|
+
- page_title (string) (default: '')
|
|
6
7
|
#}
|
|
7
8
|
|
|
8
9
|
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
|
|
@@ -11,33 +12,37 @@
|
|
|
11
12
|
{% set _pagination = pagination|default({}) %}
|
|
12
13
|
{% set _search = search|default({}) %}
|
|
13
14
|
{% set _sidebar = sidebar|default({}) %}
|
|
15
|
+
{% set _page_title = page_title|default({}) %}
|
|
14
16
|
|
|
15
17
|
{% block content_top %}
|
|
16
18
|
{% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
|
|
17
|
-
<div class="
|
|
18
|
-
<div class="
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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>
|
|
22
43
|
</div>
|
|
23
|
-
<h4 class="mb-4">
|
|
24
|
-
<span class="text-capitalize">
|
|
25
|
-
{{ content_type }}
|
|
26
|
-
</span>
|
|
27
|
-
({{ listing.items.length }})
|
|
28
|
-
</h4>
|
|
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 only %}
|
|
32
|
-
{% endfor %}
|
|
33
|
-
{% endif %}
|
|
34
44
|
</div>
|
|
35
45
|
<hr class="d-none d-md-block mb-4"/>
|
|
36
|
-
<div class="d-md-none">
|
|
37
|
-
{% include '@oe-bcl/bcl-select/select.html.twig' with sort_select|merge({
|
|
38
|
-
extra_classes: 'mb-4',
|
|
39
|
-
}) only %}
|
|
40
|
-
</div>
|
|
41
46
|
{% endblock %}
|
|
42
47
|
|
|
43
48
|
{% block content %}
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
{% set _alignment = alignment|default('left') %}
|
|
15
15
|
{% set _classes = ['text-' ~ _alignment] %}
|
|
16
16
|
|
|
17
|
+
{% if attributes is empty %}
|
|
18
|
+
{% set attributes = create_attribute() %}
|
|
19
|
+
{% endif %}
|
|
20
|
+
|
|
17
21
|
{% set attributes = attributes.addClass(_classes) %}
|
|
18
22
|
|
|
19
23
|
<figure
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
{% set _links = links|default([]) %}
|
|
9
9
|
{% set _icons_path = icons_path|default('') %}
|
|
10
10
|
|
|
11
|
+
{% if attributes is empty %}
|
|
12
|
+
{% set attributes = create_attribute() %}
|
|
13
|
+
{% endif %}
|
|
14
|
+
|
|
11
15
|
{% set attributes = attributes.setAttribute('aria-label', 'breadcrumb') %}
|
|
12
16
|
|
|
13
17
|
{% if _links is not empty %}
|
|
@@ -18,7 +22,7 @@
|
|
|
18
22
|
class="{{ _classes }}"
|
|
19
23
|
>
|
|
20
24
|
{% for _link in _links %}
|
|
21
|
-
{% set _segment_classes = 'breadcrumb-item d-none d-md-block' %}
|
|
25
|
+
{% set _segment_classes = 'breadcrumb-item d-none d-md-block' %}
|
|
22
26
|
{% if loop.revindex == 2 %}
|
|
23
27
|
{% set _segment_classes = 'breadcrumb-item' %}
|
|
24
28
|
{% endif %}
|
|
@@ -29,7 +33,7 @@
|
|
|
29
33
|
{% endif %}
|
|
30
34
|
<li
|
|
31
35
|
class="{{ _segment_classes }}"
|
|
32
|
-
{{ _segment_attrs }}
|
|
36
|
+
{{ _segment_attrs|raw }}
|
|
33
37
|
>
|
|
34
38
|
{%- if _link.path -%}
|
|
35
39
|
{% if loop.revindex == 2 %}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
- icon (icon object) (default: {}): predefined structure for Icon component
|
|
16
16
|
- icon_position (string) (default: after)
|
|
17
17
|
- options ["after", "before"]
|
|
18
|
+
- icon_spacing (string) (default: '')
|
|
19
|
+
- options ["sm", "md", "lg"]
|
|
18
20
|
- clean_class (boolean) (default: false)
|
|
19
21
|
- spinner (spinner object) (default: {})
|
|
20
22
|
- show_spinner (boolean) (default: false)
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
{% set _id = id|default('') %}
|
|
32
34
|
{% set _icon = icon|default({}) %}
|
|
33
35
|
{% set _icon_position = icon_position|default('after') %}
|
|
36
|
+
{% set _icon_spacing = icon_spacing|default('') %}
|
|
34
37
|
{% set _show_spinner = show_spinner|default(false) %}
|
|
35
38
|
{% set _spinner = spinner|default({}) %}
|
|
36
39
|
{% set _clean_class = clean_class|default(false) %}
|
|
@@ -54,6 +57,9 @@
|
|
|
54
57
|
{% if _classes is not empty %}
|
|
55
58
|
{% set attributes = attributes.addClass(_classes) %}
|
|
56
59
|
{% endif %}
|
|
60
|
+
{% if _icon_spacing is not empty %}
|
|
61
|
+
{% set _icon_spacing = _icon_spacing ~ '-' %}
|
|
62
|
+
{% endif %}
|
|
57
63
|
{% set attributes = attributes.setAttribute('type', _type) %}
|
|
58
64
|
{% if _icon is not empty %}
|
|
59
65
|
{% set _icon = _icon|merge({
|
|
@@ -69,12 +75,12 @@
|
|
|
69
75
|
{% endif %}
|
|
70
76
|
{% if _icon_position == 'before' %}
|
|
71
77
|
{% set _icon = _icon|merge({
|
|
72
|
-
attributes: _icon.attributes.addClass('me-2-5')
|
|
78
|
+
attributes: _icon.attributes.addClass('me-' ~ _icon_spacing ~ '2-5')
|
|
73
79
|
})
|
|
74
80
|
%}
|
|
75
81
|
{% else %}
|
|
76
82
|
{% set _icon = _icon|merge({
|
|
77
|
-
attributes: _icon.attributes.addClass('ms-2-5')
|
|
83
|
+
attributes: _icon.attributes.addClass('ms-' ~ _icon_spacing ~ '2-5')
|
|
78
84
|
})
|
|
79
85
|
%}
|
|
80
86
|
{% endif %}
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
|
|
25
25
|
{% set _classes = _classes|merge(['btn-group-' ~ _size]) %}
|
|
26
26
|
|
|
27
|
+
{% if attributes is empty %}
|
|
28
|
+
{% set attributes = create_attribute() %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
|
|
27
31
|
{% if _aria_label is not empty %}
|
|
28
32
|
{% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
|
|
29
33
|
{% endif %}
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
{% set _img_class = _img_class ~ " " ~ _image.classes %}
|
|
134
134
|
{% endif %}
|
|
135
135
|
{% endif %}
|
|
136
|
-
{% if _horizontal %}
|
|
136
|
+
{% if _horizontal and (_image is not empty or _date is not empty) %}
|
|
137
137
|
<div class='{{ _horizontal_grid.left_col_classes }}'>
|
|
138
138
|
{% endif %}
|
|
139
139
|
{% if _date is not empty %}
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
class="{{ _img_class }}"
|
|
146
146
|
>
|
|
147
147
|
{% endif %}
|
|
148
|
-
{% if _horizontal %}
|
|
148
|
+
{% if _horizontal and (_image is not empty or _date is not empty) %}
|
|
149
149
|
</div>
|
|
150
150
|
{% endif %}
|
|
151
151
|
{% if _image.position == 'background' %}
|
|
@@ -155,24 +155,6 @@
|
|
|
155
155
|
<div class='{{ _horizontal_grid.right_col_classes }}'>
|
|
156
156
|
{% endif %}
|
|
157
157
|
<div class='{{ _body_classes }}'>
|
|
158
|
-
{%- if _badges is not empty and _badges is iterable -%}
|
|
159
|
-
<div class="mb-3">
|
|
160
|
-
{% for _badge in _badges %}
|
|
161
|
-
{% if _badge.attributes is empty %}
|
|
162
|
-
{% set _badge = _badge|merge({
|
|
163
|
-
attributes: create_attribute()
|
|
164
|
-
}) %}
|
|
165
|
-
{% endif %}
|
|
166
|
-
{% if not loop.last %}
|
|
167
|
-
{% set _badge = _badge|merge({
|
|
168
|
-
attributes: _badge.attributes.addClass('me-2')
|
|
169
|
-
})
|
|
170
|
-
%}
|
|
171
|
-
{% endif %}
|
|
172
|
-
{% include '@oe-bcl/bcl-badge/badge.html.twig' with _badge only %}
|
|
173
|
-
{% endfor %}
|
|
174
|
-
</div>
|
|
175
|
-
{%- endif -%}
|
|
176
158
|
{%- if _title is not empty -%}
|
|
177
159
|
{% set _title_tag = _title.tag ?? 'h5' %}
|
|
178
160
|
<{{ _title_tag }}
|
|
@@ -202,6 +184,28 @@
|
|
|
202
184
|
{%- if _content is not empty -%}
|
|
203
185
|
{{- _content -}}
|
|
204
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
|
+
{% set _badge = _badge|merge({
|
|
196
|
+
attributes: _badge.attributes.addClass('mb-2')
|
|
197
|
+
})
|
|
198
|
+
%}
|
|
199
|
+
{% if not loop.last %}
|
|
200
|
+
{% set _badge = _badge|merge({
|
|
201
|
+
attributes: _badge.attributes.addClass('me-2')
|
|
202
|
+
})
|
|
203
|
+
%}
|
|
204
|
+
{% endif %}
|
|
205
|
+
{% include '@oe-bcl/bcl-badge/badge.html.twig' with _badge only %}
|
|
206
|
+
{% endfor %}
|
|
207
|
+
</div>
|
|
208
|
+
{%- endif -%}
|
|
205
209
|
</div>
|
|
206
210
|
{% if _horizontal %}
|
|
207
211
|
</div>
|
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
{% set _classes = _classes|merge(['carousel-dark']) %}
|
|
44
44
|
{% endif %}
|
|
45
45
|
|
|
46
|
+
{% if attributes is empty %}
|
|
47
|
+
{% set attributes = create_attribute() %}
|
|
48
|
+
{% endif %}
|
|
49
|
+
|
|
46
50
|
{% if _id is not empty %}
|
|
47
51
|
{% set attributes = attributes.setAttribute('id', _id) %}
|
|
48
52
|
{% endif %}
|
|
@@ -17,34 +17,59 @@
|
|
|
17
17
|
{% set _background = background|default('white') %}
|
|
18
18
|
{% set _action_button = action_button|default({}) %}
|
|
19
19
|
{% set _service_buttons = service_buttons|default([]) %}
|
|
20
|
+
{% set _image = image|default({}) %}
|
|
20
21
|
|
|
21
22
|
{% set _css_classes = [
|
|
22
23
|
'bcl-content-banner',
|
|
23
24
|
'vw-100',
|
|
24
|
-
'
|
|
25
|
-
'py-4',
|
|
25
|
+
'pt-lg-4-75',
|
|
26
26
|
] %}
|
|
27
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
|
+
|
|
28
40
|
{% set _modifiers = {
|
|
29
41
|
'white': 'bg-white',
|
|
30
42
|
'gray': 'bg-lighter',
|
|
31
43
|
} %}
|
|
32
44
|
|
|
45
|
+
{% if attributes is empty %}
|
|
46
|
+
{% set attributes = create_attribute() %}
|
|
47
|
+
{% endif %}
|
|
48
|
+
|
|
33
49
|
{% set _card = {
|
|
34
|
-
horizontal: true,
|
|
35
50
|
title: title|default({})|merge({
|
|
36
51
|
tag: 'h2',
|
|
37
|
-
|
|
52
|
+
attributes: create_attribute().addClass(['fw-bold']),
|
|
38
53
|
}),
|
|
54
|
+
horizontal: true,
|
|
55
|
+
horizontal_grid: {
|
|
56
|
+
right_col_classes: 'col-md-8 col-lg-9 col-xxl-8',
|
|
57
|
+
},
|
|
39
58
|
extra_classes_header: 'bg-transparent pt-0 pb-0 border-0',
|
|
40
|
-
extra_classes_body: 'pt-
|
|
59
|
+
extra_classes_body: 'pt-0 px-0 pb-0',
|
|
41
60
|
} %}
|
|
42
61
|
|
|
43
|
-
{% if
|
|
62
|
+
{% if _image is not empty %}
|
|
63
|
+
{% set _card = _card|merge({
|
|
64
|
+
horizontal_grid: _card.horizontal_grid|merge({
|
|
65
|
+
left_col_classes: 'col-md-4 col-lg-3',
|
|
66
|
+
}),
|
|
67
|
+
extra_classes_body: 'pt-md-0 px-0 px-md-3 pb-0',
|
|
68
|
+
}) %}
|
|
69
|
+
{% else %}
|
|
44
70
|
{% set _card = _card|merge({
|
|
45
71
|
horizontal_grid: {
|
|
46
|
-
|
|
47
|
-
right_col_classes: 'col-md-9',
|
|
72
|
+
right_col_classes: 'col-md-8 col-lg-9 col-xxl-8 px-sm-0 px-md-2-5',
|
|
48
73
|
},
|
|
49
74
|
}) %}
|
|
50
75
|
{% endif %}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
+
- title: (string) (default: "")
|
|
6
|
+
- title_tag: (string) (default: "h2")
|
|
5
7
|
- "items" (array) (default: []): format: [
|
|
6
8
|
{
|
|
7
9
|
"term" (object or array of object) -format: {
|
|
@@ -14,19 +16,30 @@
|
|
|
14
16
|
]
|
|
15
17
|
- "variant" (string) (default: '')
|
|
16
18
|
- option: ["horizontal"]
|
|
17
|
-
|
|
18
19
|
#}
|
|
19
20
|
|
|
20
21
|
{# Parameters #}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
{% set _title = title|default('') %}
|
|
24
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
23
25
|
{% set _items = items|default([]) %}
|
|
24
26
|
{% set _variant = variant|default('') %}
|
|
25
27
|
|
|
28
|
+
{% if attributes is empty %}
|
|
29
|
+
{% set attributes = create_attribute() %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
|
|
26
32
|
{% if _variant == 'horizontal' %}
|
|
27
33
|
{% set attributes = attributes.addClass(["d-md-grid", "grid-3-9"]) %}
|
|
28
34
|
{% endif %}
|
|
29
35
|
|
|
36
|
+
{% if _title is not empty %}
|
|
37
|
+
{% set _title_classes = 'fw-bold mb-4' %}
|
|
38
|
+
<{{ _title_tag }} class="{{ _title_classes }}">
|
|
39
|
+
{{- _title -}}
|
|
40
|
+
</{{ _title_tag }}>
|
|
41
|
+
{% endif %}
|
|
42
|
+
|
|
30
43
|
<dl
|
|
31
44
|
{{ attributes }}
|
|
32
45
|
>
|
|
@@ -37,26 +50,42 @@
|
|
|
37
50
|
<div>
|
|
38
51
|
{% endif %}
|
|
39
52
|
{% for _term in _item.term %}
|
|
40
|
-
<dt
|
|
53
|
+
<dt
|
|
54
|
+
{% if _variant == 'horizontal' and _term.icon is not empty %}
|
|
55
|
+
class="d-flex"
|
|
56
|
+
{% endif %}
|
|
57
|
+
>
|
|
41
58
|
{%- if _term.icon is not empty -%}
|
|
59
|
+
{% set _icon_classes = ["me-2"] %}
|
|
60
|
+
{% if _variant == 'horizontal' %}
|
|
61
|
+
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
62
|
+
{% endif %}
|
|
42
63
|
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
|
|
43
|
-
attributes: create_attribute().addClass(
|
|
64
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
44
65
|
}) only %}
|
|
45
66
|
{%- endif -%}
|
|
46
|
-
|
|
67
|
+
{{- _term.label -}}
|
|
47
68
|
</dt>
|
|
48
69
|
{% endfor %}
|
|
49
70
|
{% if _variant == 'horizontal' %}
|
|
50
71
|
</div>
|
|
51
72
|
{% endif %}
|
|
52
73
|
{% else %}
|
|
53
|
-
<dt
|
|
74
|
+
<dt
|
|
75
|
+
{% if _variant == 'horizontal' and _item.term.icon is not empty %}
|
|
76
|
+
class="d-flex"
|
|
77
|
+
{% endif %}
|
|
78
|
+
>
|
|
54
79
|
{% if _item.term.icon is not empty %}
|
|
80
|
+
{% set _icon_classes = ["me-2"] %}
|
|
81
|
+
{% if _variant == 'horizontal' %}
|
|
82
|
+
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
83
|
+
{% endif %}
|
|
55
84
|
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
|
|
56
|
-
attributes: create_attribute().addClass(
|
|
85
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
57
86
|
}) only -%}
|
|
58
87
|
{% endif %}
|
|
59
|
-
|
|
88
|
+
{{- _item.term.label -}}
|
|
60
89
|
</dt>
|
|
61
90
|
{% endif %}
|
|
62
91
|
{% endif %}
|
|
@@ -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 %}
|