@openeuropa/bcl-twig-templates 0.22.0 → 0.23.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.
Files changed (35) hide show
  1. package/package.json +64 -64
  2. package/templates/bcl-badge/badge.html.twig +13 -9
  3. package/templates/bcl-banner/banner.html.twig +4 -0
  4. package/templates/bcl-base-templates/content-type.html.twig +3 -3
  5. package/templates/bcl-base-templates/listing-page.html.twig +19 -9
  6. package/templates/bcl-card/card.html.twig +22 -19
  7. package/templates/bcl-content-banner/content-banner.html.twig +35 -32
  8. package/templates/bcl-description-list/description-list.html.twig +7 -6
  9. package/templates/bcl-event/event.html.twig +2 -2
  10. package/templates/bcl-fact-figures/fact-figures.html.twig +26 -24
  11. package/templates/bcl-file/file.html.twig +14 -9
  12. package/templates/bcl-form/form.html.twig +3 -0
  13. package/templates/bcl-gallery/gallery.html.twig +15 -14
  14. package/templates/bcl-group/group-landing.html.twig +7 -7
  15. package/templates/bcl-group/group.html.twig +1 -1
  16. package/templates/bcl-heading/heading.html.twig +9 -11
  17. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +16 -8
  18. package/templates/bcl-landing-page/landing-page.html.twig +2 -2
  19. package/templates/bcl-links-block/links-block.html.twig +12 -8
  20. package/templates/bcl-listing/listing.html.twig +11 -4
  21. package/templates/bcl-modal/modal.html.twig +4 -1
  22. package/templates/bcl-offcanvas/offcanvas.html.twig +16 -19
  23. package/templates/bcl-page/page.html.twig +3 -3
  24. package/templates/bcl-person/person.html.twig +11 -11
  25. package/templates/bcl-progress/progress.html.twig +3 -0
  26. package/templates/bcl-project/project-lists.html.twig +7 -4
  27. package/templates/bcl-project/project.html.twig +11 -19
  28. package/templates/bcl-recent-activities/recent-activities.html.twig +9 -7
  29. package/templates/bcl-search/search.html.twig +9 -2
  30. package/templates/bcl-timeline/timeline.html.twig +15 -14
  31. package/templates/bcl-user/{user-view-compact.html.twig → user-compact.html.twig} +0 -0
  32. package/templates/bcl-user/user-terms.html.twig +11 -0
  33. package/templates/bcl-user/user.html.twig +129 -0
  34. package/templates/bcl-user/user-edit.html.twig +0 -38
  35. package/templates/bcl-user/user-view.html.twig +0 -86
package/package.json CHANGED
@@ -2,74 +2,74 @@
2
2
  "name": "@openeuropa/bcl-twig-templates",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.22.0",
