@openeuropa/bcl-theme-default 0.21.0 → 0.23.1

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 (98) hide show
  1. package/bcl-builder.config.js +2 -2
  2. package/css/oe-bcl-default.css +626 -410
  3. package/css/oe-bcl-default.css.map +1 -1
  4. package/css/oe-bcl-default.min.css +1 -1
  5. package/css/oe-bcl-default.min.css.map +1 -1
  6. package/icons/bcl-default-icons.svg +1 -1
  7. package/js/oe-bcl-default.bundle.js +3 -3
  8. package/js/oe-bcl-default.bundle.js.map +1 -1
  9. package/js/oe-bcl-default.bundle.min.js +1 -1
  10. package/js/oe-bcl-default.bundle.min.js.map +1 -1
  11. package/js/oe-bcl-default.esm.js +3 -3
  12. package/js/oe-bcl-default.esm.js.map +1 -1
  13. package/js/oe-bcl-default.esm.min.js +1 -1
  14. package/js/oe-bcl-default.esm.min.js.map +1 -1
  15. package/js/oe-bcl-default.umd.js +3 -3
  16. package/js/oe-bcl-default.umd.js.map +1 -1
  17. package/js/oe-bcl-default.umd.min.js +1 -1
  18. package/js/oe-bcl-default.umd.min.js.map +1 -1
  19. package/logos/ec/negative/logo-ec--jp.svg +72 -0
  20. package/logos/ec/negative/logo-ec--lb.svg +93 -0
  21. package/logos/ec/negative/logo-ec--ru.svg +91 -0
  22. package/logos/ec/negative/logo-ec--uk.svg +90 -0
  23. package/logos/ec/negative/logo-ec--zh.svg +72 -0
  24. package/logos/ec/positive/logo-ec--jp.svg +77 -0
  25. package/logos/ec/positive/logo-ec--lb.svg +93 -0
  26. package/logos/ec/positive/logo-ec--ru.svg +91 -0
  27. package/logos/ec/positive/logo-ec--uk.svg +90 -0
  28. package/logos/ec/positive/logo-ec--zh.svg +77 -0
  29. package/logos/eu/condensed-version/negative/logo-eu--jp.svg +17 -0
  30. package/logos/eu/condensed-version/negative/logo-eu--lb.svg +19 -0
  31. package/logos/eu/condensed-version/negative/logo-eu--ru.svg +19 -0
  32. package/logos/eu/condensed-version/negative/logo-eu--uk.svg +19 -0
  33. package/logos/eu/condensed-version/negative/logo-eu--zh.svg +7 -0
  34. package/logos/eu/condensed-version/positive/logo-eu--jp.svg +6 -0
  35. package/logos/eu/condensed-version/positive/logo-eu--lb.svg +6 -0
  36. package/logos/eu/condensed-version/positive/logo-eu--ru.svg +6 -0
  37. package/logos/eu/condensed-version/positive/logo-eu--uk.svg +6 -0
  38. package/logos/eu/condensed-version/positive/logo-eu--zh.svg +6 -0
  39. package/logos/eu/standard-version/negative/logo-eu--jp.svg +9 -0
  40. package/logos/eu/standard-version/negative/logo-eu--lb.svg +21 -0
  41. package/logos/eu/standard-version/negative/logo-eu--ru.svg +20 -0
  42. package/logos/eu/standard-version/negative/logo-eu--uk.svg +21 -0
  43. package/logos/eu/standard-version/negative/logo-eu--zh.svg +9 -0
  44. package/logos/eu/standard-version/positive/logo-eu--jp.svg +8 -0
  45. package/logos/eu/standard-version/positive/logo-eu--lb.svg +20 -0
  46. package/logos/eu/standard-version/positive/logo-eu--ru.svg +19 -0
  47. package/logos/eu/standard-version/positive/logo-eu--uk.svg +20 -0
  48. package/logos/eu/standard-version/positive/logo-eu--zh.svg +8 -0
  49. package/package.json +9 -9
  50. package/src/js/gallery/gallery.js +3 -3
  51. package/src/scss/_alert.scss +8 -0
  52. package/src/scss/_badge.scss +76 -58
  53. package/src/scss/_banners.scss +16 -0
  54. package/src/scss/_gallery.scss +7 -0
  55. package/src/scss/_inpage-navigation.scss +1 -2
  56. package/src/scss/_multiselect.scss +7 -7
  57. package/src/scss/base/_colors.scss +17 -6
  58. package/src/scss/base/_utilities.scss +9 -0
  59. package/src/scss/base/_variables.scss +4 -0
  60. package/src/scss/oe-bcl-default.scss +1 -0
  61. package/templates/bcl-alert/alert.html.twig +9 -1
  62. package/templates/bcl-badge/badge.html.twig +13 -9
  63. package/templates/bcl-banner/banner.html.twig +20 -9
  64. package/templates/bcl-base-templates/content-type.html.twig +3 -3
  65. package/templates/bcl-base-templates/listing-page.html.twig +19 -9
  66. package/templates/bcl-card/card.html.twig +22 -19
  67. package/templates/bcl-content-banner/content-banner.html.twig +35 -32
  68. package/templates/bcl-description-list/description-list.html.twig +14 -10
  69. package/templates/bcl-event/event.html.twig +2 -2
  70. package/templates/bcl-fact-figures/fact-figures.html.twig +31 -25
  71. package/templates/bcl-file/file.html.twig +22 -14
  72. package/templates/bcl-form/form.html.twig +10 -4
  73. package/templates/bcl-gallery/gallery.html.twig +23 -19
  74. package/templates/bcl-group/group-landing.html.twig +7 -7
  75. package/templates/bcl-group/group.html.twig +1 -1
  76. package/templates/bcl-heading/heading.html.twig +40 -0
  77. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +16 -8
  78. package/templates/bcl-landing-page/landing-page.html.twig +2 -2
  79. package/templates/bcl-links-block/links-block.html.twig +16 -6
  80. package/templates/bcl-listing/listing.html.twig +18 -8
  81. package/templates/bcl-modal/modal.html.twig +4 -1
  82. package/templates/bcl-offcanvas/offcanvas.html.twig +16 -19
  83. package/templates/bcl-page/page.html.twig +3 -3
  84. package/templates/bcl-person/person.html.twig +11 -11
  85. package/templates/bcl-progress/progress.html.twig +3 -0
  86. package/templates/bcl-project/project-lists.html.twig +70 -0
  87. package/templates/bcl-project/project.html.twig +51 -76
  88. package/templates/bcl-project-status/project-contributions.html.twig +56 -0
  89. package/templates/bcl-project-status/project-status.html.twig +14 -44
  90. package/templates/bcl-recent-activities/recent-activities.html.twig +9 -7
  91. package/templates/bcl-search/search.html.twig +9 -2
  92. package/templates/bcl-timeline/timeline.html.twig +22 -18
  93. package/templates/bcl-user/{user-view-compact.html.twig → user-compact.html.twig} +0 -0
  94. package/templates/bcl-user/user-terms.html.twig +11 -0
  95. package/templates/bcl-user/user.html.twig +129 -0
  96. package/yarn-error.log +17973 -0
  97. package/templates/bcl-user/user-edit.html.twig +0 -38
  98. package/templates/bcl-user/user-view.html.twig +0 -86
