@openeuropa/bcl-twig-templates 0.4230.202512021730 → 0.4360.202601141610
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 +42 -43
- package/templates/bcl-alert/alert.html.twig +18 -18
- package/templates/bcl-badge/badge.html.twig +11 -12
- package/templates/bcl-banner/banner.html.twig +34 -34
- package/templates/bcl-base-templates/content-type.html.twig +63 -64
- package/templates/bcl-base-templates/listing-page.html.twig +31 -31
- package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
- package/templates/bcl-blockquote/blockquote.html.twig +17 -17
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -25
- package/templates/bcl-button/button.html.twig +24 -24
- package/templates/bcl-button-group/button-group.html.twig +25 -26
- package/templates/bcl-card/card.html.twig +98 -98
- package/templates/bcl-card-layout/card-layout.html.twig +34 -34
- package/templates/bcl-carousel/carousel.html.twig +64 -64
- package/templates/bcl-contact-form/contact-form.html.twig +1 -1
- package/templates/bcl-content-banner/content-banner.html.twig +37 -37
- package/templates/bcl-date-block/date-block.html.twig +26 -26
- package/templates/bcl-description-list/description-list-details.html.twig +6 -6
- package/templates/bcl-description-list/description-list-title.html.twig +11 -11
- package/templates/bcl-description-list/description-list.html.twig +44 -45
- package/templates/bcl-dropdown/dropdown.html.twig +48 -49
- package/templates/bcl-event/event.html.twig +7 -7
- package/templates/bcl-fact-figures/fact-figures.html.twig +34 -34
- package/templates/bcl-featured-media/featured-media.html.twig +42 -43
- package/templates/bcl-file/file-translations.html.twig +29 -29
- package/templates/bcl-file/file.html.twig +46 -46
- package/templates/bcl-footer/footer.html.twig +31 -31
- package/templates/bcl-form/form.html.twig +70 -70
- package/templates/bcl-form-input/form-input.html.twig +57 -58
- package/templates/bcl-gallery/gallery-item.html.twig +20 -20
- package/templates/bcl-gallery/gallery.html.twig +62 -63
- package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
- package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
- package/templates/bcl-group/group-landing.html.twig +69 -69
- package/templates/bcl-group/group.html.twig +19 -19
- package/templates/bcl-header/header.html.twig +71 -79
- package/templates/bcl-heading/heading.html.twig +13 -14
- package/templates/bcl-icon/icon.html.twig +10 -10
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -20
- package/templates/bcl-landing-page/landing-page.html.twig +33 -33
- package/templates/bcl-language-list/language-list-grid.html.twig +25 -25
- package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
- package/templates/bcl-language-list/language-list.html.twig +33 -34
- package/templates/bcl-language-switcher/language-switcher.html.twig +12 -12
- package/templates/bcl-link/link.html.twig +24 -24
- package/templates/bcl-links-block/links-block.html.twig +29 -30
- package/templates/bcl-list-group/list-group.html.twig +43 -44
- package/templates/bcl-listing/listing.html.twig +88 -88
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -18
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +27 -22
- package/templates/bcl-mega-menu/mega-menu.html.twig +37 -35
- package/templates/bcl-modal/modal.html.twig +17 -17
- package/templates/bcl-navbar/navbar.html.twig +35 -35
- package/templates/bcl-navigation/navigation.html.twig +106 -106
- package/templates/bcl-offcanvas/offcanvas.html.twig +33 -33
- package/templates/bcl-page/page.html.twig +27 -27
- package/templates/bcl-pagination/pagination-item.html.twig +22 -23
- package/templates/bcl-pagination/pagination.html.twig +59 -59
- package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -32
- package/templates/bcl-pagination-v2/pagination.html.twig +79 -79
- package/templates/bcl-person/person.html.twig +12 -12
- package/templates/bcl-placeholder/placeholder.html.twig +14 -15
- package/templates/bcl-progress/progress.html.twig +16 -17
- package/templates/bcl-project/project-lists.html.twig +25 -25
- package/templates/bcl-project/project.html.twig +35 -35
- package/templates/bcl-project-status/project-contributions.html.twig +25 -25
- package/templates/bcl-project-status/project-status.html.twig +32 -34
- package/templates/bcl-recent-activities/recent-activities.html.twig +13 -13
- package/templates/bcl-search/search.html.twig +12 -12
- package/templates/bcl-search-form/search-form.html.twig +21 -21
- package/templates/bcl-select/select.html.twig +52 -53
- package/templates/bcl-spinner/spinner.html.twig +10 -10
- package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
- package/templates/bcl-subscription/subscription.html.twig +3 -3
- package/templates/bcl-subscription-block/subscription-block.html.twig +14 -14
- package/templates/bcl-table/table.html.twig +61 -62
- package/templates/bcl-textarea/textarea.html.twig +44 -44
- package/templates/bcl-timeline/timeline-item.html.twig +12 -12
- package/templates/bcl-timeline/timeline.html.twig +42 -42
- package/templates/bcl-toasts/toasts.html.twig +56 -57
- package/templates/bcl-user/user-compact.html.twig +24 -24
- package/templates/bcl-user/user-terms.html.twig +6 -6
- package/templates/bcl-user/user.html.twig +117 -117
|
@@ -1,111 +1,111 @@
|
|
|
1
1
|
{% extends "@oe-bcl/bcl-modal/modal.html.twig" %}
|
|
2
2
|
|
|
3
|
-
{
|
|
4
|
-
{
|
|
3
|
+
{%- if _title is not empty %}
|
|
4
|
+
{%- set header = true %}
|
|
5
5
|
{% endif %}
|
|
6
6
|
|
|
7
|
-
{
|
|
8
|
-
{
|
|
9
|
-
{
|
|
7
|
+
{%- if _variant == 'neutral' %}
|
|
8
|
+
{%- set size = "xl" %}
|
|
9
|
+
{%- set fullscreen_responsive = "md" %}
|
|
10
10
|
{% else %}
|
|
11
|
-
{
|
|
11
|
+
{%- set size = "fullscreen" %}
|
|
12
12
|
{% endif %}
|
|
13
13
|
|
|
14
|
-
{
|
|
14
|
+
{%- set overlay = false %}
|
|
15
15
|
{% set inside_container = true %}
|
|
16
16
|
|
|
17
|
-
{
|
|
17
|
+
{%- set attributes = attributes.addClass(['bcl-language-list-modal', 'bcl-language-list-modal--' ~ _variant]) %}
|
|
18
18
|
|
|
19
|
-
{
|
|
20
|
-
{
|
|
19
|
+
{%- block header %}
|
|
20
|
+
{%- if size == 'fullscreen' -%}
|
|
21
21
|
<div class="container">
|
|
22
|
-
{
|
|
23
|
-
<div class="border-bottom mx-n3 px-3 px-md-0 pt-md-4-5">
|
|
22
|
+
{%- if _variant == 'eu' or _variant == 'ec' -%}
|
|
23
|
+
<div class="border-bottom mx-n3 px-3 px-md-0 pt-md-4-5">{# -#}
|
|
24
24
|
<div class="py-3-5 px-3 px-sm-0 px-md-3">
|
|
25
|
-
{
|
|
25
|
+
{%- endif -%}
|
|
26
26
|
<div class="d-flex justify-content-between align-items-center">
|
|
27
|
-
{
|
|
27
|
+
{%- endif -%}
|
|
28
28
|
<div class="d-flex align-items-center">
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
32
|
-
{
|
|
29
|
+
{%- set _title_classes = 'modal-title mb-0' %}
|
|
30
|
+
{%- if _icon_path is not empty %}
|
|
31
|
+
{%- set _title_classes = _title_classes ~ ' ms-2' %}
|
|
32
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
33
33
|
name: 'globe2',
|
|
34
34
|
path: _icon_path
|
|
35
35
|
} only %}
|
|
36
|
-
{
|
|
37
|
-
<div class="{{ _title_classes }}">{{ _title }}</div>
|
|
38
|
-
</div>
|
|
36
|
+
{%- endif -%}
|
|
37
|
+
<div class="{{ _title_classes }}">{{ _title }}</div>{# -#}
|
|
38
|
+
</div>{# -#}
|
|
39
39
|
<button type="button" class="btn-close" data-bs-dismiss="modal"
|
|
40
40
|
{% if _close_label is not empty %}
|
|
41
41
|
aria-label="{{ _close_label }}"
|
|
42
42
|
{% endif %}
|
|
43
43
|
></button>
|
|
44
|
-
{
|
|
44
|
+
{%- if size == 'fullscreen' -%}
|
|
45
45
|
</div>
|
|
46
|
-
{
|
|
47
|
-
</div>
|
|
46
|
+
{%- if _variant == 'eu' or _variant == 'ec' -%}
|
|
47
|
+
</div>{# -#}
|
|
48
48
|
</div>
|
|
49
|
-
{
|
|
49
|
+
{%- endif -%}
|
|
50
50
|
</div>
|
|
51
|
-
{
|
|
51
|
+
{%- endif %}
|
|
52
52
|
{% endblock %}
|
|
53
53
|
|
|
54
|
-
{
|
|
55
|
-
{
|
|
54
|
+
{%- block body %}
|
|
55
|
+
{%- set attributes = create_attribute().addClass(['bcl-language-list', 'bcl-language-list--' ~ _variant]) -%}
|
|
56
56
|
<div
|
|
57
57
|
{{ attributes }}
|
|
58
58
|
>
|
|
59
|
-
{
|
|
59
|
+
{%- if _logo is not empty -%}
|
|
60
60
|
<div class="container">
|
|
61
|
-
{
|
|
61
|
+
{%- if _title is empty -%}
|
|
62
62
|
<div class="text-center">
|
|
63
|
-
{
|
|
64
|
-
<div class="d-inline-flex align-items-center">
|
|
63
|
+
{%- endif -%}
|
|
64
|
+
<div class="d-inline-flex align-items-center">{# -#}
|
|
65
65
|
<img
|
|
66
66
|
{% if _logo.path is not empty %}
|
|
67
67
|
src="{{ _logo.path }}"
|
|
68
68
|
{% endif %}
|
|
69
|
-
{
|
|
69
|
+
{%- if _logo.alt is not empty %}
|
|
70
70
|
alt="{{ _logo.alt }}"
|
|
71
71
|
{% endif %}
|
|
72
|
-
{
|
|
72
|
+
{%- if _logo.class is not empty %}
|
|
73
73
|
class="{{ _logo.class }}"
|
|
74
74
|
{% endif %}
|
|
75
75
|
/>
|
|
76
|
-
{
|
|
76
|
+
{%- if _title is not empty -%}
|
|
77
77
|
<h5 class="h5 ms-4">{{ _title }}</h5>
|
|
78
|
-
{
|
|
78
|
+
{%- endif -%}
|
|
79
79
|
</div>
|
|
80
|
-
{
|
|
80
|
+
{%- if _title is empty -%}
|
|
81
81
|
</div>
|
|
82
|
-
{
|
|
82
|
+
{%- endif -%}
|
|
83
83
|
</div>
|
|
84
|
-
{
|
|
84
|
+
{%- endif %}
|
|
85
85
|
|
|
86
|
-
{
|
|
86
|
+
{%- if _items is not empty or _non_eu_items is not empty -%}
|
|
87
87
|
<div class="main pt-4">
|
|
88
|
-
{
|
|
88
|
+
{%- if not (_variant == 'neutral' and _inside_container) -%}
|
|
89
89
|
<div class="container">
|
|
90
|
-
{
|
|
91
|
-
{
|
|
92
|
-
{
|
|
90
|
+
{%- endif %}
|
|
91
|
+
{%- if _items is not empty and _items is iterable %}
|
|
92
|
+
{%- include '@oe-bcl/bcl-language-list/language-list-grid.html.twig' with {
|
|
93
93
|
items: _items,
|
|
94
94
|
icon_path: _icon_path,
|
|
95
95
|
category: eu_category,
|
|
96
96
|
} only %}
|
|
97
|
-
{
|
|
98
|
-
{
|
|
99
|
-
{
|
|
97
|
+
{%- endif %}
|
|
98
|
+
{%- if _non_eu_items is not empty and _non_eu_items is iterable %}
|
|
99
|
+
{%- include '@oe-bcl/bcl-language-list/language-list-grid.html.twig' with {
|
|
100
100
|
items: _non_eu_items,
|
|
101
101
|
icon_path: _icon_path,
|
|
102
102
|
category: non_eu_category,
|
|
103
103
|
} only %}
|
|
104
|
-
{
|
|
105
|
-
{
|
|
104
|
+
{%- endif %}
|
|
105
|
+
{%- if not (_variant == 'neutral' and _inside_container) -%}
|
|
106
106
|
</div>
|
|
107
|
-
{
|
|
107
|
+
{%- endif -%}
|
|
108
108
|
</div>
|
|
109
|
-
{
|
|
109
|
+
{%- endif -%}
|
|
110
110
|
</div>
|
|
111
|
-
{
|
|
111
|
+
{%- endblock %}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
- close_label (string) (default: '')
|
|
25
25
|
#}
|
|
26
26
|
|
|
27
|
-
{
|
|
27
|
+
{%- set _overlay = overlay ?? false %}
|
|
28
28
|
{% set _inside_container = inside_container ?? false %}
|
|
29
29
|
{% set _variant = variant|default('neutral') %}
|
|
30
30
|
{% set _title = title|default('') %}
|
|
@@ -36,73 +36,72 @@
|
|
|
36
36
|
{% set _non_eu_items = non_eu_items|default([]) %}
|
|
37
37
|
{% set _close_label = close_label|default('') %}
|
|
38
38
|
|
|
39
|
-
{
|
|
40
|
-
{
|
|
39
|
+
{%- if attributes is empty %}
|
|
40
|
+
{%- set attributes = create_attribute() %}
|
|
41
41
|
{% endif %}
|
|
42
42
|
|
|
43
|
-
{
|
|
44
|
-
{
|
|
43
|
+
{%- if _overlay %}
|
|
44
|
+
{%- include '@oe-bcl/bcl-language-list/language-list-modal.html.twig' %}
|
|
45
45
|
{% else %}
|
|
46
|
-
{
|
|
46
|
+
{%- set attributes = attributes.addClass(['bcl-language-list', 'bcl-language-list--' ~ _variant]) %}
|
|
47
47
|
|
|
48
|
-
{
|
|
49
|
-
{
|
|
50
|
-
{
|
|
48
|
+
{%- if not _inside_container %}
|
|
49
|
+
{%- set attributes = attributes.addClass(['pt-5']) %}
|
|
50
|
+
{%- endif -%}
|
|
51
51
|
|
|
52
52
|
<div
|
|
53
53
|
{{ attributes }}
|
|
54
54
|
>
|
|
55
|
-
{
|
|
55
|
+
{%- if _logo is not empty -%}
|
|
56
56
|
<div class="container">
|
|
57
|
-
{
|
|
57
|
+
{%- if _title is empty -%}
|
|
58
58
|
<div class="text-center">
|
|
59
|
-
{
|
|
60
|
-
<div class="d-inline-flex align-items-center">
|
|
59
|
+
{%- endif -%}
|
|
60
|
+
<div class="d-inline-flex align-items-center">{# -#}
|
|
61
61
|
<img
|
|
62
62
|
{% if _logo.path is not empty %}
|
|
63
63
|
src="{{ _logo.path }}"
|
|
64
64
|
{% endif %}
|
|
65
|
-
{
|
|
65
|
+
{%- if _logo.alt is not empty %}
|
|
66
66
|
alt="{{ _logo.alt }}"
|
|
67
67
|
{% endif %}
|
|
68
|
-
{
|
|
68
|
+
{%- if _logo.class is not empty %}
|
|
69
69
|
class="{{ _logo.class }}"
|
|
70
70
|
{% endif %}
|
|
71
71
|
/>
|
|
72
|
-
{
|
|
72
|
+
{%- if _title is not empty -%}
|
|
73
73
|
<h5 class="h5 ms-4">{{ _title }}</h5>
|
|
74
|
-
{
|
|
74
|
+
{%- endif -%}
|
|
75
75
|
</div>
|
|
76
|
-
{
|
|
76
|
+
{%- if _title is empty -%}
|
|
77
77
|
</div>
|
|
78
|
-
{
|
|
78
|
+
{%- endif -%}
|
|
79
79
|
</div>
|
|
80
|
-
{
|
|
80
|
+
{%- endif %}
|
|
81
81
|
|
|
82
|
-
{
|
|
82
|
+
{%- if _items is not empty or _non_eu_items is not empty -%}
|
|
83
83
|
<div class="main pt-4">
|
|
84
|
-
{
|
|
84
|
+
{%- if not (_variant == 'neutral' and _inside_container) -%}
|
|
85
85
|
<div class="container">
|
|
86
|
-
{
|
|
87
|
-
{
|
|
88
|
-
{
|
|
86
|
+
{%- endif %}
|
|
87
|
+
{%- if _items is not empty and _items is iterable %}
|
|
88
|
+
{%- include '@oe-bcl/bcl-language-list/language-list-grid.html.twig' with {
|
|
89
89
|
items: _items,
|
|
90
90
|
icon_path: _icon_path,
|
|
91
91
|
category: eu_category,
|
|
92
92
|
} only %}
|
|
93
|
-
{
|
|
94
|
-
{
|
|
95
|
-
{
|
|
93
|
+
{%- endif %}
|
|
94
|
+
{%- if _non_eu_items is not empty and _non_eu_items is iterable %}
|
|
95
|
+
{%- include '@oe-bcl/bcl-language-list/language-list-grid.html.twig' with {
|
|
96
96
|
items: _non_eu_items,
|
|
97
97
|
icon_path: _icon_path,
|
|
98
98
|
category: non_eu_category,
|
|
99
99
|
} only %}
|
|
100
|
-
{
|
|
101
|
-
{
|
|
100
|
+
{%- endif %}
|
|
101
|
+
{%- if not (_variant == 'neutral' and _inside_container) -%}
|
|
102
102
|
</div>
|
|
103
|
-
{
|
|
103
|
+
{%- endif -%}
|
|
104
104
|
</div>
|
|
105
|
-
{
|
|
105
|
+
{%- endif -%}
|
|
106
106
|
</div>
|
|
107
|
-
{
|
|
108
|
-
|
|
107
|
+
{%- endif -%}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
- languages (link[]) (default: [])
|
|
6
6
|
#}
|
|
7
7
|
|
|
8
|
-
{
|
|
8
|
+
{%- set _id = id|default('collapse-' ~ random(10000)) %}
|
|
9
9
|
{% set _message = message|default({}) %}
|
|
10
10
|
{% set _expandable = expandable|default({}) %}
|
|
11
11
|
{% set _languages = languages|default([]) %}
|
|
12
12
|
|
|
13
|
-
{
|
|
13
|
+
{%- set _expandable_attributes = _expandable.attributes ?: create_attribute() %}
|
|
14
14
|
|
|
15
|
-
{
|
|
15
|
+
{%- set _expandable_attributes = _expandable_attributes
|
|
16
16
|
.setAttribute('data-bs-toggle', 'collapse')
|
|
17
17
|
.setAttribute('autocomplete', 'off')
|
|
18
18
|
.setAttribute('aria-expanded', 'false')
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
.setAttribute('data-bs-target', '#' ~ _id)
|
|
21
21
|
%}
|
|
22
22
|
|
|
23
|
-
{
|
|
23
|
+
{%- include '@oe-bcl/bcl-alert/alert.html.twig' with _message only %}
|
|
24
24
|
|
|
25
|
-
{
|
|
25
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _expandable|merge({
|
|
26
26
|
attributes: _expandable_attributes
|
|
27
|
-
}) only
|
|
27
|
+
}) only -%}
|
|
28
28
|
|
|
29
|
-
<div class="collapse mt-3" id="{{ _id }}">
|
|
29
|
+
<div class="collapse mt-3" id="{{ _id }}">{# -#}
|
|
30
30
|
<div
|
|
31
31
|
class="d-grid"
|
|
32
32
|
style="grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(4rem, 8rem))"
|
|
33
33
|
>
|
|
34
|
-
{
|
|
35
|
-
{
|
|
34
|
+
{%- for language in languages %}
|
|
35
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with language|merge({
|
|
36
36
|
attributes: create_attribute().addClass(
|
|
37
37
|
[ "btn",
|
|
38
38
|
"btn-link",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"text-start"
|
|
42
42
|
])
|
|
43
43
|
}) only %}
|
|
44
|
-
{
|
|
45
|
-
</div>
|
|
44
|
+
{%- endfor -%}
|
|
45
|
+
</div>{# -#}
|
|
46
46
|
</div>
|
|
47
|
-
|
|
47
|
+
{#--#}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- attributes (drupal attrs)
|
|
14
14
|
#}
|
|
15
15
|
|
|
16
|
-
{
|
|
16
|
+
{%- set _label = label|default('') %}
|
|
17
17
|
{% set _path = path|default('#') %}
|
|
18
18
|
{% set _variant = variant|default('') %}
|
|
19
19
|
{% set _id = id|default('') %}
|
|
@@ -23,54 +23,54 @@
|
|
|
23
23
|
{% set _icon_position = icon_position|default('after') %}
|
|
24
24
|
{% set _remove_icon_spacers = remove_icon_spacers ?? false %}
|
|
25
25
|
|
|
26
|
-
{
|
|
26
|
+
{%- set _classes = [] %}
|
|
27
27
|
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
28
|
+
{%- if _icon is not empty %}
|
|
29
|
+
{%- if _label is not empty and not _remove_icon_spacers %}
|
|
30
|
+
{%- if _icon.attributes is empty %}
|
|
31
|
+
{%- set _icon = _icon|merge({
|
|
32
32
|
attributes: create_attribute()
|
|
33
33
|
})
|
|
34
34
|
%}
|
|
35
|
-
{
|
|
36
|
-
{
|
|
37
|
-
{
|
|
35
|
+
{%- endif %}
|
|
36
|
+
{%- if _icon_position == 'before' %}
|
|
37
|
+
{%- set _icon = _icon|merge({
|
|
38
38
|
attributes: _icon.attributes.addClass('me-2-5')
|
|
39
39
|
})
|
|
40
40
|
%}
|
|
41
|
-
{
|
|
42
|
-
{
|
|
41
|
+
{%- else %}
|
|
42
|
+
{%- set _icon = _icon|merge({
|
|
43
43
|
attributes: _icon.attributes.addClass('ms-2-5')
|
|
44
44
|
})
|
|
45
45
|
%}
|
|
46
|
-
{
|
|
47
|
-
{
|
|
46
|
+
{%- endif %}
|
|
47
|
+
{%- endif %}
|
|
48
48
|
{%- set _icon_markup -%}
|
|
49
49
|
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon only -%}
|
|
50
50
|
{%- endset -%}
|
|
51
51
|
{% endif %}
|
|
52
52
|
|
|
53
|
-
{
|
|
54
|
-
{
|
|
53
|
+
{%- if attributes is empty %}
|
|
54
|
+
{%- set attributes = create_attribute() %}
|
|
55
55
|
{% endif %}
|
|
56
56
|
|
|
57
|
-
{
|
|
58
|
-
{
|
|
59
|
-
{
|
|
57
|
+
{%- if _disabled %}
|
|
58
|
+
{%- set _classes = _classes|merge(['disabled']) %}
|
|
59
|
+
{%- set attributes = attributes.setAttribute('aria-disabled', 'true').setAttribute('tabindex', '-1') %}
|
|
60
60
|
{% endif %}
|
|
61
61
|
{% if _variant is not empty %}
|
|
62
|
-
{
|
|
62
|
+
{%- set _classes = _classes|merge(['link-' ~ _variant]) %}
|
|
63
63
|
{% endif %}
|
|
64
64
|
{% if _id is not empty %}
|
|
65
|
-
{
|
|
65
|
+
{%- set attributes = attributes.setAttribute('id', _id) %}
|
|
66
66
|
{% endif %}
|
|
67
67
|
{% if _standalone %}
|
|
68
|
-
{
|
|
68
|
+
{%- set _classes = _classes|merge(['standalone']) %}
|
|
69
69
|
{% endif %}
|
|
70
70
|
{% if _classes is not empty %}
|
|
71
|
-
{
|
|
71
|
+
{%- set attributes = attributes.addClass(_classes) %}
|
|
72
72
|
{% endif %}
|
|
73
|
-
{% set attributes = attributes.setAttribute('href', _path)
|
|
73
|
+
{% set attributes = attributes.setAttribute('href', _path) -%}
|
|
74
74
|
|
|
75
75
|
<a
|
|
76
76
|
{{ attributes }}
|
|
@@ -83,4 +83,4 @@
|
|
|
83
83
|
{{ _icon_markup }}
|
|
84
84
|
{%- endif -%}
|
|
85
85
|
</a>
|
|
86
|
-
|
|
86
|
+
{#--#}
|
|
@@ -11,63 +11,62 @@
|
|
|
11
11
|
- attributes (drupal attrs)
|
|
12
12
|
#}
|
|
13
13
|
|
|
14
|
-
{
|
|
14
|
+
{%- set _title = title|default('') %}
|
|
15
15
|
{% set _title_tag = title_tag|default('h2') %}
|
|
16
16
|
{% set _title_link = title_link|default({}) %}
|
|
17
17
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
18
18
|
{% set _background = background|default('gray') %}
|
|
19
19
|
{% set _variant = variant|default('vertical') %}
|
|
20
|
-
{% set _links = links|default([])%}
|
|
20
|
+
{% set _links = links|default([]) %}
|
|
21
21
|
|
|
22
|
-
{
|
|
22
|
+
{%- set _classes = ['bcl-links-block'] %}
|
|
23
23
|
|
|
24
|
-
{
|
|
24
|
+
{%- set _title_classes = ['pb-3', 'mb-3', 'border-bottom'] %}
|
|
25
25
|
|
|
26
|
-
{
|
|
27
|
-
{
|
|
26
|
+
{%- if attributes is empty %}
|
|
27
|
+
{%- set attributes = create_attribute() %}
|
|
28
28
|
{% endif %}
|
|
29
29
|
|
|
30
|
-
{
|
|
31
|
-
{
|
|
30
|
+
{%- if _background == 'gray' %}
|
|
31
|
+
{%- set attributes = attributes.addClass(['bg-light', 'px-4', 'py-3', 'rounded-2']) %}
|
|
32
32
|
{% endif %}
|
|
33
33
|
|
|
34
|
-
{
|
|
34
|
+
{%- set attributes = attributes.addClass(_classes) %}
|
|
35
35
|
|
|
36
|
-
{
|
|
36
|
+
{%- if _links is not empty and _links is iterable -%}
|
|
37
37
|
<div
|
|
38
38
|
{{ attributes }}
|
|
39
39
|
>
|
|
40
|
-
{
|
|
41
|
-
{
|
|
40
|
+
{%- if _title is not empty %}
|
|
41
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
42
42
|
title: _title,
|
|
43
43
|
title_tag: _title_tag,
|
|
44
44
|
title_link: _title_link,
|
|
45
45
|
attributes: _title_attributes.addClass(_title_classes),
|
|
46
46
|
} only %}
|
|
47
|
-
{
|
|
47
|
+
{%- endif -%}
|
|
48
48
|
<ul class="ps-0 mb-0">
|
|
49
|
-
{
|
|
50
|
-
{
|
|
51
|
-
{
|
|
49
|
+
{%- for _link in _links %}
|
|
50
|
+
{%- if _link.attributes is empty %}
|
|
51
|
+
{%- set _link = _link|merge({
|
|
52
52
|
attributes: create_attribute()
|
|
53
53
|
}) %}
|
|
54
|
-
{
|
|
55
|
-
{
|
|
54
|
+
{%- endif %}
|
|
55
|
+
{%- set _link = _link|merge({
|
|
56
56
|
clean_class: true,
|
|
57
57
|
attributes: _link.attributes.addClass(['mb-3', 'd-inline-block', 'standalone'])
|
|
58
58
|
}) %}
|
|
59
|
-
{
|
|
60
|
-
{
|
|
61
|
-
{
|
|
62
|
-
{
|
|
63
|
-
{
|
|
64
|
-
{
|
|
65
|
-
{
|
|
59
|
+
{%- set _list_item_classes = 'list-unstyled' %}
|
|
60
|
+
{%- if _variant == 'horizontal' %}
|
|
61
|
+
{%- set _list_item_classes = _list_item_classes ~ ' d-inline' %}
|
|
62
|
+
{%- endif %}
|
|
63
|
+
{%- if loop.last == false %}
|
|
64
|
+
{%- set _list_item_classes = _list_item_classes ~ ' me-4-5' %}
|
|
65
|
+
{%- endif -%}
|
|
66
66
|
<li class="{{ _list_item_classes }}">
|
|
67
|
-
{
|
|
67
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _link only -%}
|
|
68
68
|
</li>
|
|
69
|
-
{
|
|
70
|
-
</ul>
|
|
69
|
+
{%- endfor -%}
|
|
70
|
+
</ul>{# -#}
|
|
71
71
|
</div>
|
|
72
|
-
{
|
|
73
|
-
|
|
72
|
+
{%- endif -%}
|
|
@@ -25,58 +25,58 @@
|
|
|
25
25
|
- attributes (drupal attrs)
|
|
26
26
|
#}
|
|
27
27
|
|
|
28
|
-
{
|
|
28
|
+
{%- set _flush = flush ?? false %}
|
|
29
29
|
{% set _horizontal = horizontal|default('') %}
|
|
30
30
|
{% set _id = id|default('') %}
|
|
31
31
|
{% set _type = type|default('unordered') %}
|
|
32
32
|
{% set _items = items|default([]) %}
|
|
33
33
|
|
|
34
|
-
{
|
|
34
|
+
{%- set _classes = ['list-group'] %}
|
|
35
35
|
|
|
36
|
-
{
|
|
37
|
-
{
|
|
36
|
+
{%- if _flush %}
|
|
37
|
+
{%- set _classes = _classes|merge(['list-group-flush']) %}
|
|
38
38
|
{% endif %}
|
|
39
39
|
{% if _type == 'ordered' %}
|
|
40
|
-
{
|
|
40
|
+
{%- set _classes = _classes|merge(['list-group-numbered']) %}
|
|
41
41
|
{% endif %}
|
|
42
42
|
{% if _horizontal is not empty %}
|
|
43
|
-
{
|
|
43
|
+
{%- set _classes = _classes|merge(['list-group-' ~ _horizontal]) %}
|
|
44
44
|
{% endif %}
|
|
45
45
|
|
|
46
|
-
{
|
|
47
|
-
{
|
|
46
|
+
{%- if attributes is empty %}
|
|
47
|
+
{%- set attributes = create_attribute() %}
|
|
48
48
|
{% endif %}
|
|
49
49
|
|
|
50
|
-
{
|
|
51
|
-
{
|
|
50
|
+
{%- if _id is not empty %}
|
|
51
|
+
{%- set attributes = attributes.setAttribute('id', _id) %}
|
|
52
52
|
{% endif %}
|
|
53
53
|
{% set attributes = attributes.addClass(_classes) %}
|
|
54
54
|
|
|
55
|
-
{
|
|
55
|
+
{%- if _type == 'unordered' -%}
|
|
56
56
|
<ul
|
|
57
57
|
{{ attributes }}
|
|
58
58
|
>
|
|
59
|
-
{
|
|
60
|
-
{% if _type == 'ordered'
|
|
59
|
+
{%- endif %}
|
|
60
|
+
{% if _type == 'ordered' -%}
|
|
61
61
|
<ol
|
|
62
62
|
{{ attributes }}
|
|
63
63
|
>
|
|
64
|
-
{
|
|
65
|
-
{% if _type == 'actionable'
|
|
64
|
+
{%- endif %}
|
|
65
|
+
{% if _type == 'actionable' -%}
|
|
66
66
|
<div
|
|
67
67
|
{{ attributes }}
|
|
68
68
|
>
|
|
69
|
-
{
|
|
69
|
+
{%- endif %}
|
|
70
70
|
{% if _items is not empty and _items is iterable %}
|
|
71
|
-
{
|
|
72
|
-
{
|
|
73
|
-
{
|
|
74
|
-
{
|
|
75
|
-
{
|
|
76
|
-
{
|
|
77
|
-
{
|
|
78
|
-
{
|
|
79
|
-
{
|
|
71
|
+
{%- for _item in _items %}
|
|
72
|
+
{%- if _type == 'unordered' or _type == 'ordered' %}
|
|
73
|
+
{%- set _item_class = 'list-group-item' %}
|
|
74
|
+
{%- if _item.variant is not empty %}
|
|
75
|
+
{%- set _item_class = _item_class ~ ' list-group-item-' ~ _item.variant %}
|
|
76
|
+
{%- endif %}
|
|
77
|
+
{%- if _item.extra_classes is not empty %}
|
|
78
|
+
{%- set _item_class = _item_class ~ ' ' ~ _item.extra_classes %}
|
|
79
|
+
{%- endif -%}
|
|
80
80
|
<li class="{{ _item_class }}">
|
|
81
81
|
{%- if _item.input is defined -%}
|
|
82
82
|
{% include '@oe-bcl/bcl-form-input/form-input.html.twig' with _item only %}
|
|
@@ -87,31 +87,30 @@
|
|
|
87
87
|
{%- endif -%}
|
|
88
88
|
{%- endif -%}
|
|
89
89
|
</li>
|
|
90
|
-
{
|
|
91
|
-
{
|
|
92
|
-
{
|
|
90
|
+
{%- else %}
|
|
91
|
+
{%- if _item.attributes is empty %}
|
|
92
|
+
{%- set _item = _item|merge({
|
|
93
93
|
attributes: create_attribute()
|
|
94
94
|
}) %}
|
|
95
|
-
{
|
|
96
|
-
{
|
|
95
|
+
{%- endif %}
|
|
96
|
+
{%- set _item = _item|merge({
|
|
97
97
|
clean_class: true,
|
|
98
98
|
attributes: _item.attributes.addClass(['list-group-item', 'list-group-item-action'])
|
|
99
99
|
}) %}
|
|
100
|
-
{
|
|
101
|
-
{
|
|
102
|
-
{
|
|
103
|
-
{
|
|
104
|
-
{
|
|
105
|
-
{
|
|
106
|
-
{
|
|
100
|
+
{%- if _item.button is defined %}
|
|
101
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _item only %}
|
|
102
|
+
{%- else %}
|
|
103
|
+
{%- include '@oe-bcl/bcl-link/link.html.twig' with _item only %}
|
|
104
|
+
{%- endif %}
|
|
105
|
+
{%- endif %}
|
|
106
|
+
{%- endfor %}
|
|
107
107
|
{% endif %}
|
|
108
|
-
{% if _type == 'unordered'
|
|
108
|
+
{% if _type == 'unordered' -%}
|
|
109
109
|
</ul>
|
|
110
|
-
{
|
|
111
|
-
{% if _type == 'ordered'
|
|
110
|
+
{%- endif %}
|
|
111
|
+
{% if _type == 'ordered' -%}
|
|
112
112
|
</ol>
|
|
113
|
-
{
|
|
114
|
-
{% if _type == 'actionable'
|
|
113
|
+
{%- endif %}
|
|
114
|
+
{% if _type == 'actionable' -%}
|
|
115
115
|
</div>
|
|
116
|
-
{
|
|
117
|
-
|
|
116
|
+
{%- endif -%}
|