5
+ "version": "0.23.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.22.0",
12
- "@openeuropa/bcl-alert": "^0.22.0",
13
- "@openeuropa/bcl-badge": "^0.22.0",
14
- "@openeuropa/bcl-banner": "^0.22.0",
15
- "@openeuropa/bcl-base-templates": "^0.22.0",
16
- "@openeuropa/bcl-blockquote": "^0.22.0",
17
- "@openeuropa/bcl-breadcrumb": "^0.22.0",
18
- "@openeuropa/bcl-button": "^0.22.0",
19
- "@openeuropa/bcl-button-group": "^0.22.0",
20
- "@openeuropa/bcl-card": "^0.22.0",
21
- "@openeuropa/bcl-card-layout": "^0.22.0",
22
- "@openeuropa/bcl-carousel": "^0.22.0",
23
- "@openeuropa/bcl-contact-form": "^0.22.0",
24
- "@openeuropa/bcl-content-banner": "^0.22.0",
25
- "@openeuropa/bcl-date-block": "^0.22.0",
26
- "@openeuropa/bcl-description-list": "^0.22.0",
27
- "@openeuropa/bcl-dropdown": "^0.22.0",
28
- "@openeuropa/bcl-event": "^0.22.0",
29
- "@openeuropa/bcl-fact-figures": "^0.22.0",
30
- "@openeuropa/bcl-featured-media": "^0.22.0",
31
- "@openeuropa/bcl-file": "^0.22.0",
32
- "@openeuropa/bcl-footer": "^0.22.0",
33
- "@openeuropa/bcl-form": "^0.22.0",
34
- "@openeuropa/bcl-form-input": "^0.22.0",
35
- "@openeuropa/bcl-gallery": "^0.22.0",
36
- "@openeuropa/bcl-group": "^0.22.0",
37
- "@openeuropa/bcl-header": "^0.22.0",
38
- "@openeuropa/bcl-heading": "^0.22.0",
39
- "@openeuropa/bcl-icon": "^0.22.0",
40
- "@openeuropa/bcl-inpage-navigation": "^0.22.0",
41
- "@openeuropa/bcl-landing-page": "^0.22.0",
42
- "@openeuropa/bcl-language-list": "^0.22.0",
43
- "@openeuropa/bcl-language-switcher": "^0.22.0",
44
- "@openeuropa/bcl-link": "^0.22.0",
45
- "@openeuropa/bcl-links-block": "^0.22.0",
46
- "@openeuropa/bcl-list-group": "^0.22.0",
47
- "@openeuropa/bcl-listing": "^0.22.0",
48
- "@openeuropa/bcl-modal": "^0.22.0",
49
- "@openeuropa/bcl-multilingual": "^0.22.0",
50
- "@openeuropa/bcl-navbar": "^0.22.0",
51
- "@openeuropa/bcl-navigation": "^0.22.0",
52
- "@openeuropa/bcl-news": "^0.22.0",
53
- "@openeuropa/bcl-offcanvas": "^0.22.0",
54
- "@openeuropa/bcl-page": "^0.22.0",
55
- "@openeuropa/bcl-pagination": "^0.22.0",
56
- "@openeuropa/bcl-person": "^0.22.0",
57
- "@openeuropa/bcl-placeholder": "^0.22.0",
58
- "@openeuropa/bcl-progress": "^0.22.0",
59
- "@openeuropa/bcl-project": "^0.22.0",
60
- "@openeuropa/bcl-project-status": "^0.22.0",
61
- "@openeuropa/bcl-recent-activities": "^0.22.0",
62
- "@openeuropa/bcl-search": "^0.22.0",
63
- "@openeuropa/bcl-search-form": "^0.22.0",
64
- "@openeuropa/bcl-select": "^0.22.0",
65
- "@openeuropa/bcl-spinner": "^0.22.0",
66
- "@openeuropa/bcl-subscription": "^0.22.0",
67
- "@openeuropa/bcl-subscription-block": "^0.22.0",
68
- "@openeuropa/bcl-table": "^0.22.0",
69
- "@openeuropa/bcl-textarea": "^0.22.0",
70
- "@openeuropa/bcl-timeline": "^0.22.0",
71
- "@openeuropa/bcl-toast": "^0.22.0",
72
- "@openeuropa/bcl-user": "^0.22.0",
11
+ "@openeuropa/bcl-accordion": "^0.23.0",
12
+ "@openeuropa/bcl-alert": "^0.23.0",
13
+ "@openeuropa/bcl-badge": "^0.23.0",
14
+ "@openeuropa/bcl-banner": "^0.23.0",
15
+ "@openeuropa/bcl-base-templates": "^0.23.0",
16
+ "@openeuropa/bcl-blockquote": "^0.23.0",
17
+ "@openeuropa/bcl-breadcrumb": "^0.23.0",
18
+ "@openeuropa/bcl-button": "^0.23.0",
19
+ "@openeuropa/bcl-button-group": "^0.23.0",
20
+ "@openeuropa/bcl-card": "^0.23.0",
21
+ "@openeuropa/bcl-card-layout": "^0.23.0",
22
+ "@openeuropa/bcl-carousel": "^0.23.0",
23
+ "@openeuropa/bcl-contact-form": "^0.23.0",
24
+ "@openeuropa/bcl-content-banner": "^0.23.0",
25
+ "@openeuropa/bcl-date-block": "^0.23.0",
26
+ "@openeuropa/bcl-description-list": "^0.23.0",
27
+ "@openeuropa/bcl-dropdown": "^0.23.0",
28
+ "@openeuropa/bcl-event": "^0.23.0",
29
+ "@openeuropa/bcl-fact-figures": "^0.23.0",
30
+ "@openeuropa/bcl-featured-media": "^0.23.0",
31
+ "@openeuropa/bcl-file": "^0.23.0",
32
+ "@openeuropa/bcl-footer": "^0.23.0",
33
+ "@openeuropa/bcl-form": "^0.23.0",
34
+ "@openeuropa/bcl-form-input": "^0.23.0",
35
+ "@openeuropa/bcl-gallery": "^0.23.0",
36
+ "@openeuropa/bcl-group": "^0.23.0",
37
+ "@openeuropa/bcl-header": "^0.23.0",
38
+ "@openeuropa/bcl-heading": "^0.23.0",
39
+ "@openeuropa/bcl-icon": "^0.23.0",
40
+ "@openeuropa/bcl-inpage-navigation": "^0.23.0",
41
+ "@openeuropa/bcl-landing-page": "^0.23.0",
42
+ "@openeuropa/bcl-language-list": "^0.23.0",
43
+ "@openeuropa/bcl-language-switcher": "^0.23.0",
44
+ "@openeuropa/bcl-link": "^0.23.0",
45
+ "@openeuropa/bcl-links-block": "^0.23.0",
46
+ "@openeuropa/bcl-list-group": "^0.23.0",
47
+ "@openeuropa/bcl-listing": "^0.23.0",
48
+ "@openeuropa/bcl-modal": "^0.23.0",
49
+ "@openeuropa/bcl-multilingual": "^0.23.0",
50
+ "@openeuropa/bcl-navbar": "^0.23.0",
51
+ "@openeuropa/bcl-navigation": "^0.23.0",
52
+ "@openeuropa/bcl-news": "^0.23.0",
53
+ "@openeuropa/bcl-offcanvas": "^0.23.0",
54
+ "@openeuropa/bcl-page": "^0.23.0",
55
+ "@openeuropa/bcl-pagination": "^0.23.0",
56
+ "@openeuropa/bcl-person": "^0.23.0",
57
+ "@openeuropa/bcl-placeholder": "^0.23.0",
58
+ "@openeuropa/bcl-progress": "^0.23.0",
59
+ "@openeuropa/bcl-project": "^0.23.0",
60
+ "@openeuropa/bcl-project-status": "^0.23.0",
61
+ "@openeuropa/bcl-recent-activities": "^0.23.0",
62
+ "@openeuropa/bcl-search": "^0.23.0",
63
+ "@openeuropa/bcl-search-form": "^0.23.0",
64
+ "@openeuropa/bcl-select": "^0.23.0",
65
+ "@openeuropa/bcl-spinner": "^0.23.0",
66
+ "@openeuropa/bcl-subscription": "^0.23.0",
67
+ "@openeuropa/bcl-subscription-block": "^0.23.0",
68
+ "@openeuropa/bcl-table": "^0.23.0",
69
+ "@openeuropa/bcl-textarea": "^0.23.0",
70
+ "@openeuropa/bcl-timeline": "^0.23.0",
71
+ "@openeuropa/bcl-toast": "^0.23.0",
72
+ "@openeuropa/bcl-user": "^0.23.0",
73
73
  "copyfiles": "2.4.1",