@@ -1,21 +1,27 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
+ - title: (string) (default: "")
5
+ - title_tag: (string) (default: "h2")
6
+ - title_link: (link object) (default: {})
7
+ - title_attributes (drupal attrs)
4
8
  - background: (string) (default: "gray")
5
9
  - options ["gray", "transparent"]
6
10
  - variant: (string) (default: "vertical")
7
11
  - options ["vertical", "horizontal"]
8
- - title: (string) (default: "")
9
- - title_tag: (string) (default: "h2")
10
12
  - links (array of link objects) (default: [])
11
13
  #}
12
14
 
13
- {% set _background = background|default("gray") %}
14
- {% set _variant = variant|default("vertical") %}
15
15
  {% set _title = title|default("") %}
16
16
  {% set _title_tag = title_tag|default("h2") %}
17
+ {% set _title_link = title_link|default({}) %}
18
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
19
+ {% set _background = background|default("gray") %}
20
+ {% set _variant = variant|default("vertical") %}
17
21
  {% set _links = links|default([])%}
18
22
 
23
+ {% set _title_classes = ['pb-3', 'mb-3', 'border-bottom'] %}
24
+
19
25
  {% if attributes is empty %}
20
26
  {% set attributes = create_attribute() %}
21
27
  {% endif %}
