@openeuropa/bcl-theme-joinup 0.4298.202511051800 → 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.
Files changed (102) hide show
  1. package/css/oe-bcl-joinup.css +167 -85
  2. package/css/oe-bcl-joinup.css.map +1 -1
  3. package/css/oe-bcl-joinup.min.css +1 -1
  4. package/css/oe-bcl-joinup.min.css.map +1 -1
  5. package/js/oe-bcl-joinup.bundle.js +112 -1
  6. package/js/oe-bcl-joinup.bundle.js.map +1 -1
  7. package/js/oe-bcl-joinup.bundle.min.js +1 -1
  8. package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
  9. package/js/oe-bcl-joinup.esm.js +111 -1
  10. package/js/oe-bcl-joinup.esm.js.map +1 -1
  11. package/js/oe-bcl-joinup.esm.min.js +1 -1
  12. package/js/oe-bcl-joinup.esm.min.js.map +1 -1
  13. package/js/oe-bcl-joinup.umd.js +112 -1
  14. package/js/oe-bcl-joinup.umd.js.map +1 -1
  15. package/js/oe-bcl-joinup.umd.min.js +1 -1
  16. package/js/oe-bcl-joinup.umd.min.js.map +1 -1
  17. package/package.json +7 -7
  18. package/src/js/index.esm.js +2 -0
  19. package/src/js/index.umd.js +2 -0
  20. package/templates/bcl-accordion/accordion.html.twig +42 -46
  21. package/templates/bcl-alert/alert.html.twig +18 -21
  22. package/templates/bcl-badge/badge.html.twig +11 -15
  23. package/templates/bcl-banner/banner.html.twig +34 -37
  24. package/templates/bcl-base-templates/content-type.html.twig +63 -67
  25. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  26. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  27. package/templates/bcl-blockquote/blockquote.html.twig +17 -20
  28. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
  29. package/templates/bcl-button/button.html.twig +24 -27
  30. package/templates/bcl-button-group/button-group.html.twig +25 -29
  31. package/templates/bcl-card/card.html.twig +98 -101
  32. package/templates/bcl-card-layout/card-layout.html.twig +34 -37
  33. package/templates/bcl-carousel/carousel.html.twig +64 -67
  34. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  35. package/templates/bcl-content-banner/content-banner.html.twig +37 -40
  36. package/templates/bcl-date-block/date-block.html.twig +26 -29
  37. package/templates/bcl-description-list/description-list-details.html.twig +6 -9
  38. package/templates/bcl-description-list/description-list-title.html.twig +11 -14
  39. package/templates/bcl-description-list/description-list.html.twig +44 -48
  40. package/templates/bcl-dropdown/dropdown.html.twig +48 -52
  41. package/templates/bcl-event/event.html.twig +7 -7
  42. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
  43. package/templates/bcl-featured-media/featured-media.html.twig +42 -46
  44. package/templates/bcl-file/file-translations.html.twig +29 -32
  45. package/templates/bcl-file/file.html.twig +47 -50
  46. package/templates/bcl-footer/footer.html.twig +31 -34
  47. package/templates/bcl-form/form.html.twig +70 -73
  48. package/templates/bcl-form-input/form-input.html.twig +57 -61
  49. package/templates/bcl-gallery/gallery-item.html.twig +20 -23
  50. package/templates/bcl-gallery/gallery.html.twig +62 -66
  51. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  52. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  53. package/templates/bcl-group/group-landing.html.twig +69 -69
  54. package/templates/bcl-group/group.html.twig +19 -19
  55. package/templates/bcl-header/header.html.twig +71 -82
  56. package/templates/bcl-heading/heading.html.twig +13 -17
  57. package/templates/bcl-icon/icon.html.twig +10 -13
  58. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
  59. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  60. package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
  61. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  62. package/templates/bcl-language-list/language-list.html.twig +33 -37
  63. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
  64. package/templates/bcl-link/link.html.twig +24 -27
  65. package/templates/bcl-links-block/links-block.html.twig +30 -34
  66. package/templates/bcl-list-group/list-group.html.twig +43 -47
  67. package/templates/bcl-listing/listing.html.twig +88 -91
  68. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
  69. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +28 -26
  70. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
  71. package/templates/bcl-modal/modal.html.twig +21 -23
  72. package/templates/bcl-navbar/navbar.html.twig +35 -38
  73. package/templates/bcl-navigation/navigation.html.twig +105 -110
  74. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
  75. package/templates/bcl-page/page.html.twig +27 -27
  76. package/templates/bcl-pagination/pagination-item.html.twig +22 -26
  77. package/templates/bcl-pagination/pagination.html.twig +59 -62
  78. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
  79. package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
  80. package/templates/bcl-person/person.html.twig +12 -12
  81. package/templates/bcl-placeholder/placeholder.html.twig +14 -18
  82. package/templates/bcl-progress/progress.html.twig +16 -20
  83. package/templates/bcl-project/project-lists.html.twig +25 -29
  84. package/templates/bcl-project/project.html.twig +35 -35
  85. package/templates/bcl-project-status/project-contributions.html.twig +25 -28
  86. package/templates/bcl-project-status/project-status.html.twig +32 -37
  87. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
  88. package/templates/bcl-search/search.html.twig +12 -12
  89. package/templates/bcl-search-form/search-form.html.twig +21 -24
  90. package/templates/bcl-select/select.html.twig +52 -56
  91. package/templates/bcl-spinner/spinner.html.twig +10 -13
  92. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  93. package/templates/bcl-subscription/subscription.html.twig +3 -3
  94. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -17
  95. package/templates/bcl-table/table.html.twig +61 -65
  96. package/templates/bcl-textarea/textarea.html.twig +44 -47
  97. package/templates/bcl-timeline/timeline-item.html.twig +12 -15
  98. package/templates/bcl-timeline/timeline.html.twig +42 -45
  99. package/templates/bcl-toasts/toasts.html.twig +56 -60
  100. package/templates/bcl-user/user-compact.html.twig +24 -27
  101. package/templates/bcl-user/user-terms.html.twig +6 -6
  102. package/templates/bcl-user/user.html.twig +117 -117
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - size (string) (default: '')
5
3
  - options ['sm', 'lg']