74
74
  "rimraf": "3.0.2"
75
75
  },
@@ -92,5 +92,5 @@
92
92
  "design-system",
93
93
  "twig"
94
94
  ],
95
- "gitHead": "57304ad94ae3c234f2f2b904208ce540a7a53f23"
95
+ "gitHead": "fa2097e14024989cddf6f9cd7a9115bed5886aeb"
96
96
  }
@@ -33,22 +33,25 @@
33
33
  {% set _classes = _classes|merge([ 'bg-' ~ _background]) %}
34
34
  {% endif %}
35
35
 
36
- {% if _background in ['light', 'warning'] %}
37
- {% set _classes = _classes|merge(['text-dark']) %}
38
- {% endif %}
39
-
40
36
  {% if attributes is empty %}
41
37
  {% set attributes = create_attribute() %}
42
38
  {% endif %}
43
39
 
40
+ {%- if _url is not empty -%}
41
+ {% set attributes = attributes.setAttribute('title', _title).setAttribute('href', _url) %}
42
+ {%- endif -%}
43
+
44
44
  {% set attributes = attributes.addClass(_classes) %}
45
45
 
46
46
  {%- if _url is not empty -%}
47
- <a href="{{ _url }}" title="{{ _title }}">
47
+ <a
48
+ {{ attributes }}
49
+ >
50
+ {%- else -%}
51
+ <span
52
+ {{ attributes }}
53
+ >
48
54
  {%- endif -%}