@@ -28,8 +34,12 @@
28
34
  {{ attributes }}
29
35
  >
30
36
  {% if _title is not empty %}
31
- {% set _title_classes = 'fw-bold pb-3 mb-3 border-bottom' %}
32
- <{{ _title_tag }} class="{{ _title_classes }}">{{ _title }}</{{ _title_tag }}>
37
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
38
+ title: _title,
39
+ title_tag: _title_tag,
40
+ title_link: _title_link,
41
+ attributes: _title_attributes.addClass(_title_classes),
42
+ } only %}
33
43
  {% endif %}
34
44
  {% if _links is not empty and _links is iterable %}
35
45
  <ul class="ps-0 mb-0">
@@ -1,20 +1,24 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - variant: (string) (default: "horizontal") options:
5
- [ default-1-col, highlight-1-col, default-2-col, default-3-col, highlight-2-col, highlight-3-col ]
6
4
  - title: (string) (default: "")
7
5
  - title_tag: (string) (default: "h2")
6
+ - title_link: (link object) (default: {})
7
+ - title_attributes (drupal attrs)
8
+ - variant: (string) (default: "horizontal") options:
9
+ [ default-1-col, highlight-1-col, default-2-col, default-3-col, highlight-2-col, highlight-3-col ]
8
10
  - items: (array of objects of type card)
9
11
  - link: (object of type link)
10
12
  - alignment: (string) (default: '') options:
11
13
  ['start', 'end', 'center', 'baseline', 'stretch']
12
14
  #}
13
15
 
14
- {% set _items = items|default([]) %}
15
- {% set _variant = variant|default('default-1-col') %}
16
16
  {% set _title = title|default('') %}
17
17
  {% set _title_tag = title_tag|default('h2') %}
18
+ {% set _title_link = title_link|default({}) %}
19
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
20
+ {% set _items = items|default([]) %}
21
+ {% set _variant = variant|default('default-1-col') %}
18
22
  {% set _alignment = alignment|default('') %}
19
23
  {% set _link = link|default({}) %}
20
24
  {% set _classes = ['bcl-listing', 'bcl-listing--' ~ _variant] %}
@@ -35,10 +39,12 @@
35
39
  <div {{ attributes }}>
36
40
 
37
41
  {% if _title is not empty %}
38
- {% set _title_classes = 'fw-bold mb-4' %}
39
- <{{ _title_tag }} class="{{ _title_classes }}">
40
- {{- _title -}}
41
- </{{ _title_tag }}>
42
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
43
+ title: _title,
44
+ title_tag: _title_tag,
45
+ title_link: _title_link,
46
+ title_attributes: _title_attributes,
47
+ } only %}
42
48
  {% endif %}
43
49
 
44
50
  {% if _items is not empty %}
@@ -63,6 +69,10 @@
63
69
  {% endif %}
64
70
  {% set _card_classes = [] %}
65
71
  {% set _card_attributes = card.attributes ? card.attributes : create_attribute() %}
72
+ {% set _card_title_attributes = card.title_attributes ? card.title_attributes : create_attribute() %}
73
+ {% set _card = _card|merge({
74
+ title_attributes: _card_title_attributes.addClass(['fs-5'])
75
+ }) %}
66
76
 
67
77
  {% if _variant == 'default-1-col' %}