@@ -28,7 +26,7 @@
28
26
  - list_attributes (drupal attrs)
29
27
  #}
30
28
 
31
- {% set _size = size|default('') %}
29
+ {%- set _size = size|default('') %}
32
30
  {% set _alignment = alignment|default('center') %}
33
31
  {% set _enable_prev_next_icon = enable_prev_next_icon ?? true %}
34
32
  {% set _enable_first_last_icon = enable_first_last_icon ?? false %}
@@ -42,7 +40,7 @@
42
40
  {% set _icon_path = icon_path|default('') %}
43
41
  {% set _ellipsis_markup %} … {% endset %}
44
42
 
45
- {% set _type_flags = {
43
+ {%- set _type_flags = {
46
44
  first: { first: true },
47
45
  last: { last: true },
48
46
  prev: { prev: true },
@@ -50,15 +48,15 @@
50
48
  ellipsis: { ellipsis: true },
51
49
  } %}
52
50
 
53
- {% set _icon_defaults = {
51
+ {%- set _icon_defaults = {
54
52
  ellipsis: {
55
53
  icon_html: _ellipsis_markup,
56
54
  icon_path: "",
57
55
  },
58
56
  } %}
59
57
 
60
- {% if _enable_prev_next_icon %}
61
- {% set _icon_defaults = _icon_defaults|merge({
58
+ {%- if _enable_prev_next_icon %}
59
+ {%- set _icon_defaults = _icon_defaults|merge({
62
60
  prev: {
63
61
  icon_position: 'before',
64
62
  icon: {
@@ -76,8 +74,8 @@
76
74
  }) %}
77
75
  {% endif %}
78
76
 
79
- {% if _enable_first_last_icon %}
80
- {% set _icon_defaults = _icon_defaults|merge({
77
+ {%- if _enable_first_last_icon %}
78
+ {%- set _icon_defaults = _icon_defaults|merge({
81
79
  first: {
82
80
  icon_html: "«",
83
81
  icon_name: "chevron-double-left",
@@ -89,13 +87,13 @@
89
87
  }) %}
90
88
  {% endif %}
91
89
 
92
- {% set _raw_items = [
90
+ {%- set _raw_items = [
93
91
  { item: _prev, fallback_type: 'prev' },
94
92
  { item: _first, fallback_type: 'first' },
95
93
  ] %}
96
94
 
97
- {% if _ellipsis_before %}
98
- {% set _raw_items = _raw_items|merge([
95
+ {%- if _ellipsis_before %}
96
+ {%- set _raw_items = _raw_items|merge([
99
97
  { item: {
100
98
  item_type: 'ellipsis',
101
99
  ellipsis: true,
@@ -103,14 +101,14 @@
103
101
  ]) %}
104
102
  {% endif %}
105
103
 
106
- {% if _items is iterable %}
107
- {% for _item in _items %}
108
- {% set _raw_items = _raw_items|merge([{ item: _item }]) %}
109
- {% endfor %}
104
+ {%- if _items is iterable %}
105
+ {%- for _item in _items %}
106
+ {%- set _raw_items = _raw_items|merge([{ item: _item }]) %}
107
+ {%- endfor %}
110
108
  {% endif %}
111
109
 
112
- {% if _ellipsis_after %}
113
- {% set _raw_items = _raw_items|merge([
110
+ {%- if _ellipsis_after %}
111
+ {%- set _raw_items = _raw_items|merge([
114
112
  { item: {
115
113
  item_type: 'ellipsis',
116
114
  ellipsis: true,
@@ -118,46 +116,46 @@
118
116
  ]) %}
119
117
  {% endif %}
120
118
 
121
- {% set _raw_items = _raw_items|merge([
119
+ {%- set _raw_items = _raw_items|merge([
122
120
  { item: _last, fallback_type: 'last' },
123
121
  { item: _next, fallback_type: 'next' },
124
122
  ]) %}
125
123
 
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 %}
124
+ {%- set _internal_items = [] %}
125
+
126
+ {%- for _entry in _raw_items %}
127
+ {%- set _item = _entry.item %}
128
+ {%- if _item is not empty %}
129
+ {%- set _type = attribute(_item, 'item_type')|default(_entry.fallback_type|default('')) %}
130
+ {%- if not _type and (_item.ellipsis ?? false) %}
131
+ {%- set _type = 'ellipsis' %}
132
+ {%- endif %}
133
+ {%- set _type_flag = attribute(_type_flags, _type)|default({}) %}
134
+ {%- if _type_flag is not empty %}
135
+ {%- set _item = _item|merge(_type_flag) %}
136
+ {%- endif %}
137
+ {%- set _icon_defaults_for_type = attribute(_icon_defaults, _type)|default({}) %}
138
+ {%- if _icon_defaults_for_type is not empty %}
139
+ {%- set _item = _item|merge(_icon_defaults_for_type) %}
140
+ {%- endif %}
141
+ {%- if (_item.active ?? false) and current_mobile_label is defined and _item.current_mobile_label is not defined %}
142
+ {%- set _item = _item|merge({ current_mobile_label: current_mobile_label }) %}
143
+ {%- endif %}
144
+ {%- set _internal_items = _internal_items|merge([_item]) %}
145
+ {%- endif %}
148
146
  {% endfor %}
149
147
 
150
- {% if attributes is empty %}
151
- {% set attributes = create_attribute() %}
148
+ {%- if attributes is empty %}
149
+ {%- set attributes = create_attribute() %}
152
150
  {% endif %}
153
151
 
154
- {% set attributes = attributes.addClass(['pager', 'pagination-v2']) %}
152
+ {%- set attributes = attributes.addClass(['pager', 'pagination-v2']) %}
155
153
 
156
- {% if list_attributes is empty %}
157
- {% set list_attributes = create_attribute() %}
154
+ {%- if list_attributes is empty %}
155
+ {%- set list_attributes = create_attribute() %}
158
156
  {% endif %}
159
157
 
160
- {% set _classes = [
158
+ {%- set _classes = [
161
159
  'pagination',
162
160
  'pager__items',
163
161
  'js-pager__items',
@@ -166,48 +164,47 @@
166
164
  'justify-content-between'
167
165
  ] %}
168
166
 
169
- {% if _size is not empty %}
170
- {% set _classes = _classes|merge(['pagination-' ~ _size]) %}
167
+ {%- if _size is not empty %}
168
+ {%- set _classes = _classes|merge(['pagination-' ~ _size]) %}
171
169
  {% endif %}
172
170
  {% if _alignment is not empty %}
173
- {% set _classes = _classes|merge(['justify-content-md-' ~ _alignment]) %}
171
+ {%- set _classes = _classes|merge(['justify-content-md-' ~ _alignment]) %}
174
172
  {% endif %}
175
173
 
176
- {% set list_attributes = list_attributes.addClass(_classes) %}
174
+ {%- set list_attributes = list_attributes.addClass(_classes) -%}
177
175
 
178
- <nav{{ attributes }}>
176
+ <nav{{ attributes }}>{# -#}
179
177
  <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 %}
178
+ {%- if _internal_items is not empty and _internal_items is iterable %}
179
+ {%- for _item in _internal_items %}
180
+ {%- if _item is not empty %}
181
+ {%- set _item_class = ['page-item', 'pager__item'] %}
182
+
183
+ {%- if _item.prev %}
184
+ {%- set _item_class = _item_class|merge(['pager__item--prev', 'd-inline-block']) %}
185
+ {%- elseif _item.next %}
186
+ {%- set _item_class = _item_class|merge(['pager__item--next', 'd-inline-block']) %}
187
+ {%- elseif not _item.active %}
188
+ {%- set _item_class = _item_class|merge(['d-none', 'd-md-inline-block']) %}
189
+ {%- endif %}
190
+
191
+ {%- if _item.disabled %}
192
+ {%- set _item_class = _item_class|merge(['disabled']) %}
193
+ {%- endif %}
194
+
195
+ {%- if _item.active %}
196
+ {%- set _item_class = _item_class|merge(['active', 'd-inline-block']) %}
197
+ {%- endif -%}
200
198
 
201
199
  <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 %}
200
+ {%- if _item.icon_path is not defined %}
201
+ {%- set _item = _item|merge({ icon_path: _icon_path }) %}
202
+ {%- endif %}
203
+ {%- include '@oe-bcl/bcl-pagination-v2/pagination-item.html.twig' with _item only -%}
206
204
  </li>
207
- {% endif %}
208
- {% endfor %}
209
- {% endif %}
210
- </ul>
205
+ {%- endif %}
206
+ {%- endfor %}
207
+ {%- endif -%}
208
+ </ul>{# -#}
211
209
  </nav>
212
-
213
- {% endapply %}
210
+ {#--#}
@@ -1,29 +1,29 @@
1
1
  {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
2
2
 
3
3
  {%- block sidebar %}
4
- {% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
4
+ {%- include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
5
5
  {%- endblock -%}
6
6
 
7
7
  {%- block content %}
8
- {% if information.main_title is not empty %}
8
+ {%- if information.main_title is not empty -%}
9
9
  <h2
10
10
  class="mb-4"
11
11
  >{{- information.main_title -}}</h2>
12
- {% endif %}
13
- {% if information.content is not empty %}
12
+ {%- endif %}
13
+ {%- if information.content is not empty -%}
14
14
  <div class="mb-4-5">
15
15
  {{- information.content -}}
16
16
  </div>
17
- {% endif %}
17
+ {%- endif %}
18
18
 
19
- {% if files.main_title is not empty %}
19
+ {%- if files.main_title is not empty -%}
20
20
  <h2
21
21
  class="mb-3-5"
22
22
  >{{- files.main_title -}}</h2>
23
- {% endif %}
24
- {% if files.listing is defined and files.listing is not empty %}
25
- {% for file in files.listing %}
26
- {% include '@oe-bcl/bcl-file/file.html.twig' with file only %}
27
- {% endfor %}
28
- {% endif %}
23
+ {%- endif %}
24
+ {%- if files.listing is defined and files.listing is not empty %}
25
+ {%- for file in files.listing %}
26
+ {%- include '@oe-bcl/bcl-file/file.html.twig' with file only %}
27
+ {%- endfor %}
28
+ {%- endif %}
29
29
  {%- endblock -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - width (int) (default: 0) - between 0-100
5
3
  - variant (string) (default: '')
@@ -11,35 +9,33 @@
11
9
  - attributes (drupal attrs)
12
10
  #}
13
11
 
14
- {% set _width = width|default(0) %}
12
+ {%- set _width = width|default(0) %}
15
13
  {% set _variant = variant|default('') %}
16
14
  {% set _size = size|default('') %}
17
15
  {% set _animation = animation|default('') %}
18
16
 
19
- {% set _classes = ['placeholder'] %}
17
+ {%- set _classes = ['placeholder'] %}
20
18
 
21
- {% if _size is not empty %}
22
- {% set _classes = _classes|merge(['placeholder-' ~ _size]) %}
19
+ {%- if _size is not empty %}
20
+ {%- set _classes = _classes|merge(['placeholder-' ~ _size]) %}
23
21
  {% endif %}
24
22
 
25
- {% if _variant is not empty %}
26
- {% set _classes = _classes|merge(['text-bg-' ~ _variant]) %}
23
+ {%- if _variant is not empty %}
24
+ {%- set _classes = _classes|merge(['text-bg-' ~ _variant]) %}
27
25
  {% endif %}
28
26
 
29
- {% if attributes is empty %}
30
- {% set attributes = create_attribute() %}
27
+ {%- if attributes is empty %}
28
+ {%- set attributes = create_attribute() %}
31
29
  {% endif %}
32
30
 
33
- {% set attributes = attributes.addClass(_classes) %}
31
+ {%- set attributes = attributes.addClass(_classes) %}
34
32
  {% set attributes = attributes.setAttribute('style', 'width: ' ~ _width ~ '%;') %}
35
33
 
36
- {% if _animation is not empty %}
34
+ {%- if _animation is not empty -%}
37
35
  <p class="placeholder-{{ _animation }}">
38
- {% endif %}
39
- <span {{- attributes -}} >
36
+ {%- endif -%}
37
+ <span {{- attributes -}} >{# -#}
40
38
  </span>
41
- {% if _animation is not empty %}
39
+ {%- if _animation is not empty -%}
42
40
  </p>
43
- {% endif %}
44
-
45
- {% endapply %}
41
+ {%- endif -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - progress (int) (default: 0)
5
3
  - min (int) (default: 0)
@@ -14,7 +12,7 @@
14
12
  - attributes (drupal attrs)
15
13
  #}
16
14
 
17
- {% set _progress = progress|default(0) %}
15
+ {%- set _progress = progress|default(0) %}
18
16
  {% set _min = min|default(0) %}
19
17
  {% set _max = max|default(100) %}
20
18
  {% set _striped = striped ?? false %}
@@ -25,33 +23,33 @@
25
23
  {% set _variant = variant|default('') %}
26
24
  {% set _message = message|default('') %}
27
25
 
28
- {% set _classes = 'progress-bar' %}
26
+ {%- set _classes = 'progress-bar' %}
29
27
  {% if _striped is not empty %}
30
- {% set _classes = _classes ~ ' progress-bar-striped' %}
28
+ {%- set _classes = _classes ~ ' progress-bar-striped' %}
31
29
  {% endif %}
32
30
  {% if _animated is not empty %}
33
- {% set _classes = _classes ~ ' progress-bar-animated' %}
31
+ {%- set _classes = _classes ~ ' progress-bar-animated' %}
34
32
  {% endif %}
35
33
  {% if _variant is not empty %}
36
- {% set _classes = _classes ~ ' text-bg-' ~ _variant %}
34
+ {%- set _classes = _classes ~ ' text-bg-' ~ _variant %}
37
35
  {% endif %}
38
36
 
39
- {% if attributes is empty %}
40
- {% set attributes = create_attribute() %}
37
+ {%- if attributes is empty %}
38
+ {%- set attributes = create_attribute() %}
41
39
  {% endif %}
42
40
 
43
- {% set attributes = attributes.addClass(['progress']) %}
41
+ {%- set attributes = attributes.addClass(['progress']) %}
44
42
 
45
- {% if _bar_label is empty %}
46
- {% set _bar_label = _progress ~ '%' %}
43
+ {%- if _bar_label is empty %}
44
+ {%- set _bar_label = _progress ~ '%' %}
47
45
  {% endif %}
48
46
 
49
- {% if _label is not empty %}
47
+ {%- if _label is not empty -%}
50
48
  <label class="progress-bar-label">{{ _label }}</label>
51
- {% endif %}
49
+ {%- endif -%}
52
50
  <div
53
51
  {{ attributes }}
54
- >
52
+ >{# -#}
55
53
  <div
56
54
  class="{{ _classes }}"
57
55
  role="progressbar"
@@ -64,10 +62,8 @@
64
62
  {%- if not _hidden_label -%}
65
63
  {{- _bar_label -}}
66
64
  {%- endif -%}
67
- </div>
65
+ </div>{# -#}
68
66
  </div>
69
- {% if _message is not empty %}
67
+ {%- if _message is not empty -%}
70
68
  <small class="form-text text-muted progress-bar-message">{{ _message }}</small>
71
- {% endif %}
72
-
73
- {% endapply %}
69
+ {%- endif -%}
@@ -1,6 +1,3 @@
1
- {% apply spaceless %}
2
-
3
-
4
1
  {#
5
2
  Parameters:
6
3
  - title: (string) (default: '')
@@ -16,24 +13,24 @@
16
13
  }
17
14
  #}
18
15
 
19
- {% set _title = title|default('') %}
16
+ {%- set _title = title|default('') %}
20
17
  {% set _title_tag = title_tag|default('h2') %}
21
18
  {% set _title_link = title_link|default({}) %}
22
19
  {% set _title_attributes = title_attributes ?: create_attribute() %}
23
20
  {% set _items = items|default([]) %}
24
21
 
25
- {% if attributes is empty %}
26
- {% set attributes = create_attribute() %}
22
+ {%- if attributes is empty %}
23
+ {%- set attributes = create_attribute() %}
27
24
  {% endif %}
28
25
 
29
- {% set _title_classes = ['my-4-5'] %}
30
- {% set _title_attributes = _title_attributes.addClass(_title_classes) %}
26
+ {%- set _title_classes = ['my-4-5'] %}
27
+ {% set _title_attributes = _title_attributes.addClass(_title_classes) -%}
31
28
 
32
29
  <div
33
30
  {{ attributes }}
34
31
  >
35
- {% if _title is not empty %}
36
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
32
+ {%- if _title is not empty %}
33
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
37
34
  title: _title,
38
35
  title_tag: _title_tag,
39
36
  title_link: _title_link,
@@ -41,33 +38,32 @@
41
38
  } only %}
42
39
  {% endif %}
43
40
  {% if _items is defined and _items is not empty %}
44
- {% for _item in _items %}
45
- {% if _item.title is not empty %}
46
- {% set _item_title_attributes = _item.title_attributes ?: create_attribute() %}
47
- {% set _item_title_attributes = _item_title_attributes.addClass(['mb-3']) %}
48
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
41
+ {%- for _item in _items %}
42
+ {%- if _item.title is not empty %}
43
+ {%- set _item_title_attributes = _item.title_attributes ?: create_attribute() %}
44
+ {%- set _item_title_attributes = _item_title_attributes.addClass(['mb-3']) %}
45
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
49
46
  title: _item.title,
50
47
  title_tag: _item.title_tag|default('h3'),
51
48
  title_link: _item.title_link|default({}),
52
49
  attributes: _item_title_attributes,
53
50
  } only %}
54
- {% endif %}
55
- {% for _list in _item.content %}
56
- {% if _list.attributes is empty %}
57
- {% set _list = _list|merge({
51
+ {%- endif %}
52
+ {%- for _list in _item.content %}
53
+ {%- if _list.attributes is empty %}
54
+ {%- set _list = _list|merge({
58
55
  attributes: create_attribute()
59
56
  }) %}
60
- {% endif %}
61
- {% if not loop.last %}
62
- {% set _list = _list|merge({
57
+ {%- endif %}
58
+ {%- if not loop.last %}
59
+ {%- set _list = _list|merge({
63
60
  attributes: _list.attributes.addClass(['border-bottom', 'mb-3'])
64
61
  })
65
62
  %}
66
- {% endif %}
67
- {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with _list only %}
68
- {% endfor %}
69
- {% endfor %}
70
- {% endif %}
63
+ {%- endif %}
64
+ {%- include '@oe-bcl/bcl-description-list/description-list.html.twig' with _list only %}
65
+ {%- endfor %}
66
+ {%- endfor %}
67
+ {% endif -%}
71
68
  </div>
72
-
73
- {% endapply %}
69
+ {#--#}
@@ -1,31 +1,31 @@
1
1
  {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
2
2
 
3
3
  {%- block sidebar %}
4
- {% include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
4
+ {%- include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
5
5
  {%- endblock -%}
6
6
 
7
7
  {%- block content %}
8
- {% if project_status is not empty %}
9
- {% if project_status_title is not empty %}
10
- {% set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
11
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
8
+ {%- if project_status is not empty %}
9
+ {%- if project_status_title is not empty %}
10
+ {%- set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
11
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
12
12
  title: project_status_title,
13
13
  title_tag: 'h2',
14
14
  attributes: create_attribute().setAttribute('id', project_status_id),
15
15
  } only %}
16
- {% endif %}
17
- {% include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
18
- {% if project_contributions is not empty %}
19
- {% include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
20
- {% endif %}
21
- {% if status_lists is not empty %}
22
- {% include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
23
- {% endif %}
24
- {% endif %}
16
+ {%- endif %}
17
+ {%- include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
18
+ {%- if project_contributions is not empty %}
19
+ {%- include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
20
+ {%- endif %}
21
+ {%- if status_lists is not empty %}
22
+ {%- include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
23
+ {%- endif %}
24
+ {%- endif %}
25
25
 
26
- {% if first_paragraphs is defined and first_paragraphs is not empty %}
27
- {% for _paragraph in first_paragraphs %}
28
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
26
+ {%- if first_paragraphs is defined and first_paragraphs is not empty %}
27
+ {%- for _paragraph in first_paragraphs %}
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'])
@@ -33,19 +33,19 @@
33
33
  } only %}
34
34
  {{- _paragraph.content -}}
35
35
  {% endfor %}
36
- {% endif %}
36
+ {%- endif %}
37
37
 
38
- {% if featured_lists is not empty %}
39
- {% include '@oe-bcl/bcl-project/project-lists.html.twig' with featured_lists only %}
40
- {% endif %}
38
+ {%- if featured_lists is not empty %}
39
+ {%- include '@oe-bcl/bcl-project/project-lists.html.twig' with featured_lists only %}
40
+ {%- endif %}
41
41
 
42
- {% if content_lists is not empty %}
43
- {% include '@oe-bcl/bcl-project/project-lists.html.twig' with content_lists only %}
44
- {% endif %}
42
+ {%- if content_lists is not empty %}
43
+ {%- include '@oe-bcl/bcl-project/project-lists.html.twig' with content_lists only %}
44
+ {%- endif %}
45
45
 
46
- {% if second_paragraphs is defined and second_paragraphs is not empty %}
47
- {% for _paragraph in second_paragraphs %}
48
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
46
+ {%- if second_paragraphs is defined and second_paragraphs is not empty %}
47
+ {%- for _paragraph in second_paragraphs %}
48
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
49
49
  title: _paragraph.title,
50
50
  title_tag: 'h2',
51
51
  attributes: create_attribute().addClass(['mb-4', 'pt-3'])
@@ -53,19 +53,19 @@
53
53
  } only %}
54
54
  {{- _paragraph.content -}}
55
55
  {% endfor %}
56
- {% endif %}
56
+ {%- endif %}
57
57
 
58
- {% if gallery is not empty %}
58
+ {%- if gallery is not empty -%}
59
59
  <div class="mt-3 mb-4-5">
60
- {% include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only %}
60
+ {%- include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only -%}
61
61
  </div>
62
- {% endif %}
62
+ {%- endif %}
63
63
 
64
- {% if social_block is not empty %}
64
+ {%- if social_block is not empty %}
65
65
  {%- block social_block %}
66
- {{ social_buttons }}
67
- {% include '@oe-bcl/bcl-button/button.html.twig' with button_social_modal only %}
68
- {% include '@oe-bcl/bcl-modal/modal.html.twig' with social_modal only %}
66
+ {{- social_buttons }}
67
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with button_social_modal only %}
68
+ {%- include '@oe-bcl/bcl-modal/modal.html.twig' with social_modal only %}
69
69
  {%- endblock -%}
70
70
  {% endif %}
71
71