49
- <span
50
- {{ attributes }}
51
- >
52
55
  {%- if _assistive_text is not empty -%}
53
56
  <span class="visually-hidden">
54
57
  {{- _assistive_text -}}
@@ -63,9 +66,10 @@
63
66
  } only %}
64
67
  </span>
65
68
  {%- endif -%}
66
- </span>
67
69
  {%- if _url is not empty -%}
68
70
  </a>
71
+ {%- else -%}
72
+ </span>
69
73
  {%- endif -%}
70
74
 
71
75
  {% endspaceless %}
@@ -3,6 +3,8 @@
3
3
  {# Parameters:
4
4
  - title: (string) (default: "")
5
5
  - title_tag: (string) (default: "div")
6
+ - title_link: (link object) (default: {})
7
+ - title_attributes (drupal attrs)
6
8
  - description: (string) (default: "")
7
9
  - link: (link object) (default: {}): predefined structure for Link component
8
10
  - image: (string) <img> tag
@@ -14,6 +16,7 @@
14
16
 
15
17
  {% set _title = title|default('') %}
16
18
  {% set _title_tag = title_tag|default('div') %}
19
+ {% set _title_link = title_link|default({}) %}
17
20
  {% set _title_attributes = title_attributes ?: create_attribute() %}
18
21
  {% set _description = description|default('') %}
19
22
  {% set _link = link|default({}) %}
@@ -60,6 +63,7 @@
60
63
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
61
64
  title: _title,
62
65
  title_tag: _title_tag,
66
+ title_link: _title_link,
63
67
  attributes: _title_attributes,
64
68
  } only %}
65
69
  {% endif %}
@@ -116,6 +116,9 @@
116
116
  {% block related %}
117
117
  {{ related }}
118
118
  {% endblock %}
119
+ {% block share %}
120
+ {{ share }}
121
+ {% endblock %}
119
122
  </div>
120
123
  </div>
121
124
  </main>
@@ -123,9 +126,6 @@
123
126
  {% block feedback %}
124
127
  {{ feedback }}
125
128
  {% endblock %}
126
- {% block share %}
127
- {{ share }}
128
- {% endblock %}
129
129
 
130
130
  {% if _with_footer %}