68
78
  {% set _card_classes = [
@@ -37,6 +37,10 @@
37
37
  .addClass(_classes)
38
38
  %}
39
39
 
40
+ {% if _static_backdrop %}
41
+ {% set attributes = attributes.setAttribute('data-bs-backdrop', 'static') %}
42
+ {% endif %}
43
+
40
44
  <div
41
45
  {{ attributes }}
42
46
  >
@@ -45,7 +49,6 @@
45
49
  {{- _fullscreen_responsive ? ' modal-fullscreen-' ~ _fullscreen_responsive ~ '-down' -}}
46
50
  {{- _verticaly_centered ? ' modal-dialog-centered' -}}
47
51
  {{- _scrollable ? ' modal-dialog-scrollable' -}}"
48
- {{- _static_backdrop ? ' data-bs-backdrop="static"' -}}
49
52
  >
50
53
  <div class="modal-content">
51
54
  {% if header is not empty %}
@@ -1,12 +1,10 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - title (object) (default: {}) format: {
5
- label (string)
6
- id (string) (default: '')
7
- heading (string) (1, 2, 3, 4, 5, 6)
8
- extra_classes(string) (default: '')
9
- }
4
+ - title: (string) (default: "")
5
+ - title_tag: (string) (default: "h3")
6
+ - title_link: (link object) (default: {})
7
+ - title_attributes (drupal attrs)
10
8
  - placement (string) (default: '') (start, end, top, bottom)
11
9
  - id (string) (default: '')
12
10
  - body (string) (default: '')
@@ -18,7 +16,10 @@
18
16
  - extra_classes_close (string) (default: '')
19
17
  #}
20
18
 
21
- {% set _title = title|default({}) %}
19
+ {% set _title = title|default('') %}
20
+ {% set _title_tag = title_tag|default('h3') %}
21
+ {% set _title_link = title_link|default({}) %}
22
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
22
23
  {% set _body = body|default('') %}
23
24
  {% set _with_close = with_close ?? true %}
24
25
  {% set _with_backdrop = with_backdrop ?? true %}
@@ -66,19 +67,15 @@
66
67
  <div
67
68
  {{ attributes }}
68
69
  >
69
- {% if _with_close or
70
- (_title.label is defined and _title.label is not empty)
71
- %}
70
+ {% if _with_close or _title is not empty %}
72
71
  <div class="{{ _class_header }}">
73
- {% if _title.label is defined and _title.label is not empty %}
74
- <h{{ _title.heading|default(5) }}
75
- class="{{ 'offcanvas-title' ~ (_title.extra_classes ? ' ' ~ _title.extra_classes : '') }}"
76
- {% if _title.id is defined and _title.id is not empty %}
77
- id="{{ _title.id }}"
78
- {% endif %}
79
- >
80
- {{- _title.label -}}
81
- </h{{ _title.heading|default(5) }}>
72
+ {% if _title is not empty %}
73
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
74
+ title: _title,
75
+ title_tag: _title_tag,
76
+ title_link: _title_link,
77
+ attributes: _title_attributes.addClass(['offcanvas-title']),
78
+ } only %}
82
79
  {% endif %}
83
80
  {% if _with_close %}
