@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
@@ -26,7 +26,7 @@ Parameters:
26
26
  carousel
27
27
  #}
28
28
 
29
- {% set _id = id|default('gallery-' ~ random(10000)) %}
29
+ {%- set _id = id|default('gallery-' ~ random(10000)) %}
30
30
  {% set _title = title|default('') %}
31
31
  {% set _title_tag = title_tag|default('h2') %}
32
32
  {% set _title_link = title_link|default({}) %}
@@ -44,59 +44,59 @@ Parameters:
44
44
  {% set _collapse_id = "collapse" ~ _id|capitalize %}
45
45
  {% set _carousel_items = [] %}
46
46
 
47
- {% if attributes is empty %}
48
- {% set attributes = create_attribute() %}
47
+ {%- if attributes is empty %}
48
+ {%- set attributes = create_attribute() %}
49
49
  {% endif %}
50
50
 
51
- {% set attributes = attributes.addClass('bcl-gallery') %}
51
+ {%- set attributes = attributes.addClass('bcl-gallery') %}
52
52
 
53
- {% if _items is not empty and _items is iterable %}
53
+ {%- if _items is not empty and _items is iterable -%}
54
54
  <div
55
55
  {{ attributes }}
56
56
  >
57
- {% if _title is not empty or _counter is not empty %}
57
+ {%- if _title is not empty or _counter is not empty -%}
58
58
  <div class="d-sm-flex flex-sm-row align-items-sm-center">
59
- {% if _title is not empty %}
59
+ {%- if _title is not empty -%}
60
60
  <div class="flex-sm-grow-1">
61
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
61
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
62
62
  title: _title,
63
63
  title_tag: _title_tag,
64
64
  title_link: _title_link,
65
65
  attributes: _title_attributes,
66
- } only %}
66
+ } only -%}
67
67
  </div>
68
- {% endif %}
68
+ {%- endif %}
69
69
  {%- if _counter is not empty -%}
70
70
  <div class="mb-3 mb-sm-0 fw-bold">
71
71
  {{- _counter|replace({'%d': _items|length}) -}}
72
72
  </div>
73
73
  {%- endif -%}
74
74
  </div>
75
- {% endif %}
75
+ {%- endif -%}
76
76
  <div class="bcl-gallery__thumbnails">
77
- {% for _batch in _items|batch(_max_visible_thumbnails) %}
78
- {% if loop.index0 == 1 %}
77
+ {%- for _batch in _items|batch(_max_visible_thumbnails) %}
78
+ {%- if loop.index0 == 1 -%}
79
79
  <div class="bcl-gallery__thumbnails-collaspe collapse" id="{{ _collapse_id }}">
80
- {% endif %}
80
+ {%- endif -%}
81
81
  <ul class="bcl-gallery__grid">
82
- {% for _item in _batch %}
82
+ {%- for _item in _batch -%}
83
83
  <li>
84
- {% include '@oe-bcl/bcl-gallery/gallery-item.html.twig' with {
84
+ {%- include '@oe-bcl/bcl-gallery/gallery-item.html.twig' with {
85
85
  item: _item,
86
86
  carousel_id: _carousel_id,
87
87
  modal_id: _modal_id,
88
88
  icon_path: _icon_path,
89
89
  carousel_anchor: loop.index0 + (_max_visible_thumbnails * loop.parent.loop.index0),
90
- } only %}
90
+ } only -%}
91
91
  </li>
92
- {% endfor %}
92
+ {%- endfor -%}
93
93
  </ul>
94
- {% if loop.last and loop.index0 >= 1 %}
94
+ {%- if loop.last and loop.index0 >= 1 -%}
95
95
  </div>