131
131
  {% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
@@ -1,29 +1,39 @@
1
1
  {#
2
2
  Parameters:
3
+ - title: (string) (default: '')
4
+ - title_tag: (string) (default: 'h2')
5
+ - title_link: (link object) (default: {})
6
+ - title_attributes (drupal attrs)
3
7
  - listing (object) (default: {})
4
8
  - pagination (object) (default: {})
5
9
  - sidebar (object) (default: '')
6
- - page_title (string) (default: '')
7
10
  #}
8
11
 
9
12
  {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
10
13
 
14
+ {% set _title = title|default('') %}
15
+ {% set _title_tag = title_tag|default('h2') %}
16
+ {% set _title_link = title_link|default({}) %}
17
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
11
18
  {% set _listing = listing|default({}) %}
12
19
  {% set _pagination = pagination|default({}) %}
13
20
  {% set _search = search|default({}) %}
14
21
  {% set _sidebar = sidebar|default({}) %}
15
- {% set _page_title = page_title|default({}) %}
22
+
23
+ {% set _title_attributes = _title_attributes ?: create_attribute() %}
16
24
 
17
25
  {% block content_top %}
18
26
  {% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
19
27
  <div class="row">
20
28
  <div class="col-md-6 col-lg-8 align-self-center">
21
- <h4 class="mb-0">
22
- <span class="text-capitalize">
23
- {{- _page_title -}}
24
- </span>
25
- ({{ listing.items.length }})
26
- </h4>
29
+ {% if _title is not empty %}
30
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
31
+ title: _title ~ ' (' ~ listing.items.length ~ ')',
32
+ title_tag: _title_tag,
33
+ title_link: _title_link,
34
+ attributes: _title_attributes.addClass(['mb-0', 'text-capitalize']),
35
+ } only %}
36
+ {% endif %}
27
37
  </div>
28
38
  {% if badges is not empty and badges is iterable %}
29
39
  <div class="col-md-12 order-md-2 mt-3">
@@ -47,7 +57,7 @@
47
57
 
48
58
  {% block content %}
49
59
  {% if _listing is not empty %}
50
- {% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing %}
60
+ {% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
51
61
  {% endif %}
52
62
  {% endblock %}
53
63
 
@@ -1,12 +1,10 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - title (object) (default: {})
5
- format: {
6
- content: '',
7
- tag: '',
8
- classes: ''
9
- }
4
+ - title: (string) (default: '')
5
+ - title_tag: (string) (default: 'h5')
6
+ - title_link: (link object) (default: {})
7
+ - title_attributes (drupal attrs)
10
8
  - subtitle (object) (default: {})
11
9
  format: {
12
10
  content: '',
@@ -51,7 +49,10 @@
51
49
  - card_links
52
50
  #}
53
51
 
54
- {% set _title = title|default({}) %}
52
+ {% set _title = title|default('') %}
53
+ {% set _title_tag = title_tag|default('h1') %}
54
+ {% set _title_link = title_link|default({}) %}
55
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
55
56
  {% set _subtitle = subtitle|default({}) %}
56
57
  {% set _text = text|default({}) %}
57
58
  {% set _content = content|default('') %}
@@ -116,7 +117,7 @@
116
117
 
117
118
  {% set attributes = attributes.addClass(_classes) %}
118
119
 
119
- <div
120
+ <article
120
121
  {{ attributes }}
121
122
  >
122
123
  {% if _card_header is not empty %}
@@ -171,16 +172,18 @@
171
172
  <div class='{{ _horizontal_grid.right_col_classes }}'>
172
173
  {% endif %}
173
174
  <div class='{{ _body_classes }}'>
174
- {%- if _title is not empty -%}
175
- {% set _title_tag = _title.tag ?? 'h5' %}
176
- <{{ _title_tag }}
177
- {% set _title_attributes = title.attributes ?: create_attribute() %}
178
- {% set _title_attributes = _title_attributes.addClass("card-title") %}
179
- {{ _title_attributes }}
180
- >
181
- {{- title.content -}}
182
- </{{ _title_tag }}>
183
- {%- endif -%}
175
+ {% if _title is not empty %}
176
+ {% if _title_attributes.class is empty %}
177
+ {% set _title_attributes = _title_attributes.addClass('fs-5') %}
178
+ {% endif %}
179
+ {% set _title_attributes = _title_attributes.addClass('card-title') %}
180
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
181
+ title: _title,
182
+ title_tag: _title_tag,
183
+ title_link: _title_link,
184
+ attributes: _title_attributes,
185
+ } only %}
186
+ {% endif %}
184
187
  {%- if _subtitle is not empty -%}
185
188
  {% set _subtitle_tag = _subtitle.tag ?? 'h6' %}
186
189
  <{{ _subtitle_tag }}
@@ -270,6 +273,6 @@
270
273
  {{- _card_footer -}}
271
274
  </div>
272
275
  {% endif %}
273
- </div>
276
+ </article>
274
277
 
275
278
  {% endspaceless %}
@@ -2,29 +2,37 @@
2
2
 
3
3
  {#
4
4
  Parameters:
5
- - "background" (string) (default: 'white')
5
+ - background: (string) (default: 'white')
6
6
  options: [ white, gray ]
7
- - "title" (object)
8
- - "image" (object)
9
- - "image_size" (string)
7
+ - title: (string) (default: '')
8
+ - title_tag: (string) (default: 'h5')
9
+ - title_link: (link object) (default: {})
10
+ - title_attributes: (drupal attrs)
11
+ - image (object)
12
+ - image_size: (string)
13
+ - date: (object)
10
14
  options: ['sm', 'md', 'lg']
11
- - "content" (string)
12
- - "badges" (array of objects of type badge)
13
- - "links" (array of objects of type link)
14
- - "action_button" (object of type button) (default: {})
15
- - "service_buttons" (array of objects of type button) (default: [])
16
- - "attributes" (drupal attrs)
15
+ - content: (string)
16
+ - badges: (array of objects of type badge)
17
+ - links: (array of objects of type link)
18
+ - attributes: (drupal attrs)
19
+
20
+ Blocks
21
+ - "action_bar" (string)
17
22
  #}
18
23
 
24
+ {% set _title = title|default('') %}
25
+ {% set _title_tag = title_tag|default('h1') %}
26
+ {% set _title_link = title_link|default({}) %}
27
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
19
28
  {% set _background = background|default('white') %}
20
- {% set _action_button = action_button|default({}) %}
21
- {% set _service_buttons = service_buttons|default([]) %}
29
+ {% set _action_bar = action_bar|default('') %}
22
30
  {% set _image = image|default({}) %}
31
+ {% set _date = date|default({}) %}
23
32
  {% set _image_size = image_size|default('md') %}
24
33
 
25
34
  {% set _css_classes = [
26
35
  'bcl-content-banner',
27
- 'pt-lg-4-75',
28
36
  ] %}
29
37
 
30
38
  {% if _background != 'white' %}
@@ -32,10 +40,12 @@
32
40
  'pb-md-4-75',
33
41
  'pb-4',
34
42
  'pt-4',
43
+ 'pt-md-4-75',
35
44
  ]) %}