84
81
  {% set button_attributes = create_attribute()
@@ -11,7 +11,7 @@
11
11
  Sed posuere at leo sit amet placerat. Sed dapibus viverra urna ac pretium. Praesent et laoreet erat, eget volutpat metus. Duis ac augue
12
12
  sed tortor elementum dignissim in sit amet velit. Nullam nec viverra mi.
13
13
  </p>
14
- <h3 id="item-1" class="fw-bold my-4">Section 1</h3>
14
+ <h2 id="item-1" class="my-4">Section 1</h2>
15
15
  {% if featured_item %}
16
16
  {% include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with featured_item only %}
17
17
  {% endif %}
@@ -24,7 +24,7 @@
24
24
  {% include '@oe-bcl/bcl-listing/listing.html.twig' with listing only %}
25
25
  {% endif %}
26
26
 
27
- <h3 id="item-2" class="fw-bold my-4">Section 2</h3>
27
+ <h2 id="item-2" class="my-4">Section 2</h2>
28
28
 
29
29
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet eleifend tortor. In facilisis eros vitae turpis ullamcorper,
30
30
  a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
@@ -50,7 +50,7 @@
50
50
  sed tortor elementum dignissim in sit amet velit. Nullam nec viverra mi.
51
51
  </p>
52
52
 
53
- <h3 id="item-3" class="fw-bold my-4">Section 3</h3>
53
+ <h2 id="item-3" class="my-4">Section 3</h2>
54
54
 
55
55
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet eleifend tortor. In facilisis eros vitae turpis ullamcorper,
56
56
  a euismod dolor lacinia. Nam facilisis ipsum et sollicitudin imperdiet. Curabitur a efficitur ante. Phasellus non felis laoreet,
@@ -5,10 +5,10 @@
5
5
  {% endblock %}
6
6
 
7
7
  {% block content %}
8
- {% if social_media.main_title is not empty %}
9
- <h3
10
- class="fw-bold mb-4"
11
- >{{- social_media.main_title -}}</h3>
8
+ {# {% if social_media.main_title is not empty %}
9
+ <h2
10
+ class="mb-4"
11
+ >{{- social_media.main_title -}}</h2>
12
12
  {% endif %}
13
13
  {% if social_media.links is defined and social_media.links is not empty %}
14
14
  <div class="mb-4-5">
@@ -16,12 +16,12 @@
16
16
  {% include '@oe-bcl/bcl-link/link.html.twig' with link only %}
17
17
  {% endfor %}
18
18
  </div>
19
- {% endif %}
19
+ {% endif %} #}
20
20
 
21
21
  {% if information.main_title is not empty %}
22
- <h3
23
- class="fw-bold mb-4"
24
- >{{- information.main_title -}}</h3>
22
+ <h2
23
+ class="mb-4"
24
+ >{{- information.main_title -}}</h2>
25
25
  {% endif %}
26
26
  {% if information.content is not empty %}
27
27
  <div class="mb-4-5">
@@ -30,9 +30,9 @@
30
30
  {% endif %}
31
31
 
32
32
  {% if files.main_title is not empty %}
33
- <h3
34
- class="fw-bold mb-4"
35
- >{{- files.main_title -}}</h3>
33
+ <h2
34
+ class="mb-4"
35
+ >{{- files.main_title -}}</h2>
36
36
  {% endif %}
37
37
  {% if files.listing is defined and files.listing is not empty %}
38
38
  <div class="mb-4-5">
@@ -33,6 +33,9 @@
33
33
  {% if _variant is not empty %}
34
34
  {% set _classes = _classes ~ ' bg-' ~ _variant %}
35
35
  {% endif %}
36
+ {% if _variant == 'light' %}
37
+ {% set _classes = _classes ~ ' text-dark' %}
38
+ {% endif %}
36
39
 
37
40
  {% if attributes is empty %}
38
41
  {% set attributes = create_attribute() %}
@@ -0,0 +1,70 @@
1
+ {% spaceless %}
2
+
3
+
4
+ {#
5
+ Parameters:
6
+ - title (heading object) (default: {})
7
+ - items (array) (default: [])
8
+ {
9
+ title: (heading object),
10
+ content: [
11
+ description list object
12
+ ]
13
+ }
14
+ #}
15
+
16
+ {% set _title = title|default('') %}
17
+ {% set _title_tag = title_tag|default('h2') %}
18
+ {% set _title_link = title_link|default({}) %}
19
+ {% set _title_attributes = title_attributes ?: create_attribute() %}
20
+ {% set _items = items|default([]) %}
21
+
22
+ {% if attributes is empty %}
23
+ {% set attributes = create_attribute() %}
24
+ {% endif %}
25
+
26
+ {% set _title_classes = ['my-4-5'] %}
27
+ {% set _title_attributes = _title_attributes.addClass(_title_classes) %}
28
+
29
+ <div
30
+ {{ attributes }}
31
+ >
32
+ {% if _title is not empty %}
33
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
34
+ title: _title,
35
+ title_tag: _title_tag,
36
+ title_link: _title_link,
37
+ attributes: _title_attributes,
38
+ } only %}
39
+ {% endif %}
40
+ {% if _items is defined and _items is not empty %}
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 {
46
+ title: _item.title,
47
+ title_tag: _item.title_tag|default('h3'),
48
+ title_link: _item.title_link|default({}),
49
+ attributes: _item_title_attributes,
50
+ } only %}
51
+ {% endif %}
52
+ {% for _list in _item.content %}
53
+ {% if _list.attributes is empty %}
54
+ {% set _list = _list|merge({
55
+ attributes: create_attribute()
56
+ }) %}
57
+ {% endif %}
58
+ {% if not loop.last %}
59
+ {% set _list = _list|merge({
60
+ attributes: _list.attributes.addClass(['border-bottom', 'pb-3'])
61
+ })
62
+ %}
63
+ {% endif %}
64
+ {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with _list only %}
65
+ {% endfor %}
66
+ {% endfor %}
67
+ {% endif %}
68
+ </div>
69
+
70
+ {% endspaceless %}
@@ -5,99 +5,74 @@
5
5
  {% endblock %}
6
6
 
7
7
  {% block content %}
