@openeuropa/bcl-twig-templates 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +65 -65
- package/templates/bcl-accordion/accordion.html.twig +2 -2
- package/templates/bcl-alert/alert.html.twig +2 -2
- package/templates/bcl-badge/badge.html.twig +2 -2
- package/templates/bcl-banner/banner.html.twig +2 -2
- package/templates/bcl-base-templates/content-type.html.twig +2 -2
- package/templates/bcl-blockquote/blockquote.html.twig +2 -2
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +2 -2
- package/templates/bcl-button/button.html.twig +2 -2
- package/templates/bcl-button-group/button-group.html.twig +2 -2
- package/templates/bcl-card/card.html.twig +2 -2
- package/templates/bcl-card-layout/card-layout.html.twig +2 -2
- package/templates/bcl-carousel/carousel.html.twig +2 -2
- package/templates/bcl-content-banner/content-banner.html.twig +2 -2
- package/templates/bcl-date-block/date-block.html.twig +2 -2
- package/templates/bcl-description-list/description-list.html.twig +87 -85
- package/templates/bcl-dropdown/dropdown.html.twig +2 -2
- package/templates/bcl-fact-figures/fact-figures.html.twig +2 -2
- package/templates/bcl-featured-media/featured-media.html.twig +2 -2
- package/templates/bcl-file/file.html.twig +2 -2
- package/templates/bcl-footer/footer.html.twig +2 -2
- package/templates/bcl-form/form.html.twig +2 -2
- package/templates/bcl-form-input/form-input.html.twig +2 -2
- package/templates/bcl-gallery/gallery.html.twig +2 -2
- package/templates/bcl-header/header.html.twig +2 -2
- package/templates/bcl-heading/heading.html.twig +2 -2
- package/templates/bcl-icon/icon.html.twig +2 -2
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +2 -2
- package/templates/bcl-language-list/language-list-grid.html.twig +2 -2
- package/templates/bcl-language-list/language-list.html.twig +2 -2
- package/templates/bcl-language-switcher/language-switcher.html.twig +2 -2
- package/templates/bcl-link/link.html.twig +2 -2
- package/templates/bcl-links-block/links-block.html.twig +2 -2
- package/templates/bcl-list-group/list-group.html.twig +2 -2
- package/templates/bcl-listing/listing.html.twig +2 -2
- package/templates/bcl-modal/modal.html.twig +2 -2
- package/templates/bcl-navbar/navbar.html.twig +2 -2
- package/templates/bcl-navigation/navigation.html.twig +4 -4
- package/templates/bcl-offcanvas/offcanvas.html.twig +2 -2
- package/templates/bcl-pagination/pagination.html.twig +2 -2
- package/templates/bcl-placeholder/placeholder.html.twig +2 -2
- package/templates/bcl-progress/progress.html.twig +2 -2
- package/templates/bcl-project/project-lists.html.twig +2 -2
- package/templates/bcl-project-status/project-contributions.html.twig +2 -2
- package/templates/bcl-project-status/project-status.html.twig +2 -2
- package/templates/bcl-recent-activities/recent-activities.html.twig +2 -2
- package/templates/bcl-search-form/search-form.html.twig +2 -2
- package/templates/bcl-select/select.html.twig +2 -2
- package/templates/bcl-spinner/spinner.html.twig +2 -2
- package/templates/bcl-subscription-block/subscription-block.html.twig +2 -2
- package/templates/bcl-table/table.html.twig +2 -2
- package/templates/bcl-textarea/textarea.html.twig +2 -2
- package/templates/bcl-timeline/timeline.html.twig +2 -2
- package/templates/bcl-toast/toasts.html.twig +2 -2
- package/templates/bcl-user/user-compact.html.twig +22 -14
package/package.json
CHANGED
|
@@ -2,75 +2,75 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-twig-templates",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.27.0",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@openeuropa/bcl-accordion": "^0.
|
|
12
|
-
"@openeuropa/bcl-alert": "^0.
|
|
13
|
-
"@openeuropa/bcl-badge": "^0.
|
|
14
|
-
"@openeuropa/bcl-banner": "^0.
|
|
15
|
-
"@openeuropa/bcl-base-templates": "^0.
|
|
16
|
-
"@openeuropa/bcl-blockquote": "^0.
|
|
17
|
-
"@openeuropa/bcl-breadcrumb": "^0.
|
|
18
|
-
"@openeuropa/bcl-button": "^0.
|
|
19
|
-
"@openeuropa/bcl-button-group": "^0.
|
|
20
|
-
"@openeuropa/bcl-card": "^0.
|
|
21
|
-
"@openeuropa/bcl-card-layout": "^0.
|
|
22
|
-
"@openeuropa/bcl-carousel": "^0.
|
|
23
|
-
"@openeuropa/bcl-contact-form": "^0.
|
|
24
|
-
"@openeuropa/bcl-content-banner": "^0.
|
|
25
|
-
"@openeuropa/bcl-date-block": "^0.
|
|
26
|
-
"@openeuropa/bcl-description-list": "^0.
|
|
27
|
-
"@openeuropa/bcl-dropdown": "^0.
|
|
28
|
-
"@openeuropa/bcl-event": "^0.
|
|
29
|
-
"@openeuropa/bcl-fact-figures": "^0.
|
|
30
|
-
"@openeuropa/bcl-featured-media": "^0.
|
|
31
|
-
"@openeuropa/bcl-file": "^0.
|
|
32
|
-
"@openeuropa/bcl-footer": "^0.
|
|
33
|
-
"@openeuropa/bcl-form": "^0.
|
|
34
|
-
"@openeuropa/bcl-form-input": "^0.
|
|
35
|
-
"@openeuropa/bcl-gallery": "^0.
|
|
36
|
-
"@openeuropa/bcl-glossary": "^0.
|
|
37
|
-
"@openeuropa/bcl-group": "^0.
|
|
38
|
-
"@openeuropa/bcl-header": "^0.
|
|
39
|
-
"@openeuropa/bcl-heading": "^0.
|
|
40
|
-
"@openeuropa/bcl-icon": "^0.
|
|
41
|
-
"@openeuropa/bcl-inpage-navigation": "^0.
|
|
42
|
-
"@openeuropa/bcl-landing-page": "^0.
|
|
43
|
-
"@openeuropa/bcl-language-list": "^0.
|
|
44
|
-
"@openeuropa/bcl-language-switcher": "^0.
|
|
45
|
-
"@openeuropa/bcl-link": "^0.
|
|
46
|
-
"@openeuropa/bcl-links-block": "^0.
|
|
47
|
-
"@openeuropa/bcl-list-group": "^0.
|
|
48
|
-
"@openeuropa/bcl-listing": "^0.
|
|
49
|
-
"@openeuropa/bcl-modal": "^0.
|
|
50
|
-
"@openeuropa/bcl-multilingual": "^0.
|
|
51
|
-
"@openeuropa/bcl-navbar": "^0.
|
|
52
|
-
"@openeuropa/bcl-navigation": "^0.
|
|
53
|
-
"@openeuropa/bcl-news": "^0.
|
|
54
|
-
"@openeuropa/bcl-offcanvas": "^0.
|
|
55
|
-
"@openeuropa/bcl-page": "^0.
|
|
56
|
-
"@openeuropa/bcl-pagination": "^0.
|
|
57
|
-
"@openeuropa/bcl-person": "^0.
|
|
58
|
-
"@openeuropa/bcl-placeholder": "^0.
|
|
59
|
-
"@openeuropa/bcl-progress": "^0.
|
|
60
|
-
"@openeuropa/bcl-project": "^0.
|
|
61
|
-
"@openeuropa/bcl-project-status": "^0.
|
|
62
|
-
"@openeuropa/bcl-recent-activities": "^0.
|
|
63
|
-
"@openeuropa/bcl-search": "^0.
|
|
64
|
-
"@openeuropa/bcl-search-form": "^0.
|
|
65
|
-
"@openeuropa/bcl-select": "^0.
|
|
66
|
-
"@openeuropa/bcl-spinner": "^0.
|
|
67
|
-
"@openeuropa/bcl-subscription": "^0.
|
|
68
|
-
"@openeuropa/bcl-subscription-block": "^0.
|
|
69
|
-
"@openeuropa/bcl-table": "^0.
|
|
70
|
-
"@openeuropa/bcl-textarea": "^0.
|
|
71
|
-
"@openeuropa/bcl-timeline": "^0.
|
|
72
|
-
"@openeuropa/bcl-toast": "^0.
|
|
73
|
-
"@openeuropa/bcl-user": "^0.
|
|
11
|
+
"@openeuropa/bcl-accordion": "^0.27.0",
|
|
12
|
+
"@openeuropa/bcl-alert": "^0.27.0",
|
|
13
|
+
"@openeuropa/bcl-badge": "^0.27.0",
|
|
14
|
+
"@openeuropa/bcl-banner": "^0.27.0",
|
|
15
|
+
"@openeuropa/bcl-base-templates": "^0.27.0",
|
|
16
|
+
"@openeuropa/bcl-blockquote": "^0.27.0",
|
|
17
|
+
"@openeuropa/bcl-breadcrumb": "^0.27.0",
|
|
18
|
+
"@openeuropa/bcl-button": "^0.27.0",
|
|
19
|
+
"@openeuropa/bcl-button-group": "^0.27.0",
|
|
20
|
+
"@openeuropa/bcl-card": "^0.27.0",
|
|
21
|
+
"@openeuropa/bcl-card-layout": "^0.27.0",
|
|
22
|
+
"@openeuropa/bcl-carousel": "^0.27.0",
|
|
23
|
+
"@openeuropa/bcl-contact-form": "^0.27.0",
|
|
24
|
+
"@openeuropa/bcl-content-banner": "^0.27.0",
|
|
25
|
+
"@openeuropa/bcl-date-block": "^0.27.0",
|
|
26
|
+
"@openeuropa/bcl-description-list": "^0.27.0",
|
|
27
|
+
"@openeuropa/bcl-dropdown": "^0.27.0",
|
|
28
|
+
"@openeuropa/bcl-event": "^0.27.0",
|
|
29
|
+
"@openeuropa/bcl-fact-figures": "^0.27.0",
|
|
30
|
+
"@openeuropa/bcl-featured-media": "^0.27.0",
|
|
31
|
+
"@openeuropa/bcl-file": "^0.27.0",
|
|
32
|
+
"@openeuropa/bcl-footer": "^0.27.0",
|
|
33
|
+
"@openeuropa/bcl-form": "^0.27.0",
|
|
34
|
+
"@openeuropa/bcl-form-input": "^0.27.0",
|
|
35
|
+
"@openeuropa/bcl-gallery": "^0.27.0",
|
|
36
|
+
"@openeuropa/bcl-glossary": "^0.27.0",
|
|
37
|
+
"@openeuropa/bcl-group": "^0.27.0",
|
|
38
|
+
"@openeuropa/bcl-header": "^0.27.0",
|
|
39
|
+
"@openeuropa/bcl-heading": "^0.27.0",
|
|
40
|
+
"@openeuropa/bcl-icon": "^0.27.0",
|
|
41
|
+
"@openeuropa/bcl-inpage-navigation": "^0.27.0",
|
|
42
|
+
"@openeuropa/bcl-landing-page": "^0.27.0",
|
|
43
|
+
"@openeuropa/bcl-language-list": "^0.27.0",
|
|
44
|
+
"@openeuropa/bcl-language-switcher": "^0.27.0",
|
|
45
|
+
"@openeuropa/bcl-link": "^0.27.0",
|
|
46
|
+
"@openeuropa/bcl-links-block": "^0.27.0",
|
|
47
|
+
"@openeuropa/bcl-list-group": "^0.27.0",
|
|
48
|
+
"@openeuropa/bcl-listing": "^0.27.0",
|
|
49
|
+
"@openeuropa/bcl-modal": "^0.27.0",
|
|
50
|
+
"@openeuropa/bcl-multilingual": "^0.27.0",
|
|
51
|
+
"@openeuropa/bcl-navbar": "^0.27.0",
|
|
52
|
+
"@openeuropa/bcl-navigation": "^0.27.0",
|
|
53
|
+
"@openeuropa/bcl-news": "^0.27.0",
|
|
54
|
+
"@openeuropa/bcl-offcanvas": "^0.27.0",
|
|
55
|
+
"@openeuropa/bcl-page": "^0.27.0",
|
|
56
|
+
"@openeuropa/bcl-pagination": "^0.27.0",
|
|
57
|
+
"@openeuropa/bcl-person": "^0.27.0",
|
|
58
|
+
"@openeuropa/bcl-placeholder": "^0.27.0",
|
|
59
|
+
"@openeuropa/bcl-progress": "^0.27.0",
|
|
60
|
+
"@openeuropa/bcl-project": "^0.27.0",
|
|
61
|
+
"@openeuropa/bcl-project-status": "^0.27.0",
|
|
62
|
+
"@openeuropa/bcl-recent-activities": "^0.27.0",
|
|
63
|
+
"@openeuropa/bcl-search": "^0.27.0",
|
|
64
|
+
"@openeuropa/bcl-search-form": "^0.27.0",
|
|
65
|
+
"@openeuropa/bcl-select": "^0.27.0",
|
|
66
|
+
"@openeuropa/bcl-spinner": "^0.27.0",
|
|
67
|
+
"@openeuropa/bcl-subscription": "^0.27.0",
|
|
68
|
+
"@openeuropa/bcl-subscription-block": "^0.27.0",
|
|
69
|
+
"@openeuropa/bcl-table": "^0.27.0",
|
|
70
|
+
"@openeuropa/bcl-textarea": "^0.27.0",
|
|
71
|
+
"@openeuropa/bcl-timeline": "^0.27.0",
|
|
72
|
+
"@openeuropa/bcl-toast": "^0.27.0",
|
|
73
|
+
"@openeuropa/bcl-user": "^0.27.0",
|
|
74
74
|
"copyfiles": "2.4.1",
|
|
75
75
|
"rimraf": "3.0.2"
|
|
76
76
|
},
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"design-system",
|
|
94
94
|
"twig"
|
|
95
95
|
],
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "1ab38cd93a2d4c52119fcc6a2f7cc56ceaa95dbf"
|
|
97
97
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% spaceless %}
|
|
1
|
+
{% apply spaceless %}
|
|
2
2
|
|
|
3
3
|
{#
|
|
4
4
|
Parameters:
|
|
@@ -71,115 +71,117 @@
|
|
|
71
71
|
<div
|
|
72
72
|
{{ attributes }}
|
|
73
73
|
>
|
|
74
|
+
<dl>
|
|
74
75
|
{% for _item in _items %}
|
|
75
76
|
{% if loop.last and _variant != 'horizontal' %}
|
|
76
77
|
{% set _item_classes = '' %}
|
|
77
78
|
{% endif %}
|
|
78
79
|
{% if _item.term is not empty %}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
80
|
+
<div
|
|
81
|
+
{% if _item_classes is not empty %}
|
|
82
|
+
class="{{ _item_classes }}"
|
|
83
|
+
{% endif %}
|
|
84
|
+
>
|
|
85
|
+
{% if _item.term is iterable %}
|
|
86
|
+
<dt>
|
|
87
|
+
{% for _term in _item.term %}
|
|
88
|
+
{%- if _item.term|length > 1 -%}
|
|
89
|
+
<div
|
|
90
|
+
{% if _variant == 'horizontal' and _term.icon is not empty %}
|
|
91
|
+
class="d-flex"
|
|
92
|
+
{% endif %}
|
|
93
|
+
>
|
|
94
|
+
{%- endif -%}
|
|
95
|
+
{%- if _term.icon is not empty -%}
|
|
96
|
+
{% set _icon_classes = ["me-2"] %}
|
|
97
|
+
{% if _variant == 'horizontal' %}
|
|
98
|
+
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
99
|
+
{% endif %}
|
|
100
|
+
{% include '@oe-bcl/bcl-icon/icon.html.twig' with _term.icon|merge({
|
|
101
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
102
|
+
}) only %}
|
|
103
|
+
<p class="mb-0 d-inline-block">{{ _term.label }}</p>
|
|
104
|
+
{%- elseif _term.color is not empty -%}
|
|
105
|
+
<div class="d-flex align-items-center">
|
|
106
|
+
<span class="p-2 me-2 d-inline-block rounded-1 {{ _term.color }}"></span>{{- _term.label -}}
|
|
107
|
+
</div>
|
|
108
|
+
{%- else -%}
|
|
109
|
+
{{- _term.label -}}
|
|
110
|
+
{%- endif -%}
|
|
111
|
+
{% if _item.term|length > 1 %}
|
|
112
|
+
</div>
|
|
113
|
+
{% endif %}
|
|
114
|
+
{% endfor %}
|
|
115
|
+
</dt>
|
|
116
|
+
{% else %}
|
|
117
|
+
<dt
|
|
118
|
+
{% if _variant == 'horizontal' and _item.term.icon is not empty %}
|
|
119
|
+
class="d-flex"
|
|
120
|
+
{% endif %}
|
|
92
121
|
>
|
|
93
|
-
{%-
|
|
94
|
-
{%- if _term.icon is not empty -%}
|
|
122
|
+
{%- if _item.term.icon is not empty -%}
|
|
95
123
|
{% set _icon_classes = ["me-2"] %}
|
|
96
124
|
{% if _variant == 'horizontal' %}
|
|
97
125
|
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
98
126
|
{% endif %}
|
|
99
|
-
{
|
|
127
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
|
|
100
128
|
attributes: create_attribute().addClass(_icon_classes)
|
|
101
|
-
}) only
|
|
102
|
-
<p class="mb-0 d-inline-block">{{
|
|
103
|
-
{%- elseif
|
|
129
|
+
}) only -%}
|
|
130
|
+
<p class="mb-0 d-inline-block">{{ _item.term.label }}</p>
|
|
131
|
+
{%- elseif _item.term.color is not empty -%}
|
|
104
132
|
<div class="d-flex align-items-center">
|
|
105
|
-
<span class="p-2 me-2 d-inline-block rounded-1 {{
|
|
133
|
+
<span class="p-2 me-2 d-inline-block rounded-1 {{ _item.term.color }}"></span>{{- _item.term.label -}}
|
|
106
134
|
</div>
|
|
107
135
|
{%- else -%}
|
|
108
|
-
{{-
|
|
136
|
+
{{- _item.term.label -}}
|
|
109
137
|
{%- endif -%}
|
|
110
|
-
|
|
111
|
-
</div>
|
|
138
|
+
</dt>
|
|
112
139
|
{% endif %}
|
|
113
|
-
{% endfor %}
|
|
114
|
-
</dt>
|
|
115
|
-
{% else %}
|
|
116
|
-
<dt
|
|
117
|
-
{% if _variant == 'horizontal' and _item.term.icon is not empty %}
|
|
118
|
-
class="d-flex"
|
|
119
|
-
{% endif %}
|
|
120
|
-
>
|
|
121
|
-
{%- if _item.term.icon is not empty -%}
|
|
122
|
-
{% set _icon_classes = ["me-2"] %}
|
|
123
|
-
{% if _variant == 'horizontal' %}
|
|
124
|
-
{% set _icon_classes = _icon_classes|merge(["mt-1"]) %}
|
|
125
|
-
{% endif %}
|
|
126
|
-
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _item.term.icon|merge({
|
|
127
|
-
attributes: create_attribute().addClass(_icon_classes)
|
|
128
|
-
}) only -%}
|
|
129
|
-
<p class="mb-0 d-inline-block">{{ _item.term.label }}</p>
|
|
130
|
-
{%- elseif _item.term.color is not empty -%}
|
|
131
|
-
<div class="d-flex align-items-center">
|
|
132
|
-
<span class="p-2 me-2 d-inline-block rounded-1 {{ _item.term.color }}"></span>{{- _item.term.label -}}
|
|
133
|
-
</div>
|
|
134
|
-
{%- else -%}
|
|
135
|
-
{{- _item.term.label -}}
|
|
136
|
-
{%- endif -%}
|
|
137
|
-
</dt>
|
|
138
140
|
{% endif %}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
{% if _item.definition is not empty %}
|
|
142
|
+
{% if _item.definition is iterable %}
|
|
143
|
+
{% if _variant == 'horizontal' %}
|
|
144
|
+
<dd
|
|
145
|
+
{% if _bordered %}
|
|
146
|
+
class="mb-0"
|
|
147
|
+
{% endif %}
|
|
148
|
+
>
|
|
149
|
+
{% endif %}
|
|
150
|
+
{% for _definition in _item.definition %}
|
|
151
|
+
{% if _variant == 'horizontal' %}<div>{% else %}<dd>{% endif %}
|
|
152
|
+
{%- if _definition.button is defined -%}
|
|
153
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _definition.button only %}
|
|
154
|
+
{%- elseif _definition.link is defined %}
|
|
155
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with _definition.link only -%}
|
|
156
|
+
{%- else -%}
|
|
157
|
+
{%- if _definition.icon is defined -%}
|
|
158
|
+
{%- set _icon_classes = ["me-2"] -%}
|
|
159
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _definition.icon|merge({
|
|
160
|
+
attributes: create_attribute().addClass(_icon_classes)
|
|
161
|
+
}) only -%}
|
|
162
|
+
<p class="mb-0 d-inline-block">{{ _definition.label }}</p>
|
|
163
|
+
{%- else -%}
|
|
164
|
+
{{- _definition.label -}}
|
|
165
|
+
{%- endif -%}
|
|
166
|
+
{%- endif -%}
|
|
167
|
+
{% if _variant == 'horizontal' %}</div>{% else %}</dd>{% endif %}
|
|
168
|
+
{% endfor %}
|
|
169
|
+
{% if _variant == 'horizontal' %}
|
|
170
|
+
</dd>
|
|
171
|
+
{% endif %}
|
|
172
|
+
{% else %}
|
|
143
173
|
<dd
|
|
144
174
|
{% if _bordered %}
|
|
145
175
|
class="mb-0"
|
|
146
176
|
{% endif %}
|
|
147
177
|
>
|
|
148
|
-
|
|
149
|
-
{% for _definition in _item.definition %}
|
|
150
|
-
{% if _variant == 'horizontal' %}<div>{% else %}<dd>{% endif %}
|
|
151
|
-
{%- if _definition.button is defined -%}
|
|
152
|
-
{% include '@oe-bcl/bcl-button/button.html.twig' with _definition.button only %}
|
|
153
|
-
{%- elseif _definition.link is defined %}
|
|
154
|
-
{% include '@oe-bcl/bcl-link/link.html.twig' with _definition.link only -%}
|
|
155
|
-
{%- else -%}
|
|
156
|
-
{%- if _definition.icon is defined -%}
|
|
157
|
-
{%- set _icon_classes = ["me-2"] -%}
|
|
158
|
-
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _definition.icon|merge({
|
|
159
|
-
attributes: create_attribute().addClass(_icon_classes)
|
|
160
|
-
}) only -%}
|
|
161
|
-
<p class="mb-0 d-inline-block">{{ _definition.label }}</p>
|
|
162
|
-
{%- else -%}
|
|
163
|
-
{{- _definition.label -}}
|
|
164
|
-
{%- endif -%}
|
|
165
|
-
{%- endif -%}
|
|
166
|
-
{% if _variant == 'horizontal' %}</div>{% else %}</dd>{% endif %}
|
|
167
|
-
{% endfor %}
|
|
168
|
-
{% if _variant == 'horizontal' %}
|
|
178
|
+
{%- block definition _item.definition -%}
|
|
169
179
|
</dd>
|
|
170
180
|
{% endif %}
|
|
171
|
-
|
|
172
|
-
<dd
|
|
173
|
-
{% if _bordered %}
|
|
174
|
-
class="mb-0"
|
|
175
|
-
{% endif %}
|
|
176
|
-
>
|
|
177
|
-
{%- block definition _item.definition -%}
|
|
178
|
-
</dd>
|
|
179
|
-
{% endif %}
|
|
180
|
-
</dl>
|
|
181
|
+
</div>
|
|
181
182
|
{% endif %}
|
|
182
183
|
{% endfor %}
|
|
184
|
+
</dl>
|
|
183
185
|
</div>
|
|
184
186
|
|
|
185
|
-
{%
|
|
187
|
+
{% endapply %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% spaceless %}
|
|
1
|
+
{% apply spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- variant (string) (default: 'neutral')
|
|
@@ -110,4 +110,4 @@
|
|
|
110
110
|
{% include '@oe-bcl/bcl-language-list/language-list.html.twig' with _language_modal only %}
|
|
111
111
|
{% endif %}
|
|
112
112
|
|
|
113
|
-
{%
|
|
113
|
+
{% endapply %}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{% import _self as navigation %}
|
|
2
|
-
{% spaceless %}
|
|
2
|
+
{% apply spaceless %}
|
|
3
3
|
|
|
4
4
|
{# Parameters:
|
|
5
5
|
- id (string) (default: '')
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
{# Define main macro #}
|
|
29
29
|
{% macro render(items, pills, tabs, tabs_content, vertical, full_width, alignment, id, nav, navbar, attributes) %}
|
|
30
|
-
{% spaceless %}
|
|
30
|
+
{% apply spaceless %}
|
|
31
31
|
{% import _self as navigation %}
|
|
32
32
|
|
|
33
33
|
{% set _id = id|default('') %}
|
|
@@ -171,9 +171,9 @@
|
|
|
171
171
|
{%- endblock -%}
|
|
172
172
|
</div>
|
|
173
173
|
{% endif %}
|
|
174
|
-
{%
|
|
174
|
+
{% endapply %}
|
|
175
175
|
{% endmacro %}
|
|
176
176
|
|
|
177
177
|
{{ navigation.render(items, pills, tabs, tabs_content, vertical, full_width, alignment, id, nav, navbar, attributes) }}
|
|
178
178
|
|
|
179
|
-
{%
|
|
179
|
+
{% endapply %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% spaceless %}
|
|
1
|
+
{% apply spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- picture (object) format: {
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
- infos (array of strings) (default: [])
|
|
14
14
|
#}
|
|
15
15
|
|
|
16
|
+
{% set _infos = infos|default([]) %}
|
|
17
|
+
{% set _name = name|default({}) %}
|
|
18
|
+
{% set _picture = picture|default({}) %}
|
|
16
19
|
{% set _picture_classes = 'rounded-pill' %}
|
|
17
20
|
{% set _classes = ['bcl-user-compact', 'd-flex', 'mb-3'] %}
|
|
18
21
|
|
|
@@ -22,8 +25,8 @@
|
|
|
22
25
|
|
|
23
26
|
{% set attributes = attributes.addClass(_classes) %}
|
|
24
27
|
|
|
25
|
-
{% if
|
|
26
|
-
{% set _picture_classes = _picture_classes ~ ' ' ~
|
|
28
|
+
{% if _picture is not empty and _picture.classes is not empty %}
|
|
29
|
+
{% set _picture_classes = _picture_classes ~ ' ' ~ _picture.classes %}
|
|
27
30
|
{% endif %}
|
|
28
31
|
|
|
29
32
|
<div
|
|
@@ -32,22 +35,27 @@
|
|
|
32
35
|
<div class="flex-shrink-0">
|
|
33
36
|
<img
|
|
34
37
|
class="{{ _picture_classes }}"
|
|
35
|
-
src="{{
|
|
36
|
-
alt="{{
|
|
38
|
+
src="{{ _picture.path }}"
|
|
39
|
+
alt="{{ _picture.alt }}"
|
|
37
40
|
>
|
|
38
41
|
</div>
|
|
39
42
|
<div class="flex-grow-1 ms-3">
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
{% if _name.link is not empty %}
|
|
44
|
+
<a href="{{ _name.link }}" class="fs-5 standalone mb-0">{{ _name.text }}</a>
|
|
45
|
+
{% else %}
|
|
46
|
+
<p class="fs-5 mb-0 text-primary">{{ _name.text }}</p>
|
|
47
|
+
{% endif %}
|
|
48
|
+
|
|
49
|
+
{% if _infos is not empty %}
|
|
45
50
|
<div class="d-flex flex-wrap">
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
{
|
|
51
|
+
{% for _info in _infos %}
|
|
52
|
+
{% if _info is not empty %}
|
|
53
|
+
<span class="text-muted text-nowrap{{ loop.last ? '' :' me-4-5'}}">{{ _info }}</span>
|
|
54
|
+
{% endif %}
|
|
55
|
+
{% endfor %}
|
|
49
56
|
</div>
|
|
57
|
+
{% endif %}
|
|
50
58
|
</div>
|
|
51
59
|
</div>
|
|
52
60
|
|
|
53
|
-
{%
|
|
61
|
+
{% endapply %}
|