96
- {% endif %}
97
- {% endfor %}
98
- {% if _items|length > _max_visible_thumbnails %}
99
- <div class="bg-lighter py-3 px-4 mt-2 rounded text-center">
96
+ {%- endif %}
97
+ {%- endfor %}
98
+ {%- if _items|length > _max_visible_thumbnails -%}
99
+ <div class="bg-lighter py-3 px-4 mt-2 rounded text-center">{# -#}
100
100
  <a
101
101
  class="bcl-gallery__collapse standalone d-none d-sm-inline-block"
102
102
  aria-controls="{{ _collapse_id }}"
@@ -104,76 +104,76 @@ Parameters:
104
104
  aria-expanded="false"
105
105
  role="button"
106
106
  href="#{{ _collapse_id }}"
107
- >
108
- <span class="label-collapsed">{{ _toggle_collapsed|replace({'%d': _items|length}) }}</span>
107
+ >{# -#}
108
+ <span class="label-collapsed">{{ _toggle_collapsed|replace({'%d': _items|length}) }}</span>{# -#}
109
109
  <span class="label-expanded">{{ _toggle_expanded }}</span>
110
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
110
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
111
111
  name: 'caret-down-fill',
112
112
  size: '2xs',
113
113
  path: _icon_path,
114
114
  attributes: create_attribute().addClass('ms-2-5'),
115
- } only %}
116
- </a>
115
+ } only -%}
116
+ </a>{# -#}
117
117
  <a
118
118
  class="bcl-gallery__mobile-view-more standalone d-inline-block d-sm-none"
119
119
  data-bs-target="#{{ _carousel_id }}"
120
120
  data-bs-slide-to="{{ _max_visible_thumbnails - 1 }}"
121
121
  role="button"
122
122
  href="#"
123
- >
124
- <span data-bs-target="#{{ _modal_id }}" data-bs-toggle="modal">
123
+ >{# -#}
124
+ <span data-bs-target="#{{ _modal_id }}" data-bs-toggle="modal">{# -#}
125
125
  <span class="label-collapsed">{{ _toggle_collapsed|replace({'%d': _items|length}) }}</span>
126
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
126
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
127
127
  name: 'caret-down-fill',
128
128
  size: '2xs',
129
129
  path: _icon_path,
130
130
  attributes: create_attribute().addClass('ms-2-5'),
131
- } only %}
132
- <span>
133
- </a>
131
+ } only -%}
132
+ <span>{# -#}
133
+ </a>{# -#}
134
134
  </div>
135
- {% endif %}
136
- </div>
137
- <div class="modal" id="{{ _modal_id }}" tabindex="-1" aria-labelledby="{{ _modal_id }}" aria-hidden="true" data-bs-backdrop="false">
138
- <div class="modal-dialog modal-dialog-centered modal-fullscreen">
139
- <div class="modal-content">
135
+ {%- endif -%}
136
+ </div>{# -#}
137
+ <div class="modal" id="{{ _modal_id }}" tabindex="-1" aria-labelledby="{{ _modal_id }}" aria-hidden="true" data-bs-backdrop="false">{# -#}
138
+ <div class="modal-dialog modal-dialog-centered modal-fullscreen">{# -#}
139
+ <div class="modal-content">{# -#}
140
140
  <div class="modal-header border-0 justify-content-between">
141
- {% if _title is not empty %}
141
+ {%- if _title is not empty -%}
142
142
  <div class="modal-title">
143
- {% if _title is not empty %}
144
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
143
+ {%- if _title is not empty %}
144
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
145
145
  title: _title,
146
146
  title_tag: 'h3',
147
147
  attributes: create_attribute().addClass(['d-sm-block', 'd-none']),
148
148
  } only %}
149
- {% endif %}
149
+ {%- endif -%}
150
150
  </div>
151
- {% endif %}
152
- <div class="carousel-pager">
151
+ {%- endif -%}
152
+ <div class="carousel-pager">{# -#}
153
153
  <span>1</span> / {{ _items|length -}}
154
- </div>
154
+ </div>{# -#}
155
155
  <div class="modal-close">
156
- {% set button_attributes = create_attribute()
156
+ {%- set button_attributes = create_attribute()
157
157
  .addClass('btn-close')
158
158
  .setAttribute('aria-label', 'Close')
159
159
  .setAttribute('data-bs-dismiss', 'modal')
160
160
  %}
161
- {% include '@oe-bcl/bcl-button/button.html.twig' with {
161
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with {
162
162
  clean_class: true,
163
163
  attributes: button_attributes
164
- } only %}
165
- </div>
166
- </div>
164
+ } only -%}
165
+ </div>{# -#}
166
+ </div>{# -#}
167
167
  <div class="modal-body d-flex align-items-center justify-content-center">
168
- {% block carousel %}
169
- {% for _item in _items %}
170
- {% set _carousel_items = _carousel_items|merge([_item|merge({
168
+ {%- block carousel %}
169
+ {%- for _item in _items %}
170
+ {%- set _carousel_items = _carousel_items|merge([_item|merge({
171
171
  caption_title: ('<iframe' in _item.media or '<video' in _item.media) ? '' : _item.caption_title,
172
172
  caption: ('<iframe' in _item.media or '<video' in _item.media) ? '' : _item.caption,
173
173
  image: ('<iframe' in _item.media or '<img' in _item.media) ? _item.media|replace({'src=': 'data-src='}) : _item.media,
174
174
  })]) %}
175
- {% endfor %}
176
- {% include '@oe-bcl/bcl-carousel/carousel.html.twig' with {
175
+ {%- endfor %}
176
+ {%- include '@oe-bcl/bcl-carousel/carousel.html.twig' with {
177
177
  id: _carousel_id,
178
178
  with_controls: true,
179
179
  with_indicators: false,
@@ -182,11 +182,10 @@ Parameters:
182
182
  autoplay: false,
183
183
  items: _carousel_items,
184
184
  } only %}
185
- {% endblock %}
186
- </div>
187
- </div>
188
- </div>
189
- </div>
185
+ {%- endblock -%}
186
+ </div>{# -#}
187
+ </div>{# -#}
188
+ </div>{# -#}
189
+ </div>{# -#}
190
190
  </div>
191
- {% endif %}
192
-
191
+ {%- endif -%}
@@ -1,42 +1,42 @@
1
1
  {% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
2
2
 
3
3
  {%- block content %}
4
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
4
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
5
5
  title: 'Description',
6
6
  title_tag: 'h2',
7
- } only %}
7
+ } only -%}
8
8
 
9
9
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
10
- volutpat ultricies massa, a dapibus libero porta nec. Sed facilisis dictum vestibulum.
11
- Fusce commodo hendrerit diam, pretium tempus leo varius sit amet.
12
- Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero
13
- orci semper lacus. Duis tristique fringilla magna, eu egestas dolor molestie non.
14
- Fusce commodo hendrerit diam, pretium tempus leo varius sit amet.
15
- Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero orci semper lacus.
16
- Duis tristique fringilla magna, eu egestas dolor molestie non.</p>
17
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse volutpat ultricies massa,
10
+ volutpat ultricies massa, a dapibus libero porta nec. Sed facilisis dictum vestibulum.
11
+ Fusce commodo hendrerit diam, pretium tempus leo varius sit amet.
12
+ Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero
13
+ orci semper lacus. Duis tristique fringilla magna, eu egestas dolor molestie non.
14
+ Fusce commodo hendrerit diam, pretium tempus leo varius sit amet.
15
+ Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero orci semper lacus.
16
+ Duis tristique fringilla magna, eu egestas dolor molestie non.</p>{# -#}
17
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse volutpat ultricies massa,
18
18
  a dapibus libero porta nec. Sed facilisis dictum vestibulum. Fusce commodo hendrerit diam, pretium tempus
19
19
  leo varius sit amet. Etiam interdum, orci at sagittis luctus, lorem libero tempus mauris, a fermentum libero
20
- orci semper lacus. Duis tristique fringilla magna, eu egestas dolor molestie non. </p>
20
+ orci semper lacus. Duis tristique fringilla magna, eu egestas dolor molestie non. </p>{# -#}
21
21
  <p>Lorem ipsum dolor
22
22
  sit amet, consectetur adipiscing elit. Suspendisse volutpat ultricies massa, a dapibus libero porta nec.
23
23
  Sed facilisis dictum vestibulum.
24
- Fusce commodo hendrerit diam, pretium tempus leo varius sit amet. Etiam interdum, orci at sagittis luctus,
24
+ Fusce commodo hendrerit diam, pretium tempus leo varius sit amet. Etiam interdum, orci at sagittis luctus,
25
25
  lorem libero tempus mauris, a fermentum libero orci semper lacus. Duis tristique fringilla magna,
26
26
  eu egestas dolor molestie non. </p>
27
27
 
28
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
28
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
29
29
  title: 'File Downloads',
30
30
  title_tag: 'h2',
31
31
  attributes: create_attribute().addClass('mt-5', 'mb-4'),
32
32
  } only %}
33
33
 
34
- {% for file in files %}
35
- {% if loop.last %}
36
- {% set file_classes = 'mt-4' %}
37
- {% endif %}
34
+ {%- for file in files %}
35
+ {%- if loop.last %}
36
+ {%- set file_classes = 'mt-4' %}
37
+ {%- endif -%}
38
38
  <div {{ file_classes ? 'class="' ~ file_classes ~ '"' }}>
39
- {% include '@oe-bcl/bcl-file/file.html.twig' with file only %}
39
+ {%- include '@oe-bcl/bcl-file/file.html.twig' with file only -%}
40
40
  </div>
41
- {% endfor %}
41
+ {%- endfor %}
42
42
  {%- endblock -%}
@@ -1,17 +1,17 @@
1
1
  {% extends '@oe-bcl/bcl-base-templates/listing-page.html.twig' -%}
2
2
 
3
3
  {%- block content_row %}
4
- {% include '@oe-bcl/bcl-pagination/pagination.html.twig' with glossary only %}
5
- <div class="col-12">
4
+ {%- include '@oe-bcl/bcl-pagination/pagination.html.twig' with glossary only -%}
5
+ <div class="col-12">{# -#}
6
6
  <div class="d-md-flex justify-content-end mb-md-4-75 align-items-center border-bottom-md border-top-md border-gray-300 py-3">
7
- {% include '@oe-bcl/bcl-select/select.html.twig' with sortBy only %}
8
- {% include '@oe-bcl/bcl-select/select.html.twig' with itemsPerPage only %}
9
- </div>
7
+ {%- include '@oe-bcl/bcl-select/select.html.twig' with sortBy only %}
8
+ {%- include '@oe-bcl/bcl-select/select.html.twig' with itemsPerPage only -%}
9
+ </div>{# -#}
10
10
  </div>
11
11
  {%- endblock -%}
12
12
 
13
13
  {%- block content_top %}
14
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
14
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
15
15
  title: 'Starting with "A" (48)',
16
16
  title_tag: 'h2',
17
17
  } only %}
@@ -1,101 +1,101 @@
1
1
  {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
2
2
 
3
- {%- block banner %}
3
+ {%- block banner -%}
4
4
  <div class="container">
5
- {% if banner is not empty %}
5
+ {%- if banner is not empty -%}
6
6
  <div class="mt-4 mt-md-5">
7
- {% if banner.image is not empty %}
7
+ {%- if banner.image is not empty -%}
8
8
  <img
9
9
  src="{{ banner.image.path }}"
10
10
  {% if banner.image.alt is not empty %}
11
11
  alt="{{ banner.image.alt }}"
12
12
  {% endif %}
13
- {% if banner.image.class is not empty %}
13
+ {%- if banner.image.class is not empty %}
14
14
  class="{{ banner.image.class }}"
15
15
  {% endif %}
16
16
  />
17
- {% endif %}
18
- {% if banner.title is not empty %}
19
- <div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
17
+ {%- endif %}
18
+ {%- if banner.title is not empty -%}
19
+ <div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">{# -#}
20
20
  <h1 class="mb-0 d-inline-block">{{ banner.title }}</h1>
21
- {% if banner.actions is not empty and banner.actions is iterable %}
21
+ {%- if banner.actions is not empty and banner.actions is iterable -%}
22
22
  <div class="d-grid d-md-block ms-auto">
23
- {% for _action in banner.actions %}
24
- {% if _action.type == "link" %}
25
- {% include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
26
- {% elseif _action.type == "button" %}
27
- {% include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
28
- {% elseif _action.type == "dropdown" %}
29
- {% include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
30
- {% endif %}
31
- {% endfor %}
23
+ {%- for _action in banner.actions %}
24
+ {%- if _action.type == "link" %}
25
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
26
+ {%- elseif _action.type == "button" %}
27
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
28
+ {%- elseif _action.type == "dropdown" %}
29
+ {%- include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
30
+ {%- endif %}
31
+ {%- endfor -%}
32
32
  </div>
33
- {% endif %}
33
+ {%- endif -%}
34
34
  </div>
35
- {% endif %}
35
+ {%- endif -%}
36
36
  </div>
37
- {% endif %}
38
- {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
39
- {% if banner_description is not empty and contact is not empty %}
40
- {% include '@oe-bcl/bcl-link/link.html.twig' with banner_description.collapse_trigger only %}
41
- <div class="collapse d-md-block" id="banner-description">
42
- <div class="row mt-md-4 mb-md-5 pb-md-5">
43
- <div class="col-md-8">
37
+ {%- endif %}
38
+ {%- include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
39
+ {%- if banner_description is not empty and contact is not empty %}
40
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with banner_description.collapse_trigger only -%}
41
+ <div class="collapse d-md-block" id="banner-description">{# -#}
42
+ <div class="row mt-md-4 mb-md-5 pb-md-5">{# -#}
43
+ <div class="col-md-8">{# -#}
44
44
  <div class="ps-md-3">
45
- {% if banner_description.metas is not empty and banner_description.metas is iterable %}
45
+ {%- if banner_description.metas is not empty and banner_description.metas is iterable -%}
46
46
  <div class="d-block">
47
- {% for _meta in banner_description.metas %}
47
+ {%- for _meta in banner_description.metas -%}
48
48
  <p class="mb-0 me-4 d-inline-block text-muted">
49
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with _meta.icon only %}
49
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _meta.icon only %}
50
50
  {{- _meta.label -}}
51
51
  </p>
52
- {% endfor %}
52
+ {%- endfor -%}
53
53
  </div>
54
- {% endif %}
55
- {{ banner_description.content }}
56
- </div>
57
- </div>
58
- <div class="col-md-4">
54
+ {%- endif %}
55
+ {{- banner_description.content -}}
56
+ </div>{# -#}
57
+ </div>{# -#}
58
+ <div class="col-md-4">{# -#}
59
59
  <h2 class="mb-3 pb-2">{{ contact.title }}</h2>
60
- {% if contact.profiles is not empty and contact.profiles is iterable %}
61
- {% for _profile in contact.profiles %}
62
- {% include '@oe-bcl/bcl-user/user-compact.html.twig' with _profile only %}
63
- {% endfor %}
64
- {% endif %}
65
- {% if contact.more_link is not empty %}
66
- {% include '@oe-bcl/bcl-link/link.html.twig' with contact.more_link only %}
67
- {% endif %}
68
- </div>
69
- </div>
60
+ {%- if contact.profiles is not empty and contact.profiles is iterable %}
61
+ {%- for _profile in contact.profiles %}
62
+ {%- include '@oe-bcl/bcl-user/user-compact.html.twig' with _profile only %}
63
+ {%- endfor %}
64
+ {%- endif %}
65
+ {%- if contact.more_link is not empty %}
66
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with contact.more_link only %}
67
+ {%- endif -%}
68
+ </div>{# -#}
69
+ </div>{# -#}
70
70
  </div>
71
- {% endif %}
71
+ {%- endif -%}
72
72
  </div>
73
73
  {%- endblock -%}
74
74
 
75
75
  {%- block content %}
76
- {% if recent is not empty and members is not empty %}
77
- <div class="row mt-3">
78
- <div class="col-md-8">
76
+ {%- if recent is not empty and members is not empty -%}
77
+ <div class="row mt-3">{# -#}
78
+ <div class="col-md-8">{# -#}
79
79
  <h2 class="mb-4 pb-2">{{ recent.title }}</h2>
80
- {% include '@oe-bcl/bcl-recent-activities/recent-activities.html.twig' with recent.block_data only %}
81
- </div>
82
- <div class="col-md-4">
83
- <h2 class="mt-4 mt-md-0 mb-4 pb-2">{{ members.title}}</h2>
84
- {% if members.profiles is not empty and members.profiles is iterable %}
85
- {% for _profile in members.profiles %}
86
- {% include '@oe-bcl/bcl-user/user-compact.html.twig' with _profile only %}
87
- {% endfor %}
88
- {% endif %}
89
- {% if members.more_link is not empty %}
90
- {% include '@oe-bcl/bcl-link/link.html.twig' with members.more_link only %}
91
- {% endif %}
92
- </div>
80
+ {%- include '@oe-bcl/bcl-recent-activities/recent-activities.html.twig' with recent.block_data only -%}
81
+ </div>{# -#}
82
+ <div class="col-md-4">{# -#}
83
+ <h2 class="mt-4 mt-md-0 mb-4 pb-2">{{ members.title }}</h2>
84
+ {%- if members.profiles is not empty and members.profiles is iterable %}
85
+ {%- for _profile in members.profiles %}
86
+ {%- include '@oe-bcl/bcl-user/user-compact.html.twig' with _profile only %}
87
+ {%- endfor %}
88
+ {%- endif %}
89
+ {%- if members.more_link is not empty %}
90
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with members.more_link only %}
91
+ {%- endif -%}
92
+ </div>{# -#}
93
93
  </div>
94
- {% endif %}
95
- {% if contributions is not empty %}
96
- <h2 class="my-4 pt-3 pb-2">{{ contributions.title}}</h2>
97
- {% if contributions.listing is not empty %}
98
- {% include '@oe-bcl/bcl-listing/listing.html.twig' with contributions.listing only %}
99
- {% endif %}
100
- {% endif %}
94
+ {%- endif %}
95
+ {%- if contributions is not empty -%}
96
+ <h2 class="my-4 pt-3 pb-2">{{ contributions.title }}</h2>
97
+ {%- if contributions.listing is not empty %}
98
+ {%- include '@oe-bcl/bcl-listing/listing.html.twig' with contributions.listing only %}
99
+ {%- endif %}
100
+ {%- endif %}
101
101
  {%- endblock -%}
@@ -1,27 +1,27 @@
1
1
  {% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" -%}
2
2
 
3
- {%- block banner %}
4
- <div class="container mt-4 mt-md-5">
5
- <div class="col-xxl-11">
6
- <div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
3
+ {%- block banner -%}
4
+ <div class="container mt-4 mt-md-5">{# -#}
5
+ <div class="col-xxl-11">{# -#}
6
+ <div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">{# -#}
7
7
  <h1 class="mb-0 d-inline-block">{{ banner.main_title }}</h1>
8
- {% if banner.actions is not empty and banner.actions is iterable %}
8
+ {%- if banner.actions is not empty and banner.actions is iterable -%}
9
9
  <div class="d-grid d-md-block ms-auto">
10
- {% for _action in banner.actions %}
11
- {% if _action.type == "link" %}
12
- {% include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
13
- {% elseif _action.type == "button" %}
14
- {% include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
15
- {% elseif _action.type == "dropdown" %}
16
- {% include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
17
- {% endif %}
18
- {% endfor %}
10
+ {%- for _action in banner.actions %}
11
+ {%- if _action.type == "link" %}
12
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
13
+ {%- elseif _action.type == "button" %}
14
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
15
+ {%- elseif _action.type == "dropdown" %}
16
+ {%- include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
17
+ {%- endif %}
18
+ {%- endfor -%}
19
19
  </div>
20
- {% endif %}
20
+ {%- endif -%}
21
21
  </div>
22
- {% if navigation is not empty %}
23
- {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
24
- {% endif %}
25
- </div>
22
+ {%- if navigation is not empty %}
23
+ {%- include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
24
+ {%- endif -%}
25
+ </div>{# -#}
26
26
  </div>
27
27
  {%- endblock -%}