@openeuropa/bcl-theme-default 0.14.0 → 0.15.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/css/oe-bcl-default.css +3 -4
- 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/package.json +5 -5
- package/src/scss/_header.scss +1 -0
- package/src/scss/_utilities.scss +1 -1
- package/templates/bcl-banner/banner.html.twig +7 -5
- package/templates/bcl-base-templates/content-type.html.twig +12 -13
- package/templates/bcl-base-templates/listing-page.html.twig +3 -1
- package/templates/bcl-card/card.html.twig +2 -2
- package/templates/bcl-content-banner/content-banner.html.twig +29 -8
- package/templates/bcl-description-list/description-list.html.twig +33 -8
- package/templates/bcl-event/event.html.twig +41 -0
- package/templates/bcl-fact-figures/fact-figures.html.twig +9 -5
- package/templates/bcl-featured-media/featured-media.html.twig +49 -5
- package/templates/bcl-file/file.html.twig +15 -4
- package/templates/bcl-group/group-landing.html.twig +101 -0
- package/templates/bcl-group/group.html.twig +25 -0
- package/templates/bcl-header/header.html.twig +2 -2
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +9 -1
- package/templates/bcl-landing-page/landing-page.html.twig +46 -52
- package/templates/bcl-links-block/links-block.html.twig +4 -1
- package/templates/bcl-listing/listing.html.twig +2 -2
- package/templates/bcl-page/page.html.twig +64 -0
- package/templates/bcl-timeline/timeline.html.twig +12 -1
- package/templates/bcl-user/user-edit.html.twig +38 -0
- package/templates/{bcl-user-view → bcl-user}/user-view-compact.html.twig +0 -0
- 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-search/search.html.twig +0 -45
- 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
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-theme-default",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.15.0",
|
|
6
6
|
"description": "OE - BCL theme default",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "npm-run-all build:*",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"prepublish": "npm run build"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@openeuropa/bcl-bootstrap": "^0.
|
|
17
|
-
"@openeuropa/bcl-builder": "^0.
|
|
18
|
-
"@openeuropa/bcl-twig-templates": "^0.
|
|
16
|
+
"@openeuropa/bcl-bootstrap": "^0.15.0",
|
|
17
|
+
"@openeuropa/bcl-builder": "^0.15.0",
|
|
18
|
+
"@openeuropa/bcl-twig-templates": "^0.15.0",
|
|
19
19
|
"copyfiles": "2.4.1",
|
|
20
20
|
"cross-env": "7.0.3",
|
|
21
21
|
"glob": "7.2.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"design-system",
|
|
40
40
|
"twig"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "97a9f0822ee0d4d800e40aa17bf87dc698c5906c"
|
|
43
43
|
}
|
package/src/scss/_header.scss
CHANGED
package/src/scss/_utilities.scss
CHANGED
|
@@ -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' %}
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
<div class="container">
|
|
48
50
|
<div class="{{ _content_class }}">
|
|
49
51
|
{% if _title is not empty %}
|
|
50
|
-
<
|
|
52
|
+
<{{ _title_tag }} class="{{ _title_classes }}">{{ _title }}</{{ _title_tag }}>
|
|
51
53
|
{% if _description is not empty %}
|
|
52
54
|
<p class="mb-4">{{ _description }}</p>
|
|
53
55
|
{% endif %}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
- with_footer (boolean) (default: false)
|
|
7
7
|
- with_banner (boolean) (default: false)
|
|
8
8
|
- with_sidebar (boolean) (default: false)
|
|
9
|
-
- title (string) (default: '')
|
|
10
9
|
- columns (string) (default: 3-9 )
|
|
11
10
|
- content_type (string) (default: '')
|
|
12
11
|
- attributes (drupal attrs)
|
|
@@ -27,15 +26,14 @@
|
|
|
27
26
|
{% set _with_banner = banner|default(false) %}
|
|
28
27
|
{% set _with_sidebar = sidebar|default(false) %}
|
|
29
28
|
{% set _columns = columns|default('3-9') %}
|
|
30
|
-
{% set _title = title|default('') %}
|
|
31
29
|
{% set _content_type = content_type|default('') %}
|
|
32
30
|
{% set _classes = ['bcl-node-type'] %}
|
|
33
|
-
{% set _col_classes = { left: 'col-md-3', right: 'col-12 col-
|
|
31
|
+
{% set _col_classes = { left: 'col-md-3', right: 'col-12 col-md-9' } %}
|
|
34
32
|
|
|
35
33
|
{% if _columns == '4-8' %}
|
|
36
|
-
{% set _col_classes = { left: 'col-md-4', right: 'col-12 col-
|
|
34
|
+
{% set _col_classes = { left: 'col-md-4', right: 'col-12 col-md-8' } %}
|
|
37
35
|
{% elseif _columns == '2-10' %}
|
|
38
|
-
{% set _col_classes = { left: 'col-md-2', right: 'col-12 col-
|
|
36
|
+
{% set _col_classes = { left: 'col-md-2', right: 'col-12 col-md-10' } %}
|
|
39
37
|
{% endif %}
|
|
40
38
|
|
|
41
39
|
{% if _content_type is not empty %}
|
|
@@ -47,11 +45,12 @@
|
|
|
47
45
|
{% endif %}
|
|
48
46
|
|
|
49
47
|
<main {{ attributes }}>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
{% if _with_banner %}
|
|
49
|
+
{% block banner %}
|
|
50
|
+
{% include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
|
|
51
|
+
{% endblock %}
|
|
52
|
+
{% endif %}
|
|
53
|
+
|
|
55
54
|
<div class="container mt-md-4-75 mt-4">
|
|
56
55
|
<div class="row">
|
|
57
56
|
{% if _with_sidebar %}
|
|
@@ -71,13 +70,13 @@
|
|
|
71
70
|
{% block content_bottom %}
|
|
72
71
|
{{ content_bottom }}
|
|
73
72
|
{% endblock %}
|
|
73
|
+
{% block related %}
|
|
74
|
+
{{ related }}
|
|
75
|
+
{% endblock %}
|
|
74
76
|
</div>
|
|
75
77
|
</div>
|
|
76
78
|
</main>
|
|
77
79
|
|
|
78
|
-
{% block related %}
|
|
79
|
-
{{ related }}
|
|
80
|
-
{% endblock %}
|
|
81
80
|
{% block feedback %}
|
|
82
81
|
{{ feedback }}
|
|
83
82
|
{% 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,6 +12,7 @@
|
|
|
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 %}
|
|
@@ -22,7 +24,7 @@
|
|
|
22
24
|
</div>
|
|
23
25
|
<h4 class="mb-4">
|
|
24
26
|
<span class="text-capitalize">
|
|
25
|
-
{{
|
|
27
|
+
{{- _page_title -}}
|
|
26
28
|
</span>
|
|
27
29
|
({{ listing.items.length }})
|
|
28
30
|
</h4>
|
|
@@ -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' %}
|
|
@@ -17,34 +17,55 @@
|
|
|
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
|
|
|
33
45
|
{% set _card = {
|
|
34
|
-
horizontal: true,
|
|
35
46
|
title: title|default({})|merge({
|
|
36
47
|
tag: 'h2',
|
|
37
|
-
|
|
48
|
+
attributes: create_attribute().addClass(['fw-bold']),
|
|
38
49
|
}),
|
|
50
|
+
horizontal: true,
|
|
51
|
+
horizontal_grid: {
|
|
52
|
+
right_col_classes: 'col-md-8 col-lg-9 col-xxl-8',
|
|
53
|
+
},
|
|
39
54
|
extra_classes_header: 'bg-transparent pt-0 pb-0 border-0',
|
|
40
|
-
extra_classes_body: 'pt-
|
|
55
|
+
extra_classes_body: 'pt-0 px-0 pb-0',
|
|
41
56
|
} %}
|
|
42
57
|
|
|
43
|
-
{% if
|
|
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 %}
|
|
44
66
|
{% set _card = _card|merge({
|
|
45
67
|
horizontal_grid: {
|
|
46
|
-
|
|
47
|
-
right_col_classes: 'col-md-9',
|
|
68
|
+
right_col_classes: 'col-md-8 col-lg-9 col-xxl-8 px-sm-0 px-md-2-5',
|
|
48
69
|
},
|
|
49
70
|
}) %}
|
|
50
71
|
{% endif %}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
+
- title: (string) (default: "")
|
|
6
|
+
- title_tag: (string) (default: "h4")
|
|
5
7
|
- "items" (array) (default: []): format: [
|
|
6
8
|
{
|
|
7
9
|
"term" (object or array of object) -format: {
|
|
@@ -14,12 +16,12 @@
|
|
|
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('h4') %}
|
|
23
25
|
{% set _items = items|default([]) %}
|
|
24
26
|
{% set _variant = variant|default('') %}
|
|
25
27
|
|
|
@@ -27,6 +29,13 @@
|
|
|
27
29
|
{% set attributes = attributes.addClass(["d-md-grid", "grid-3-9"]) %}
|
|
28
30
|
{% endif %}
|
|
29
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
|
+
|
|
30
39
|
<dl
|
|
31
40
|
{{ attributes }}
|
|
32
41
|
>
|
|
@@ -37,26 +46,42 @@
|
|
|
37
46
|
<div>
|
|
38
47
|
{% endif %}
|
|
39
48
|
{% for _term in _item.term %}
|
|
40
|
-
<dt
|
|
49
|
+
<dt
|
|
50
|
+
{% if _variant == 'horizontal' and _term.icon is not empty %}
|
|
51
|
+
class="d-flex"
|
|
52
|
+
{% endif %}
|
|
53
|
+
>
|
|
41
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 %}
|
|
42
59
|
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
|
|
43
|
-
attributes: create_attribute().addClass(
|
|
60
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
44
61
|
}) only %}
|
|
45
62
|
{%- endif -%}
|
|
46
|
-
|
|
63
|
+
{{- _term.label -}}
|
|
47
64
|
</dt>
|
|
48
65
|
{% endfor %}
|
|
49
66
|
{% if _variant == 'horizontal' %}
|
|
50
67
|
</div>
|
|
51
68
|
{% endif %}
|
|
52
69
|
{% else %}
|
|
53
|
-
<dt
|
|
70
|
+
<dt
|
|
71
|
+
{% if _variant == 'horizontal' and _item.term.icon is not empty %}
|
|
72
|
+
class="d-flex"
|
|
73
|
+
{% endif %}
|
|
74
|
+
>
|
|
54
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 %}
|
|
55
80
|
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
|
|
56
|
-
attributes: create_attribute().addClass(
|
|
81
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
57
82
|
}) only -%}
|
|
58
83
|
{% endif %}
|
|
59
|
-
|
|
84
|
+
{{- _item.term.label -}}
|
|
60
85
|
</dt>
|
|
61
86
|
{% endif %}
|
|
62
87
|
{% 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 %}
|
|
@@ -2,27 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
+
- "title" (string) (default: '')
|
|
6
|
+
- "title_tag" (string) (default: 'h4')
|
|
5
7
|
- "variant" (string) (default: '') options:
|
|
6
8
|
[ default, block ]
|
|
9
|
+
- "display_icons" (boolean) (default: true)
|
|
7
10
|
- "items" (array) (default: []):
|
|
8
11
|
- "icon" (associate array) (default: { size: 'm' })
|
|
9
12
|
- "subtitle" (string) (default: '')
|
|
10
13
|
- "title" (string) (default: '')
|
|
11
14
|
- "description" (string) (default:'')
|
|
12
|
-
- "display_icons" (boolean) (default: true)
|
|
13
15
|
- "grid_columns" (int) (default: 1)
|
|
16
|
+
- "responsiveness" (string) (default: 'md')
|
|
17
|
+
- "responsive_columns" (integer) (default: 3)
|
|
14
18
|
- "gutter" (int) (default: 4)
|
|
15
|
-
- "equal_height" (boolean) (default:
|
|
19
|
+
- "equal_height" (boolean) (default: false)
|
|
16
20
|
- "cols_extra_classes" (string) (default: '')
|
|
17
|
-
- "responsiveness" (string) (default: 'md')
|
|
18
21
|
- "icons_path" (string) (default: '')
|
|
19
22
|
- "link_more" (object of type link) (default {})
|
|
20
|
-
|
|
21
23
|
#}
|
|
22
24
|
|
|
23
25
|
{# Parameters #}
|
|
24
26
|
|
|
25
27
|
{% set _title = title|default('') %}
|
|
28
|
+
{% set _title_tag = title_tag|default('h4') %}
|
|
26
29
|
{% set _variant = variant|default('default') %}
|
|
27
30
|
{% set _css_classes = ['bcl-fact-figures', 'bcl-fact-figures--' ~ _variant] %}
|
|
28
31
|
{% set _display_icons = display_icons ?? true %}
|
|
@@ -61,7 +64,8 @@
|
|
|
61
64
|
|
|
62
65
|
<div {{ attributes }}>
|
|
63
66
|
{% if _title is not empty %}
|
|
64
|
-
|
|
67
|
+
{% set _title_classes = 'fw-bold' %}
|
|
68
|
+
<{{ _title_tag }} class="{{ _title_classes }}">{{ _title }}</{{ _title_tag }}>
|
|
65
69
|
{% endif %}
|
|
66
70
|
<div
|
|
67
71
|
{% if _wrapper_classes is not empty %}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{% spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
|
+
- with_text (boolean) (default: false)
|
|
5
|
+
- title: (string) (default: '')
|
|
6
|
+
- title_tag: (string) (default: 'h3')
|
|
4
7
|
- image: (string) (default: "")
|
|
5
8
|
- poster_image: (string) (default: "")
|
|
6
9
|
- content: (string) (default: "")
|
|
10
|
+
- wrapper_classes: (default: '')
|
|
7
11
|
- content_classes: (string) (default: "")
|
|
12
|
+
- read_more (object) (default: {})
|
|
13
|
+
- description (string) (default: '')
|
|
8
14
|
- ratio: (string) (default: "16x9")
|
|
9
15
|
- options ["1x1", "4x3", "16x9", "21x9"]
|
|
10
16
|
- sources: (array of sources) (default: []) format: [
|
|
@@ -26,15 +32,47 @@
|
|
|
26
32
|
- "embedded_media"
|
|
27
33
|
#}
|
|
28
34
|
|
|
35
|
+
{% set _title = title|default('') %}
|
|
36
|
+
{% set _title_tag = title_tag|default('h4') %}
|
|
37
|
+
{% set _with_text = with_text|default(false) %}
|
|
38
|
+
{% set _wrapper_classes = 'bcl-featured-item' %}
|
|
39
|
+
{% set _description = description|default('') %}
|
|
29
40
|
{% set _embedded_media = embedded_media|default('') %}
|
|
30
|
-
{% set _image = image|default(
|
|
31
|
-
{% set _poster_image = poster_image|default(
|
|
32
|
-
{% set _content = content|default(
|
|
33
|
-
{% set
|
|
34
|
-
{% set
|
|
41
|
+
{% set _image = image|default('') %}
|
|
42
|
+
{% set _poster_image = poster_image|default('') %}
|
|
43
|
+
{% set _content = content|default('') %}
|
|
44
|
+
{% set _alignment = alignment|default('right') %}
|
|
45
|
+
{% set _content_classes = content_classes|default('') %}
|
|
46
|
+
{% set _ratio = ratio|default('16x9') %}
|
|
35
47
|
{% set _sources = sources|default([]) %}
|
|
36
48
|
{% set _tracks = tracks|default([]) %}
|
|
49
|
+
{% set _col_classes = 'col-12 col-md-6' %}
|
|
50
|
+
{% set _read_more = read_more|default({}) %}
|
|
37
51
|
|
|
52
|
+
{% if wrapper_classes is defined and wrapper_classes is not empty %}
|
|
53
|
+
{% set _wrapper_classes = _wrapper_classes ~ ' ' ~ wrapper_classes %}
|
|
54
|
+
{% endif %}
|
|
55
|
+
|
|
56
|
+
{% if _with_text %}
|
|
57
|
+
<div class="{{ _wrapper_classes }}">
|
|
58
|
+
|
|
59
|
+
{% if _title is not empty %}
|
|
60
|
+
{% set _title_classes = 'fw-bold mb-4' %}
|
|
61
|
+
<{{ _title_tag }} class="{{ _title_classes }}">
|
|
62
|
+
{{- _title -}}
|
|
63
|
+
</{{ _title_tag }}>
|
|
64
|
+
{% endif %}
|
|
65
|
+
|
|
66
|
+
<div class="row">
|
|
67
|
+
<div class="{{ _col_classes }} order-{{ _alignment == "right" ? '1' : '2' }}">
|
|
68
|
+
{{- _description|default('') -}}
|
|
69
|
+
|
|
70
|
+
{% if _read_more is not empty %}
|
|
71
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with _read_more only %}
|
|
72
|
+
{% endif %}
|
|
73
|
+
</div>
|
|
74
|
+
<div class="{{ _col_classes }} order-{{ _alignment == "right" ? '2' : '1' }}">
|
|
75
|
+
{% endif %}
|
|
38
76
|
|
|
39
77
|
<figure
|
|
40
78
|
{{ attributes }}
|
|
@@ -79,4 +117,10 @@
|
|
|
79
117
|
{% endif %}
|
|
80
118
|
</figure>
|
|
81
119
|
|
|
120
|
+
{% if _with_text %}
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
{% endif %}
|
|
125
|
+
|
|
82
126
|
{% endspaceless %}
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
-
- icon (icon Object) (default: {})
|
|
6
5
|
- title (string) (default: '')
|
|
6
|
+
- title_tag (string) (default: 'h4')
|
|
7
|
+
- item_title (string) (default: '')
|
|
8
|
+
- icon (icon Object) (default: {})
|
|
7
9
|
- text (string) (default: '')
|
|
8
10
|
- content (string) (default: '')
|
|
9
11
|
- image (object) (default: {}) - format: {
|
|
@@ -34,6 +36,8 @@
|
|
|
34
36
|
|
|
35
37
|
{% set _icon = icon|default({}) %}
|
|
36
38
|
{% set _title = title|default('') %}
|
|
39
|
+
{% set _title_tag = title_tag|default('h4') %}
|
|
40
|
+
{% set _item_title = item_title|default('') %}
|
|
37
41
|
{% set _text = text|default('') %}
|
|
38
42
|
{% set _content = content|default('') %}
|
|
39
43
|
{% set _image = image|default({}) %}
|
|
@@ -53,6 +57,13 @@
|
|
|
53
57
|
}) %}
|
|
54
58
|
{% endif %}
|
|
55
59
|
|
|
60
|
+
{% if _title is not empty %}
|
|
61
|
+
{% set _title_classes = 'fw-bold mb-4' %}
|
|
62
|
+
<{{ _title_tag }} class="{{ _title_classes }}">
|
|
63
|
+
{{- _title -}}
|
|
64
|
+
</{{ _title_tag }}>
|
|
65
|
+
{% endif %}
|
|
66
|
+
|
|
56
67
|
{% if _variant == 'card' %}
|
|
57
68
|
{% set attributes = attributes.addClass(['border', 'rounded-bottom']) %}
|
|
58
69
|
{% set _image = _image|merge({
|
|
@@ -67,7 +78,7 @@
|
|
|
67
78
|
},
|
|
68
79
|
badges: _badges,
|
|
69
80
|
title: {
|
|
70
|
-
content:
|
|
81
|
+
content: _item_title,
|
|
71
82
|
},
|
|
72
83
|
text: {
|
|
73
84
|
content: _text,
|
|
@@ -94,8 +105,8 @@
|
|
|
94
105
|
{% endif %}
|
|
95
106
|
<div class="{{ _container_classes }}">
|
|
96
107
|
<div class="flex-grow-1">
|
|
97
|
-
{% if
|
|
98
|
-
<p class="fw-bold m-0">{{
|
|
108
|
+
{% if _item_title is not empty and _variant == 'default' %}
|
|
109
|
+
<p class="fw-bold m-0">{{ _item_title }}</p>
|
|
99
110
|
{% endif %}
|
|
100
111
|
{% if _language is not empty or _meta is not empty %}
|
|
101
112
|
<small class="fw-bold m-0">
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
|
|
2
|
+
|
|
3
|
+
{% block banner %}
|
|
4
|
+
<div class="container">
|
|
5
|
+
{% if banner is not empty %}
|
|
6
|
+
<div class="mt-4 mt-md-5">
|
|
7
|
+
{% if banner.image is not empty %}
|
|
8
|
+
<img
|
|
9
|
+
src="{{ banner.image.path }}"
|
|
10
|
+
{% if banner.image.alt is not empty %}
|
|
11
|
+
alt="{{ banner.image.alt }}"
|
|
12
|
+
{% endif %}
|
|
13
|
+
{% if banner.image.class is not empty %}
|
|
14
|
+
class="{{ banner.image.class }}"
|
|
15
|
+
{% endif %}
|
|
16
|
+
/>
|
|
17
|
+
{% endif %}
|
|
18
|
+
{% if banner.title is not empty %}
|
|
19
|
+
<div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
|
|
20
|
+
<h2 class="mb-0 d-inline-block fw-bold">{{ banner.title }}</h2>
|
|
21
|
+
{% if banner.actions is not empty and banner.actions is iterable %}
|
|
22
|
+
<div class="d-grid d-md-block ms-auto">
|
|
23
|
+
{% for _action in banner.actions %}
|
|
24
|
+
{% if _action.type == "link" %}
|
|
25
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
|
|
26
|
+
{% elseif _action.type == "button" %}
|
|
27
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
|
|
28
|
+
{% elseif _action.type == "dropdown" %}
|
|
29
|
+
{% include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% endfor %}
|
|
32
|
+
</div>
|
|
33
|
+
{% endif %}
|
|
34
|
+
</div>
|
|
35
|
+
{% endif %}
|
|
36
|
+
</div>
|
|
37
|
+
{% endif %}
|
|
38
|
+
{% include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
|
|
39
|
+
{% if banner_description is not empty and contact is not empty %}
|
|
40
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with banner_description.collapse_trigger only %}
|
|
41
|
+
<div class="collapse d-md-block" id="banner-description">
|
|
42
|
+
<div class="row mt-md-4 mb-md-5 pb-md-5">
|
|
43
|
+
<div class="col-md-8">
|
|
44
|
+
<div class="ps-md-3">
|
|
45
|
+
{% if banner_description.metas is not empty and banner_description.metas is iterable %}
|
|
46
|
+
<div class="d-block">
|
|
47
|
+
{% for _meta in banner_description.metas %}
|
|
48
|
+
<p class="mb-0 me-4 d-inline-block text-muted">
|
|
49
|
+
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _meta.icon only %}
|
|
50
|
+
{{- _meta.label -}}
|
|
51
|
+
</p>
|
|
52
|
+
{% endfor %}
|
|
53
|
+
</div>
|
|
54
|
+
{% endif %}
|
|
55
|
+
{{ banner_description.content }}
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="col-md-4">
|
|
59
|
+
<h4 class="mb-3 pb-2">{{ contact.title }}</h4>
|
|
60
|
+
{% if contact.profiles is not empty and contact.profiles is iterable %}
|
|
61
|
+
{% for _profile in contact.profiles %}
|
|
62
|
+
{% include '@oe-bcl/bcl-user/user-view-compact.html.twig' with _profile only %}
|
|
63
|
+
{% endfor %}
|
|
64
|
+
{% endif %}
|
|
65
|
+
{% if contact.more_link is not empty %}
|
|
66
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with contact.more_link only %}
|
|
67
|
+
{% endif %}
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
{% endif %}
|
|
72
|
+
</div>
|
|
73
|
+
{% endblock %}
|
|
74
|
+
|
|
75
|
+
{% block content %}
|
|
76
|
+
{% if recent is not empty and members is not empty %}
|
|
77
|
+
<div class="row mt-3">
|
|
78
|
+
<div class="col-md-8">
|
|
79
|
+
<h4 class="mb-4 pb-2">{{ recent.title }}</h4>
|
|
80
|
+
{% include '@oe-bcl/bcl-recent-activities/recent-activities.html.twig' with recent.block_data only %}
|
|
81
|
+
</div>
|
|
82
|
+
<div class="col-md-4">
|
|
83
|
+
<h4 class="mt-4 mt-md-0 mb-4 pb-2">{{ members.title}}</h4>
|
|
84
|
+
{% if members.profiles is not empty and members.profiles is iterable %}
|
|
85
|
+
{% for _profile in members.profiles %}
|
|
86
|
+
{% include '@oe-bcl/bcl-user/user-view-compact.html.twig' with _profile only %}
|
|
87
|
+
{% endfor %}
|
|
88
|
+
{% endif %}
|
|
89
|
+
{% if members.more_link is not empty %}
|
|
90
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with members.more_link only %}
|
|
91
|
+
{% endif %}
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
{% endif %}
|
|
95
|
+
{% if contributions is not empty %}
|
|
96
|
+
<h4 class="my-4 pt-3 pb-2">{{ contributions.title}}</h4>
|
|
97
|
+
{% if contributions.listing is not empty %}
|
|
98
|
+
{% include '@oe-bcl/bcl-listing/listing.html.twig' with contributions.listing only %}
|
|
99
|
+
{% endif %}
|
|
100
|
+
{% endif %}
|
|
101
|
+
{% endblock %}
|