8
-
9
- {% if project_status.main_title is not empty %}
10
- <h3
11
- class="fw-bold mb-4"
12
- {% if project_status.main_title_id is not empty %}
13
- id="{{ project_status.main_title_id }}"
14
- {% endif %}
15
- >{{- project_status.main_title -}}</h3>
8
+ {% if project_status_title is not empty %}
9
+ {% set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
10
+ {% if project_status_id is not empty %}
11
+ {% set _project_title_attributes = _project_title_attributes.setAttribute('id', project_status_id) %}
12
+ {% endif %}
13
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
14
+ title: project_status_title,
15
+ title_tag: 'h2',
16
+ attributes: _project_title_attributes,
17
+ } only %}
16
18
  {% endif %}
17
- {% include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
18
-
19
- {% if status_lists.main_title is not empty %}
20
- <h3
21
- class="fw-bold my-4"
22
- {% if status_lists.main_title_id is not empty %}
23
- id="{{ status_lists.main_title_id }}"
24
- {% endif %}
25
- >{{- status_lists.main_title -}}</h3>
19
+ {% if project_status is not empty %}
20
+ {% include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
26
21
  {% endif %}
27
- {% if status_lists.listing is defined and status_lists.listing is not empty %}
28
- {% for lists in status_lists.listing %}
29
- {% if lists.title is not empty %}
30
- <h4 class="fw-bold mb-3">{{ lists.title }}</h4>
31
- {% endif %}
32
- {% for list in lists.content %}
33
- {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with list only %}
34
- {% endfor %}
35
- {% endfor %}
22
+ {% if project_contributions is not empty %}
23
+ {% include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
36
24
  {% endif %}
37
25
 
38
- {% if first_paragraphs is defined and first_paragraphs is not empty %}
39
- {% for paragraph in first_paragraphs %}
40
- <h3
41
- class="fw-bold mb-4 pt-3"
42
- id="{{ paragraph.title_id }}"
43
- >
44
- {{- paragraph.title -}}
45
- </h3>
26
+ {% if status_lists is not empty %}
27
+ {% include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
28
+ {% endif %}
46
29
 
47
- {{- paragraph.content -}}
30
+ {% if first_paragraphs is defined and first_paragraphs is not empty %}
31
+ {% for _paragraph in first_paragraphs %}
32
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
33
+ title: _paragraph.title,
34
+ title_tag: 'h2',
35
+ attributes: create_attribute().addClass(['mb-4', 'pt-3'])
36
+ .setAttribute('id', _paragraph.title_id),
37
+ } only %}
38
+ {{- _paragraph.content -}}
48
39
  {% endfor %}
49
40
  {% endif %}
50
41
 
51
- {% if content_lists.main_title is not empty %}
52
- <h3
53
- class="fw-bold my-4"
54
- {% if content_lists.main_title_id is not empty %}
55
- id="{{ content_lists.main_title_id }}"
56
- {% endif %}
57
- >{{- content_lists.main_title -}}</h3>
42
+ {% if featured_lists is not empty %}
43
+ {% include '@oe-bcl/bcl-project/project-lists.html.twig' with featured_lists only %}
58
44
  {% endif %}
59
- {% if content_lists.listing is defined and content_lists.listing is not empty %}
60
- {% for lists in content_lists.listing %}
61
- {% if lists.title is not empty %}
62
- <h4 class="fw-bold mb-3">{{ lists.title }}</h4>
63
- {% endif %}
64
- {% for list in lists.content %}
65
- {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with list only %}
66
- {% endfor %}
67
- {% endfor %}
45
+
46
+ {% if content_lists is not empty %}
47
+ {% include '@oe-bcl/bcl-project/project-lists.html.twig' with content_lists only %}
68
48
  {% endif %}
69
49
 
70
50
  {% if second_paragraphs is defined and second_paragraphs is not empty %}
71
- {% for paragraph in second_paragraphs %}
72
- <h3
73
- class="fw-bold mb-4 pt-2"
74
- id="{{ paragraph.title_id }}"
75
- >
76
- {{- paragraph.title -}}
77
- </h3>
78
- {{- paragraph.content -}}
51
+ {% for _paragraph in second_paragraphs %}
52
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
53
+ title: _paragraph.title,
54
+ title_tag: 'h2',
55
+ attributes: create_attribute().addClass(['mb-4', 'pt-3'])
56
+ .setAttribute('id', _paragraph.title_id),
57
+ } only %}
58
+ {{- _paragraph.content -}}
79
59
  {% endfor %}
