@openeuropa/bcl-twig-templates 0.22.0 → 0.23.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/package.json +64 -64
- package/templates/bcl-badge/badge.html.twig +13 -9
- package/templates/bcl-banner/banner.html.twig +4 -0
- package/templates/bcl-base-templates/content-type.html.twig +3 -3
- package/templates/bcl-base-templates/listing-page.html.twig +19 -9
- package/templates/bcl-card/card.html.twig +22 -19
- package/templates/bcl-content-banner/content-banner.html.twig +35 -32
- package/templates/bcl-description-list/description-list.html.twig +7 -6
- package/templates/bcl-event/event.html.twig +2 -2
- package/templates/bcl-fact-figures/fact-figures.html.twig +26 -24
- package/templates/bcl-file/file.html.twig +14 -9
- package/templates/bcl-form/form.html.twig +3 -0
- package/templates/bcl-gallery/gallery.html.twig +15 -14
- package/templates/bcl-group/group-landing.html.twig +7 -7
- package/templates/bcl-group/group.html.twig +1 -1
- package/templates/bcl-heading/heading.html.twig +9 -11
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +16 -8
- package/templates/bcl-landing-page/landing-page.html.twig +2 -2
- package/templates/bcl-links-block/links-block.html.twig +12 -8
- package/templates/bcl-listing/listing.html.twig +11 -4
- package/templates/bcl-modal/modal.html.twig +4 -1
- package/templates/bcl-offcanvas/offcanvas.html.twig +16 -19
- package/templates/bcl-page/page.html.twig +3 -3
- package/templates/bcl-person/person.html.twig +11 -11
- package/templates/bcl-progress/progress.html.twig +3 -0
- package/templates/bcl-project/project-lists.html.twig +7 -4
- package/templates/bcl-project/project.html.twig +11 -19
- package/templates/bcl-recent-activities/recent-activities.html.twig +9 -7
- package/templates/bcl-search/search.html.twig +9 -2
- package/templates/bcl-timeline/timeline.html.twig +15 -14
- package/templates/bcl-user/{user-view-compact.html.twig → user-compact.html.twig} +0 -0
- package/templates/bcl-user/user-terms.html.twig +11 -0
- package/templates/bcl-user/user.html.twig +129 -0
- package/templates/bcl-user/user-edit.html.twig +0 -38
- package/templates/bcl-user/user-view.html.twig +0 -86
package/package.json
CHANGED
|
@@ -2,74 +2,74 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-twig-templates",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.23.0",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@openeuropa/bcl-accordion": "^0.
|
|
12
|
-
"@openeuropa/bcl-alert": "^0.
|
|
13
|
-
"@openeuropa/bcl-badge": "^0.
|
|
14
|
-
"@openeuropa/bcl-banner": "^0.
|
|
15
|
-
"@openeuropa/bcl-base-templates": "^0.
|
|
16
|
-
"@openeuropa/bcl-blockquote": "^0.
|
|
17
|
-
"@openeuropa/bcl-breadcrumb": "^0.
|
|
18
|
-
"@openeuropa/bcl-button": "^0.
|
|
19
|
-
"@openeuropa/bcl-button-group": "^0.
|
|
20
|
-
"@openeuropa/bcl-card": "^0.
|
|
21
|
-
"@openeuropa/bcl-card-layout": "^0.
|
|
22
|
-
"@openeuropa/bcl-carousel": "^0.
|
|
23
|
-
"@openeuropa/bcl-contact-form": "^0.
|
|
24
|
-
"@openeuropa/bcl-content-banner": "^0.
|
|
25
|
-
"@openeuropa/bcl-date-block": "^0.
|
|
26
|
-
"@openeuropa/bcl-description-list": "^0.
|
|
27
|
-
"@openeuropa/bcl-dropdown": "^0.
|
|
28
|
-
"@openeuropa/bcl-event": "^0.
|
|
29
|
-
"@openeuropa/bcl-fact-figures": "^0.
|
|
30
|
-
"@openeuropa/bcl-featured-media": "^0.
|
|
31
|
-
"@openeuropa/bcl-file": "^0.
|
|
32
|
-
"@openeuropa/bcl-footer": "^0.
|
|
33
|
-
"@openeuropa/bcl-form": "^0.
|
|
34
|
-
"@openeuropa/bcl-form-input": "^0.
|
|
35
|
-
"@openeuropa/bcl-gallery": "^0.
|
|
36
|
-
"@openeuropa/bcl-group": "^0.
|
|
37
|
-
"@openeuropa/bcl-header": "^0.
|
|
38
|
-
"@openeuropa/bcl-heading": "^0.
|
|
39
|
-
"@openeuropa/bcl-icon": "^0.
|
|
40
|
-
"@openeuropa/bcl-inpage-navigation": "^0.
|
|
41
|
-
"@openeuropa/bcl-landing-page": "^0.
|
|
42
|
-
"@openeuropa/bcl-language-list": "^0.
|
|
43
|
-
"@openeuropa/bcl-language-switcher": "^0.
|
|
44
|
-
"@openeuropa/bcl-link": "^0.
|
|
45
|
-
"@openeuropa/bcl-links-block": "^0.
|
|
46
|
-
"@openeuropa/bcl-list-group": "^0.
|
|
47
|
-
"@openeuropa/bcl-listing": "^0.
|
|
48
|
-
"@openeuropa/bcl-modal": "^0.
|
|
49
|
-
"@openeuropa/bcl-multilingual": "^0.
|
|
50
|
-
"@openeuropa/bcl-navbar": "^0.
|
|
51
|
-
"@openeuropa/bcl-navigation": "^0.
|
|
52
|
-
"@openeuropa/bcl-news": "^0.
|
|
53
|
-
"@openeuropa/bcl-offcanvas": "^0.
|
|
54
|
-
"@openeuropa/bcl-page": "^0.
|
|
55
|
-
"@openeuropa/bcl-pagination": "^0.
|
|
56
|
-
"@openeuropa/bcl-person": "^0.
|
|
57
|
-
"@openeuropa/bcl-placeholder": "^0.
|
|
58
|
-
"@openeuropa/bcl-progress": "^0.
|
|
59
|
-
"@openeuropa/bcl-project": "^0.
|
|
60
|
-
"@openeuropa/bcl-project-status": "^0.
|
|
61
|
-
"@openeuropa/bcl-recent-activities": "^0.
|
|
62
|
-
"@openeuropa/bcl-search": "^0.
|
|
63
|
-
"@openeuropa/bcl-search-form": "^0.
|
|
64
|
-
"@openeuropa/bcl-select": "^0.
|
|
65
|
-
"@openeuropa/bcl-spinner": "^0.
|
|
66
|
-
"@openeuropa/bcl-subscription": "^0.
|
|
67
|
-
"@openeuropa/bcl-subscription-block": "^0.
|
|
68
|
-
"@openeuropa/bcl-table": "^0.
|
|
69
|
-
"@openeuropa/bcl-textarea": "^0.
|
|
70
|
-
"@openeuropa/bcl-timeline": "^0.
|
|
71
|
-
"@openeuropa/bcl-toast": "^0.
|
|
72
|
-
"@openeuropa/bcl-user": "^0.
|
|
11
|
+
"@openeuropa/bcl-accordion": "^0.23.0",
|
|
12
|
+
"@openeuropa/bcl-alert": "^0.23.0",
|
|
13
|
+
"@openeuropa/bcl-badge": "^0.23.0",
|
|
14
|
+
"@openeuropa/bcl-banner": "^0.23.0",
|
|
15
|
+
"@openeuropa/bcl-base-templates": "^0.23.0",
|
|
16
|
+
"@openeuropa/bcl-blockquote": "^0.23.0",
|
|
17
|
+
"@openeuropa/bcl-breadcrumb": "^0.23.0",
|
|
18
|
+
"@openeuropa/bcl-button": "^0.23.0",
|
|
19
|
+
"@openeuropa/bcl-button-group": "^0.23.0",
|
|
20
|
+
"@openeuropa/bcl-card": "^0.23.0",
|
|
21
|
+
"@openeuropa/bcl-card-layout": "^0.23.0",
|
|
22
|
+
"@openeuropa/bcl-carousel": "^0.23.0",
|
|
23
|
+
"@openeuropa/bcl-contact-form": "^0.23.0",
|
|
24
|
+
"@openeuropa/bcl-content-banner": "^0.23.0",
|
|
25
|
+
"@openeuropa/bcl-date-block": "^0.23.0",
|
|
26
|
+
"@openeuropa/bcl-description-list": "^0.23.0",
|
|
27
|
+
"@openeuropa/bcl-dropdown": "^0.23.0",
|
|
28
|
+
"@openeuropa/bcl-event": "^0.23.0",
|
|
29
|
+
"@openeuropa/bcl-fact-figures": "^0.23.0",
|
|
30
|
+
"@openeuropa/bcl-featured-media": "^0.23.0",
|
|
31
|
+
"@openeuropa/bcl-file": "^0.23.0",
|
|
32
|
+
"@openeuropa/bcl-footer": "^0.23.0",
|
|
33
|
+
"@openeuropa/bcl-form": "^0.23.0",
|
|
34
|
+
"@openeuropa/bcl-form-input": "^0.23.0",
|
|
35
|
+
"@openeuropa/bcl-gallery": "^0.23.0",
|
|
36
|
+
"@openeuropa/bcl-group": "^0.23.0",
|
|
37
|
+
"@openeuropa/bcl-header": "^0.23.0",
|
|
38
|
+
"@openeuropa/bcl-heading": "^0.23.0",
|
|
39
|
+
"@openeuropa/bcl-icon": "^0.23.0",
|
|
40
|
+
"@openeuropa/bcl-inpage-navigation": "^0.23.0",
|
|
41
|
+
"@openeuropa/bcl-landing-page": "^0.23.0",
|
|
42
|
+
"@openeuropa/bcl-language-list": "^0.23.0",
|
|
43
|
+
"@openeuropa/bcl-language-switcher": "^0.23.0",
|
|
44
|
+
"@openeuropa/bcl-link": "^0.23.0",
|
|
45
|
+
"@openeuropa/bcl-links-block": "^0.23.0",
|
|
46
|
+
"@openeuropa/bcl-list-group": "^0.23.0",
|
|
47
|
+
"@openeuropa/bcl-listing": "^0.23.0",
|
|
48
|
+
"@openeuropa/bcl-modal": "^0.23.0",
|
|
49
|
+
"@openeuropa/bcl-multilingual": "^0.23.0",
|
|
50
|
+
"@openeuropa/bcl-navbar": "^0.23.0",
|
|
51
|
+
"@openeuropa/bcl-navigation": "^0.23.0",
|
|
52
|
+
"@openeuropa/bcl-news": "^0.23.0",
|
|
53
|
+
"@openeuropa/bcl-offcanvas": "^0.23.0",
|
|
54
|
+
"@openeuropa/bcl-page": "^0.23.0",
|
|
55
|
+
"@openeuropa/bcl-pagination": "^0.23.0",
|
|
56
|
+
"@openeuropa/bcl-person": "^0.23.0",
|
|
57
|
+
"@openeuropa/bcl-placeholder": "^0.23.0",
|
|
58
|
+
"@openeuropa/bcl-progress": "^0.23.0",
|
|
59
|
+
"@openeuropa/bcl-project": "^0.23.0",
|
|
60
|
+
"@openeuropa/bcl-project-status": "^0.23.0",
|
|
61
|
+
"@openeuropa/bcl-recent-activities": "^0.23.0",
|
|
62
|
+
"@openeuropa/bcl-search": "^0.23.0",
|
|
63
|
+
"@openeuropa/bcl-search-form": "^0.23.0",
|
|
64
|
+
"@openeuropa/bcl-select": "^0.23.0",
|
|
65
|
+
"@openeuropa/bcl-spinner": "^0.23.0",
|
|
66
|
+
"@openeuropa/bcl-subscription": "^0.23.0",
|
|
67
|
+
"@openeuropa/bcl-subscription-block": "^0.23.0",
|
|
68
|
+
"@openeuropa/bcl-table": "^0.23.0",
|
|
69
|
+
"@openeuropa/bcl-textarea": "^0.23.0",
|
|
70
|
+
"@openeuropa/bcl-timeline": "^0.23.0",
|
|
71
|
+
"@openeuropa/bcl-toast": "^0.23.0",
|
|
72
|
+
"@openeuropa/bcl-user": "^0.23.0",
|
|
73
73
|
"copyfiles": "2.4.1",
|
|
74
74
|
"rimraf": "3.0.2"
|
|
75
75
|
},
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"design-system",
|
|
93
93
|
"twig"
|
|
94
94
|
],
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "fa2097e14024989cddf6f9cd7a9115bed5886aeb"
|
|
96
96
|
}
|
|
@@ -33,22 +33,25 @@
|
|
|
33
33
|
{% set _classes = _classes|merge([ 'bg-' ~ _background]) %}
|
|
34
34
|
{% endif %}
|
|
35
35
|
|
|
36
|
-
{% if _background in ['light', 'warning'] %}
|
|
37
|
-
{% set _classes = _classes|merge(['text-dark']) %}
|
|
38
|
-
{% endif %}
|
|
39
|
-
|
|
40
36
|
{% if attributes is empty %}
|
|
41
37
|
{% set attributes = create_attribute() %}
|
|
42
38
|
{% endif %}
|
|
43
39
|
|
|
40
|
+
{%- if _url is not empty -%}
|
|
41
|
+
{% set attributes = attributes.setAttribute('title', _title).setAttribute('href', _url) %}
|
|
42
|
+
{%- endif -%}
|
|
43
|
+
|
|
44
44
|
{% set attributes = attributes.addClass(_classes) %}
|
|
45
45
|
|
|
46
46
|
{%- if _url is not empty -%}
|
|
47
|
-
<a
|
|
47
|
+
<a
|
|
48
|
+
{{ attributes }}
|
|
49
|
+
>
|
|
50
|
+
{%- else -%}
|
|
51
|
+
<span
|
|
52
|
+
{{ attributes }}
|
|
53
|
+
>
|
|
48
54
|
{%- endif -%}
|
|
49
|
-
<span
|
|
50
|
-
{{ attributes }}
|
|
51
|
-
>
|
|
52
55
|
{%- if _assistive_text is not empty -%}
|
|
53
56
|
<span class="visually-hidden">
|
|
54
57
|
{{- _assistive_text -}}
|
|
@@ -63,9 +66,10 @@
|
|
|
63
66
|
} only %}
|
|
64
67
|
</span>
|
|
65
68
|
{%- endif -%}
|
|
66
|
-
</span>
|
|
67
69
|
{%- if _url is not empty -%}
|
|
68
70
|
</a>
|
|
71
|
+
{%- else -%}
|
|
72
|
+
</span>
|
|
69
73
|
{%- endif -%}
|
|
70
74
|
|
|
71
75
|
{% endspaceless %}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- title: (string) (default: "")
|
|
5
5
|
- title_tag: (string) (default: "div")
|
|
6
|
+
- title_link: (link object) (default: {})
|
|
7
|
+
- title_attributes (drupal attrs)
|
|
6
8
|
- description: (string) (default: "")
|
|
7
9
|
- link: (link object) (default: {}): predefined structure for Link component
|
|
8
10
|
- image: (string) <img> tag
|
|
@@ -14,6 +16,7 @@
|
|
|
14
16
|
|
|
15
17
|
{% set _title = title|default('') %}
|
|
16
18
|
{% set _title_tag = title_tag|default('div') %}
|
|
19
|
+
{% set _title_link = title_link|default({}) %}
|
|
17
20
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
18
21
|
{% set _description = description|default('') %}
|
|
19
22
|
{% set _link = link|default({}) %}
|
|
@@ -60,6 +63,7 @@
|
|
|
60
63
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
61
64
|
title: _title,
|
|
62
65
|
title_tag: _title_tag,
|
|
66
|
+
title_link: _title_link,
|
|
63
67
|
attributes: _title_attributes,
|
|
64
68
|
} only %}
|
|
65
69
|
{% endif %}
|
|
@@ -116,6 +116,9 @@
|
|
|
116
116
|
{% block related %}
|
|
117
117
|
{{ related }}
|
|
118
118
|
{% endblock %}
|
|
119
|
+
{% block share %}
|
|
120
|
+
{{ share }}
|
|
121
|
+
{% endblock %}
|
|
119
122
|
</div>
|
|
120
123
|
</div>
|
|
121
124
|
</main>
|
|
@@ -123,9 +126,6 @@
|
|
|
123
126
|
{% block feedback %}
|
|
124
127
|
{{ feedback }}
|
|
125
128
|
{% endblock %}
|
|
126
|
-
{% block share %}
|
|
127
|
-
{{ share }}
|
|
128
|
-
{% endblock %}
|
|
129
129
|
|
|
130
130
|
{% if _with_footer %}
|
|
131
131
|
{% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
{#
|
|
2
2
|
Parameters:
|
|
3
|
+
- title: (string) (default: '')
|
|
4
|
+
- title_tag: (string) (default: 'h2')
|
|
5
|
+
- title_link: (link object) (default: {})
|
|
6
|
+
- title_attributes (drupal attrs)
|
|
3
7
|
- listing (object) (default: {})
|
|
4
8
|
- pagination (object) (default: {})
|
|
5
9
|
- sidebar (object) (default: '')
|
|
6
|
-
- page_title (string) (default: '')
|
|
7
10
|
#}
|
|
8
11
|
|
|
9
12
|
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
|
|
10
13
|
|
|
14
|
+
{% set _title = title|default('') %}
|
|
15
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
16
|
+
{% set _title_link = title_link|default({}) %}
|
|
17
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
11
18
|
{% set _listing = listing|default({}) %}
|
|
12
19
|
{% set _pagination = pagination|default({}) %}
|
|
13
20
|
{% set _search = search|default({}) %}
|
|
14
21
|
{% set _sidebar = sidebar|default({}) %}
|
|
15
|
-
|
|
22
|
+
|
|
23
|
+
{% set _title_attributes = _title_attributes ?: create_attribute() %}
|
|
16
24
|
|
|
17
25
|
{% block content_top %}
|
|
18
26
|
{% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
|
|
19
27
|
<div class="row">
|
|
20
28
|
<div class="col-md-6 col-lg-8 align-self-center">
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
{% if _title is not empty %}
|
|
30
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
31
|
+
title: _title ~ ' (' ~ listing.items.length ~ ')',
|
|
32
|
+
title_tag: _title_tag,
|
|
33
|
+
title_link: _title_link,
|
|
34
|
+
attributes: _title_attributes.addClass(['mb-0', 'text-capitalize']),
|
|
35
|
+
} only %}
|
|
36
|
+
{% endif %}
|
|
27
37
|
</div>
|
|
28
38
|
{% if badges is not empty and badges is iterable %}
|
|
29
39
|
<div class="col-md-12 order-md-2 mt-3">
|
|
@@ -47,7 +57,7 @@
|
|
|
47
57
|
|
|
48
58
|
{% block content %}
|
|
49
59
|
{% if _listing is not empty %}
|
|
50
|
-
{% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing %}
|
|
60
|
+
{% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
|
|
51
61
|
{% endif %}
|
|
52
62
|
{% endblock %}
|
|
53
63
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{% spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
|
-
- title (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
classes: ''
|
|
9
|
-
}
|
|
4
|
+
- title: (string) (default: '')
|
|
5
|
+
- title_tag: (string) (default: 'h5')
|
|
6
|
+
- title_link: (link object) (default: {})
|
|
7
|
+
- title_attributes (drupal attrs)
|
|
10
8
|
- subtitle (object) (default: {})
|
|
11
9
|
format: {
|
|
12
10
|
content: '',
|
|
@@ -51,7 +49,10 @@
|
|
|
51
49
|
- card_links
|
|
52
50
|
#}
|
|
53
51
|
|
|
54
|
-
{% set _title = title|default(
|
|
52
|
+
{% set _title = title|default('') %}
|
|
53
|
+
{% set _title_tag = title_tag|default('h1') %}
|
|
54
|
+
{% set _title_link = title_link|default({}) %}
|
|
55
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
55
56
|
{% set _subtitle = subtitle|default({}) %}
|
|
56
57
|
{% set _text = text|default({}) %}
|
|
57
58
|
{% set _content = content|default('') %}
|
|
@@ -116,7 +117,7 @@
|
|
|
116
117
|
|
|
117
118
|
{% set attributes = attributes.addClass(_classes) %}
|
|
118
119
|
|
|
119
|
-
<
|
|
120
|
+
<article
|
|
120
121
|
{{ attributes }}
|
|
121
122
|
>
|
|
122
123
|
{% if _card_header is not empty %}
|
|
@@ -171,16 +172,18 @@
|
|
|
171
172
|
<div class='{{ _horizontal_grid.right_col_classes }}'>
|
|
172
173
|
{% endif %}
|
|
173
174
|
<div class='{{ _body_classes }}'>
|
|
174
|
-
{
|
|
175
|
-
{%
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
175
|
+
{% if _title is not empty %}
|
|
176
|
+
{% if _title_attributes.class is empty %}
|
|
177
|
+
{% set _title_attributes = _title_attributes.addClass('fs-5') %}
|
|
178
|
+
{% endif %}
|
|
179
|
+
{% set _title_attributes = _title_attributes.addClass('card-title') %}
|
|
180
|
+
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
181
|
+
title: _title,
|
|
182
|
+
title_tag: _title_tag,
|
|
183
|
+
title_link: _title_link,
|
|
184
|
+
attributes: _title_attributes,
|
|
185
|
+
} only %}
|
|
186
|
+
{% endif %}
|
|
184
187
|
{%- if _subtitle is not empty -%}
|
|
185
188
|
{% set _subtitle_tag = _subtitle.tag ?? 'h6' %}
|
|
186
189
|
<{{ _subtitle_tag }}
|
|
@@ -270,6 +273,6 @@
|
|
|
270
273
|
{{- _card_footer -}}
|
|
271
274
|
</div>
|
|
272
275
|
{% endif %}
|
|
273
|
-
</
|
|
276
|
+
</article>
|
|
274
277
|
|
|
275
278
|
{% endspaceless %}
|
|
@@ -2,29 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
-
-
|
|
5
|
+
- background: (string) (default: 'white')
|
|
6
6
|
options: [ white, gray ]
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
7
|
+
- title: (string) (default: '')
|
|
8
|
+
- title_tag: (string) (default: 'h5')
|
|
9
|
+
- title_link: (link object) (default: {})
|
|
10
|
+
- title_attributes: (drupal attrs)
|
|
11
|
+
- image (object)
|
|
12
|
+
- image_size: (string)
|
|
13
|
+
- date: (object)
|
|
10
14
|
options: ['sm', 'md', 'lg']
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
- content: (string)
|
|
16
|
+
- badges: (array of objects of type badge)
|
|
17
|
+
- links: (array of objects of type link)
|
|
18
|
+
- attributes: (drupal attrs)
|
|
19
|
+
|
|
20
|
+
Blocks
|
|
21
|
+
- "action_bar" (string)
|
|
17
22
|
#}
|
|
18
23
|
|
|
24
|
+
{% set _title = title|default('') %}
|
|
25
|
+
{% set _title_tag = title_tag|default('h1') %}
|
|
26
|
+
{% set _title_link = title_link|default({}) %}
|
|
27
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
19
28
|
{% set _background = background|default('white') %}
|
|
20
|
-
{% set
|
|
21
|
-
{% set _service_buttons = service_buttons|default([]) %}
|
|
29
|
+
{% set _action_bar = action_bar|default('') %}
|
|
22
30
|
{% set _image = image|default({}) %}
|
|
31
|
+
{% set _date = date|default({}) %}
|
|
23
32
|
{% set _image_size = image_size|default('md') %}
|
|
24
33
|
|
|
25
34
|
{% set _css_classes = [
|
|
26
35
|
'bcl-content-banner',
|
|
27
|
-
'pt-lg-4-75',
|
|
28
36
|
] %}
|
|
29
37
|
|
|
30
38
|
{% if _background != 'white' %}
|
|
@@ -32,10 +40,12 @@
|
|
|
32
40
|
'pb-md-4-75',
|
|
33
41
|
'pb-4',
|
|
34
42
|
'pt-4',
|
|
43
|
+
'pt-md-4-75',
|
|
35
44
|
]) %}
|
|
36
45
|
{% else %}
|
|
37
46
|
{% set _css_classes = _css_classes|merge([
|
|
38
|
-
'pt-
|
|
47
|
+
'pt-4',
|
|
48
|
+
'pt-md-4-75',
|
|
39
49
|
]) %}
|
|
40
50
|
{% endif %}
|
|
41
51
|
|
|
@@ -64,6 +74,10 @@
|
|
|
64
74
|
{% set _left_col_classes = 'col-6 col-md-4 col-lg-2 offset-3 offset-md-0' %}
|
|
65
75
|
{% endif %}
|
|
66
76
|
{% endif %}
|
|
77
|
+
{% if _date is not empty %}
|
|
78
|
+
{% set _left_col_classes = 'col-8 col-md-3 col-lg-2 offset-4 offset-md-0' %}
|
|
79
|
+
{% set _right_col_classes = 'col-md-9 col-lg-10 col-xxl-8' %}
|
|
80
|
+
{% endif %}
|
|
67
81
|
|
|
68
82
|
{% set _horizontal_classes = {
|
|
69
83
|
left_col_classes: _left_col_classes,
|
|
@@ -71,10 +85,10 @@
|
|
|
71
85
|
} %}
|
|
72
86
|
|
|
73
87
|
{% set _card = {
|
|
74
|
-
title:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
88
|
+
title: _title,
|
|
89
|
+
title_tag: _title_tag,
|
|
90
|
+
title_link: _title_link,
|
|
91
|
+
title_attributes: _title_attributes.addClass('mb-0'),
|
|
78
92
|
horizontal: true,
|
|
79
93
|
horizontal_grid: _horizontal_classes,
|
|
80
94
|
extra_classes_header: 'bg-transparent pt-0 pb-0 border-0',
|
|
@@ -92,20 +106,9 @@
|
|
|
92
106
|
<div class="container">
|
|
93
107
|
{% include '@oe-bcl/bcl-card/card.html.twig' with _card %}
|
|
94
108
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
{
|
|
98
|
-
{% for _button in _service_buttons %}
|
|
99
|
-
{% include '@oe-bcl/bcl-button/button.html.twig' with _button only %}
|
|
100
|
-
{% endfor %}
|
|
101
|
-
{% endif %}
|
|
102
|
-
{% if _action_button is not empty %}
|
|
103
|
-
<div class="d-grid d-md-block ms-3">
|
|
104
|
-
{% include '@oe-bcl/bcl-button/button.html.twig' with _action_button only %}
|
|
105
|
-
</div>
|
|
106
|
-
{% endif %}
|
|
107
|
-
</div>
|
|
108
|
-
{% endif %}
|
|
109
|
+
{%- block action_bar -%}
|
|
110
|
+
{{ _action_bar }}
|
|
111
|
+
{%- endblock -%}
|
|
109
112
|
</div>
|
|
110
113
|
</div>
|
|
111
114
|
|
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
Parameters:
|
|
5
5
|
- title: (string) (default: "")
|
|
6
6
|
- title_tag: (string) (default: "h2")
|
|
7
|
+
- title_link: (link object) (default: {})
|
|
7
8
|
- title_attributes (drupal attrs)
|
|
8
|
-
-
|
|
9
|
+
- items (array) (default: []): format: [
|
|
9
10
|
{
|
|
10
|
-
|
|
11
|
+
term (object or array of object) -format: {
|
|
11
12
|
icon: {} - icon object,
|
|
12
13
|
label: ""
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
+
definition (block or array of string)
|
|
15
16
|
},
|
|
16
17
|
...
|
|
17
18
|
]
|
|
18
|
-
-
|
|
19
|
+
- variant (string) (default: '')
|
|
19
20
|
- option: ["horizontal"]
|
|
20
21
|
#}
|
|
21
22
|
|
|
22
|
-
{# Parameters #}
|
|
23
|
-
|
|
24
23
|
{% set _title = title|default('') %}
|
|
25
24
|
{% set _title_tag = title_tag|default('h2') %}
|
|
25
|
+
{% set _title_link = title_link|default({}) %}
|
|
26
26
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
27
27
|
{% set _items = items|default([]) %}
|
|
28
28
|
{% set _variant = variant|default('') %}
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
40
40
|
title: _title,
|
|
41
41
|
title_tag: _title_tag,
|
|
42
|
+
title_link: _title_link,
|
|
42
43
|
attributes: _title_attributes,
|
|
43
44
|
} only %}
|
|
44
45
|
{% endif %}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{% block content %}
|
|
8
8
|
{% include '@oe-bcl/bcl-description-list/description-list.html.twig' with details_list only %}
|
|
9
9
|
|
|
10
|
-
<
|
|
10
|
+
<h2 id="item-1" class="my-4">Description</h2>
|
|
11
11
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet eleifend tortor. In facilisis eros vitae turpis ullamcorper,
|
|
12
12
|
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
|
|
13
13
|
posuere ante ut, rhoncus tortor. Proin sed erat vel nisl luctus vulputate. Nunc tristique ultricies turpis, eu dictum enim ultrices vel.
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet.
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
|
-
<
|
|
21
|
+
<h2 id="item-2" class="my-4">Related documents</h2>
|
|
22
22
|
{% include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
|
|
23
23
|
{% include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
|
|
24
24
|
{% endblock %}
|
|
@@ -2,31 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
5
|
+
- title (string) (default: '')
|
|
6
|
+
- title_tag (string) (default: 'h2')
|
|
7
|
+
- title_link: (link object) (default: {})
|
|
8
|
+
- title_attributes (drupal attrs)
|
|
9
|
+
- variant (string) (default: '') options:
|
|
8
10
|
[ default, block ]
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
11
|
+
- display_icons (boolean) (default: true)
|
|
12
|
+
- items (array) (default: []):
|
|
13
|
+
- icon (associate array) (default: { size: 'm' })
|
|
14
|
+
- subtitle (string) (default: '')
|
|
15
|
+
- title (string) (default: '')
|
|
16
|
+
- description (string) (default:'')
|
|
17
|
+
- grid_columns (int) (default: 1)
|
|
18
|
+
- responsiveness (string) (default: 'md')
|
|
19
|
+
- responsive_columns (integer) (default: 3)
|
|
20
|
+
- gutter (int) (default: 4)
|
|
21
|
+
- equal_height (boolean) (default: false)
|
|
22
|
+
- cols_extra_classes (string) (default: '')
|
|
23
|
+
- icon_path (string) (default: '')
|
|
24
|
+
- link_more (object of type link) (default {})
|
|
23
25
|
#}
|
|
24
26
|
|
|
25
|
-
{# Parameters #}
|
|
26
|
-
|
|
27
27
|
{% set _title = title|default('') %}
|
|
28
28
|
{% set _title_tag = title_tag|default('h2') %}
|
|
29
|
-
{% set
|
|
29
|
+
{% set _title_link = title_link|default({}) %}
|
|
30
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
30
31
|
{% set _variant = variant|default('default') %}
|
|
31
32
|
{% set _css_classes = ['bcl-fact-figures', 'bcl-fact-figures--' ~ _variant] %}
|
|
32
33
|
{% set _display_icons = display_icons ?? true %}
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
73
74
|
title: _title,
|
|
74
75
|
title_tag: _title_tag,
|
|
76
|
+
title_link: _title_link,
|
|
75
77
|
attributes: _title_attributes,
|
|
76
78
|
} only %}
|
|
77
79
|
{% endif %}
|
|
@@ -94,14 +96,14 @@
|
|
|
94
96
|
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _item.icon only %}
|
|
95
97
|
{% endif %}
|
|
96
98
|
{% if _item.title is defined and _item.title is not empty %}
|
|
97
|
-
<
|
|
99
|
+
<div class="fs-3 mt-2">
|
|
98
100
|
{{- _item.title -}}
|
|
99
|
-
</
|
|
101
|
+
</div>
|
|
100
102
|
{% endif %}
|
|
101
103
|
{% if _item.subtitle is defined and _item.subtitle is not empty %}
|
|
102
|
-
<
|
|
104
|
+
<div class="fs-5">
|
|
103
105
|
{{- _item.subtitle -}}
|
|
104
|
-
</
|
|
106
|
+
</div>
|
|
105
107
|
{% endif %}
|
|
106
108
|
{% if _item.description is defined and _item.description is not empty %}
|
|
107
109
|
<p>
|