@openeuropa/bcl-twig-templates 0.3728.202505270730 → 0.3732.202601071600
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 -65
- package/templates/bcl-accordion/accordion.html.twig +3 -3
- package/templates/bcl-base-templates/listing-page.html.twig +17 -19
- package/templates/bcl-blockquote/blockquote.html.twig +2 -2
- package/templates/bcl-button/button.html.twig +3 -2
- package/templates/bcl-card/card.html.twig +8 -8
- package/templates/bcl-carousel/carousel.html.twig +1 -1
- 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-date-block/date-block.html.twig +31 -15
- package/templates/bcl-description-list/description-list.html.twig +1 -1
- package/templates/bcl-dropdown/dropdown.html.twig +12 -7
- package/templates/bcl-event/event.html.twig +5 -5
- package/templates/bcl-file/file.html.twig +1 -1
- package/templates/bcl-footer/footer.html.twig +1 -1
- package/templates/bcl-form-input/form-input.html.twig +1 -1
- package/templates/bcl-gallery/gallery-item.html.twig +1 -1
- package/templates/bcl-glossary/glossary-detail.html.twig +12 -13
- package/templates/bcl-glossary/glossary-listing.html.twig +5 -5
- package/templates/bcl-group/group-landing.html.twig +7 -7
- package/templates/bcl-group/group.html.twig +3 -3
- package/templates/bcl-header/header.html.twig +66 -42
- package/templates/bcl-heading/heading.html.twig +2 -2
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +1 -1
- package/templates/bcl-landing-page/landing-page.html.twig +7 -10
- package/templates/bcl-language-list/language-list-modal.html.twig +58 -5
- package/templates/bcl-links-block/links-block.html.twig +2 -2
- package/templates/bcl-listing/listing.html.twig +3 -3
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +35 -0
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +68 -0
- package/templates/bcl-mega-menu/mega-menu.html.twig +115 -0
- package/templates/bcl-modal/modal.html.twig +20 -7
- package/templates/bcl-navbar/navbar.html.twig +2 -2
- package/templates/bcl-navigation/navigation.html.twig +12 -2
- package/templates/bcl-offcanvas/offcanvas.html.twig +9 -6
- package/templates/bcl-page/page.html.twig +5 -5
- package/templates/bcl-pagination-v2/pagination-item.html.twig +90 -0
- package/templates/bcl-pagination-v2/pagination.html.twig +213 -0
- package/templates/bcl-person/person.html.twig +6 -6
- package/templates/bcl-progress/progress.html.twig +1 -1
- package/templates/bcl-project/project.html.twig +8 -8
- package/templates/bcl-project-status/project-contributions.html.twig +3 -3
- package/templates/bcl-recent-activities/recent-activities.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-toast → bcl-toasts}/toasts.html.twig +18 -9
- package/templates/bcl-user/user-compact.html.twig +1 -1
- package/templates/bcl-user/user-terms.html.twig +3 -3
- package/templates/bcl-user/user.html.twig +3 -3
|
@@ -7,14 +7,18 @@
|
|
|
7
7
|
- fullscreen_responsive (string) (default: '')
|
|
8
8
|
options: sm, md, lg, xl, xxl
|
|
9
9
|
- static_backdrop (boolean) (default: false)
|
|
10
|
-
-
|
|
10
|
+
- vertically_centered (boolean) (default: false)
|
|
11
|
+
- verticaly_centered (boolean) (default: false) // deprecated typo
|
|
11
12
|
- scrollable (boolean) (default: false)
|
|
12
13
|
- header (block) (default: '')
|
|
13
14
|
- messages (block) (default: '')
|
|
14
15
|
- body (block) (default: '')
|
|
15
16
|
- footer (block) (default: '')
|
|
16
17
|
- attributes (drupal attrs)
|
|
17
|
-
|
|
18
|
+
- header_attributes (drupal attrs)
|
|
19
|
+
- body_attributes (drupal attrs)
|
|
20
|
+
- footer_attributes (drupal attrs)
|
|
21
|
+
|
|
18
22
|
Blocks
|
|
19
23
|
- header
|
|
20
24
|
- messages
|
|
@@ -26,12 +30,15 @@
|
|
|
26
30
|
{% set _id = id|default('modal-' ~ random(10000)) %}
|
|
27
31
|
{% set _fullscreen_responsive = fullscreen_responsive|default('') %}
|
|
28
32
|
{% set _static_backdrop = static_backdrop ?? false %}
|
|
29
|
-
{% set
|
|
33
|
+
{% set _vertically_centered = vertically_centered ?? verticaly_centered ?? false %}
|
|
30
34
|
{% set _scrollable = scrollable ?? false %}
|
|
31
35
|
{% set _header = header|default('') %}
|
|
36
|
+
{% set _header_attributes = header_attributes ?: create_attribute() %}
|
|
32
37
|
{% set _messages = messages|default('') %}
|
|
33
38
|
{% set _body = body|default('') %}
|
|
39
|
+
{% set _body_attributes = body_attributes ?: create_attribute() %}
|
|
34
40
|
{% set _footer = footer|default('') %}
|
|
41
|
+
{% set _footer_attributes = footer_attributes ?: create_attribute() %}
|
|
35
42
|
|
|
36
43
|
{% set _classes = ['modal', 'fade'] %}
|
|
37
44
|
|
|
@@ -57,21 +64,27 @@
|
|
|
57
64
|
<div class="modal-dialog
|
|
58
65
|
{{- _size ? ' modal-' ~ size -}}
|
|
59
66
|
{{- _fullscreen_responsive ? ' modal-fullscreen-' ~ _fullscreen_responsive ~ '-down' -}}
|
|
60
|
-
{{-
|
|
67
|
+
{{- _vertically_centered ? ' modal-dialog-centered' -}}
|
|
61
68
|
{{- _scrollable ? ' modal-dialog-scrollable' -}}"
|
|
62
69
|
>
|
|
63
70
|
<div class="modal-content">
|
|
64
71
|
{% if header is not empty %}
|
|
65
|
-
<div
|
|
72
|
+
<div
|
|
73
|
+
{{- _header_attributes.addClass(['modal-header']) -}}
|
|
74
|
+
>
|
|
66
75
|
{%- block header _header -%}
|
|
67
76
|
</div>
|
|
68
77
|
{% endif %}
|
|
69
78
|
{%- block messages _messages -%}
|
|
70
|
-
<div
|
|
79
|
+
<div
|
|
80
|
+
{{- _body_attributes.addClass(['modal-body']) -}}
|
|
81
|
+
>
|
|
71
82
|
{%- block body _body -%}
|
|
72
83
|
</div>
|
|
73
84
|
{% if footer is not empty %}
|
|
74
|
-
<div
|
|
85
|
+
<div
|
|
86
|
+
{{- _footer_attributes.addClass(['modal-footer']) -}}
|
|
87
|
+
>
|
|
75
88
|
{%- block footer _footer -%}
|
|
76
89
|
</div>
|
|
77
90
|
{% endif %}
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
{% if _navigation is not empty %}
|
|
95
95
|
{% include '@oe-bcl/bcl-navigation/navigation.html.twig' with _navigation only %}
|
|
96
96
|
{% endif %}
|
|
97
|
-
{%
|
|
97
|
+
{% endblock %}
|
|
98
98
|
{% block right %}
|
|
99
99
|
{% if _form is not empty %}
|
|
100
100
|
{% include '@oe-bcl/bcl-form/form.html.twig' with _form only %}
|
|
101
101
|
{% endif %}
|
|
102
|
-
{%
|
|
102
|
+
{% endblock %}
|
|
103
103
|
{% if not _disable_collapse %}
|
|
104
104
|
</div>
|
|
105
105
|
{% endif %}
|
|
@@ -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'] %}
|
|
@@ -117,13 +117,23 @@
|
|
|
117
117
|
{% elseif _tabs and _item.dropdown is not defined %}
|
|
118
118
|
{% set _item = _item|merge({
|
|
119
119
|
attributes: _item.attributes.setAttribute("role", "tab"),
|
|
120
|
-
})
|
|
120
|
+
})
|
|
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 -%}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{% apply spaceless %}
|
|
2
|
+
|
|
3
|
+
{# Parameters:
|
|
4
|
+
- path (string) (default: '')
|
|
5
|
+
- label (string) (default: '')
|
|
6
|
+
- disabled (boolean) (default: false)
|
|
7
|
+
- active (boolean) (default: false)
|
|
8
|
+
- icon (icon object) (default: {})
|
|
9
|
+
- attributes (drupal attrs)
|
|
10
|
+
#}
|
|
11
|
+
|
|
12
|
+
{% set _path = path|default('') %}
|
|
13
|
+
{% set _label = label|default('') %}
|
|
14
|
+
{% set _disabled = disabled ?? false %}
|
|
15
|
+
{% set _active = active ?? false %}
|
|
16
|
+
{% set _aria_label = aria_label|default('') %}
|
|
17
|
+
{% set _icon = icon|default({}) %}
|
|
18
|
+
{% set _icon_path = icon_path|default('') %}
|
|
19
|
+
{% set _icon_name = icon_name|default('') %}
|
|
20
|
+
{% set _icon_html = icon_html|default('') %}
|
|
21
|
+
{% set _icon_position = icon_position|default('after') %}
|
|
22
|
+
{% set _current_mobile_label = current_mobile_label|default('') %}
|
|
23
|
+
{% set _classes = ['page-link'] %}
|
|
24
|
+
|
|
25
|
+
{% if _icon_path is not empty and _icon is empty %}
|
|
26
|
+
{% if _icon_name is not empty %}
|
|
27
|
+
{% set _icon = _icon|merge({
|
|
28
|
+
name: _icon_name,
|
|
29
|
+
path: _icon_path,
|
|
30
|
+
size: "fluid"
|
|
31
|
+
}) %}
|
|
32
|
+
{% set _label = "" %}
|
|
33
|
+
{% endif %}
|
|
34
|
+
{% else %}
|
|
35
|
+
{% if _icon_html is not empty %}
|
|
36
|
+
{% set _label %}
|
|
37
|
+
<span aria-hidden="true">{{- _icon_html -}}</span>
|
|
38
|
+
{% endset %}
|
|
39
|
+
{% endif %}
|
|
40
|
+
{% endif %}
|
|
41
|
+
|
|
42
|
+
{% if _icon is not empty %}
|
|
43
|
+
{% set _icon = _icon|merge({
|
|
44
|
+
path: _icon_path,
|
|
45
|
+
}) %}
|
|
46
|
+
{% endif %}
|
|
47
|
+
|
|
48
|
+
{% if attributes is empty %}
|
|
49
|
+
{% set attributes = create_attribute() %}
|
|
50
|
+
{% endif %}
|
|
51
|
+
|
|
52
|
+
{% if _aria_label is not empty %}
|
|
53
|
+
{% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
|
|
54
|
+
{% endif %}
|
|
55
|
+
|
|
56
|
+
{% if _active %}
|
|
57
|
+
{% set attributes = attributes.setAttribute('aria-current', 'page') %}
|
|
58
|
+
{% set attributes = attributes.setAttribute('tabindex', '0') %}
|
|
59
|
+
{% endif %}
|
|
60
|
+
|
|
61
|
+
{% set attributes = attributes.addClass(_classes) %}
|
|
62
|
+
|
|
63
|
+
{% if _path and not _active %}
|
|
64
|
+
{% if _disabled %}
|
|
65
|
+
{% set attributes = attributes.setAttribute('aria-disabled', 'true') %}
|
|
66
|
+
{% endif %}
|
|
67
|
+
{% set attributes = attributes.setAttribute('aria-hidden', 'false') %}
|
|
68
|
+
|
|
69
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with {
|
|
70
|
+
label: _label,
|
|
71
|
+
path: _path,
|
|
72
|
+
disabled: _disabled,
|
|
73
|
+
icon: _icon,
|
|
74
|
+
icon_position: _icon_position,
|
|
75
|
+
attributes: attributes,
|
|
76
|
+
} only -%}
|
|
77
|
+
{% else %}
|
|
78
|
+
<div{{ attributes }}>
|
|
79
|
+
{% if _current_mobile_label %}
|
|
80
|
+
<span class="d-none d-md-inline-block">{{- _label -}}</span>
|
|
81
|
+
<span class="d-inline-block d-md-none">{{- _current_mobile_label -}}</span>
|
|
82
|
+
{% else %}
|
|
83
|
+
<span class="d-inline-block">
|
|
84
|
+
{{- _label -}}
|
|
85
|
+
</span>
|
|
86
|
+
{% endif %}
|
|
87
|
+
</div>
|
|
88
|
+
{% endif %}
|
|
89
|
+
|
|
90
|
+
{% endapply %}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
{% apply spaceless %}
|
|
2
|
+
|
|
3
|
+
{# Parameters:
|
|
4
|
+
- size (string) (default: '')
|
|
5
|
+
- options ['sm', 'lg']
|
|
6
|
+
- alignment (string) (default: 'center')
|
|
7
|
+
- options ['start', 'end', 'center']
|
|
8
|
+
- enable_prev_next_icon (boolean) (default: true)
|
|
9
|
+
- enable_first_last_icon (boolean) (default: false)
|
|
10
|
+
- ellipsis_before (boolean) (default: false)
|
|
11
|
+
- ellipsis_after (boolean) (default: false)
|
|
12
|
+
- first (pagination Item object) (default: {})
|
|
13
|
+
- prev (pagination Item object) (default: {})
|
|
14
|
+
- next (pagination Item object) (default: {})
|
|
15
|
+
- last (pagination Item object) (default: {})
|
|
16
|
+
- items (pagination item[]) (default: [])
|
|
17
|
+
format: [
|
|
18
|
+
{
|
|
19
|
+
- path (string) (default: '')
|
|
20
|
+
- label (string) (default: '')
|
|
21
|
+
- disabled (boolean) (default: false)
|
|
22
|
+
- active (boolean) (default: false)
|
|
23
|
+
- icon (Icon component) (default: {})
|
|
24
|
+
- attributes (drupal attrs)
|
|
25
|
+
}
|
|
26
|
+
- icon_path (string) (default: '')
|
|
27
|
+
- attributes (drupal attrs)
|
|
28
|
+
- list_attributes (drupal attrs)
|
|
29
|
+
#}
|
|
30
|
+
|
|
31
|
+
{% set _size = size|default('') %}
|
|
32
|
+
{% set _alignment = alignment|default('center') %}
|
|
33
|
+
{% set _enable_prev_next_icon = enable_prev_next_icon ?? true %}
|
|
34
|
+
{% set _enable_first_last_icon = enable_first_last_icon ?? false %}
|
|
35
|
+
{% set _ellipsis_before = ellipsis_before ?? false %}
|
|
36
|
+
{% set _ellipsis_after = ellipsis_after ?? false %}
|
|
37
|
+
{% set _first = first|default({}) %}
|
|
38
|
+
{% set _prev = prev|default({}) %}
|
|
39
|
+
{% set _next = next|default({}) %}
|
|
40
|
+
{% set _last = last|default({}) %}
|
|
41
|
+
{% set _items = items|default([]) %}
|
|
42
|
+
{% set _icon_path = icon_path|default('') %}
|
|
43
|
+
{% set _ellipsis_markup %} … {% endset %}
|
|
44
|
+
|
|
45
|
+
{% set _type_flags = {
|
|
46
|
+
first: { first: true },
|
|
47
|
+
last: { last: true },
|
|
48
|
+
prev: { prev: true },
|
|
49
|
+
next: { next: true },
|
|
50
|
+
ellipsis: { ellipsis: true },
|
|
51
|
+
} %}
|
|
52
|
+
|
|
53
|
+
{% set _icon_defaults = {
|
|
54
|
+
ellipsis: {
|
|
55
|
+
icon_html: _ellipsis_markup,
|
|
56
|
+
icon_path: "",
|
|
57
|
+
},
|
|
58
|
+
} %}
|
|
59
|
+
|
|
60
|
+
{% if _enable_prev_next_icon %}
|
|
61
|
+
{% set _icon_defaults = _icon_defaults|merge({
|
|
62
|
+
prev: {
|
|
63
|
+
icon_position: 'before',
|
|
64
|
+
icon: {
|
|
65
|
+
size: 'fluid',
|
|
66
|
+
name: "chevron-left",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
next: {
|
|
70
|
+
icon_position: 'after',
|
|
71
|
+
icon: {
|
|
72
|
+
size: 'fluid',
|
|
73
|
+
name: "chevron-right",
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
}) %}
|
|
77
|
+
{% endif %}
|
|
78
|
+
|
|
79
|
+
{% if _enable_first_last_icon %}
|
|
80
|
+
{% set _icon_defaults = _icon_defaults|merge({
|
|
81
|
+
first: {
|
|
82
|
+
icon_html: "«",
|
|
83
|
+
icon_name: "chevron-double-left",
|
|
84
|
+
},
|
|
85
|
+
last: {
|
|
86
|
+
icon_html: "»",
|
|
87
|
+
icon_name: "chevron-double-right",
|
|
88
|
+
},
|
|
89
|
+
}) %}
|
|
90
|
+
{% endif %}
|
|
91
|
+
|
|
92
|
+
{% set _raw_items = [
|
|
93
|
+
{ item: _prev, fallback_type: 'prev' },
|
|
94
|
+
{ item: _first, fallback_type: 'first' },
|
|
95
|
+
] %}
|
|
96
|
+
|
|
97
|
+
{% if _ellipsis_before %}
|
|
98
|
+
{% set _raw_items = _raw_items|merge([
|
|
99
|
+
{ item: {
|
|
100
|
+
item_type: 'ellipsis',
|
|
101
|
+
ellipsis: true,
|
|
102
|
+
} },
|
|
103
|
+
]) %}
|
|
104
|
+
{% endif %}
|
|
105
|
+
|
|
106
|
+
{% if _items is iterable %}
|
|
107
|
+
{% for _item in _items %}
|
|
108
|
+
{% set _raw_items = _raw_items|merge([{ item: _item }]) %}
|
|
109
|
+
{% endfor %}
|
|
110
|
+
{% endif %}
|
|
111
|
+
|
|
112
|
+
{% if _ellipsis_after %}
|
|
113
|
+
{% set _raw_items = _raw_items|merge([
|
|
114
|
+
{ item: {
|
|
115
|
+
item_type: 'ellipsis',
|
|
116
|
+
ellipsis: true,
|
|
117
|
+
} },
|
|
118
|
+
]) %}
|
|
119
|
+
{% endif %}
|
|
120
|
+
|
|
121
|
+
{% set _raw_items = _raw_items|merge([
|
|
122
|
+
{ item: _last, fallback_type: 'last' },
|
|
123
|
+
{ item: _next, fallback_type: 'next' },
|
|
124
|
+
]) %}
|
|
125
|
+
|
|
126
|
+
{% set _internal_items = [] %}
|
|
127
|
+
|
|
128
|
+
{% for _entry in _raw_items %}
|
|
129
|
+
{% set _item = _entry.item %}
|
|
130
|
+
{% if _item is not empty %}
|
|
131
|
+
{% set _type = attribute(_item, 'item_type')|default(_entry.fallback_type|default('')) %}
|
|
132
|
+
{% if not _type and (_item.ellipsis ?? false) %}
|
|
133
|
+
{% set _type = 'ellipsis' %}
|
|
134
|
+
{% endif %}
|
|
135
|
+
{% set _type_flag = attribute(_type_flags, _type)|default({}) %}
|
|
136
|
+
{% if _type_flag is not empty %}
|
|
137
|
+
{% set _item = _item|merge(_type_flag) %}
|
|
138
|
+
{% endif %}
|
|
139
|
+
{% set _icon_defaults_for_type = attribute(_icon_defaults, _type)|default({}) %}
|
|
140
|
+
{% if _icon_defaults_for_type is not empty %}
|
|
141
|
+
{% set _item = _item|merge(_icon_defaults_for_type) %}
|
|
142
|
+
{% endif %}
|
|
143
|
+
{% if (_item.active ?? false) and current_mobile_label is defined and _item.current_mobile_label is not defined %}
|
|
144
|
+
{% set _item = _item|merge({ current_mobile_label: current_mobile_label }) %}
|
|
145
|
+
{% endif %}
|
|
146
|
+
{% set _internal_items = _internal_items|merge([_item]) %}
|
|
147
|
+
{% endif %}
|
|
148
|
+
{% endfor %}
|
|
149
|
+
|
|
150
|
+
{% if attributes is empty %}
|
|
151
|
+
{% set attributes = create_attribute() %}
|
|
152
|
+
{% endif %}
|
|
153
|
+
|
|
154
|
+
{% set attributes = attributes.addClass(['pager', 'pagination-v2']) %}
|
|
155
|
+
|
|
156
|
+
{% if list_attributes is empty %}
|
|
157
|
+
{% set list_attributes = create_attribute() %}
|
|
158
|
+
{% endif %}
|
|
159
|
+
|
|
160
|
+
{% set _classes = [
|
|
161
|
+
'pagination',
|
|
162
|
+
'pager__items',
|
|
163
|
+
'js-pager__items',
|
|
164
|
+
'd-flex',
|
|
165
|
+
'flex-row',
|
|
166
|
+
'justify-content-between'
|
|
167
|
+
] %}
|
|
168
|
+
|
|
169
|
+
{% if _size is not empty %}
|
|
170
|
+
{% set _classes = _classes|merge(['pagination-' ~ _size]) %}
|
|
171
|
+
{% endif %}
|
|
172
|
+
{% if _alignment is not empty %}
|
|
173
|
+
{% set _classes = _classes|merge(['justify-content-md-' ~ _alignment]) %}
|
|
174
|
+
{% endif %}
|
|
175
|
+
|
|
176
|
+
{% set list_attributes = list_attributes.addClass(_classes) %}
|
|
177
|
+
|
|
178
|
+
<nav{{ attributes }}>
|
|
179
|
+
<ul{{ list_attributes }}>
|
|
180
|
+
{% if _internal_items is not empty and _internal_items is iterable %}
|
|
181
|
+
{% for _item in _internal_items %}
|
|
182
|
+
{% if _item is not empty %}
|
|
183
|
+
{% set _item_class = ['page-item', 'pager__item'] %}
|
|
184
|
+
|
|
185
|
+
{% if _item.prev %}
|
|
186
|
+
{% set _item_class = _item_class|merge(['pager__item--prev', 'd-inline-block']) %}
|
|
187
|
+
{% elseif _item.next %}
|
|
188
|
+
{% set _item_class = _item_class|merge(['pager__item--next', 'd-inline-block']) %}
|
|
189
|
+
{% elseif not _item.active %}
|
|
190
|
+
{% set _item_class = _item_class|merge(['d-none', 'd-md-inline-block']) %}
|
|
191
|
+
{% endif %}
|
|
192
|
+
|
|
193
|
+
{% if _item.disabled %}
|
|
194
|
+
{% set _item_class = _item_class|merge(['disabled']) %}
|
|
195
|
+
{% endif %}
|
|
196
|
+
|
|
197
|
+
{% if _item.active %}
|
|
198
|
+
{% set _item_class = _item_class|merge(['active', 'd-inline-block']) %}
|
|
199
|
+
{% endif %}
|
|
200
|
+
|
|
201
|
+
<li class="{{ _item_class|join(' ') }}">
|
|
202
|
+
{% if _item.icon_path is not defined %}
|
|
203
|
+
{% set _item = _item|merge({ icon_path: _icon_path }) %}
|
|
204
|
+
{% endif %}
|
|
205
|
+
{% include '@oe-bcl/bcl-pagination-v2/pagination-item.html.twig' with _item only %}
|
|
206
|
+
</li>
|
|
207
|
+
{% endif %}
|
|
208
|
+
{% endfor %}
|
|
209
|
+
{% endif %}
|
|
210
|
+
</ul>
|
|
211
|
+
</nav>
|
|
212
|
+
|
|
213
|
+
{% endapply %}
|
|
@@ -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"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div class="mb-4-5">
|
|
15
15
|
{{- information.content -}}
|
|
16
16
|
</div>
|
|
17
|
-
{% endif %}
|
|
17
|
+
{% endif %}
|
|
18
18
|
|
|
19
19
|
{% if files.main_title is not empty %}
|
|
20
20
|
<h2
|
|
@@ -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']) %}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
{% if first_paragraphs is defined and first_paragraphs is not empty %}
|
|
27
27
|
{% for _paragraph in first_paragraphs %}
|
|
28
|
-
{
|
|
28
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
29
29
|
title: _paragraph.title,
|
|
30
30
|
title_tag: 'h2',
|
|
31
31
|
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
@@ -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 -%}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- legend (description list object) (default: {})
|
|
6
6
|
- chart (boolean) (default: false)
|
|
7
7
|
|
|
8
|
-
Blocks -
|
|
8
|
+
Blocks -
|
|
9
9
|
project_status_contrib_chart
|
|
10
10
|
project_status_contrib_legend
|
|
11
11
|
#}
|
|
@@ -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 }}">
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
{% endblock %}
|
|
51
51
|
</div>
|
|
52
52
|
{% endif %}
|
|
53
|
-
</div>
|
|
53
|
+
</div>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
56
56
|
{% endapply %}
|
|
@@ -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 -%}
|