80
60
  {% endif %}
81
61
 
82
62
  {% if gallery.main_title is not empty %}
83
- <h3
84
- class="fw-bold my-4"
85
- {% if gallery.main_title_id is not empty %}
86
- id="{{ gallery.main_title_id }}"
87
- {% endif %}
88
- >{{- gallery.main_title -}}</h3>
63
+ {% set _gallery_title_attributes = create_attribute().addClass(['my-4']) %}
64
+ {% if gallery.main_title_id is not empty %}
65
+ {% set _gallery_title_attributes = _gallery_title_attributes.setAttribute('id', gallery.main_title_id) %}
66
+ {% endif %}
67
+ {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
68
+ title: gallery.main_title,
69
+ title_tag: 'h2',
70
+ attributes: _gallery_title_attributes,
71
+ } only %}
89
72
  {% endif %}
90
- {% if gallery.listing is defined and gallery.listing is not empty %}
91
- <div class="mt-3">
92
- {% for showcase in gallery.listing %}
93
- <div class="mb-2-5 pb-4">
94
- {% if showcase.carousel %}
95
- {% include '@oe-bcl/bcl-carousel/carousel.html.twig' with showcase only %}
96
- {% else %}
97
- {% include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with showcase only %}
98
- {% endif %}
99
- </div>
100
- {% endfor %}
73
+ {% if gallery is not empty %}
74
+ <div class="mt-3 mb-4-5">
75
+ {% include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only %}
101
76
  </div>
102
77
  {% endif %}
103
78
 
