@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.
Files changed (84) hide show
  1. package/package.json +67 -67
  2. package/templates/bcl-accordion/accordion.html.twig +42 -43
  3. package/templates/bcl-alert/alert.html.twig +18 -18
  4. package/templates/bcl-badge/badge.html.twig +11 -12
  5. package/templates/bcl-banner/banner.html.twig +34 -34
  6. package/templates/bcl-base-templates/content-type.html.twig +63 -64
  7. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  8. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  9. package/templates/bcl-blockquote/blockquote.html.twig +17 -17
  10. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -25
  11. package/templates/bcl-button/button.html.twig +24 -24
  12. package/templates/bcl-button-group/button-group.html.twig +25 -26
  13. package/templates/bcl-card/card.html.twig +98 -98
  14. package/templates/bcl-card-layout/card-layout.html.twig +34 -34
  15. package/templates/bcl-carousel/carousel.html.twig +64 -64
  16. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  17. package/templates/bcl-content-banner/content-banner.html.twig +37 -37
  18. package/templates/bcl-date-block/date-block.html.twig +26 -26
  19. package/templates/bcl-description-list/description-list-details.html.twig +6 -6
  20. package/templates/bcl-description-list/description-list-title.html.twig +11 -11
  21. package/templates/bcl-description-list/description-list.html.twig +44 -45
  22. package/templates/bcl-dropdown/dropdown.html.twig +48 -49
  23. package/templates/bcl-event/event.html.twig +7 -7
  24. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -34
  25. package/templates/bcl-featured-media/featured-media.html.twig +42 -43
  26. package/templates/bcl-file/file-translations.html.twig +29 -29
  27. package/templates/bcl-file/file.html.twig +46 -46
  28. package/templates/bcl-footer/footer.html.twig +31 -31
  29. package/templates/bcl-form/form.html.twig +70 -70
  30. package/templates/bcl-form-input/form-input.html.twig +57 -58
  31. package/templates/bcl-gallery/gallery-item.html.twig +20 -20
  32. package/templates/bcl-gallery/gallery.html.twig +62 -63
  33. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  34. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  35. package/templates/bcl-group/group-landing.html.twig +69 -69
  36. package/templates/bcl-group/group.html.twig +19 -19
  37. package/templates/bcl-header/header.html.twig +71 -79
  38. package/templates/bcl-heading/heading.html.twig +13 -14
  39. package/templates/bcl-icon/icon.html.twig +10 -10
  40. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -20
  41. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  42. package/templates/bcl-language-list/language-list-grid.html.twig +25 -25
  43. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  44. package/templates/bcl-language-list/language-list.html.twig +33 -34
  45. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -12
  46. package/templates/bcl-link/link.html.twig +24 -24
  47. package/templates/bcl-links-block/links-block.html.twig +29 -30
  48. package/templates/bcl-list-group/list-group.html.twig +43 -44
  49. package/templates/bcl-listing/listing.html.twig +88 -88
  50. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -18
  51. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +27 -22
  52. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -35
  53. package/templates/bcl-modal/modal.html.twig +17 -17
  54. package/templates/bcl-navbar/navbar.html.twig +35 -35
  55. package/templates/bcl-navigation/navigation.html.twig +106 -106
  56. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -33
  57. package/templates/bcl-page/page.html.twig +27 -27
  58. package/templates/bcl-pagination/pagination-item.html.twig +22 -23
  59. package/templates/bcl-pagination/pagination.html.twig +59 -59
  60. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -32
  61. package/templates/bcl-pagination-v2/pagination.html.twig +79 -79
  62. package/templates/bcl-person/person.html.twig +12 -12
  63. package/templates/bcl-placeholder/placeholder.html.twig +14 -15
  64. package/templates/bcl-progress/progress.html.twig +16 -17
  65. package/templates/bcl-project/project-lists.html.twig +25 -25
  66. package/templates/bcl-project/project.html.twig +35 -35
  67. package/templates/bcl-project-status/project-contributions.html.twig +25 -25
  68. package/templates/bcl-project-status/project-status.html.twig +32 -34
  69. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -13
  70. package/templates/bcl-search/search.html.twig +12 -12
  71. package/templates/bcl-search-form/search-form.html.twig +21 -21
  72. package/templates/bcl-select/select.html.twig +52 -53
  73. package/templates/bcl-spinner/spinner.html.twig +10 -10
  74. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  75. package/templates/bcl-subscription/subscription.html.twig +3 -3
  76. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -14
  77. package/templates/bcl-table/table.html.twig +61 -62
  78. package/templates/bcl-textarea/textarea.html.twig +44 -44
  79. package/templates/bcl-timeline/timeline-item.html.twig +12 -12
  80. package/templates/bcl-timeline/timeline.html.twig +42 -42
  81. package/templates/bcl-toasts/toasts.html.twig +56 -57
  82. package/templates/bcl-user/user-compact.html.twig +24 -24
  83. package/templates/bcl-user/user-terms.html.twig +6 -6
  84. package/templates/bcl-user/user.html.twig +117 -117