36
45
  {% else %}
37
46
  {% set _css_classes = _css_classes|merge([
38
- 'pt-3'
47
+ 'pt-4',
48
+ 'pt-md-4-75',
39
49
  ]) %}
40
50
  {% endif %}
41
51
 
@@ -64,6 +74,10 @@
64
74
  {% set _left_col_classes = 'col-6 col-md-4 col-lg-2 offset-3 offset-md-0' %}
65
75
  {% endif %}
66
76
  {% endif %}
77
+ {% if _date is not empty %}
78
+ {% set _left_col_classes = 'col-8 col-md-3 col-lg-2 offset-4 offset-md-0' %}
79
+ {% set _right_col_classes = 'col-md-9 col-lg-10 col-xxl-8' %}
80
+ {% endif %}
67
81
 
68
82
  {% set _horizontal_classes = {
69
83
  left_col_classes: _left_col_classes,
@@ -71,10 +85,10 @@
71
85
  } %}
72
86
 
73
87
  {% set _card = {
74
- title: title|default({})|merge({
75
- tag: 'h2',
76
- attributes: create_attribute().addClass(['fw-bold']),
77
- }),
88
+ title: _title,
89
+ title_tag: _title_tag,
90
+ title_link: _title_link,
91
+ title_attributes: _title_attributes.addClass('mb-0'),
78
92
  horizontal: true,
79
93
  horizontal_grid: _horizontal_classes,
80
94
  extra_classes_header: 'bg-transparent pt-0 pb-0 border-0',
@@ -92,20 +106,9 @@
92
106
  <div class="container">
93
107
  {% include '@oe-bcl/bcl-card/card.html.twig' with _card %}
94
108
 
95
- {% if _service_buttons is not empty or _action_button is not empty %}
96
- <div class="d-flex justify-content-end mt-2 align-items-center">
97
- {% if _service_buttons is not empty %}
98
- {% for _button in _service_buttons %}
99
- {% include '@oe-bcl/bcl-button/button.html.twig' with _button only %}
100
- {% endfor %}
101
- {% endif %}
102
- {% if _action_button is not empty %}
103
- <div class="d-grid d-md-block ms-3">
104
- {% include '@oe-bcl/bcl-button/button.html.twig' with _action_button only %}
105
- </div>
106
- {% endif %}
107
- </div>
108
- {% endif %}
109
+ {%- block action_bar -%}
110
+ {{ _action_bar }}
111
+ {%- endblock -%}
109
112
  </div>
110
113
  </div>
111
114
 
@@ -4,25 +4,25 @@
4
4
  Parameters:
5
5
  - title: (string) (default: "")
6
6
  - title_tag: (string) (default: "h2")
7
+ - title_link: (link object) (default: {})
7
8
  - title_attributes (drupal attrs)
8
- - "items" (array) (default: []): format: [
9
+ - items (array) (default: []): format: [
9
10
  {
10
- "term" (object or array of object) -format: {
11
+ term (object or array of object) -format: {
11
12
  icon: {} - icon object,
12
13
  label: ""
13
14
  }
14
- "definition" (block or array of string)
15
+ definition (block or array of string)
15
16
  },
16
17
  ...
17
18
  ]
18
- - "variant" (string) (default: '')
19
+ - variant (string) (default: '')
19
20
  - option: ["horizontal"]
20
21
  #}
21
22
 
22
- {# Parameters #}
23
-
24
23
  {% set _title = title|default('') %}
25
24
  {% set _title_tag = title_tag|default('h2') %}
25
+ {% set _title_link = title_link|default({}) %}
26
26
  {% set _title_attributes = title_attributes ?: create_attribute() %}
27
27
  {% set _items = items|default([]) %}
28
28
  {% set _variant = variant|default('') %}
@@ -39,6 +39,7 @@
39
39
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
40
40
  title: _title,
41
41
  title_tag: _title_tag,
42
+ title_link: _title_link,
42
43
  attributes: _title_attributes,
43
44
  } only %}
44
45
  {% endif %}
@@ -7,7 +7,7 @@
7
7
  {% block content %}
8
8
  {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with details_list only %}
9
9
 
10
- <h3 id="item-1" class="fw-bold my-4">Description</h3>
10
+ <h2 id="item-1" class="my-4">Description</h2>
11
11
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet eleifend tortor. In facilisis eros vitae turpis ullamcorper,
12
12
  a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
13
13
  posuere ante ut, rhoncus tortor. Proin sed erat vel nisl luctus vulputate. Nunc tristique ultricies turpis, eu dictum enim ultrices vel.
@@ -18,7 +18,7 @@
18
18
  a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet.
19
19
  </p>
20
20
 
21
- <h3 id="item-2" class="fw-bold my-4">Related documents</h3>
21
+ <h2 id="item-2" class="my-4">Related documents</h2>
22
22
  {% include '@oe-bcl/bcl-file/file.html.twig' with files[0] only %}
23
23
  {% include '@oe-bcl/bcl-file/file.html.twig' with files[1] only %}
24
24
  {% endblock %}
@@ -2,31 +2,32 @@
2
2
 
3
3
  {#
4
4
  Parameters:
5
- - "title" (string) (default: '')
6
- - "title_tag" (string) (default: 'h2')
7
- - "variant" (string) (default: '') options:
5
+ - title (string) (default: '')
6
+ - title_tag (string) (default: 'h2')
7
+ - title_link: (link object) (default: {})
8
+ - title_attributes (drupal attrs)
9
+ - variant (string) (default: '') options:
8
10
  [ default, block ]
9
- - "display_icons" (boolean) (default: true)
10
- - "items" (array) (default: []):
11
- - "icon" (associate array) (default: { size: 'm' })
12
- - "subtitle" (string) (default: '')
13
- - "title" (string) (default: '')
14
- - "description" (string) (default:'')
15
- - "grid_columns" (int) (default: 1)
16
- - "responsiveness" (string) (default: 'md')
17
- - "responsive_columns" (integer) (default: 3)
18
- - "gutter" (int) (default: 4)
19
- - "equal_height" (boolean) (default: false)
20
- - "cols_extra_classes" (string) (default: '')
21
- - "icon_path" (string) (default: '')
22
- - "link_more" (object of type link) (default {})
11
+ - display_icons (boolean) (default: true)
12
+ - items (array) (default: []):
13
+ - icon (associate array) (default: { size: 'm' })
14
+ - subtitle (string) (default: '')
15
+ - title (string) (default: '')
16
+ - description (string) (default:'')
17
+ - grid_columns (int) (default: 1)
18
+ - responsiveness (string) (default: 'md')
19
+ - responsive_columns (integer) (default: 3)
20
+ - gutter (int) (default: 4)
21
+ - equal_height (boolean) (default: false)
22
+ - cols_extra_classes (string) (default: '')
23
+ - icon_path (string) (default: '')
24
+ - link_more (object of type link) (default {})
23
25
  #}
24
26
 
25
- {# Parameters #}
26
-
27
27
  {% set _title = title|default('') %}
28
28
  {% set _title_tag = title_tag|default('h2') %}
29
- {% set _title_attributes = title_attributes ?: create_attribute().addClass(['fw-bold']) %}
29
+ {% set _title_link = title_link|default({}) %}
30
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
30
31
  {% set _variant = variant|default('default') %}
31
32
  {% set _css_classes = ['bcl-fact-figures', 'bcl-fact-figures--' ~ _variant] %}
32
33
  {% set _display_icons = display_icons ?? true %}
@@ -72,6 +73,7 @@
72
73
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
73
74
  title: _title,
74
75
  title_tag: _title_tag,
76
+ title_link: _title_link,
75
77
  attributes: _title_attributes,
76
78
  } only %}
77
79
  {% endif %}
@@ -94,14 +96,14 @@
94
96
  {% include '@oe-bcl/bcl-icon/icon.html.twig' with _item.icon only %}
95
97
  {% endif %}
96
98
  {% if _item.title is defined and _item.title is not empty %}
97
- <h4 class="text-capitalize fw-bold mt-2">
99
+ <div class="fs-3 mt-2">
98
100
  {{- _item.title -}}
99
- </h4>
101
+ </div>
100
102
  {% endif %}
101
103
  {% if _item.subtitle is defined and _item.subtitle is not empty %}
102
- <h5 class="fw-bold">
104
+ <div class="fs-5">
103
105
  {{- _item.subtitle -}}
104
- </h5>
106
+ </div>
105
107
  {% endif %}
106
108
  {% if _item.description is defined and _item.description is not empty %}
107
109
  <p>