@openeuropa/bcl-twig-templates 1.12.0 → 1.13.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 +67 -67
- package/templates/bcl-accordion/accordion.html.twig +0 -140
- package/templates/bcl-alert/alert.html.twig +0 -80
- package/templates/bcl-badge/badge.html.twig +0 -75
- package/templates/bcl-banner/banner.html.twig +0 -98
- package/templates/bcl-base-templates/content-type.html.twig +0 -135
- package/templates/bcl-base-templates/listing-page.html.twig +0 -72
- package/templates/bcl-base-templates/sidebar-search.html.twig +0 -20
- package/templates/bcl-blockquote/blockquote.html.twig +0 -70
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +0 -58
- package/templates/bcl-button/button.html.twig +0 -95
- package/templates/bcl-button-group/button-group.html.twig +0 -63
- package/templates/bcl-card/card.html.twig +0 -288
- package/templates/bcl-card-layout/card-layout.html.twig +0 -84
- package/templates/bcl-carousel/carousel.html.twig +0 -181
- package/templates/bcl-contact-form/contact-form.html.twig +0 -5
- package/templates/bcl-content-banner/content-banner.html.twig +0 -145
- package/templates/bcl-date-block/date-block.html.twig +0 -77
- package/templates/bcl-description-list/description-list-details.html.twig +0 -41
- package/templates/bcl-description-list/description-list-title.html.twig +0 -30
- package/templates/bcl-description-list/description-list.html.twig +0 -117
- package/templates/bcl-dropdown/dropdown.html.twig +0 -131
- package/templates/bcl-event/event.html.twig +0 -24
- package/templates/bcl-fact-figures/fact-figures.html.twig +0 -125
- package/templates/bcl-featured-media/featured-media.html.twig +0 -173
- package/templates/bcl-file/file-translations.html.twig +0 -93
- package/templates/bcl-file/file.html.twig +0 -162
- package/templates/bcl-footer/footer.html.twig +0 -87
- package/templates/bcl-form/form.html.twig +0 -147
- package/templates/bcl-form-input/form-input.html.twig +0 -179
- package/templates/bcl-gallery/gallery-item.html.twig +0 -62
- package/templates/bcl-gallery/gallery.html.twig +0 -190
- package/templates/bcl-group/group-landing.html.twig +0 -101
- package/templates/bcl-group/group.html.twig +0 -27
- package/templates/bcl-header/header.html.twig +0 -135
- package/templates/bcl-heading/heading.html.twig +0 -36
- package/templates/bcl-icon/icon.html.twig +0 -33
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +0 -77
- package/templates/bcl-landing-page/landing-page.html.twig +0 -56
- package/templates/bcl-language-list/language-list-grid.html.twig +0 -65
- package/templates/bcl-language-list/language-list-modal.html.twig +0 -111
- package/templates/bcl-language-list/language-list.html.twig +0 -107
- package/templates/bcl-link/link.html.twig +0 -94
- package/templates/bcl-links-block/links-block.html.twig +0 -72
- package/templates/bcl-list-group/list-group.html.twig +0 -116
- package/templates/bcl-listing/listing.html.twig +0 -197
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +0 -32
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +0 -67
- package/templates/bcl-mega-menu/mega-menu.html.twig +0 -114
- package/templates/bcl-modal/modal.html.twig +0 -92
- package/templates/bcl-navbar/navbar.html.twig +0 -106
- package/templates/bcl-navigation/navigation.html.twig +0 -184
- package/templates/bcl-offcanvas/offcanvas.html.twig +0 -119
- package/templates/bcl-page/page.html.twig +0 -45
- package/templates/bcl-pagination/pagination-item.html.twig +0 -69
- package/templates/bcl-pagination/pagination.html.twig +0 -158
- package/templates/bcl-pagination-v2/pagination-item.html.twig +0 -86
- package/templates/bcl-pagination-v2/pagination.html.twig +0 -210
- package/templates/bcl-placeholder/placeholder.html.twig +0 -41
- package/templates/bcl-progress/progress.html.twig +0 -69
- package/templates/bcl-project/project-lists.html.twig +0 -69
- package/templates/bcl-project/project.html.twig +0 -72
- package/templates/bcl-project-status/project-contributions.html.twig +0 -53
- package/templates/bcl-project-status/project-status.html.twig +0 -94
- package/templates/bcl-recent-activities/recent-activities.html.twig +0 -60
- package/templates/bcl-search-form/search-form.html.twig +0 -50
- package/templates/bcl-select/select.html.twig +0 -187
- package/templates/bcl-spinner/spinner.html.twig +0 -37
- package/templates/bcl-subscription/subscription-modal.html.twig +0 -24
- package/templates/bcl-subscription/subscription.html.twig +0 -10
- package/templates/bcl-subscription-block/subscription-block.html.twig +0 -35
- package/templates/bcl-table/table.html.twig +0 -191
- package/templates/bcl-textarea/textarea.html.twig +0 -146
- package/templates/bcl-timeline/timeline-item.html.twig +0 -31
- package/templates/bcl-timeline/timeline.html.twig +0 -112
- package/templates/bcl-toasts/toasts.html.twig +0 -128
- package/templates/bcl-user/user-compact.html.twig +0 -61
- package/templates/bcl-user/user-terms.html.twig +0 -11
- package/templates/bcl-user/user.html.twig +0 -137
package/package.json
CHANGED
|
@@ -2,77 +2,77 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-twig-templates",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.13.0",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@openeuropa/bcl-accordion": "^1.
|
|
12
|
-
"@openeuropa/bcl-alert": "^1.
|
|
13
|
-
"@openeuropa/bcl-badge": "^1.
|
|
14
|
-
"@openeuropa/bcl-banner": "^1.
|
|
15
|
-
"@openeuropa/bcl-base-templates": "^1.
|
|
16
|
-
"@openeuropa/bcl-blockquote": "^1.
|
|
17
|
-
"@openeuropa/bcl-breadcrumb": "^1.
|
|
18
|
-
"@openeuropa/bcl-button": "^1.
|
|
19
|
-
"@openeuropa/bcl-button-group": "^1.
|
|
20
|
-
"@openeuropa/bcl-card": "^1.
|
|
21
|
-
"@openeuropa/bcl-card-layout": "^1.
|
|
22
|
-
"@openeuropa/bcl-carousel": "^1.
|
|
23
|
-
"@openeuropa/bcl-contact-form": "^1.
|
|
24
|
-
"@openeuropa/bcl-content-banner": "^1.
|
|
25
|
-
"@openeuropa/bcl-date-block": "^1.
|
|
26
|
-
"@openeuropa/bcl-description-list": "^1.
|
|
27
|
-
"@openeuropa/bcl-dropdown": "^1.
|
|
28
|
-
"@openeuropa/bcl-event": "^1.
|
|
29
|
-
"@openeuropa/bcl-fact-figures": "^1.
|
|
30
|
-
"@openeuropa/bcl-featured-media": "^1.
|
|
31
|
-
"@openeuropa/bcl-file": "^1.
|
|
32
|
-
"@openeuropa/bcl-footer": "^1.
|
|
33
|
-
"@openeuropa/bcl-form": "^1.
|
|
34
|
-
"@openeuropa/bcl-form-input": "^1.
|
|
35
|
-
"@openeuropa/bcl-gallery": "^1.
|
|
36
|
-
"@openeuropa/bcl-glossary": "^1.
|
|
37
|
-
"@openeuropa/bcl-group": "^1.
|
|
38
|
-
"@openeuropa/bcl-header": "^1.
|
|
39
|
-
"@openeuropa/bcl-heading": "^1.
|
|
40
|
-
"@openeuropa/bcl-icon": "^1.
|
|
41
|
-
"@openeuropa/bcl-inpage-navigation": "^1.
|
|
42
|
-
"@openeuropa/bcl-landing-page": "^1.
|
|
43
|
-
"@openeuropa/bcl-language-list": "^1.
|
|
44
|
-
"@openeuropa/bcl-language-switcher": "^1.
|
|
45
|
-
"@openeuropa/bcl-link": "^1.
|
|
46
|
-
"@openeuropa/bcl-links-block": "^1.
|
|
47
|
-
"@openeuropa/bcl-list-group": "^1.
|
|
48
|
-
"@openeuropa/bcl-listing": "^1.
|
|
49
|
-
"@openeuropa/bcl-mega-menu": "^1.
|
|
50
|
-
"@openeuropa/bcl-modal": "^1.
|
|
51
|
-
"@openeuropa/bcl-multilingual": "^1.
|
|
52
|
-
"@openeuropa/bcl-navbar": "^1.
|
|
53
|
-
"@openeuropa/bcl-navigation": "^1.
|
|
54
|
-
"@openeuropa/bcl-news": "^1.
|
|
55
|
-
"@openeuropa/bcl-offcanvas": "^1.
|
|
56
|
-
"@openeuropa/bcl-page": "^1.
|
|
57
|
-
"@openeuropa/bcl-pagination": "^1.
|
|
58
|
-
"@openeuropa/bcl-pagination-v2": "^1.
|
|
59
|
-
"@openeuropa/bcl-person": "^1.
|
|
60
|
-
"@openeuropa/bcl-placeholder": "^1.
|
|
61
|
-
"@openeuropa/bcl-progress": "^1.
|
|
62
|
-
"@openeuropa/bcl-project": "^1.
|
|
63
|
-
"@openeuropa/bcl-project-status": "^1.
|
|
64
|
-
"@openeuropa/bcl-recent-activities": "^1.
|
|
65
|
-
"@openeuropa/bcl-search": "^1.
|
|
66
|
-
"@openeuropa/bcl-search-form": "^1.
|
|
67
|
-
"@openeuropa/bcl-select": "^1.
|
|
68
|
-
"@openeuropa/bcl-spinner": "^1.
|
|
69
|
-
"@openeuropa/bcl-subscription": "^1.
|
|
70
|
-
"@openeuropa/bcl-subscription-block": "^1.
|
|
71
|
-
"@openeuropa/bcl-table": "^1.
|
|
72
|
-
"@openeuropa/bcl-textarea": "^1.
|
|
73
|
-
"@openeuropa/bcl-timeline": "^1.
|
|
74
|
-
"@openeuropa/bcl-toasts": "^1.
|
|
75
|
-
"@openeuropa/bcl-user": "^1.
|
|
11
|
+
"@openeuropa/bcl-accordion": "^1.13.0",
|
|
12
|
+
"@openeuropa/bcl-alert": "^1.13.0",
|
|
13
|
+
"@openeuropa/bcl-badge": "^1.13.0",
|
|
14
|
+
"@openeuropa/bcl-banner": "^1.13.0",
|
|
15
|
+
"@openeuropa/bcl-base-templates": "^1.13.0",
|
|
16
|
+
"@openeuropa/bcl-blockquote": "^1.13.0",
|
|
17
|
+
"@openeuropa/bcl-breadcrumb": "^1.13.0",
|
|
18
|
+
"@openeuropa/bcl-button": "^1.13.0",
|
|
19
|
+
"@openeuropa/bcl-button-group": "^1.13.0",
|
|
20
|
+
"@openeuropa/bcl-card": "^1.13.0",
|
|
21
|
+
"@openeuropa/bcl-card-layout": "^1.13.0",
|
|
22
|
+
"@openeuropa/bcl-carousel": "^1.13.0",
|
|
23
|
+
"@openeuropa/bcl-contact-form": "^1.13.0",
|
|
24
|
+
"@openeuropa/bcl-content-banner": "^1.13.0",
|
|
25
|
+
"@openeuropa/bcl-date-block": "^1.13.0",
|
|
26
|
+
"@openeuropa/bcl-description-list": "^1.13.0",
|
|
27
|
+
"@openeuropa/bcl-dropdown": "^1.13.0",
|
|
28
|
+
"@openeuropa/bcl-event": "^1.13.0",
|
|
29
|
+
"@openeuropa/bcl-fact-figures": "^1.13.0",
|
|
30
|
+
"@openeuropa/bcl-featured-media": "^1.13.0",
|
|
31
|
+
"@openeuropa/bcl-file": "^1.13.0",
|
|
32
|
+
"@openeuropa/bcl-footer": "^1.13.0",
|
|
33
|
+
"@openeuropa/bcl-form": "^1.13.0",
|
|
34
|
+
"@openeuropa/bcl-form-input": "^1.13.0",
|
|
35
|
+
"@openeuropa/bcl-gallery": "^1.13.0",
|
|
36
|
+
"@openeuropa/bcl-glossary": "^1.13.0",
|
|
37
|
+
"@openeuropa/bcl-group": "^1.13.0",
|
|
38
|
+
"@openeuropa/bcl-header": "^1.13.0",
|
|
39
|
+
"@openeuropa/bcl-heading": "^1.13.0",
|
|
40
|
+
"@openeuropa/bcl-icon": "^1.13.0",
|
|
41
|
+
"@openeuropa/bcl-inpage-navigation": "^1.13.0",
|
|
42
|
+
"@openeuropa/bcl-landing-page": "^1.13.0",
|
|
43
|
+
"@openeuropa/bcl-language-list": "^1.13.0",
|
|
44
|
+
"@openeuropa/bcl-language-switcher": "^1.13.0",
|
|
45
|
+
"@openeuropa/bcl-link": "^1.13.0",
|
|
46
|
+
"@openeuropa/bcl-links-block": "^1.13.0",
|
|
47
|
+
"@openeuropa/bcl-list-group": "^1.13.0",
|
|
48
|
+
"@openeuropa/bcl-listing": "^1.13.0",
|
|
49
|
+
"@openeuropa/bcl-mega-menu": "^1.13.0",
|
|
50
|
+
"@openeuropa/bcl-modal": "^1.13.0",
|
|
51
|
+
"@openeuropa/bcl-multilingual": "^1.13.0",
|
|
52
|
+
"@openeuropa/bcl-navbar": "^1.13.0",
|
|
53
|
+
"@openeuropa/bcl-navigation": "^1.13.0",
|
|
54
|
+
"@openeuropa/bcl-news": "^1.13.0",
|
|
55
|
+
"@openeuropa/bcl-offcanvas": "^1.13.0",
|
|
56
|
+
"@openeuropa/bcl-page": "^1.13.0",
|
|
57
|
+
"@openeuropa/bcl-pagination": "^1.13.0",
|
|
58
|
+
"@openeuropa/bcl-pagination-v2": "^1.13.0",
|
|
59
|
+
"@openeuropa/bcl-person": "^1.13.0",
|
|
60
|
+
"@openeuropa/bcl-placeholder": "^1.13.0",
|
|
61
|
+
"@openeuropa/bcl-progress": "^1.13.0",
|
|
62
|
+
"@openeuropa/bcl-project": "^1.13.0",
|
|
63
|
+
"@openeuropa/bcl-project-status": "^1.13.0",
|
|
64
|
+
"@openeuropa/bcl-recent-activities": "^1.13.0",
|
|
65
|
+
"@openeuropa/bcl-search": "^1.13.0",
|
|
66
|
+
"@openeuropa/bcl-search-form": "^1.13.0",
|
|
67
|
+
"@openeuropa/bcl-select": "^1.13.0",
|
|
68
|
+
"@openeuropa/bcl-spinner": "^1.13.0",
|
|
69
|
+
"@openeuropa/bcl-subscription": "^1.13.0",
|
|
70
|
+
"@openeuropa/bcl-subscription-block": "^1.13.0",
|
|
71
|
+
"@openeuropa/bcl-table": "^1.13.0",
|
|
72
|
+
"@openeuropa/bcl-textarea": "^1.13.0",
|
|
73
|
+
"@openeuropa/bcl-timeline": "^1.13.0",
|
|
74
|
+
"@openeuropa/bcl-toasts": "^1.13.0",
|
|
75
|
+
"@openeuropa/bcl-user": "^1.13.0",
|
|
76
76
|
"copyfiles": "2.4.1",
|
|
77
77
|
"rimraf": "6.1.3"
|
|
78
78
|
},
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"design-system",
|
|
96
96
|
"twig"
|
|
97
97
|
],
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "34e56d7f9c42b8a331a6fdd483958fa17ecaf8ca"
|
|
99
99
|
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
{#
|
|
2
|
-
Parameters:
|
|
3
|
-
- title (string) (default: '')
|
|
4
|
-
- title_tag (string) (default: 'h2')
|
|
5
|
-
- title_link: (link object) (default: {})
|
|
6
|
-
- title_attributes: (drupal attrs)
|
|
7
|
-
- id (int) (default: random(10000))
|
|
8
|
-
- flush (boolean) (default: false)
|
|
9
|
-
- items (array) (default: []): format: [
|
|
10
|
-
{
|
|
11
|
-
title: (string),
|
|
12
|
-
title_tag: (string),
|
|
13
|
-
content: (block),
|
|
14
|
-
stay_open (boolean) (default: false)
|
|
15
|
-
},
|
|
16
|
-
]
|
|
17
|
-
- expand_button: (button object) (default: {})
|
|
18
|
-
- collapse_button: (button object) (default: {})
|
|
19
|
-
- open_item_id (int) (default: 0)
|
|
20
|
-
- attributes (drupal attrs)
|
|
21
|
-
#}
|
|
22
|
-
|
|
23
|
-
{%- set _title = title|default('') %}
|
|
24
|
-
{% set _title_tag = title_tag|default('h2') %}
|
|
25
|
-
{% set _title_link = title_link|default({}) %}
|
|
26
|
-
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
27
|
-
{% set _id = id|default(random(10000)) %}
|
|
28
|
-
{% set _flush = flush ?? false %}
|
|
29
|
-
{% set _items = items|default([]) %}
|
|
30
|
-
{% set _expand_button = expand_button|default({}) %}
|
|
31
|
-
{% set _collapse_button = collapse_button|default({}) %}
|
|
32
|
-
{% set _open_item_id = open_item_id|default(0) %}
|
|
33
|
-
{% set _classes = ['accordion'] %}
|
|
34
|
-
{% if _flush %}
|
|
35
|
-
{%- set _classes = _classes|merge(['accordion-flush']) %}
|
|
36
|
-
{% endif %}
|
|
37
|
-
|
|
38
|
-
{%- if attributes is empty %}
|
|
39
|
-
{%- set attributes = create_attribute() %}
|
|
40
|
-
{% endif %}
|
|
41
|
-
|
|
42
|
-
{%- set attributes = attributes.addClass(_classes).setAttribute('id', 'accordion-' ~ _id) %}
|
|
43
|
-
|
|
44
|
-
{%- if _items is not empty -%}
|
|
45
|
-
<div
|
|
46
|
-
{{ attributes }}
|
|
47
|
-
>
|
|
48
|
-
{%- if _title is not empty -%}
|
|
49
|
-
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
50
|
-
title: _title,
|
|
51
|
-
title_tag: _title_tag,
|
|
52
|
-
title_link: _title_link,
|
|
53
|
-
attributes: _title_attributes,
|
|
54
|
-
} only %}
|
|
55
|
-
{%- endif -%}
|
|
56
|
-
|
|
57
|
-
{% if _items|length > 1 and (_expand_button is not empty or _collapse_button is not empty) %}
|
|
58
|
-
{%- set wrapper_attributes = create_attribute().addClass(['d-flex', 'justify-content-end', 'gap-3', 'mb-3']) -%}
|
|
59
|
-
<div
|
|
60
|
-
{{ wrapper_attributes }}
|
|
61
|
-
>
|
|
62
|
-
{%- if _expand_button is not empty %}
|
|
63
|
-
{%- if _expand_button.attributes is empty %}
|
|
64
|
-
{%- set _expand_button = _expand_button|merge({
|
|
65
|
-
attributes: create_attribute()
|
|
66
|
-
})
|
|
67
|
-
%}
|
|
68
|
-
{%- endif %}
|
|
69
|
-
{%- include '@oe-bcl/bcl-button/button.html.twig' with _expand_button|merge({
|
|
70
|
-
attributes: _expand_button.attributes
|
|
71
|
-
.setAttribute('data-target', 'accordion-' ~ _id)
|
|
72
|
-
.setAttribute('data-action', 'expand')
|
|
73
|
-
}) only %}
|
|
74
|
-
{%- endif %}
|
|
75
|
-
{%- if _collapse_button is not empty %}
|
|
76
|
-
{%- if _collapse_button.attributes is empty %}
|
|
77
|
-
{%- set _collapse_button = _collapse_button|merge({
|
|
78
|
-
attributes: create_attribute()
|
|
79
|
-
})
|
|
80
|
-
%}
|
|
81
|
-
{%- endif %}
|
|
82
|
-
{%- include '@oe-bcl/bcl-button/button.html.twig' with _collapse_button|merge({
|
|
83
|
-
attributes: _collapse_button.attributes
|
|
84
|
-
.setAttribute('data-target', 'accordion-' ~ _id)
|
|
85
|
-
.setAttribute('data-action', 'collapse')
|
|
86
|
-
}) only %}
|
|
87
|
-
{%- endif -%}
|
|
88
|
-
</div>
|
|
89
|
-
{%- endif -%}
|
|
90
|
-
<div class="accordion-items-wrapper">
|
|
91
|
-
{%- for _item in _items %}
|
|
92
|
-
{%- set _open_item = _open_item_id == loop.index %}
|
|
93
|
-
{%- set _button_classes = ['accordion-button'] %}
|
|
94
|
-
{%- if not _open_item %}
|
|
95
|
-
{%- set _button_classes = _button_classes|merge(['collapsed']) %}
|
|
96
|
-
{%- endif -%}
|
|
97
|
-
<div class="accordion-item">
|
|
98
|
-
{%- set _item_title_tag = _item.title_tag|default('h2') -%}
|
|
99
|
-
<{{ _item_title_tag }}
|
|
100
|
-
class="accordion-header"
|
|
101
|
-
id="heading-{{ _id }}-{{ loop.index }}"
|
|
102
|
-
>
|
|
103
|
-
{%- set button_attributes = create_attribute()
|
|
104
|
-
.addClass(_button_classes)
|
|
105
|
-
.setAttribute('data-bs-toggle', 'collapse')
|
|
106
|
-
.setAttribute('autocomplete', 'off')
|
|
107
|
-
.setAttribute('data-bs-target', '#collapse-' ~ _id ~ '-' ~ loop.index)
|
|
108
|
-
.setAttribute('aria-controls', 'collapse-' ~ _id ~ '-' ~ loop.index)
|
|
109
|
-
.setAttribute('aria-expanded', open_item ? 'true' : 'false')
|
|
110
|
-
%}
|
|
111
|
-
{%- set item_title -%}
|
|
112
|
-
<span>
|
|
113
|
-
{{- _item.title -}}
|
|
114
|
-
</span>
|
|
115
|
-
{%- endset %}
|
|
116
|
-
{%- include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
117
|
-
label: item_title,
|
|
118
|
-
clean_class: true,
|
|
119
|
-
attributes: button_attributes
|
|
120
|
-
} only -%}
|
|
121
|
-
</{{ _item_title_tag }}>{# -#}
|
|
122
|
-
<div
|
|
123
|
-
id="collapse-{{ _id }}-{{ loop.index }}"
|
|
124
|
-
class="accordion-collapse collapse{{ _open_item ? ' show' }}"
|
|
125
|
-
aria-labelledby="heading-{{ _id }}-{{ loop.index }}"
|
|
126
|
-
role="region"
|
|
127
|
-
{% if not _item.stay_open and _expand_button is empty %}
|
|
128
|
-
data-bs-parent="#accordion-{{ _id }}"
|
|
129
|
-
{% endif %}
|
|
130
|
-
>{# -#}
|
|
131
|
-
<div class="accordion-body">
|
|
132
|
-
{%- set _content = _item.content|default('') %}
|
|
133
|
-
{%- block content _content -%}
|
|
134
|
-
</div>{# -#}
|
|
135
|
-
</div>{# -#}
|
|
136
|
-
</div>
|
|
137
|
-
{%- endfor -%}
|
|
138
|
-
</div>{# -#}
|
|
139
|
-
</div>
|
|
140
|
-
{%- endif -%}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{# Parameters:
|
|
2
|
-
- message (string) (default: '')
|
|
3
|
-
- heading (string) (default: '')
|
|
4
|
-
- variant (string) (default: 'primary')
|
|
5
|
-
- dismissible (boolean) (default: true)
|
|
6
|
-
- animated_dismiss (boolean) (default: true)
|
|
7
|
-
- icon_path (string) (default: '')
|
|
8
|
-
- icon_name (string) (default: '')
|
|
9
|
-
- attributes (drupal attrs)
|
|
10
|
-
#}
|
|
11
|
-
|
|
12
|
-
{%- set _message = message|default('') %}
|
|
13
|
-
{% set _heading = heading|default('') %}
|
|
14
|
-
{% set _variant = variant|default('primary') %}
|
|
15
|
-
{% set _dismissible = dismissible ?? true %}
|
|
16
|
-
{% set _animated_dismiss = animated_dismiss ?? true %}
|
|
17
|
-
{% set _icon_path = icon_path|default('') %}
|
|
18
|
-
{% set _icon_name = icon_name|default('') %}
|
|
19
|
-
|
|
20
|
-
{%- set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
|
|
21
|
-
{% set _icon_names = {
|
|
22
|
-
primary: "info-circle-fill",
|
|
23
|
-
secondary: "info-circle-fill",
|
|
24
|
-
success: "check-circle-fill",
|
|
25
|
-
danger: "dash-circle-fill",
|
|
26
|
-
warning: "exclamation-triangle-fill",
|
|
27
|
-
light: "info-circle-fill",
|
|
28
|
-
info: "info-circle-fill",
|
|
29
|
-
dark: "info-circle-fill",
|
|
30
|
-
}
|
|
31
|
-
%}
|
|
32
|
-
|
|
33
|
-
{%- if _dismissible %}
|
|
34
|
-
{%- set _classes = _classes|merge(['alert-dismissible']) %}
|
|
35
|
-
{% endif %}
|
|
36
|
-
{% if _animated_dismiss %}
|
|
37
|
-
{%- set _classes = _classes|merge(['fade', 'show']) %}
|
|
38
|
-
{% endif %}
|
|
39
|
-
|
|
40
|
-
{%- set _classes = _classes|merge(['text-dark']) %}
|
|
41
|
-
|
|
42
|
-
{%- set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
|
|
43
|
-
|
|
44
|
-
{%- if _variant != 'light' %}
|
|
45
|
-
{%- set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
|
|
46
|
-
{% endif %}
|
|
47
|
-
|
|
48
|
-
{%- if attributes is empty %}
|
|
49
|
-
{%- set attributes = create_attribute() %}
|
|
50
|
-
{% endif %}
|
|
51
|
-
|
|
52
|
-
{%- set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') -%}
|
|
53
|
-
|
|
54
|
-
<div {{ attributes }}>
|
|
55
|
-
{%- if _icon_path is not empty %}
|
|
56
|
-
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
57
|
-
name: _icon_name ?: _icon_names[_variant],
|
|
58
|
-
size: 's',
|
|
59
|
-
path: _icon_path,
|
|
60
|
-
attributes: create_attribute().addClass(_icon_classes),
|
|
61
|
-
} only %}
|
|
62
|
-
{% endif -%}
|
|
63
|
-
<div class="alert-content flex-grow-1">
|
|
64
|
-
{%- if _heading is not empty -%}
|
|
65
|
-
<div class="alert-heading h4">{{ _heading }}</div>
|
|
66
|
-
{%- endif -%}
|
|
67
|
-
{%- if _message is not empty -%}
|
|
68
|
-
{{- _message -}}
|
|
69
|
-
{%- endif -%}
|
|
70
|
-
</div>
|
|
71
|
-
{%- if _dismissible -%}
|
|
72
|
-
<button
|
|
73
|
-
type="button"
|
|
74
|
-
class="btn-close"
|
|
75
|
-
data-bs-dismiss="alert"
|
|
76
|
-
aria-label="Close"
|
|
77
|
-
></button>
|
|
78
|
-
{%- endif -%}
|
|
79
|
-
</div>
|
|
80
|
-
{#--#}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{# Parameters:
|
|
2
|
-
- label (string) (default: '')
|
|
3
|
-
- background: (string) (default: 'primary')
|
|
4
|
-
- url (string) (default: '')
|
|
5
|
-
- title (string) (default: '')
|
|
6
|
-
- dismissible (boolean) (default: false)
|
|
7
|
-
- assistive_text (string) (default: '')
|
|
8
|
-
- rounded_pill (boolean) (default: false)
|
|
9
|
-
- outline (boolean) (default: false)
|
|
10
|
-
- icon_path (string) (default: '')
|
|
11
|
-
- attributes (drupal attrs)
|
|
12
|
-
#}
|
|
13
|
-
|
|
14
|
-
{%- set _label = label|default('') %}
|
|
15
|
-
{% set _background = background|default('primary') %}
|
|
16
|
-
{% set _url = url|default('') %}
|
|
17
|
-
{% set _title = title|default('') %}
|
|
18
|
-
{% set _dismissible = dismissible ?? false %}
|
|
19
|
-
{% set _assistive_text = assistive_text|default('') %}
|
|
20
|
-
{% set _rounded_pill = rounded_pill|default(false) %}
|
|
21
|
-
{% set _outline = outline|default(false) %}
|
|
22
|
-
{% set _icon_path = icon_path|default('') %}
|
|
23
|
-
{% set _classes = ['badge'] %}
|
|
24
|
-
|
|
25
|
-
{%- if _rounded_pill %}
|
|
26
|
-
{%- set _classes = _classes|merge(['rounded-pill']) %}
|
|
27
|
-
{% endif %}
|
|
28
|
-
|
|
29
|
-
{%- if _outline %}
|
|
30
|
-
{%- set _classes = _classes|merge(['badge-outline-' ~ _background]) %}
|
|
31
|
-
{% else %}
|
|
32
|
-
{%- set _classes = _classes|merge(['text-bg-' ~ _background]) %}
|
|
33
|
-
{% endif %}
|
|
34
|
-
|
|
35
|
-
{%- if attributes is empty %}
|
|
36
|
-
{%- set attributes = create_attribute() %}
|
|
37
|
-
{% endif %}
|
|
38
|
-
|
|
39
|
-
{%- if _title is not empty -%}
|
|
40
|
-
{% set attributes = attributes.setAttribute('title', _title) %}
|
|
41
|
-
{%- endif -%}
|
|
42
|
-
|
|
43
|
-
{% set attributes = attributes.addClass(_classes) %}
|
|
44
|
-
|
|
45
|
-
{%- set _label %}
|
|
46
|
-
{%- if _assistive_text is not empty -%}
|
|
47
|
-
<span class="visually-hidden">
|
|
48
|
-
{{- _assistive_text -}}
|
|
49
|
-
</span>
|
|
50
|
-
{%- endif -%}
|
|
51
|
-
{{- _label -}}
|
|
52
|
-
{%- if _dismissible -%}
|
|
53
|
-
<span class="icon--close" aria-hidden="true">
|
|
54
|
-
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
55
|
-
name: "x-circle-fill",
|
|
56
|
-
size: "xs",
|
|
57
|
-
path: _icon_path,
|
|
58
|
-
} only -%}
|
|
59
|
-
</span>
|
|
60
|
-
{%- endif -%}
|
|
61
|
-
{% endset %}
|
|
62
|
-
|
|
63
|
-
{%- if _url is not empty -%}
|
|
64
|
-
{% include '@oe-bcl/bcl-link/link.html.twig' with {
|
|
65
|
-
label: _label,
|
|
66
|
-
path: _url,
|
|
67
|
-
attributes: attributes,
|
|
68
|
-
} only %}
|
|
69
|
-
{%- else -%}
|
|
70
|
-
<span
|
|
71
|
-
{{ attributes }}
|
|
72
|
-
>
|
|
73
|
-
{{- _label -}}
|
|
74
|
-
</span>
|
|
75
|
-
{%- endif -%}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
{# Parameters:
|
|
2
|
-
- title: (string) (default: '')
|
|
3
|
-
- title_tag: (string) (default: 'div')
|
|
4
|
-
- title_link: (link object) (default: {})
|
|
5
|
-
- title_attributes (drupal attrs)
|
|
6
|
-
- description: (string) (default: '')
|
|
7
|
-
- link: (link object) (default: {})
|
|
8
|
-
- image: (string) <img> tag
|
|
9
|
-
- copyright: (string) (default: '')
|
|
10
|
-
- shade: (boolean) (default: false)
|
|
11
|
-
- hero: (boolean) (default: false)
|
|
12
|
-
- full_width: (boolean) (default: false)
|
|
13
|
-
- fixed_height: (boolean) (default: false)
|
|
14
|
-
- content_classes: (string) (default: '')
|
|
15
|
-
- attributes (drupal attrs)
|
|
16
|
-
#}
|
|
17
|
-
|
|
18
|
-
{%- set _title = title|default('') %}
|
|
19
|
-
{% set _title_tag = title_tag|default('div') %}
|
|
20
|
-
{% set _title_link = title_link|default({}) %}
|
|
21
|
-
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
22
|
-
{% set _description = description|default('') %}
|
|
23
|
-
{% set _link = link|default({}) %}
|
|
24
|
-
{% set _image = image|default('') %}
|
|
25
|
-
{% set _copyright = copyright|default('') %}
|
|
26
|
-
{% set _shade = shade ?? false %}
|
|
27
|
-
{% set _hero = hero ?? false %}
|
|
28
|
-
{% set _full_width = full_width ?? false %}
|
|
29
|
-
{% set _fixed_height = fixed_height ?? false %}
|
|
30
|
-
{% set _content_classes = content_classes|default('') %}
|
|
31
|
-
|
|
32
|
-
{%- set _content_class = 'bcl-banner__content' %}
|
|
33
|
-
{% if _content_classes is not empty %}
|
|
34
|
-
{%- set _content_class = _content_class ~ " " ~ _content_classes %}
|
|
35
|
-
{% endif %}
|
|
36
|
-
|
|
37
|
-
{%- set _title_classes = ['display-6'] %}
|
|
38
|
-
{% if _description is not empty or _link is not empty %}
|
|
39
|
-
{%- set _title_classes = _title_classes|merge(['mb-3']) %}
|
|
40
|
-
{% endif %}
|
|
41
|
-
|
|
42
|
-
{%- set _title_attributes = _title_attributes.addClass(_title_classes) %}
|
|
43
|
-
|
|
44
|
-
{%- set _classes = ['bcl-banner'] %}
|
|
45
|
-
|
|
46
|
-
{%- if _shade %}
|
|
47
|
-
{%- set _classes = _classes|merge(['shade']) %}
|
|
48
|
-
{% endif %}
|
|
49
|
-
|
|
50
|
-
{%- if _image and not _shade %}
|
|
51
|
-
{%- set _classes = _classes|merge(['overlay']) %}
|
|
52
|
-
{% endif %}
|
|
53
|
-
|
|
54
|
-
{%- if _hero %}
|
|
55
|
-
{%- set _classes = _classes|merge(['hero']) %}
|
|
56
|
-
{% endif %}
|
|
57
|
-
|
|
58
|
-
{%- if _full_width %}
|
|
59
|
-
{%- set _classes = _classes|merge(['full-width']) %}
|
|
60
|
-
{% endif %}
|
|
61
|
-
|
|
62
|
-
{%- if _fixed_height %}
|
|
63
|
-
{%- set _classes = _classes|merge(['fixed-height']) %}
|
|
64
|
-
{% endif %}
|
|
65
|
-
|
|
66
|
-
{%- if attributes is empty %}
|
|
67
|
-
{%- set attributes = create_attribute() %}
|
|
68
|
-
{% endif %}
|
|
69
|
-
|
|
70
|
-
{%- set attributes = attributes.addClass(_classes) -%}
|
|
71
|
-
|
|
72
|
-
<div {{ attributes }}>
|
|
73
|
-
{%- if _image is not empty -%}
|
|
74
|
-
<div class="bcl-banner__image" style="background-image:url({{ _image }})"></div>
|
|
75
|
-
{%- endif -%}
|
|
76
|
-
<div class="container">{# -#}
|
|
77
|
-
<div class="{{ _content_class }}">
|
|
78
|
-
{%- if _title is not empty %}
|
|
79
|
-
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
80
|
-
title: _title,
|
|
81
|
-
title_tag: _title_tag,
|
|
82
|
-
title_link: _title_link,
|
|
83
|
-
attributes: _title_attributes,
|
|
84
|
-
} only %}
|
|
85
|
-
{%- endif %}
|
|
86
|
-
{%- if _description is not empty -%}
|
|
87
|
-
<p class="mb-4">{{ _description }}</p>
|
|
88
|
-
{%- endif %}
|
|
89
|
-
{%- if _link.path %}
|
|
90
|
-
{%- include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
|
|
91
|
-
{%- endif -%}
|
|
92
|
-
</div>{# -#}
|
|
93
|
-
</div>{# -#}
|
|
94
|
-
</div>
|
|
95
|
-
{%- if _copyright is not empty -%}
|
|
96
|
-
<div class="bcl-copyright">{{- _copyright -}}</div>
|
|
97
|
-
{%- endif -%}
|
|
98
|
-
{#--#}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
{#
|
|
2
|
-
Parameters:
|
|
3
|
-
- with_header (boolean) (default: false)
|
|
4
|
-
- with_footer (boolean) (default: false)
|
|
5
|
-
- with_banner (boolean) (default: false)
|
|
6
|
-
- with_sidebar (boolean) (default: false)
|
|
7
|
-
- sidebar_size (string) (default: 'normal')
|
|
8
|
-
options: ['normal', 'large']
|
|
9
|
-
- landing (boolean) (default: false)
|
|
10
|
-
- content_type (string) (default: '')
|
|
11
|
-
- attributes (drupal attrs)
|
|
12
|
-
|
|
13
|
-
BLOCKS:
|
|
14
|
-
- header
|
|
15
|
-
- footer
|
|
16
|
-
- content
|
|
17
|
-
- content_row
|
|
18
|
-
- sidebar
|
|
19
|
-
- banner
|
|
20
|
-
- feedback
|
|
21
|
-
- share
|
|
22
|
-
- related
|
|
23
|
-
- messages_area
|
|
24
|
-
#}
|
|
25
|
-
|
|
26
|
-
{%- set _with_header = header ?? false %}
|
|
27
|
-
{% set _with_footer = footer ?? false %}
|
|
28
|
-
{% set _with_banner = banner ?? false %}
|
|
29
|
-
{% set _with_sidebar = sidebar ?? false %}
|
|
30
|
-
{% set _sidebar_size = sidebar_size|default('normal') %}
|
|
31
|
-
{% set _landing = landing ?? 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
|
-
'bcl-sidebar',
|
|
40
|
-
],
|
|
41
|
-
right: [
|
|
42
|
-
'col-12',
|
|
43
|
-
],
|
|
44
|
-
} %}
|
|
45
|
-
|
|
46
|
-
{%- if _sidebar_size == 'normal' %}
|
|
47
|
-
{%- set _col_classes = _col_classes|merge({
|
|
48
|
-
left: _col_classes.left|merge(['col-lg-3']),
|
|
49
|
-
right: _col_classes.right|merge(['col-lg-9', 'col-xxl-8']),
|
|
50
|
-
}) %}
|
|
51
|
-
{%- endif %}
|
|
52
|
-
|
|
53
|
-
{%- if _sidebar_size == 'large' %}
|
|
54
|
-
{%- set _col_classes = _col_classes|merge({
|
|
55
|
-
left: _col_classes.left|merge(['col-lg-4']),
|
|
56
|
-
right: _col_classes.right|merge(['col-lg-8']),
|
|
57
|
-
}) %}
|
|
58
|
-
{%- endif %}
|
|
59
|
-
{% endif %}
|
|
60
|
-
|
|
61
|
-
{%- if _content_type is not empty %}
|
|
62
|
-
{%- set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
|
|
63
|
-
{% endif %}
|
|
64
|
-
|
|
65
|
-
{%- if attributes is empty %}
|
|
66
|
-
{%- set attributes = create_attribute() %}
|
|
67
|
-
{% endif %}
|
|
68
|
-
|
|
69
|
-
{%- if _with_header %}
|
|
70
|
-
{%- include '@oe-bcl/bcl-header/header.html.twig' with header only %}
|
|
71
|
-
{% endif -%}
|
|
72
|
-
|
|
73
|
-
<main {{ attributes }}>
|
|
74
|
-
{%- if messages is defined and messages is not empty %}
|
|
75
|
-
{%- block messages_area -%}
|
|
76
|
-
<div class="container">
|
|
77
|
-
{%- for message in messages %}
|
|
78
|
-
{%- set message_attributes = create_attribute().addClass(['mt-lg-5', 'mt-2']) %}
|
|
79
|
-
{%- include '@oe-bcl/bcl-alert/alert.html.twig' with message|merge({
|
|
80
|
-
attributes: message_attributes,
|
|
81
|
-
}) only %}
|
|
82
|
-
{%- endfor -%}
|
|
83
|
-
</div>
|
|
84
|
-
{%- endblock %}
|
|
85
|
-
{% endif %}
|
|
86
|
-
|
|
87
|
-
{%- if _with_banner %}
|
|
88
|
-
{%- block banner %}
|
|
89
|
-
{%- include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
|
|
90
|
-
{%- endblock %}
|
|
91
|
-
{% endif -%}
|
|
92
|
-
|
|
93
|
-
<div class="container mt-md-4-75 mt-4">{# -#}
|
|
94
|
-
<div class="row">
|
|
95
|
-
{%- block content_row %}
|
|
96
|
-
{{- content_row }}
|
|
97
|
-
{%- endblock %}
|
|
98
|
-
{%- if _with_sidebar -%}
|
|
99
|
-
<div class="{{ _col_classes.left|join(' ') }}">
|
|
100
|
-
{%- block sidebar %}{% endblock -%}
|
|
101
|
-
</div>{# -#}
|
|
102
|
-
<div class="{{ _col_classes.right|join(' ') }}">
|
|
103
|
-
{%- else %}
|
|
104
|
-
{%- if _landing -%}
|
|
105
|
-
<div class="col-12">
|
|
106
|
-
{%- else -%}
|
|
107
|
-
<div class="col-lg-10 col-xl-9 col-xxl-8">
|
|
108
|
-
{%- endif %}
|
|
109
|
-
{%- endif %}
|
|
110
|
-
{%- block content_top %}
|
|
111
|
-
{{- content_top }}
|
|
112
|
-
{%- endblock %}
|
|
113
|
-
{%- block content %}
|
|
114
|
-
{{- content }}
|
|
115
|
-
{%- endblock %}
|
|
116
|
-
{%- block content_bottom %}
|
|
117
|
-
{{- content_bottom }}
|
|
118
|
-
{%- endblock %}
|
|
119
|
-
{%- block related %}
|
|
120
|
-
{{- related }}
|
|
121
|
-
{%- endblock %}
|
|
122
|
-
{%- block share %}
|
|
123
|
-
{{- share }}
|
|
124
|
-
{%- endblock -%}
|
|
125
|
-
</div>{# -#}
|
|
126
|
-
</div>{# -#}
|
|
127
|
-
</main>
|
|
128
|
-
|
|
129
|
-
{%- block feedback %}
|
|
130
|
-
{{- feedback }}
|
|
131
|
-
{%- endblock %}
|
|
132
|
-
|
|
133
|
-
{%- if _with_footer %}
|
|
134
|
-
{%- include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
|
|
135
|
-
{% endif -%}
|