@openeuropa/bcl-twig-templates 0.3791.202505281825 → 0.3821.202510100015
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 +66 -65
- package/templates/bcl-base-templates/listing-page.html.twig +17 -19
- package/templates/bcl-button/button.html.twig +3 -2
- package/templates/bcl-contact-form/contact-form.html.twig +3 -3
- package/templates/bcl-content-banner/content-banner.html.twig +3 -0
- package/templates/bcl-dropdown/dropdown.html.twig +12 -7
- package/templates/bcl-event/event.html.twig +5 -5
- package/templates/bcl-glossary/glossary-detail.html.twig +4 -5
- package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
- package/templates/bcl-group/group-landing.html.twig +5 -5
- package/templates/bcl-group/group.html.twig +3 -3
- package/templates/bcl-header/header.html.twig +37 -6
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +7 -2
- package/templates/bcl-landing-page/landing-page.html.twig +5 -8
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +35 -0
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +65 -0
- package/templates/bcl-mega-menu/mega-menu.html.twig +115 -0
- package/templates/bcl-navigation/navigation.html.twig +11 -1
- package/templates/bcl-offcanvas/offcanvas.html.twig +9 -6
- package/templates/bcl-page/page.html.twig +5 -5
- package/templates/bcl-person/person.html.twig +5 -5
- package/templates/bcl-project/project.html.twig +7 -7
- package/templates/bcl-project-status/project-contributions.html.twig +1 -1
- package/templates/bcl-search/search.html.twig +3 -3
- package/templates/bcl-subscription/subscription.html.twig +5 -5
- package/templates/bcl-user/user-terms.html.twig +3 -3
- package/templates/bcl-user/user.html.twig +3 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-twig-templates",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.3821.202510100015",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -11,69 +11,70 @@
|
|
|
11
11
|
"hoistingLimits": "workspaces"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@openeuropa/bcl-accordion": "^0.
|
|
15
|
-
"@openeuropa/bcl-alert": "^0.
|
|
16
|
-
"@openeuropa/bcl-badge": "^0.
|
|
17
|
-
"@openeuropa/bcl-banner": "^0.
|
|
18
|
-
"@openeuropa/bcl-base-templates": "^0.
|
|
19
|
-
"@openeuropa/bcl-blockquote": "^0.
|
|
20
|
-
"@openeuropa/bcl-breadcrumb": "^0.
|
|
21
|
-
"@openeuropa/bcl-button": "^0.
|
|
22
|
-
"@openeuropa/bcl-button-group": "^0.
|
|
23
|
-
"@openeuropa/bcl-card": "^0.
|
|
24
|
-
"@openeuropa/bcl-card-layout": "^0.
|
|
25
|
-
"@openeuropa/bcl-carousel": "^0.
|
|
26
|
-
"@openeuropa/bcl-contact-form": "^0.
|
|
27
|
-
"@openeuropa/bcl-content-banner": "^0.
|
|
28
|
-
"@openeuropa/bcl-date-block": "^0.
|
|
29
|
-
"@openeuropa/bcl-description-list": "^0.
|
|
30
|
-
"@openeuropa/bcl-dropdown": "^0.
|
|
31
|
-
"@openeuropa/bcl-event": "^0.
|
|
32
|
-
"@openeuropa/bcl-fact-figures": "^0.
|
|
33
|
-
"@openeuropa/bcl-featured-media": "^0.
|
|
34
|
-
"@openeuropa/bcl-file": "^0.
|
|
35
|
-
"@openeuropa/bcl-footer": "^0.
|
|
36
|
-
"@openeuropa/bcl-form": "^0.
|
|
37
|
-
"@openeuropa/bcl-form-input": "^0.
|
|
38
|
-
"@openeuropa/bcl-gallery": "^0.
|
|
39
|
-
"@openeuropa/bcl-glossary": "^0.
|
|
40
|
-
"@openeuropa/bcl-group": "^0.
|
|
41
|
-
"@openeuropa/bcl-header": "^0.
|
|
42
|
-
"@openeuropa/bcl-heading": "^0.
|
|
43
|
-
"@openeuropa/bcl-icon": "^0.
|
|
44
|
-
"@openeuropa/bcl-inpage-navigation": "^0.
|
|
45
|
-
"@openeuropa/bcl-landing-page": "^0.
|
|
46
|
-
"@openeuropa/bcl-language-list": "^0.
|
|
47
|
-
"@openeuropa/bcl-language-switcher": "^0.
|
|
48
|
-
"@openeuropa/bcl-link": "^0.
|
|
49
|
-
"@openeuropa/bcl-links-block": "^0.
|
|
50
|
-
"@openeuropa/bcl-list-group": "^0.
|
|
51
|
-
"@openeuropa/bcl-listing": "^0.
|
|
52
|
-
"@openeuropa/bcl-
|
|
53
|
-
"@openeuropa/bcl-
|
|
54
|
-
"@openeuropa/bcl-
|
|
55
|
-
"@openeuropa/bcl-
|
|
56
|
-
"@openeuropa/bcl-
|
|
57
|
-
"@openeuropa/bcl-
|
|
58
|
-
"@openeuropa/bcl-
|
|
59
|
-
"@openeuropa/bcl-
|
|
60
|
-
"@openeuropa/bcl-
|
|
61
|
-
"@openeuropa/bcl-
|
|
62
|
-
"@openeuropa/bcl-
|
|
63
|
-
"@openeuropa/bcl-
|
|
64
|
-
"@openeuropa/bcl-project
|
|
65
|
-
"@openeuropa/bcl-
|
|
66
|
-
"@openeuropa/bcl-
|
|
67
|
-
"@openeuropa/bcl-search
|
|
68
|
-
"@openeuropa/bcl-
|
|
69
|
-
"@openeuropa/bcl-
|
|
70
|
-
"@openeuropa/bcl-
|
|
71
|
-
"@openeuropa/bcl-subscription
|
|
72
|
-
"@openeuropa/bcl-
|
|
73
|
-
"@openeuropa/bcl-
|
|
74
|
-
"@openeuropa/bcl-
|
|
75
|
-
"@openeuropa/bcl-
|
|
76
|
-
"@openeuropa/bcl-
|
|
14
|
+
"@openeuropa/bcl-accordion": "^0.3821.202510100015",
|
|
15
|
+
"@openeuropa/bcl-alert": "^0.3821.202510100015",
|
|
16
|
+
"@openeuropa/bcl-badge": "^0.3821.202510100015",
|
|
17
|
+
"@openeuropa/bcl-banner": "^0.3821.202510100015",
|
|
18
|
+
"@openeuropa/bcl-base-templates": "^0.3821.202510100015",
|
|
19
|
+
"@openeuropa/bcl-blockquote": "^0.3821.202510100015",
|
|
20
|
+
"@openeuropa/bcl-breadcrumb": "^0.3821.202510100015",
|
|
21
|
+
"@openeuropa/bcl-button": "^0.3821.202510100015",
|
|
22
|
+
"@openeuropa/bcl-button-group": "^0.3821.202510100015",
|
|
23
|
+
"@openeuropa/bcl-card": "^0.3821.202510100015",
|
|
24
|
+
"@openeuropa/bcl-card-layout": "^0.3821.202510100015",
|
|
25
|
+
"@openeuropa/bcl-carousel": "^0.3821.202510100015",
|
|
26
|
+
"@openeuropa/bcl-contact-form": "^0.3821.202510100015",
|
|
27
|
+
"@openeuropa/bcl-content-banner": "^0.3821.202510100015",
|
|
28
|
+
"@openeuropa/bcl-date-block": "^0.3821.202510100015",
|
|
29
|
+
"@openeuropa/bcl-description-list": "^0.3821.202510100015",
|
|
30
|
+
"@openeuropa/bcl-dropdown": "^0.3821.202510100015",
|
|
31
|
+
"@openeuropa/bcl-event": "^0.3821.202510100015",
|
|
32
|
+
"@openeuropa/bcl-fact-figures": "^0.3821.202510100015",
|
|
33
|
+
"@openeuropa/bcl-featured-media": "^0.3821.202510100015",
|
|
34
|
+
"@openeuropa/bcl-file": "^0.3821.202510100015",
|
|
35
|
+
"@openeuropa/bcl-footer": "^0.3821.202510100015",
|
|
36
|
+
"@openeuropa/bcl-form": "^0.3821.202510100015",
|
|
37
|
+
"@openeuropa/bcl-form-input": "^0.3821.202510100015",
|
|
38
|
+
"@openeuropa/bcl-gallery": "^0.3821.202510100015",
|
|
39
|
+
"@openeuropa/bcl-glossary": "^0.3821.202510100015",
|
|
40
|
+
"@openeuropa/bcl-group": "^0.3821.202510100015",
|
|
41
|
+
"@openeuropa/bcl-header": "^0.3821.202510100015",
|
|
42
|
+
"@openeuropa/bcl-heading": "^0.3821.202510100015",
|
|
43
|
+
"@openeuropa/bcl-icon": "^0.3821.202510100015",
|
|
44
|
+
"@openeuropa/bcl-inpage-navigation": "^0.3821.202510100015",
|
|
45
|
+
"@openeuropa/bcl-landing-page": "^0.3821.202510100015",
|
|
46
|
+
"@openeuropa/bcl-language-list": "^0.3821.202510100015",
|
|
47
|
+
"@openeuropa/bcl-language-switcher": "^0.3821.202510100015",
|
|
48
|
+
"@openeuropa/bcl-link": "^0.3821.202510100015",
|
|
49
|
+
"@openeuropa/bcl-links-block": "^0.3821.202510100015",
|
|
50
|
+
"@openeuropa/bcl-list-group": "^0.3821.202510100015",
|
|
51
|
+
"@openeuropa/bcl-listing": "^0.3821.202510100015",
|
|
52
|
+
"@openeuropa/bcl-mega-menu": "^0.3821.202510100015",
|
|
53
|
+
"@openeuropa/bcl-modal": "^0.3821.202510100015",
|
|
54
|
+
"@openeuropa/bcl-multilingual": "^0.3821.202510100015",
|
|
55
|
+
"@openeuropa/bcl-navbar": "^0.3821.202510100015",
|
|
56
|
+
"@openeuropa/bcl-navigation": "^0.3821.202510100015",
|
|
57
|
+
"@openeuropa/bcl-news": "^0.3821.202510100015",
|
|
58
|
+
"@openeuropa/bcl-offcanvas": "^0.3821.202510100015",
|
|
59
|
+
"@openeuropa/bcl-page": "^0.3821.202510100015",
|
|
60
|
+
"@openeuropa/bcl-pagination": "^0.3821.202510100015",
|
|
61
|
+
"@openeuropa/bcl-person": "^0.3821.202510100015",
|
|
62
|
+
"@openeuropa/bcl-placeholder": "^0.3821.202510100015",
|
|
63
|
+
"@openeuropa/bcl-progress": "^0.3821.202510100015",
|
|
64
|
+
"@openeuropa/bcl-project": "^0.3821.202510100015",
|
|
65
|
+
"@openeuropa/bcl-project-status": "^0.3821.202510100015",
|
|
66
|
+
"@openeuropa/bcl-recent-activities": "^0.3821.202510100015",
|
|
67
|
+
"@openeuropa/bcl-search": "^0.3821.202510100015",
|
|
68
|
+
"@openeuropa/bcl-search-form": "^0.3821.202510100015",
|
|
69
|
+
"@openeuropa/bcl-select": "^0.3821.202510100015",
|
|
70
|
+
"@openeuropa/bcl-spinner": "^0.3821.202510100015",
|
|
71
|
+
"@openeuropa/bcl-subscription": "^0.3821.202510100015",
|
|
72
|
+
"@openeuropa/bcl-subscription-block": "^0.3821.202510100015",
|
|
73
|
+
"@openeuropa/bcl-table": "^0.3821.202510100015",
|
|
74
|
+
"@openeuropa/bcl-textarea": "^0.3821.202510100015",
|
|
75
|
+
"@openeuropa/bcl-timeline": "^0.3821.202510100015",
|
|
76
|
+
"@openeuropa/bcl-toast": "^0.3821.202510100015",
|
|
77
|
+
"@openeuropa/bcl-user": "^0.3821.202510100015",
|
|
77
78
|
"copyfiles": "2.4.1",
|
|
78
79
|
"rimraf": "6.0.1"
|
|
79
80
|
},
|
|
@@ -96,5 +97,5 @@
|
|
|
96
97
|
"design-system",
|
|
97
98
|
"twig"
|
|
98
99
|
],
|
|
99
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "6a890344c1b3fed3b4f049080c3e30cc55b42b9d"
|
|
100
101
|
}
|
|
@@ -8,20 +8,16 @@
|
|
|
8
8
|
- pagination (object) (default: {})
|
|
9
9
|
- sidebar (object) (default: '')
|
|
10
10
|
#}
|
|
11
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
|
|
11
12
|
|
|
12
|
-
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
|
|
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() %}
|
|
18
13
|
{% set _listing = listing|default({}) %}
|
|
19
|
-
{% set _pagination = pagination|default({}) %}
|
|
20
|
-
{% set _sidebar = sidebar|default({}) %}
|
|
21
|
-
|
|
22
|
-
{% set _title_attributes = _title_attributes ?: create_attribute() %}
|
|
23
14
|
|
|
24
|
-
{
|
|
15
|
+
{%- block content_top %}
|
|
16
|
+
{% set _title = title|default('') %}
|
|
17
|
+
{% set _title_tag = title_tag|default('h2') %}
|
|
18
|
+
{% set _title_link = title_link|default({}) %}
|
|
19
|
+
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
20
|
+
{% set _title_attributes = _title_attributes ?: create_attribute() %}
|
|
25
21
|
{% if filter_button %}
|
|
26
22
|
{% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
|
|
27
23
|
{% endif %}
|
|
@@ -29,7 +25,7 @@
|
|
|
29
25
|
<div class="col-md-6 col-lg-8 align-self-center">
|
|
30
26
|
{% if _title is not empty %}
|
|
31
27
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
32
|
-
title: _title ~ ' (' ~
|
|
28
|
+
title: _title ~ ' (' ~ (_listing.items|length) ~ ')',
|
|
33
29
|
title_tag: _title_tag,
|
|
34
30
|
title_link: _title_link,
|
|
35
31
|
attributes: _title_attributes.addClass(['mb-0', 'text-capitalize']),
|
|
@@ -54,21 +50,23 @@
|
|
|
54
50
|
</div>
|
|
55
51
|
</div>
|
|
56
52
|
<hr class="d-none d-md-block mb-4-75"/>
|
|
57
|
-
{
|
|
53
|
+
{%- endblock -%}
|
|
58
54
|
|
|
59
|
-
{
|
|
55
|
+
{%- block content %}
|
|
60
56
|
{% if _listing is not empty %}
|
|
61
57
|
{% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
|
|
62
58
|
{% endif %}
|
|
63
|
-
{
|
|
59
|
+
{%- endblock -%}
|
|
64
60
|
|
|
65
|
-
{
|
|
61
|
+
{%- block content_bottom %}
|
|
62
|
+
{% set _pagination = pagination|default({}) %}
|
|
66
63
|
{% if _pagination is not empty %}
|
|
67
64
|
<hr class="d-none d-md-block mt-4-5">
|
|
68
65
|
{% include '@oe-bcl/bcl-pagination/pagination.html.twig' with _pagination only %}
|
|
69
66
|
{% endif %}
|
|
70
|
-
{
|
|
67
|
+
{%- endblock -%}
|
|
71
68
|
|
|
72
|
-
{
|
|
69
|
+
{%- block sidebar %}
|
|
70
|
+
{% set _sidebar = sidebar|default({}) %}
|
|
73
71
|
{% include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
|
|
74
|
-
{
|
|
72
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% apply spaceless %}
|
|
2
2
|
|
|
3
|
-
{#
|
|
3
|
+
{#
|
|
4
4
|
Parameters:
|
|
5
5
|
- label (string) (default: '')
|
|
6
6
|
- variant (string) (default: 'primary')
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
{% set _spinner = spinner|default({}) %}
|
|
39
39
|
{% set _show_spinner = show_spinner ?? false %}
|
|
40
40
|
{% set _clean_class = clean_class ?? false %}
|
|
41
|
+
{% set _remove_icon_spacers = remove_icon_spacers ?? false %}
|
|
41
42
|
|
|
42
43
|
{% set _classes = [] %}
|
|
43
44
|
{% if _clean_class == false %}
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
size: "fluid",
|
|
69
70
|
})
|
|
70
71
|
%}
|
|
71
|
-
{% if _label is not empty %}
|
|
72
|
+
{% if _label is not empty and not _remove_icon_spacers %}
|
|
72
73
|
{% if _icon.attributes is empty %}
|
|
73
74
|
{% set _icon = _icon|merge({
|
|
74
75
|
attributes: create_attribute()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block content %}
|
|
4
4
|
{% include '@oe-bcl/bcl-form/form.html.twig' with form only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
@@ -92,6 +92,9 @@
|
|
|
92
92
|
{% if _date is not empty %}
|
|
93
93
|
{% set _left_col_classes = 'bcl-card-start-col' %}
|
|
94
94
|
{% set _right_col_classes = 'col-12 col-md col-xxl-9' %}
|
|
95
|
+
{% if _image is empty %}
|
|
96
|
+
{% set _body_classes = 'pt-4 pt-md-0 px-0 px-md-1-5 pb-0' %}
|
|
97
|
+
{% endif %}
|
|
95
98
|
{% endif %}
|
|
96
99
|
{% if _image is empty and _date is empty %}
|
|
97
100
|
{% set _right_col_classes = 'col-lg-10 col-xl-9 col-xxl-8' %}
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
{% set _alignment = alignment|default('') %}
|
|
43
43
|
{% set _dark = dark ?? false %}
|
|
44
44
|
{% set _remove_wrapper = remove_wrapper ?? false %}
|
|
45
|
+
{% set _inside_navigation = inside_navigation ?? false %}
|
|
45
46
|
{% set _items = items|default([]) %}
|
|
46
47
|
|
|
47
48
|
{% set _class = 'dropdown' %}
|
|
@@ -75,14 +76,18 @@
|
|
|
75
76
|
.setAttribute('id', _id)
|
|
76
77
|
}) %}
|
|
77
78
|
|
|
78
|
-
{% if
|
|
79
|
-
{%
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
{% if not _inside_navigation %}
|
|
80
|
+
{% if _link %}
|
|
81
|
+
{% set _trigger = _trigger|merge({
|
|
82
|
+
attributes: _trigger.attributes.setAttribute('role', 'button')
|
|
83
|
+
}) %}
|
|
84
|
+
{% else %}
|
|
85
|
+
{% set _trigger = _trigger|merge({
|
|
86
|
+
attributes: _trigger.attributes.setAttribute('autocomplete', 'off')
|
|
87
|
+
}) %}
|
|
88
|
+
{% endif %}
|
|
82
89
|
{% else %}
|
|
83
|
-
{% set
|
|
84
|
-
attributes: _trigger.attributes.setAttribute('autocomplete', 'off')
|
|
85
|
-
}) %}
|
|
90
|
+
{% set attributes = attributes.setAttribute('aria-hidden', 'true').setAttribute('role', 'presentation') %}
|
|
86
91
|
{% endif %}
|
|
87
92
|
|
|
88
93
|
{% if not _remove_wrapper %}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block sidebar %}
|
|
4
4
|
{% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
6
6
|
|
|
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>
|
|
@@ -21,4 +21,4 @@
|
|
|
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 -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block content %}
|
|
4
4
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
5
5
|
title: 'Description',
|
|
6
6
|
title_tag: 'h2',
|
|
@@ -38,6 +38,5 @@
|
|
|
38
38
|
<div {{ file_classes ? 'class="' ~ file_classes ~ '"' }}>
|
|
39
39
|
{% include '@oe-bcl/bcl-file/file.html.twig' with file only %}
|
|
40
40
|
</div>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
{% endblock %}
|
|
41
|
+
{% endfor %}
|
|
42
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/listing-page.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/listing-page.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block content_row %}
|
|
4
4
|
{% include '@oe-bcl/bcl-pagination/pagination.html.twig' with glossary only %}
|
|
5
5
|
<div class="col-12">
|
|
6
6
|
<div class="d-md-flex justify-content-end mb-md-4-75 align-items-center border-bottom-md border-top-md border-gray-300 py-3">
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
{% include '@oe-bcl/bcl-select/select.html.twig' with itemsPerPage only %}
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
|
11
|
-
{
|
|
11
|
+
{%- endblock -%}
|
|
12
12
|
|
|
13
|
-
{
|
|
13
|
+
{%- block content_top %}
|
|
14
14
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
15
15
|
title: 'Starting with "A" (48)',
|
|
16
16
|
title_tag: 'h2',
|
|
17
17
|
} only %}
|
|
18
18
|
|
|
19
|
-
{
|
|
19
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig"
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block banner %}
|
|
4
4
|
<div class="container">
|
|
5
5
|
{% if banner is not empty %}
|
|
6
6
|
<div class="mt-4 mt-md-5">
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
</div>
|
|
71
71
|
{% endif %}
|
|
72
72
|
</div>
|
|
73
|
-
{
|
|
73
|
+
{%- endblock -%}
|
|
74
74
|
|
|
75
|
-
{
|
|
75
|
+
{%- block content %}
|
|
76
76
|
{% if recent is not empty and members is not empty %}
|
|
77
77
|
<div class="row mt-3">
|
|
78
78
|
<div class="col-md-8">
|
|
@@ -98,4 +98,4 @@
|
|
|
98
98
|
{% include '@oe-bcl/bcl-listing/listing.html.twig' with contributions.listing only %}
|
|
99
99
|
{% endif %}
|
|
100
100
|
{% endif %}
|
|
101
|
-
{
|
|
101
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig"
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block banner %}
|
|
4
4
|
<div class="container mt-4 mt-md-5">
|
|
5
5
|
<div class="col-xxl-11">
|
|
6
6
|
<div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
{% endif %}
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
|
-
{
|
|
27
|
+
{%- endblock -%}
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
{% set _project_logo = project_logo|default({}) %}
|
|
26
26
|
{% set _site_name = site_name|default('') %}
|
|
27
27
|
{% set _project_link = project_link|default('') %}
|
|
28
|
+
{% set _navbar_id = navbar_id|default('header-navbar-' ~ random(100)) %}
|
|
28
29
|
{% set _head = head|default({}) %}
|
|
29
30
|
{% set _breadcrumbs = breadcrumbs|default({}) %}
|
|
30
31
|
{% set _language_modal = language_modal|default({}) %}
|
|
@@ -51,10 +52,38 @@
|
|
|
51
52
|
<header
|
|
52
53
|
{{ attributes }}
|
|
53
54
|
>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
<nav
|
|
56
|
+
{{ _head.attributes.addClass(['navbar', 'navbar-expand-lg', 'navbar-light']) }}>
|
|
57
|
+
<div class='container'>
|
|
58
|
+
{% if _head.brand is not empty %}
|
|
59
|
+
<a class='navbar-brand' href='{{ _head.brand.link }}'>
|
|
60
|
+
{% for logo in _head.brand.logos %}
|
|
61
|
+
<img
|
|
62
|
+
src='{{ logo.src }}'
|
|
63
|
+
{% if logo.alt is not empty %}
|
|
64
|
+
alt='{{ logo.alt }}'
|
|
65
|
+
{% endif %}
|
|
66
|
+
{% if logo.class is not empty %}
|
|
67
|
+
class='{{ logo.class }}'
|
|
68
|
+
{% endif %}
|
|
69
|
+
/>
|
|
70
|
+
{% endfor %}
|
|
71
|
+
</a>
|
|
72
|
+
{% endif %}
|
|
73
|
+
<button
|
|
74
|
+
class="navbar-toggler bcl-navbar-toggler"
|
|
75
|
+
type="button"
|
|
76
|
+
data-bs-toggle="collapse"
|
|
77
|
+
data-bs-target='#{{ _navbar_id }}'
|
|
78
|
+
aria-controls='{{ _navbar_id }}'
|
|
79
|
+
aria-expanded="false"
|
|
80
|
+
aria-label="Toggle navigation"
|
|
81
|
+
>
|
|
82
|
+
<span class="navbar-toggler-icon"></span>
|
|
83
|
+
</button>
|
|
84
|
+
</div>
|
|
85
|
+
</nav>
|
|
86
|
+
|
|
58
87
|
|
|
59
88
|
<!-- project name -->
|
|
60
89
|
{% if _project_logo is not empty or _site_name is not empty %}
|
|
@@ -62,7 +91,6 @@
|
|
|
62
91
|
<div class="container">
|
|
63
92
|
{% if _project_link is not empty %}
|
|
64
93
|
<a
|
|
65
|
-
class="d-inline-block"
|
|
66
94
|
href="{{ _project_link }}"
|
|
67
95
|
>
|
|
68
96
|
{% endif %}
|
|
@@ -93,7 +121,10 @@
|
|
|
93
121
|
|
|
94
122
|
<!-- navbar -->
|
|
95
123
|
{% if _navbar is not empty %}
|
|
96
|
-
{% include '@oe-bcl/bcl-navbar/navbar.html.twig' with _navbar
|
|
124
|
+
{% include '@oe-bcl/bcl-navbar/navbar.html.twig' with _navbar|merge({
|
|
125
|
+
disable_collapse: true,
|
|
126
|
+
attributes: create_attribute().addClass('bcl-header__navbar collapse navbar-collapse').setAttribute('id', _navbar_id).setAttribute('aria-label', 'Main Navigation'),
|
|
127
|
+
}) only %}
|
|
97
128
|
{% endif %}
|
|
98
129
|
|
|
99
130
|
<!-- breadcrumbs -->
|
|
@@ -29,6 +29,11 @@ Parameters:
|
|
|
29
29
|
{% endif %}
|
|
30
30
|
|
|
31
31
|
{% set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
|
|
32
|
+
|
|
33
|
+
{% if not attributes.hasAttribute('aria-label') and not attributes.hasAttribute('aria-labelledby') %}
|
|
34
|
+
{% set attributes = attributes.setAttribute('aria-labelledby', _dropdown_id) %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
|
|
32
37
|
{% set title_attributes = _title_attributes.addClass(['mb-0', 'd-none', 'd-md-block']) %}
|
|
33
38
|
{% set _button_content %}
|
|
34
39
|
{{ _title }}
|
|
@@ -45,7 +50,7 @@ Parameters:
|
|
|
45
50
|
{% set _classes = _classes|merge(['dynamic-active']) %}
|
|
46
51
|
{% endif %}
|
|
47
52
|
|
|
48
|
-
<nav
|
|
53
|
+
<nav{{ attributes.addClass(_classes) }}>
|
|
49
54
|
{% set trigger_attributes = create_attribute()
|
|
50
55
|
.setAttribute('aria-expanded', 'false')
|
|
51
56
|
.setAttribute('type', 'button')
|
|
@@ -63,7 +68,7 @@ Parameters:
|
|
|
63
68
|
title_link: _title_link,
|
|
64
69
|
attributes: _title_attributes,
|
|
65
70
|
} only %}
|
|
66
|
-
<div class="dropdown-menu"
|
|
71
|
+
<div class="dropdown-menu">
|
|
67
72
|
{% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
|
|
68
73
|
'pills': true,
|
|
69
74
|
'vertical': true,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig"
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block banner %}
|
|
4
4
|
{% if banner is defined %}
|
|
5
5
|
{% include '@oe-bcl/bcl-banner/banner.html.twig' with banner only %}
|
|
6
6
|
{% endif %}
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
{% block content %}
|
|
10
|
-
|
|
7
|
+
{%- endblock -%}
|
|
8
|
+
{%- block content %}
|
|
11
9
|
<div class="container">
|
|
12
10
|
{% if featured_section is defined %}
|
|
13
11
|
<div class="my-4">
|
|
@@ -55,5 +53,4 @@
|
|
|
55
53
|
</div>
|
|
56
54
|
{% endif %}
|
|
57
55
|
</div>
|
|
58
|
-
|
|
59
|
-
{% endblock %}
|
|
56
|
+
{%- endblock -%}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{% apply spaceless %}
|
|
2
|
+
|
|
3
|
+
{% set _label = label ?? null %}
|
|
4
|
+
{% set _items = items ?? [] %}
|
|
5
|
+
{% set _icon_path = icon_path ?? '' %}
|
|
6
|
+
{% set _level = level ?? 1 %}
|
|
7
|
+
{% set _see_all = see_all ?? null %}
|
|
8
|
+
|
|
9
|
+
<ul class="bcl-mega-menu__items __level-{{ _level }}">
|
|
10
|
+
{% for _item in _items %}
|
|
11
|
+
{% set _li_attributes = _item.li_attributes ?? create_attribute() %}
|
|
12
|
+
{% if _item.items is defined and _item.items is not empty %}
|
|
13
|
+
{# This is a parent item. #}
|
|
14
|
+
<li{{ _li_attributes.addClass('__parent') }}>
|
|
15
|
+
{% include '@oe-bcl/bcl-mega-menu/mega-menu-submenu.html.twig' with _item|merge({
|
|
16
|
+
icon_path: _icon_path,
|
|
17
|
+
level: _level + 1,
|
|
18
|
+
}) only %}
|
|
19
|
+
</li>
|
|
20
|
+
{% else %}
|
|
21
|
+
{# This is a leaf item. #}
|
|
22
|
+
<li{{ _li_attributes.addClass('__leaf') }}>
|
|
23
|
+
{% if _item.path is empty %}
|
|
24
|
+
{# This is a nolink item. #}
|
|
25
|
+
<span{{ _item.attributes ?? '' }}>{{ _item.label }}</span>
|
|
26
|
+
{% else %}
|
|
27
|
+
{# This is a link. #}
|
|
28
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with _item only %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
</li>
|
|
31
|
+
{% endif %}
|
|
32
|
+
{% endfor %}
|
|
33
|
+
</ul>
|
|
34
|
+
|
|
35
|
+
{% endapply %}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{% apply spaceless %}
|
|
2
|
+
|
|
3
|
+
{% set _items = items ?? [] %}
|
|
4
|
+
{% set _trigger = trigger ?? null %}
|
|
5
|
+
{% set _icon_path = icon_path ?? '' %}
|
|
6
|
+
{% set _level = level ?? 2 %}
|
|
7
|
+
{% set _see_all = see_all ?? null %}
|
|
8
|
+
|
|
9
|
+
{% set _trigger_id = _trigger.id|default('mm-trigger-' ~ random(10000)) %}
|
|
10
|
+
{% set _panel_id = 'mm-panel-' ~ _trigger_id %}
|
|
11
|
+
|
|
12
|
+
{% set _trigger_attributes = _trigger.attributes ?? create_attribute() %}
|
|
13
|
+
{% set _trigger = _trigger|merge({
|
|
14
|
+
attributes: _trigger_attributes
|
|
15
|
+
.setAttribute('id', _trigger_id)
|
|
16
|
+
.setAttribute('aria-controls', _panel_id)
|
|
17
|
+
.setAttribute('aria-expanded', 'false')
|
|
18
|
+
.setAttribute('aria-haspopup', 'menu'),
|
|
19
|
+
remove_icon_spacers: true,
|
|
20
|
+
clean_class: true,
|
|
21
|
+
}) %}
|
|
22
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _trigger only %}
|
|
23
|
+
|
|
24
|
+
{# Add an optional "See all" link as last item. #}
|
|
25
|
+
{% if _see_all is not empty %}
|
|
26
|
+
{# Wrap the label for an ellipsis. #}
|
|
27
|
+
{% set _see_all_label %}
|
|
28
|
+
<span>{{- _see_all.label -}}</span>
|
|
29
|
+
{% endset %}
|
|
30
|
+
{% set _see_all_attr = (_see_all.attributes is defined ? _see_all.attributes : create_attribute()) %}
|
|
31
|
+
{% set _see_all = _see_all|merge({
|
|
32
|
+
label: _see_all_label,
|
|
33
|
+
icon: {
|
|
34
|
+
name: 'arrow-right',
|
|
35
|
+
path: _icon_path,
|
|
36
|
+
},
|
|
37
|
+
li_attributes: create_attribute()
|
|
38
|
+
.addClass('__see_all'),
|
|
39
|
+
attributes: _see_all_attr
|
|
40
|
+
.addClass(['see-all-button'])
|
|
41
|
+
.setAttribute('aria-label', 'See all items in ‘' ~ _trigger.label ~ '’')
|
|
42
|
+
}) %}
|
|
43
|
+
{% set _items = _items|merge([_see_all]) %}
|
|
44
|
+
{% endif %}
|
|
45
|
+
{% set submenu_attributes = create_attribute()
|
|
46
|
+
.setAttribute('id', _panel_id)
|
|
47
|
+
.setAttribute('hidden', '')
|
|
48
|
+
.setAttribute('role', 'group')
|
|
49
|
+
.setAttribute('aria-labelledby', _trigger_id)
|
|
50
|
+
.addClass('bcl-mega-menu__submenu', '__level-' ~ _level)
|
|
51
|
+
%}
|
|
52
|
+
<div{{ submenu_attributes }}>
|
|
53
|
+
{% if _trigger %}
|
|
54
|
+
<div class="__header">
|
|
55
|
+
<p class="__label">{{ _trigger.label }}</p>
|
|
56
|
+
</div>
|
|
57
|
+
{% endif %}
|
|
58
|
+
{% include '@oe-bcl/bcl-mega-menu/mega-menu-items.html.twig' with {
|
|
59
|
+
items: _items,
|
|
60
|
+
icon_path: _icon_path,
|
|
61
|
+
level: _level,
|
|
62
|
+
} only %}
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
{% endapply %}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{% apply spaceless %}
|
|
2
|
+
|
|
3
|
+
{# Parameters:
|
|
4
|
+
- id (string) (default: dropdown-random(1000))
|
|
5
|
+
- link (boolean) (default: false) - sets trigger to link, default is button
|
|
6
|
+
- trigger (link or button)
|
|
7
|
+
- content_block (block) (default: '')
|
|
8
|
+
- content_link (link)
|
|
9
|
+
- icon_path (string) (default: '')
|
|
10
|
+
- min_height (string) (default: '300px')
|
|
11
|
+
! set min-height of mega-menu
|
|
12
|
+
- items (object[])
|
|
13
|
+
format: [
|
|
14
|
+
{
|
|
15
|
+
- link or dropdown
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
- back_button_label (string) (default: 'Back')
|
|
19
|
+
- icon_path (string) (default: '')
|
|
20
|
+
#}
|
|
21
|
+
|
|
22
|
+
{% set _id = id|default('dropdown-' ~ random(1000)) %}
|
|
23
|
+
{% set _link = link ?? false %}
|
|
24
|
+
{% set _trigger = trigger|default({}) %}
|
|
25
|
+
{% set _content_block = content_block|default('') %}
|
|
26
|
+
{% set _content_link = content_link|default({}) %}
|
|
27
|
+
{% set _icon_path = icon_path|default('') %}
|
|
28
|
+
{% set _items = items|default([]) %}
|
|
29
|
+
{% set _back_button_label = back_button_label|default('Back') %}
|
|
30
|
+
{% set _icon_path = icon_path|default('') %}
|
|
31
|
+
{% set _menu_id = 'mega-menu-' ~ _id %}
|
|
32
|
+
|
|
33
|
+
{% if attributes is empty %}
|
|
34
|
+
{% set attributes = create_attribute() %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
|
|
37
|
+
{% set _classes = ['bcl-mega-menu'] %}
|
|
38
|
+
|
|
39
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
40
|
+
|
|
41
|
+
{% if _trigger.attributes is empty %}
|
|
42
|
+
{% set _trigger = _trigger|merge({
|
|
43
|
+
attributes: create_attribute()
|
|
44
|
+
}) %}
|
|
45
|
+
{% endif %}
|
|
46
|
+
{% set _trigger = _trigger|merge({
|
|
47
|
+
attributes: _trigger.attributes.addClass(['dropdown-toggle', 'nav-link'])
|
|
48
|
+
.setAttribute('aria-expanded', 'false')
|
|
49
|
+
.setAttribute('aria-haspopup', 'menu')
|
|
50
|
+
.setAttribute('aria-controls', _menu_id)
|
|
51
|
+
.setAttribute('data-bs-toggle', 'dropdown')
|
|
52
|
+
.setAttribute('data-bs-auto-close', 'outside')
|
|
53
|
+
.setAttribute('id', _id)
|
|
54
|
+
}) %}
|
|
55
|
+
|
|
56
|
+
<div {{ attributes }}>
|
|
57
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _trigger|merge({
|
|
58
|
+
variant: 'link',
|
|
59
|
+
clean_class: true,
|
|
60
|
+
}) only %}
|
|
61
|
+
{# Mega menu panel. #}
|
|
62
|
+
<nav id="{{ _menu_id }}" class="bcl-mega-menu__container dropdown-menu" aria-labelledby="{{ _id }}" aria-label="Main mega menu">
|
|
63
|
+
<div class="container">
|
|
64
|
+
{# Mobile back button. #}
|
|
65
|
+
<div class="container d-lg-none bcl-mega-menu__back-button-block">
|
|
66
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
67
|
+
label: _back_button_label,
|
|
68
|
+
icon_position: "before",
|
|
69
|
+
variant: 'link',
|
|
70
|
+
icon: {
|
|
71
|
+
path: _icon_path,
|
|
72
|
+
name: "arrow-left",
|
|
73
|
+
},
|
|
74
|
+
attributes: create_attribute().addClass(['back-button']).setAttribute('aria-label', 'Back to main menu')
|
|
75
|
+
} only %}
|
|
76
|
+
</div>
|
|
77
|
+
{# Info/summary and submenu columns. #}
|
|
78
|
+
<div class="position-relative">
|
|
79
|
+
<div class="row">
|
|
80
|
+
{# Content / summary column. #}
|
|
81
|
+
{% if content_block is defined %}
|
|
82
|
+
<div class="col-md-12 col-xl-3 position-relative bcl-mega-menu__info">
|
|
83
|
+
<div class="content-block">
|
|
84
|
+
{%- block content_block -%}
|
|
85
|
+
{{ _content_block }}
|
|
86
|
+
{%- endblock -%}
|
|
87
|
+
{% if _content_link.path is not empty %}
|
|
88
|
+
{% set _content_link = _content_link|merge({
|
|
89
|
+
icon: _content_link.icon|default({})|merge({
|
|
90
|
+
path: _icon_path
|
|
91
|
+
}),
|
|
92
|
+
attributes: (_content_link.attributes is defined
|
|
93
|
+
? _content_link.attributes
|
|
94
|
+
: create_attribute()
|
|
95
|
+
).addClass('content-link')
|
|
96
|
+
}) %}
|
|
97
|
+
<p class="m-0">{% include '@oe-bcl/bcl-link/link.html.twig' with _content_link only %}</p>
|
|
98
|
+
{% endif %}
|
|
99
|
+
</div>
|
|
100
|
+
<div class="shadow-container">
|
|
101
|
+
<span class="shadow-bg"></span>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
{% endif %}
|
|
105
|
+
{# Submenu column. #}
|
|
106
|
+
<div class="col-md-12 col-lg-4 col-xl-3 bcl-mega-menu__menu">
|
|
107
|
+
{% include '@oe-bcl/bcl-mega-menu/mega-menu-items.html.twig' %}
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</nav>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
{% endapply %}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
{% set _nav_class = _nav_class ~ ' dropdown' %}
|
|
92
92
|
{% set _item = _item|merge({remove_wrapper: true}) %}
|
|
93
93
|
{% endif %}
|
|
94
|
-
{% if _item.dropdown %}
|
|
94
|
+
{% if _item.dropdown or _item.mega_menu %}
|
|
95
95
|
{% set _item_classes = [] %}
|
|
96
96
|
{% else %}
|
|
97
97
|
{% set _item_classes = ['nav-link'] %}
|
|
@@ -121,9 +121,19 @@
|
|
|
121
121
|
%}
|
|
122
122
|
{% endif %}
|
|
123
123
|
{% if _item.dropdown is defined %}
|
|
124
|
+
{% if _tabs %}
|
|
125
|
+
{% set _item = _item|merge({
|
|
126
|
+
inside_navigation: true,
|
|
127
|
+
trigger: _item.trigger|merge({
|
|
128
|
+
attributes: _item.trigger.attributes.setAttribute("role", "tab"),
|
|
129
|
+
}),
|
|
130
|
+
}) %}
|
|
131
|
+
{% endif %}
|
|
124
132
|
{% include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _item only %}
|
|
125
133
|
{% elseif _item.button is defined %}
|
|
126
134
|
{% include '@oe-bcl/bcl-button/button.html.twig' with _item only %}
|
|
135
|
+
{% elseif _item.mega_menu is defined %}
|
|
136
|
+
{% include '@oe-bcl/bcl-mega-menu/mega-menu.html.twig' with _item only %}
|
|
127
137
|
{% else %}
|
|
128
138
|
{% include '@oe-bcl/bcl-link/link.html.twig' with _item only %}
|
|
129
139
|
{% endif %}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{% set _title_link = title_link|default({}) %}
|
|
26
26
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
27
27
|
{% set _placement = placement|default('') %}
|
|
28
|
-
{% set _id = id|default('') %}
|
|
28
|
+
{% set _id = id|default('bcl-offcanvas-' ~ random(10000)) %}
|
|
29
29
|
{% set _body = body|default('') %}
|
|
30
30
|
{% set _with_body_scroll = with_body_scroll ?? false %}
|
|
31
31
|
{% set _with_backdrop = with_backdrop ?? true %}
|
|
@@ -57,14 +57,12 @@
|
|
|
57
57
|
{% set attributes = create_attribute() %}
|
|
58
58
|
{% endif %}
|
|
59
59
|
|
|
60
|
+
{% set attributes = attributes.setAttribute('id', _id) %}
|
|
61
|
+
|
|
60
62
|
{% if _aria_labelled is defined and _aria_labelled is not empty %}
|
|
61
63
|
{% set attributes = attributes.setAttribute('aria-labelledby', _aria_labelled) %}
|
|
62
64
|
{% endif %}
|
|
63
65
|
|
|
64
|
-
{% if _id is not empty %}
|
|
65
|
-
{% set attributes = attributes.setAttribute('id', _id) %}
|
|
66
|
-
{% endif %}
|
|
67
|
-
|
|
68
66
|
{% if _with_body_scroll %}
|
|
69
67
|
{% set attributes = attributes.setAttribute('data-bs-scroll', 'true') %}
|
|
70
68
|
{% endif %}
|
|
@@ -73,6 +71,10 @@
|
|
|
73
71
|
{% set attributes = attributes.setAttribute('data-bs-backdrop', 'false') %}
|
|
74
72
|
{% endif %}
|
|
75
73
|
|
|
74
|
+
{% if _title is not empty %}
|
|
75
|
+
{% set attributes = attributes.setAttribute('aria-labelledby', _id ~ '-title') %}
|
|
76
|
+
{% endif %}
|
|
77
|
+
|
|
76
78
|
{% set attributes = attributes.setAttribute('tabindex', '-1').addClass(_classes) %}
|
|
77
79
|
|
|
78
80
|
<div
|
|
@@ -85,7 +87,7 @@
|
|
|
85
87
|
title: _title,
|
|
86
88
|
title_tag: _title_tag,
|
|
87
89
|
title_link: _title_link,
|
|
88
|
-
attributes: _title_attributes.addClass(['offcanvas-title']),
|
|
90
|
+
attributes: _title_attributes.setAttribute('id', _id ~ '-title').addClass(['offcanvas-title']),
|
|
89
91
|
} only %}
|
|
90
92
|
{% endif %}
|
|
91
93
|
{% if _with_close %}
|
|
@@ -94,6 +96,7 @@
|
|
|
94
96
|
.setAttribute('data-bs-dismiss', 'offcanvas')
|
|
95
97
|
.setAttribute('data-bs-target', '#' ~ _id)
|
|
96
98
|
.setAttribute('aria-label', _close_aria_label)
|
|
99
|
+
.setAttribute('aria-controls', _id)
|
|
97
100
|
%}
|
|
98
101
|
{% if _extra_classes_close is not empty %}
|
|
99
102
|
{% set button_attributes = button_attributes.addClass(_extra_classes_close) %}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block sidebar %}
|
|
4
4
|
{% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
6
6
|
|
|
7
|
-
{
|
|
7
|
+
{%- block content %}
|
|
8
8
|
<p id="content">{{ get_dummy_text(6) }}
|
|
9
9
|
</p>
|
|
10
10
|
<h2 id="item-1" class="my-4">Section 1</h2>
|
|
@@ -42,4 +42,4 @@
|
|
|
42
42
|
|
|
43
43
|
{% include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
|
|
44
44
|
{% include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
|
|
45
|
-
{
|
|
45
|
+
{%- endblock -%}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block sidebar %}
|
|
4
4
|
{% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
6
6
|
|
|
7
|
-
{
|
|
7
|
+
{%- block content %}
|
|
8
8
|
{% if information.main_title is not empty %}
|
|
9
9
|
<h2
|
|
10
10
|
class="mb-4"
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
{% include '@oe-bcl/bcl-file/file.html.twig' with file only %}
|
|
27
27
|
{% endfor %}
|
|
28
28
|
{% endif %}
|
|
29
|
-
{
|
|
29
|
+
{%- endblock -%}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block sidebar %}
|
|
4
4
|
{% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
6
6
|
|
|
7
|
-
{
|
|
7
|
+
{%- block content %}
|
|
8
8
|
{% if project_status is not empty %}
|
|
9
9
|
{% if project_status_title is not empty %}
|
|
10
10
|
{% set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
{% endif %}
|
|
63
63
|
|
|
64
64
|
{% if social_block is not empty %}
|
|
65
|
-
{
|
|
65
|
+
{%- block social_block %}
|
|
66
66
|
{{ social_buttons }}
|
|
67
67
|
{% include '@oe-bcl/bcl-button/button.html.twig' with button_social_modal only %}
|
|
68
68
|
{% include '@oe-bcl/bcl-modal/modal.html.twig' with social_modal only %}
|
|
69
|
-
{
|
|
69
|
+
{%- endblock -%}
|
|
70
70
|
{% endif %}
|
|
71
71
|
|
|
72
|
-
{
|
|
72
|
+
{%- endblock -%}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<div {{ attributes }}>
|
|
29
29
|
<div class="row">
|
|
30
30
|
|
|
31
|
-
{% if _chart
|
|
31
|
+
{% if _chart %}
|
|
32
32
|
<div class="bcl-project-contributions-chart col-5 col-md-3">
|
|
33
33
|
{% block project_status_contrib_chart %}
|
|
34
34
|
<div class="circular-progress" data-percentage="{{ _corporate_contributions }}">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig"
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block banner %}
|
|
4
4
|
{% if banner.search_bar is defined %}
|
|
5
5
|
<div class="bg-lighter pt-3 pb-4 pb-lg-3">
|
|
6
6
|
<div class="container">
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
{% endif %}
|
|
22
|
-
{
|
|
22
|
+
{%- endblock -%}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig'
|
|
1
|
+
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block sidebar %}
|
|
4
4
|
{% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
|
-
{
|
|
5
|
+
{%- endblock -%}
|
|
6
6
|
|
|
7
|
-
{
|
|
7
|
+
{%- block content_bottom %}
|
|
8
8
|
{% include '@oe-bcl/bcl-subscription-block/subscription-block.html.twig' with subscription only %}
|
|
9
9
|
{% include '@oe-bcl/bcl-subscription/subscription-modal.html.twig' with modal only %}
|
|
10
|
-
{
|
|
10
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig"
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block content %}
|
|
4
4
|
{{ get_dummy_text(4, true) }}
|
|
5
5
|
<ul class="mb-4-5">
|
|
6
6
|
<li>{{ get_dummy_text() }}</li>
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
<li>{{ get_dummy_text() }}</li>
|
|
9
9
|
</ul>
|
|
10
10
|
{% include '@oe-bcl/bcl-form/form.html.twig' with terms_form only %}
|
|
11
|
-
{
|
|
11
|
+
{%- endblock -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig"
|
|
1
|
+
{% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{%- block content %}
|
|
4
4
|
{% include "@oe-bcl/bcl-navigation/navigation.html.twig" with navigation only %}
|
|
5
5
|
<div class="tab-content">
|
|
6
6
|
<div class="tab-pane fade show active" id="view" role="tabpanel" aria-labelledby="view-tab">
|
|
@@ -134,4 +134,4 @@
|
|
|
134
134
|
{% include '@oe-bcl/bcl-form/form.html.twig' with cancel.form only %}
|
|
135
135
|
</div>
|
|
136
136
|
</div>
|
|
137
|
-
{
|
|
137
|
+
{%- endblock -%}
|