@@ -0,0 +1,56 @@
1
+ {% spaceless %}
2
+
3
+ {# Parameters:
4
+ - corporate_contributions (string) (default: '') // value every 5 percent
5
+ - legend (boolean or object (default: false)
6
+ - chart (boolean) (default: false)
7
+
8
+ Blocks -
9
+ project_status_contrib_chart
10
+ project_status_contrib_legend
11
+ #}
12
+
13
+ {% set _corporate_contributions = corporate_contributions|default('') %}
14
+ {% set _legend = legend|default(false) %}
15
+ {% set _chart = chart|default(false) %}
16
+
17
+ {% if attributes is empty %}
18
+ {% set attributes = create_attribute() %}
19
+ {% endif %}
20
+
21
+ {% set attributes = attributes.addClass([
22
+ 'bcl-project-contributions',
23
+ 'border-bottom',
24
+ 'pb-4',
25
+ 'mb-4'
26
+ ]) %}
27
+
28
+ <div {{ attributes }}>
29
+ <div class="row">
30
+
31
+ {% if _chart is not empty %}
32
+ <div class="bcl-project-contributions-chart col-5 col-md-3">
33
+ {% block project_status_contrib_chart %}
34
+ <div class="circular-progress" data-percentage="{{ _corporate_contributions }}">
35
+ <span class="circular-progress-left">
36
+ <span class="circular-progress-bar"></span>
37
+ </span>
38
+ <span class="circular-progress-right">
39
+ <span class="circular-progress-bar"></span>
40
+ </span>
41
+ </div>
42
+ {% endblock %}
43
+ </div>
44
+ {% endif %}
45
+
46
+ {% if _legend is not empty %}
47
+ <div class="bcl-project-contributions-legend col-7 col-md-9 align-self-center">
48
+ {% block project_status_contrib_legend %}
49
+ {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with _legend only %}
50
+ {% endblock %}
51
+ </div>
52
+ {% endif %}
53
+ </div>
54
+ </div>
55
+
56
+ {% endspaceless %}
@@ -1,9 +1,6 @@
1
1
  {% spaceless %}
2
2
 
3
3
  {# Parameters:
4
- - title_id (string) (default: "")
5
- - title (string) (default: "")
6
- - title_tag (string) (default: "h3")
7
4
  - status (string) (default: 'planned')
8
5
  - start_date (string) (default: '')
9
6
  - start_label (string) (default: '')
@@ -12,16 +9,9 @@
12
9
  - label (string) (default: '')
13
10
  - badge (string) (default: ''),
14
11
  - progress (string) (default: '')
15
- - corporate_contribution (string) (default: '') // value every 5 percent
16
- - chart_legend (object) (default: {})
17
-
18
- Blocks - chart
19
12
  #}
20
13
 
21
- {% set _title_id = title_id|default('') %}
22
- {% set _title = title|default('') %}
23
14
  {% set _label = label|default('') %}
24
- {% set _title_tag = title_tag|default('h3') %}
25
15
  {% set _status = status|default('planned') %}
26
16
  {% set _charts = charts|default('') %}
27
17
  {% set _badge = badge|default('') %}
@@ -30,8 +20,17 @@
30
20
  {% set _start_label = start_label|default('') %}
31
21
  {% set _end_label = end_label|default('') %}
32
22
  {% set _progress = progress|default('') %}
33
- {% set _corporate_contribution = corporate_contribution|default('') %}
34
- {% set _chart_legend = chart_legend|default({}) %}
23
+
24
+ {% if attributes is empty %}
25
+ {% set attributes = create_attribute() %}
26
+ {% endif %}
27
+
28
+ {% set attributes = attributes.addClass([
29
+ 'bcl-project-status',
30
+ 'border-bottom',
31
+ 'pb-4',
32
+ 'mb-4'
33
+ ]) %}
35
34
 
36
35
  {% set _bgs = {
37
36
  ongoing: 'info',
@@ -40,17 +39,7 @@
40
39
  } %}
41
40
  {% set _bg = _bgs[_status]|default('secondary') %}
42
41
 
43
-
44
- <{{ _title_tag }}
45
- class="fw-bold mb-4"
46
- {% if title_id is not empty %}
47
- id="{{ title_id }}"
48
- {% endif %}
49
- >
50
- {{- title -}}
51
- </{{ _title_tag }}>
52
-
53
- <div class="border-bottom pb-4 mb-4">
42
+ <div {{ attributes }}>
54
43
  <div class="row">
55
44
  <div class="col-12 col-md-3">
56
45
  {% if _label is not empty %}
@@ -103,26 +92,7 @@
103
92
  </div>
104
93
  </div>
105
94
  </div>
106
- {% if _corporate_contribution is not empty and _chart_legend is not empty %}
107
- <div class="border-bottom pb-4 mb-4">
108
- {% block chart %}
109
- <div class="row">
110
- <div class="col-5 col-md-3">
111
- <div class="circular-progress" data-percentage="{{ _corporate_contribution }}">
112
- <span class="circular-progress-left">
113
- <span class="circular-progress-bar"></span>
114
- </span>
115
- <span class="circular-progress-right">
116
- <span class="circular-progress-bar"></span>
117
- </span>
118
- </div>
119
- </div>
120
- <div class="col-7 col-md-9 align-self-center">
121
- {% include '@oe-bcl/bcl-description-list/description-list.html.twig' with _chart_legend only %}
122
- </div>
123
- </div>
124
- {% endblock %}
125
- </div>
126
- {% endif %}
95
+
96
+
127
97
 
128
98
  {% endspaceless %}
@@ -40,19 +40,21 @@
40
40
  {% endif %}
41
41
  {% if _activity.content is not empty and _activity.meta is not empty %}
42
42
  <div>
43
- {% if _activity.content is not empty %}
43
+ {%- if _activity.content is not empty -%}
44
44
  <p class="mb-2">{{- _activity.content -}}</p>
45
- {% endif %}
46
- {% if _activity.meta is not empty and _activity.meta is iterable %}
47
- {% for _meta in _activity.meta %}
45
+ {%- endif -%}
46
+ {%- if _activity.meta is not empty and _activity.meta is iterable -%}
47
+ {%- for _meta in _activity.meta -%}
48
48
  <p class="mb-0">
49
+ {%- if _meta.icon is not empty -%}
49
50
  {% include '@oe-bcl/bcl-icon/icon.html.twig' with _meta.icon only %}
51
+ {%- endif -%}
50
52
  {{- _meta.label -}}
51
53
  </p>
52
- {% endfor %}
53
- {% endif %}
54
+ {%- endfor -%}
55
+ {%- endif -%}
54
56
  </div>
55
- {% endif %}
57
+ {%- endif -%}
56
58
  </div>
57
59
  {% endfor %}
58
60
  {% endif %}