@@ -30,7 +30,7 @@
30
30
  - list_attributes (drupal attrs)
31
31
  #}
32
32
 
33
- {% set _size = size|default('') %}
33
+ {%- set _size = size|default('') %}
34
34
  {% set _alignment = alignment|default('') %}
35
35
  {% set _variant = variant|default('') %}
36
36
  {% set _aria_label = aria_label|default('') %}
@@ -46,113 +46,113 @@
46
46
  {% set _icon_path = icon_path|default('') %}
47
47
  {% set _internal_items = [] %}
48
48
 
49
- {% if _enable_first_last_icon %}
50
- {% if _first is not empty %}
51
- {% set _first = _first|merge({
49
+ {%- if _enable_first_last_icon %}
50
+ {%- if _first is not empty %}
51
+ {%- set _first = _first|merge({
52
52
  icon_html: "«",
53
53
  icon_name: "chevron-double-left",
54
54
  }) %}
55
- {% endif %}
56
- {% if _last is not empty %}
57
- {% set _last = _last|merge({
55
+ {%- endif %}
56
+ {%- if _last is not empty %}
57
+ {%- set _last = _last|merge({
58
58
  icon_html: '»',
59
59
  icon_name: "chevron-double-right",
60
60
  }) %}
61
- {% endif %}
61
+ {%- endif %}
62
62
  {% endif %}
63
63
 
64
- {% if _enable_prev_next_icon %}
65
- {% if _prev is not empty %}
66
- {% set _prev = _prev|merge({
64
+ {%- if _enable_prev_next_icon %}
65
+ {%- if _prev is not empty %}
66
+ {%- set _prev = _prev|merge({
67
67
  icon_html: "‹",
68
68
  icon_name: "chevron-left",
69
69
  }) %}
70
- {% endif %}
71
- {% if _next is not empty %}
72
- {% set _next = _next|merge({
70
+ {%- endif %}
71
+ {%- if _next is not empty %}
72
+ {%- set _next = _next|merge({
73
73
  icon_html: "›",
74
74
  icon_name: "chevron-right",
75
75
  }) %}
76
- {% endif %}
76
+ {%- endif %}
77
77
  {% endif %}
78
78
 
79
79
 
80
- {% set _internal_items = _internal_items|merge([_first, _prev]) %}
80
+ {%- set _internal_items = _internal_items|merge([_first, _prev]) %}
81
81
 
82
- {% set _ellipsis_markup %} … {% endset %}
82
+ {%- set _ellipsis_markup %} … {% endset %}
83
83
 
84
- {% if _ellipsis_before %}
85
- {% set _ellipsis_before_item = {
84
+ {%- if _ellipsis_before %}
85
+ {%- set _ellipsis_before_item = {
86
86
  icon_html: _ellipsis_markup,
87
87
  icon_path: "",
88
88
  } %}
89
- {% set _internal_items = _internal_items|merge([_ellipsis_before_item]) %}
89
+ {%- set _internal_items = _internal_items|merge([_ellipsis_before_item]) %}
90
90
  {% endif %}
91
91
 
92
- {% set _internal_items = _internal_items|merge(_items) %}
92
+ {%- set _internal_items = _internal_items|merge(_items) %}
93
93
 
94
- {% if _ellipsis_after %}
95
- {% set _ellipsis_after_item = {
94
+ {%- if _ellipsis_after %}
95
+ {%- set _ellipsis_after_item = {
96
96
  icon_html: _ellipsis_markup,
97
97
  icon_path: "",
98
98
  } %}
99
- {% set _internal_items = _internal_items|merge([_ellipsis_after_item]) %}
99
+ {%- set _internal_items = _internal_items|merge([_ellipsis_after_item]) %}
100
100
  {% endif %}
101
101
 
102
- {% set _internal_items = _internal_items|merge([_next, _last]) %}
102
+ {%- set _internal_items = _internal_items|merge([_next, _last]) %}
103
103
 
104
- {% if list_attributes is empty %}
105
- {% set list_attributes = create_attribute() %}
104
+ {%- if list_attributes is empty %}
105
+ {%- set list_attributes = create_attribute() %}
106
106
  {% endif %}
107
107
 
108
- {% set list_attributes = list_attributes.addClass('pagination') %}
108
+ {%- set list_attributes = list_attributes.addClass('pagination') %}
109
109
  {% if _size is not empty %}
110
- {% set list_attributes = list_attributes.addClass('pagination-' ~ _size) %}
110
+ {%- set list_attributes = list_attributes.addClass('pagination-' ~ _size) %}
111
111
  {% endif %}
112
112
  {% if _variant is not empty %}
113
- {% set list_attributes = list_attributes.addClass('pagination--' ~ _variant) %}
113
+ {%- set list_attributes = list_attributes.addClass('pagination--' ~ _variant) %}
114
114
  {% endif %}
115
115
  {% if _alignment is not empty %}
116
- {% set list_attributes = list_attributes.addClass('justify-content-' ~ _alignment) %}
116
+ {%- set list_attributes = list_attributes.addClass('justify-content-' ~ _alignment) %}
117
117
  {% endif %}
118
118
 
119
- {% if attributes is empty %}
120
- {% set attributes = create_attribute() %}
119
+ {%- if attributes is empty %}
120
+ {%- set attributes = create_attribute() %}
121
121
  {% endif %}
122
122
 
123
- {% set attributes = attributes.setAttribute('role', 'navigation') %}
123
+ {%- set attributes = attributes.setAttribute('role', 'navigation') %}
124
124
 
125
- {% if _variant == 'glossary' %}
126
- {% set attributes = attributes.addClass(['bcl-glossary']) %}
125
+ {%- if _variant == 'glossary' %}
126
+ {%- set attributes = attributes.addClass(['bcl-glossary']) %}
127
127
  {% endif %}
128
128
 
129
- {% if _aria_label is not empty %}
130
- {% set attributes = attributes.setAttribute('aria-label', aria_label) %}
131
- {% endif %}
129
+ {%- if _aria_label is not empty %}
130
+ {%- set attributes = attributes.setAttribute('aria-label', aria_label) %}
131
+ {% endif -%}
132
132
 
133
- <nav{{ attributes }}>
133
+ <nav{{ attributes }}>{# -#}
134
134
  <ul{{ list_attributes }}>
135
- {% if _internal_items is not empty and _internal_items is iterable %}
136
- {% for _item in _internal_items %}
137
- {% if _item is not empty %}
138
- {% set _item_class = ['page-item'] %}
139
- {% if _item.disabled %}
140
- {% set _item_class = _item_class|merge(['disabled']) %}
141
- {% endif %}
142
- {% if _item.active %}
143
- {% set _item_class = _item_class|merge(['active']) %}
144
- {% endif %}
135
+ {%- if _internal_items is not empty and _internal_items is iterable %}
136
+ {%- for _item in _internal_items %}
137
+ {%- if _item is not empty %}
138
+ {%- set _item_class = ['page-item'] %}
139
+ {%- if _item.disabled %}
140
+ {%- set _item_class = _item_class|merge(['disabled']) %}
141
+ {%- endif %}
142
+ {%- if _item.active %}
143
+ {%- set _item_class = _item_class|merge(['active']) %}
144
+ {%- endif -%}
145
145
  <li class="{{ _item_class|join(' ') }}">
146
- {% if _item.icon_path is not defined %}
147
- {% set _item = _item|merge({
146
+ {%- if _item.icon_path is not defined %}
147
+ {%- set _item = _item|merge({
148
148
  icon_path: _icon_path,
149
149
  }) %}
150
- {% endif %}
151
- {% include '@oe-bcl/bcl-pagination/pagination-item.html.twig' with _item only %}
150
+ {%- endif %}
151
+ {%- include '@oe-bcl/bcl-pagination/pagination-item.html.twig' with _item only -%}
152
152
  </li>
153
- {% endif %}
154
- {% endfor %}
155
- {% endif %}
156
- </ul>
153
+ {%- endif %}
154
+ {%- endfor %}
155
+ {% endif -%}
156
+ </ul>{# -#}
157
157
  </nav>
158
-
158
+ {#--#}
@@ -7,7 +7,7 @@
7
7
  - attributes (drupal attrs)
8
8
  #}
9
9
 
10
- {% set _path = path|default('') %}
10
+ {%- set _path = path|default('') %}
11
11
  {% set _label = label|default('') %}
12
12
  {% set _disabled = disabled ?? false %}
13
13
  {% set _active = active ?? false %}
@@ -20,49 +20,49 @@
20
20
  {% set _current_mobile_label = current_mobile_label|default('') %}
21
21
  {% set _classes = ['page-link'] %}
22
22
 
23
- {% if _icon_path is not empty and _icon is empty %}
24
- {% if _icon_name is not empty %}
25
- {% set _icon = _icon|merge({
23
+ {%- if _icon_path is not empty and _icon is empty %}
24
+ {%- if _icon_name is not empty %}
25
+ {%- set _icon = _icon|merge({
26
26
  name: _icon_name,
27
27
  path: _icon_path,
28
28
  size: "fluid"
29
29
  }) %}
30
- {% set _label = "" %}
31
- {% endif %}
30
+ {%- set _label = "" %}
31
+ {%- endif %}
32
32
  {% else %}
33
- {% if _icon_html is not empty %}
34
- {% set _label %}
33
+ {%- if _icon_html is not empty %}
34
+ {%- set _label -%}
35
35
  <span aria-hidden="true">{{- _icon_html -}}</span>
36
- {% endset %}
37
- {% endif %}
36
+ {%- endset %}
37
+ {%- endif %}
38
38
  {% endif %}
39
39
 
40
- {% if _icon is not empty %}
41
- {% set _icon = _icon|merge({
40
+ {%- if _icon is not empty %}
41
+ {%- set _icon = _icon|merge({
42
42
  path: _icon_path,
43
43
  }) %}
44
44
  {% endif %}
45
45
 
46
- {% if attributes is empty %}
47
- {% set attributes = create_attribute() %}
46
+ {%- if attributes is empty %}
47
+ {%- set attributes = create_attribute() %}
48
48
  {% endif %}
49
49
 
50
- {% if _aria_label is not empty %}
51
- {% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
50
+ {%- if _aria_label is not empty %}
51
+ {%- set attributes = attributes.setAttribute('aria-label', _aria_label) %}
52
52
  {% endif %}
53
53
 
54
- {% if _active %}
55
- {% set attributes = attributes.setAttribute('aria-current', 'page') %}
56
- {% set attributes = attributes.setAttribute('tabindex', '0') %}
54
+ {%- if _active %}
55
+ {%- set attributes = attributes.setAttribute('aria-current', 'page') %}
56
+ {%- set attributes = attributes.setAttribute('tabindex', '0') %}
57
57
  {% endif %}
58
58
 
59
- {% set attributes = attributes.addClass(_classes) %}
59
+ {%- set attributes = attributes.addClass(_classes) %}
60
60
 
61
- {% if _path and not _active %}
62
- {% if _disabled %}
63
- {% set attributes = attributes.setAttribute('aria-disabled', 'true') %}
64
- {% endif %}
65
- {% set attributes = attributes.setAttribute('aria-hidden', 'false') %}
61
+ {%- if _path and not _active %}
62
+ {%- if _disabled %}
63
+ {%- set attributes = attributes.setAttribute('aria-disabled', 'true') %}
64
+ {%- endif %}
65
+ {%- set attributes = attributes.setAttribute('aria-hidden', 'false') %}
66
66
 
67
67
  {%- include '@oe-bcl/bcl-link/link.html.twig' with {
68
68
  label: _label,
@@ -72,16 +72,15 @@
72
72
  icon_position: _icon_position,
73
73
  attributes: attributes,
74
74
  } only -%}
75
- {% else %}
75
+ {% else -%}
76
76
  <div{{ attributes }}>
77
- {% if _current_mobile_label %}
78
- <span class="d-none d-md-inline-block">{{- _label -}}</span>
77
+ {%- if _current_mobile_label -%}
78
+ <span class="d-none d-md-inline-block">{{- _label -}}</span>{# -#}
79
79
  <span class="d-inline-block d-md-none">{{- _current_mobile_label -}}</span>
80
- {% else %}
80
+ {%- else -%}
81
81
  <span class="d-inline-block">
82
82
  {{- _label -}}
83
83
  </span>
84
- {% endif %}
84
+ {%- endif -%}
85
85
  </div>
86
- {% endif %}
87
-
86
+ {%- endif -%}
@@ -26,7 +26,7 @@
26
26
  - list_attributes (drupal attrs)
27
27
  #}
28
28
 
29
- {% set _size = size|default('') %}
29
+ {%- set _size = size|default('') %}
30
30
  {% set _alignment = alignment|default('center') %}
31
31
  {% set _enable_prev_next_icon = enable_prev_next_icon ?? true %}
32
32
  {% set _enable_first_last_icon = enable_first_last_icon ?? false %}
@@ -40,7 +40,7 @@
40
40
  {% set _icon_path = icon_path|default('') %}
41
41
  {% set _ellipsis_markup %} &hellip; {% endset %}
42
42
 
43
- {% set _type_flags = {
43
+ {%- set _type_flags = {
44
44
  first: { first: true },
45
45
  last: { last: true },
46
46
  prev: { prev: true },
@@ -48,15 +48,15 @@
48
48
  ellipsis: { ellipsis: true },
49
49
  } %}
50
50
 
51
- {% set _icon_defaults = {
51
+ {%- set _icon_defaults = {
52
52
  ellipsis: {
53
53
  icon_html: _ellipsis_markup,
54
54
  icon_path: "",
55
55
  },
56
56
  } %}
57
57
 
58
- {% if _enable_prev_next_icon %}
59
- {% set _icon_defaults = _icon_defaults|merge({
58
+ {%- if _enable_prev_next_icon %}
59
+ {%- set _icon_defaults = _icon_defaults|merge({
60
60
  prev: {
61
61
  icon_position: 'before',
62
62
  icon: {
@@ -74,8 +74,8 @@
74
74
  }) %}
75
75
  {% endif %}
76
76
 
77
- {% if _enable_first_last_icon %}
78
- {% set _icon_defaults = _icon_defaults|merge({
77
+ {%- if _enable_first_last_icon %}
78
+ {%- set _icon_defaults = _icon_defaults|merge({
79
79
  first: {
80
80
  icon_html: "&laquo;",
81
81
  icon_name: "chevron-double-left",
@@ -87,13 +87,13 @@
87
87
  }) %}
88
88
  {% endif %}
89
89
 
90
- {% set _raw_items = [
90
+ {%- set _raw_items = [
91
91
  { item: _prev, fallback_type: 'prev' },
92
92
  { item: _first, fallback_type: 'first' },
93
93
  ] %}
94
94
 
95
- {% if _ellipsis_before %}
96
- {% set _raw_items = _raw_items|merge([
95
+ {%- if _ellipsis_before %}
96
+ {%- set _raw_items = _raw_items|merge([
97
97
  { item: {
98
98
  item_type: 'ellipsis',
99
99
  ellipsis: true,
@@ -101,14 +101,14 @@
101
101
  ]) %}
102
102
  {% endif %}
103
103
 
104
- {% if _items is iterable %}
105
- {% for _item in _items %}
106
- {% set _raw_items = _raw_items|merge([{ item: _item }]) %}
107
- {% endfor %}
104
+ {%- if _items is iterable %}
105
+ {%- for _item in _items %}
106
+ {%- set _raw_items = _raw_items|merge([{ item: _item }]) %}
107
+ {%- endfor %}
108
108
  {% endif %}
109
109
 
110
- {% if _ellipsis_after %}
111
- {% set _raw_items = _raw_items|merge([
110
+ {%- if _ellipsis_after %}
111
+ {%- set _raw_items = _raw_items|merge([
112
112
  { item: {
113
113
  item_type: 'ellipsis',
114
114
  ellipsis: true,
@@ -116,46 +116,46 @@
116
116
  ]) %}
117
117
  {% endif %}
118
118
 
119
- {% set _raw_items = _raw_items|merge([
119
+ {%- set _raw_items = _raw_items|merge([
120
120
  { item: _last, fallback_type: 'last' },
121
121
  { item: _next, fallback_type: 'next' },
122
122
  ]) %}
123
123
 
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 %}
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 %}
146
146
  {% endfor %}
147
147
 
148
- {% if attributes is empty %}
149
- {% set attributes = create_attribute() %}
148
+ {%- if attributes is empty %}
149
+ {%- set attributes = create_attribute() %}
150
150
  {% endif %}
151
151
 
152
- {% set attributes = attributes.addClass(['pager', 'pagination-v2']) %}
152
+ {%- set attributes = attributes.addClass(['pager', 'pagination-v2']) %}
153
153
 
154
- {% if list_attributes is empty %}
155
- {% set list_attributes = create_attribute() %}
154
+ {%- if list_attributes is empty %}
155
+ {%- set list_attributes = create_attribute() %}
156
156
  {% endif %}
157
157
 
158
- {% set _classes = [
158
+ {%- set _classes = [
159
159
  'pagination',
160
160
  'pager__items',
161
161
  'js-pager__items',
@@ -164,47 +164,47 @@
164
164
  'justify-content-between'
165
165
  ] %}
166
166
 
167
- {% if _size is not empty %}
168
- {% set _classes = _classes|merge(['pagination-' ~ _size]) %}
167
+ {%- if _size is not empty %}
168
+ {%- set _classes = _classes|merge(['pagination-' ~ _size]) %}
169
169
  {% endif %}
170
170
  {% if _alignment is not empty %}
171
- {% set _classes = _classes|merge(['justify-content-md-' ~ _alignment]) %}
171
+ {%- set _classes = _classes|merge(['justify-content-md-' ~ _alignment]) %}
172
172
  {% endif %}
173
173
 
174
- {% set list_attributes = list_attributes.addClass(_classes) %}
174
+ {%- set list_attributes = list_attributes.addClass(_classes) -%}
175
175
 
176
- <nav{{ attributes }}>
176
+ <nav{{ attributes }}>{# -#}
177
177
  <ul{{ list_attributes }}>
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 %}
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 -%}
198
198
 
199
199
  <li class="{{ _item_class|join(' ') }}">
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 %}
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 -%}
204
204
  </li>
205
- {% endif %}
206
- {% endfor %}
207
- {% endif %}
208
- </ul>
205
+ {%- endif %}
206
+ {%- endfor %}
207
+ {%- endif -%}
208
+ </ul>{# -#}
209
209
  </nav>
210
-
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 -%}
@@ -9,34 +9,33 @@
9
9
  - attributes (drupal attrs)
10
10
  #}
11
11
 
12
- {% set _width = width|default(0) %}
12
+ {%- set _width = width|default(0) %}
13
13
  {% set _variant = variant|default('') %}
14
14
  {% set _size = size|default('') %}
15
15
  {% set _animation = animation|default('') %}
16
16
 
17
- {% set _classes = ['placeholder'] %}
17
+ {%- set _classes = ['placeholder'] %}
18
18
 
19
- {% if _size is not empty %}
20
- {% set _classes = _classes|merge(['placeholder-' ~ _size]) %}
19
+ {%- if _size is not empty %}
20
+ {%- set _classes = _classes|merge(['placeholder-' ~ _size]) %}
21
21
  {% endif %}
22
22
 
23
- {% if _variant is not empty %}
24
- {% set _classes = _classes|merge(['text-bg-' ~ _variant]) %}
23
+ {%- if _variant is not empty %}
24
+ {%- set _classes = _classes|merge(['text-bg-' ~ _variant]) %}
25
25
  {% endif %}
26
26
 
27
- {% if attributes is empty %}
28
- {% set attributes = create_attribute() %}
27
+ {%- if attributes is empty %}
28
+ {%- set attributes = create_attribute() %}
29
29
  {% endif %}
30
30
 
31
- {% set attributes = attributes.addClass(_classes) %}
31
+ {%- set attributes = attributes.addClass(_classes) %}
32
32
  {% set attributes = attributes.setAttribute('style', 'width: ' ~ _width ~ '%;') %}
33
33
 
34
- {% if _animation is not empty %}
34
+ {%- if _animation is not empty -%}
35
35
  <p class="placeholder-{{ _animation }}">
36
- {% endif %}
37
- <span {{- attributes -}} >
36
+ {%- endif -%}
37
+ <span {{- attributes -}} >{# -#}
38
38
  </span>
39
- {% if _animation is not empty %}
39
+ {%- if _animation is not empty -%}
40
40
  </p>
41
- {% endif %}
42
-
41
+ {%- endif -%}