@openeuropa/bcl-theme-default 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 (109) hide show
  1. package/css/oe-bcl-ckeditor5.min.css +1 -1
  2. package/css/oe-bcl-ckeditor5.min.css.map +1 -1
  3. package/css/oe-bcl-default.css +61 -48
  4. package/css/oe-bcl-default.css.map +1 -1
  5. package/css/oe-bcl-default.min.css +1 -1
  6. package/css/oe-bcl-default.min.css.map +1 -1
  7. package/js/oe-bcl-default.bundle.js +112 -1
  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 +111 -1
  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 +112 -1
  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/package.json +5 -5
  20. package/src/js/header/header.js +91 -0
  21. package/src/js/index.esm.js +2 -0
  22. package/src/js/index.umd.js +2 -0
  23. package/src/js/mega-menu/mega-menu.js +57 -0
  24. package/src/scss/_header.scss +6 -2
  25. package/src/scss/_mega-menu.scss +57 -58
  26. package/src/scss/base/_colors.scss +1 -0
  27. package/templates/bcl-accordion/accordion.html.twig +42 -43
  28. package/templates/bcl-alert/alert.html.twig +18 -18
  29. package/templates/bcl-badge/badge.html.twig +11 -12
  30. package/templates/bcl-banner/banner.html.twig +34 -34
  31. package/templates/bcl-base-templates/content-type.html.twig +63 -64
  32. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  33. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  34. package/templates/bcl-blockquote/blockquote.html.twig +17 -17
  35. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -25
  36. package/templates/bcl-button/button.html.twig +24 -24
  37. package/templates/bcl-button-group/button-group.html.twig +25 -26
  38. package/templates/bcl-card/card.html.twig +98 -98
  39. package/templates/bcl-card-layout/card-layout.html.twig +34 -34
  40. package/templates/bcl-carousel/carousel.html.twig +64 -64
  41. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  42. package/templates/bcl-content-banner/content-banner.html.twig +37 -37
  43. package/templates/bcl-date-block/date-block.html.twig +26 -26
  44. package/templates/bcl-description-list/description-list-details.html.twig +6 -6
  45. package/templates/bcl-description-list/description-list-title.html.twig +11 -11
  46. package/templates/bcl-description-list/description-list.html.twig +44 -45
  47. package/templates/bcl-dropdown/dropdown.html.twig +48 -49
  48. package/templates/bcl-event/event.html.twig +7 -7
  49. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -34
  50. package/templates/bcl-featured-media/featured-media.html.twig +42 -43
  51. package/templates/bcl-file/file-translations.html.twig +29 -29
  52. package/templates/bcl-file/file.html.twig +46 -46
  53. package/templates/bcl-footer/footer.html.twig +31 -31
  54. package/templates/bcl-form/form.html.twig +70 -70
  55. package/templates/bcl-form-input/form-input.html.twig +57 -58
  56. package/templates/bcl-gallery/gallery-item.html.twig +20 -20
  57. package/templates/bcl-gallery/gallery.html.twig +62 -63
  58. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  59. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  60. package/templates/bcl-group/group-landing.html.twig +69 -69
  61. package/templates/bcl-group/group.html.twig +19 -19
  62. package/templates/bcl-header/header.html.twig +71 -79
  63. package/templates/bcl-heading/heading.html.twig +13 -14
  64. package/templates/bcl-icon/icon.html.twig +10 -10
  65. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -20
  66. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  67. package/templates/bcl-language-list/language-list-grid.html.twig +25 -25
  68. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  69. package/templates/bcl-language-list/language-list.html.twig +33 -34
  70. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -12
  71. package/templates/bcl-link/link.html.twig +24 -24
  72. package/templates/bcl-links-block/links-block.html.twig +29 -30
  73. package/templates/bcl-list-group/list-group.html.twig +43 -44
  74. package/templates/bcl-listing/listing.html.twig +88 -88
  75. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -18
  76. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +27 -22
  77. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -35
  78. package/templates/bcl-modal/modal.html.twig +17 -17
  79. package/templates/bcl-navbar/navbar.html.twig +35 -35
  80. package/templates/bcl-navigation/navigation.html.twig +106 -106
  81. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -33
  82. package/templates/bcl-page/page.html.twig +27 -27
  83. package/templates/bcl-pagination/pagination-item.html.twig +22 -23
  84. package/templates/bcl-pagination/pagination.html.twig +59 -59
  85. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -32
  86. package/templates/bcl-pagination-v2/pagination.html.twig +79 -79
  87. package/templates/bcl-person/person.html.twig +12 -12
  88. package/templates/bcl-placeholder/placeholder.html.twig +14 -15
  89. package/templates/bcl-progress/progress.html.twig +16 -17
  90. package/templates/bcl-project/project-lists.html.twig +25 -25
  91. package/templates/bcl-project/project.html.twig +35 -35
  92. package/templates/bcl-project-status/project-contributions.html.twig +25 -25
  93. package/templates/bcl-project-status/project-status.html.twig +32 -34
  94. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -13
  95. package/templates/bcl-search/search.html.twig +12 -12
  96. package/templates/bcl-search-form/search-form.html.twig +21 -21
  97. package/templates/bcl-select/select.html.twig +52 -53
  98. package/templates/bcl-spinner/spinner.html.twig +10 -10
  99. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  100. package/templates/bcl-subscription/subscription.html.twig +3 -3
  101. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -14
  102. package/templates/bcl-table/table.html.twig +61 -62
  103. package/templates/bcl-textarea/textarea.html.twig +44 -44
  104. package/templates/bcl-timeline/timeline-item.html.twig +12 -12
  105. package/templates/bcl-timeline/timeline.html.twig +42 -42
  106. package/templates/bcl-toasts/toasts.html.twig +56 -57
  107. package/templates/bcl-user/user-compact.html.twig +24 -24
  108. package/templates/bcl-user/user-terms.html.twig +6 -6
  109. package/templates/bcl-user/user.html.twig +117 -117
@@ -21,7 +21,7 @@
21
21
  - attributes (drupal attrs)
22
22
  #}
23
23
 
24
- {% set _label = label|default('') %}
24
+ {%- set _label = label|default('') %}
25
25
  {% set _variant = variant|default('primary') %}
26
26
  {% set _size = size|default('md') %}
27
27
  {% set _type = type|default('button') %}
@@ -38,58 +38,58 @@
38
38
  {% set _clean_class = clean_class ?? false %}
39
39
  {% set _remove_icon_spacers = remove_icon_spacers ?? false %}
40
40
 
41
- {% set _classes = [] %}
41
+ {%- set _classes = [] %}
42
42
  {% if _clean_class == false %}
43
- {% set _classes = _classes|merge(['btn', 'btn-' ~ (_outline ? 'outline-' : '') ~ _variant|e('html_attr')]) %}
44
- {% set _classes = _classes|merge(['btn-' ~ _size|e('html_attr')]) %}
43
+ {%- set _classes = _classes|merge(['btn', 'btn-' ~ (_outline ? 'outline-' : '') ~ _variant|e('html_attr')]) %}
44
+ {%- set _classes = _classes|merge(['btn-' ~ _size|e('html_attr')]) %}
45
45
  {% endif %}
46
46
  {% if _text_nowrap %}
47
- {% set _classes = _classes|merge(['text-nowrap']) %}
47
+ {%- set _classes = _classes|merge(['text-nowrap']) %}
48
48
  {% endif %}
49
49
  {% if attributes is empty %}
50
- {% set attributes = create_attribute() %}
50
+ {%- set attributes = create_attribute() %}
51
51
  {% endif %}
52
52
  {% if _disabled %}
53
- {% set attributes = attributes.setAttribute('disabled', true).setAttribute('aria-disabled', 'true') %}
53
+ {%- set attributes = attributes.setAttribute('disabled', true).setAttribute('aria-disabled', 'true') %}
54
54
  {% endif %}
55
55
  {% if _id is not empty %}
56
- {% set attributes = attributes.setAttribute('id', _id) %}
56
+ {%- set attributes = attributes.setAttribute('id', _id) %}
57
57
  {% endif %}
58
58
  {% if _classes is not empty %}
59
- {% set attributes = attributes.addClass(_classes) %}
59
+ {%- set attributes = attributes.addClass(_classes) %}
60
60
  {% endif %}
61
61
  {% if _icon_spacing is not empty %}
62
- {% set _icon_spacing = _icon_spacing ~ '-' %}
62
+ {%- set _icon_spacing = _icon_spacing ~ '-' %}
63
63
  {% endif %}
64
64
  {% set attributes = attributes.setAttribute('type', _type) %}
65
65
  {% if _icon is not empty %}
66
- {% set _icon = _icon|merge({
66
+ {%- set _icon = _icon|merge({
67
67
  size: "fluid",
68
68
  })
69
69
  %}
70
- {% if _label is not empty and not _remove_icon_spacers %}
71
- {% if _icon.attributes is empty %}
72
- {% set _icon = _icon|merge({
70
+ {%- if _label is not empty and not _remove_icon_spacers %}
71
+ {%- if _icon.attributes is empty %}
72
+ {%- set _icon = _icon|merge({
73
73
  attributes: create_attribute()
74
74
  })
75
75
  %}
76
- {% endif %}
77
- {% if _icon_position == 'before' %}
78
- {% set _icon = _icon|merge({
76
+ {%- endif %}
77
+ {%- if _icon_position == 'before' %}
78
+ {%- set _icon = _icon|merge({
79
79
  attributes: _icon.attributes.addClass('me-' ~ _icon_spacing ~ '2-5')
80
80
  })
81
81
  %}
82
- {% else %}
83
- {% set _icon = _icon|merge({
82
+ {%- else %}
83
+ {%- set _icon = _icon|merge({
84
84
  attributes: _icon.attributes.addClass('ms-' ~ _icon_spacing ~ '2-5')
85
85
  })
86
86
  %}
87
- {% endif %}
88
- {% endif %}
87
+ {%- endif %}
88
+ {%- endif %}
89
89
  {%- set _icon_markup -%}
90
90
  {%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon only -%}
91
91
  {%- endset -%}
92
- {% endif %}
92
+ {% endif -%}
93
93
 
94
94
  <button
95
95
  {{ attributes }}
@@ -99,7 +99,7 @@
99
99
  {%- endif -%}
100
100
  {%- if _assistive_text is not empty -%}
101
101
  <span class="visually-hidden">{{- _assistive_text -}}</span>
102
- {% endif %}
102
+ {%- endif %}
103
103
  {%- if _icon_position == 'before' and _icon_markup is defined -%}
104
104
  {{ _icon_markup|raw }}
105
105
  {%- endif -%}
@@ -108,4 +108,4 @@
108
108
  {{ _icon_markup|raw }}
109
109
  {%- endif -%}
110
110
  </button>
111
-
111
+ {#--#}
@@ -9,56 +9,55 @@
9
9
  - attributes (drupal attrs)
10
10
  #}
11
11
 
12
- {% set _vertical = vertical ?? false %}
12
+ {%- set _vertical = vertical ?? false %}
13
13
  {% set _size = size|default('md') %}
14
14
  {% set _aria_label = aria_label|default('') %}
15
15
  {% set _toolbar = toolbar ?? false %}
16
16
  {% set _toolbar_aria_label = toolbar_aria_label|default('') %}
17
17
  {% set _items = items|default([]) %}
18
18
 
19
- {% set _classes = ['btn-group'] %}
19
+ {%- set _classes = ['btn-group'] %}
20
20
 
21
- {% if _vertical %}
22
- {% set _classes = ['btn-group-vertical'] %}
21
+ {%- if _vertical %}
22
+ {%- set _classes = ['btn-group-vertical'] %}
23
23
  {% endif %}
24
24
 
25
- {% set _classes = _classes|merge(['btn-group-' ~ _size]) %}
25
+ {%- set _classes = _classes|merge(['btn-group-' ~ _size]) %}
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
- {% if _aria_label is not empty %}
32
- {% set attributes = attributes.setAttribute('aria-label', _aria_label) %}
31
+ {%- if _aria_label is not empty %}
32
+ {%- set attributes = attributes.setAttribute('aria-label', _aria_label) %}
33
33
  {% endif %}
34
34
 
35
- {% set attributes = attributes.setAttribute('role', 'group').addClass(_classes) %}
35
+ {%- set attributes = attributes.setAttribute('role', 'group').addClass(_classes) %}
36
36
 
37
- {% if _toolbar %}
37
+ {%- if _toolbar -%}
38
38
  <div class="btn-toolbar" role="toolbar"
39
39
  {% if _toolbar_aria_label is not empty %}
40
40
  aria-label="{{ _toolbar_aria_label }}"
41
41
  {% endif %}
42
42
  >
43
- {% endif %}
43
+ {%- endif %}
44
44
  {% if _items is not empty %}
45
- {% for _items_group in _items %}
45
+ {%- for _items_group in _items -%}
46
46
  <div
47
47
  {{ attributes }}
48
48
  >
49
- {% if _items_group is not empty and _items_group is iterable %}
50
- {% for _item in _items_group %}
51
- {% if _item.input is defined %}
52
- {% include '@oe-bcl/bcl-form-input/form-input.html.twig' with _item only %}
53
- {% else %}
54
- {% include '@oe-bcl/bcl-button/button.html.twig' with _item only %}
55
- {% endif %}
56
- {% endfor %}
57
- {% endif %}
49
+ {%- if _items_group is not empty and _items_group is iterable %}
50
+ {%- for _item in _items_group %}
51
+ {%- if _item.input is defined %}
52
+ {%- include '@oe-bcl/bcl-form-input/form-input.html.twig' with _item only %}
53
+ {%- else %}
54
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with _item only %}
55
+ {%- endif %}
56
+ {%- endfor %}
57
+ {%- endif -%}
58
58
  </div>
59
- {% endfor %}
59
+ {%- endfor %}
60
60
  {% endif %}
61
- {% if _toolbar %}
61
+ {% if _toolbar -%}
62
62
  </div>
63
- {% endif %}
64
-
63
+ {%- endif -%}
@@ -49,8 +49,8 @@
49
49
  - card_links
50
50
  #}
51
51
 
52
- {% set _title = title|default('') %}
53
- {% set _title_tag = title_tag|default('h1') %}
52
+ {%- set _title = title|default('') %}
53
+ {% set _title_tag = title_tag|default('div') %}
54
54
  {% set _title_link = title_link|default({}) %}
55
55
  {% set _title_attributes = title_attributes ?: create_attribute() %}
56
56
  {% set _subtitle = subtitle|default({}) %}
@@ -75,112 +75,112 @@
75
75
  {% set _badges = badges|default([]) %}
76
76
  {% set _links = links|default([]) %}
77
77
 
78
- {% set _classes = ['card'] %}
78
+ {%- set _classes = ['card'] %}
79
79
  {% if _text_color is not empty %}
80
- {% set _classes = _classes|merge(['text-' ~ _text_color]) %}
80
+ {%- set _classes = _classes|merge(['text-' ~ _text_color]) %}
81
81
  {% endif %}
82
82
  {% if _variant is not empty %}
83
- {% set _classes = _classes|merge(['text-bg-' ~ _variant]) %}
83
+ {%- set _classes = _classes|merge(['text-bg-' ~ _variant]) %}
84
84
  {% endif %}
85
85
  {% if _border_variant is not empty %}
86
- {% set _classes = _classes|merge(['border-' ~ _border_variant]) %}
86
+ {%- set _classes = _classes|merge(['border-' ~ _border_variant]) %}
87
87
  {% endif %}
88
88
 
89
- {% if attributes is empty %}
90
- {% set attributes = create_attribute() %}
89
+ {%- if attributes is empty %}
90
+ {%- set attributes = create_attribute() %}
91
91
  {% endif %}
92
92
 
93
- {% set _body_classes = 'card-body' %}
93
+ {%- set _body_classes = 'card-body' %}
94
94
  {% if _extra_classes_body is not empty %}
95
- {% set _body_classes = _body_classes ~ ' ' ~ _extra_classes_body %}
95
+ {%- set _body_classes = _body_classes ~ ' ' ~ _extra_classes_body %}
96
96
  {% endif %}
97
97
 
98
- {% set _header_classes = 'card-header' %}
98
+ {%- set _header_classes = 'card-header' %}
99
99
  {% if _extra_classes_header is not empty %}
100
- {% set _header_classes = _header_classes ~ ' ' ~ _extra_classes_header %}
100
+ {%- set _header_classes = _header_classes ~ ' ' ~ _extra_classes_header %}
101
101
  {% endif %}
102
102
 
103
- {% set _footer_classes = 'card-footer' %}
103
+ {%- set _footer_classes = 'card-footer' %}
104
104
  {% if _extra_classes_footer is not empty %}
105
- {% set _footer_classes = _footer_classes ~ ' ' ~ _extra_classes_footer %}
105
+ {%- set _footer_classes = _footer_classes ~ ' ' ~ _extra_classes_footer %}
106
106
  {% endif %}
107
107
 
108
- {% set _row_classes = 'row' %}
108
+ {%- set _row_classes = 'row' %}
109
109
  {% if _horizontal_grid.gutter is not empty %}
110
- {% set _row_classes = _row_classes ~ ' g-' ~ _horizontal_grid.gutter %}
110
+ {%- set _row_classes = _row_classes ~ ' g-' ~ _horizontal_grid.gutter %}
111
111
  {% endif %}
112
112
 
113
- {% set attributes = attributes.addClass(_classes) %}
113
+ {%- set attributes = attributes.addClass(_classes) -%}
114
114
 
115
115
  <article
116
116
  {{ attributes }}
117
117
  >
118
- {% if _card_header is not empty %}
118
+ {%- if _card_header is not empty -%}
119
119
  <div class='{{ _header_classes }}'>
120
120
  {{- _card_header -}}
121
121
  </div>
122
- {% endif %}
123
- {% if _horizontal %}
122
+ {%- endif %}
123
+ {% if _horizontal -%}
124
124
  <div class='{{ _row_classes }}'>
125
- {% endif %}
125
+ {%- endif %}
126
126
  {% if _image is not empty and _image.position != 'bottom' %}
127
- {% set _img_class = 'card-img-top' %}
128
- {% if _image.position == 'background' %}
129
- {% set _img_class = 'card-img' %}
130
- {% endif %}
131
- {% if _image.rounded is not empty %}
132
- {% set _img_class = _img_class ~ ' rounded-' ~ _image.rounded %}
133
- {% elseif _horizontal %}
134
- {% if attributes.hasClass('border-0') %}
135
- {% set _img_class = _img_class ~ ' rounded-1' %}
136
- {% else %}
137
- {% set _img_class = _img_class ~ ' rounded-0 rounded-start' %}
138
- {% endif %}
139
- {% elseif _card_header is not empty %}
140
- {% set _img_class = _img_class ~ ' rounded-0' %}
141
- {% endif %}
142
- {% if _image.classes is not empty %}
143
- {% set _img_class = _img_class ~ " " ~ _image.classes %}
144
- {% endif %}
127
+ {%- set _img_class = 'card-img-top' %}
128
+ {%- if _image.position == 'background' %}
129
+ {%- set _img_class = 'card-img' %}
130
+ {%- endif %}
131
+ {%- if _image.rounded is not empty %}
132
+ {%- set _img_class = _img_class ~ ' rounded-' ~ _image.rounded %}
133
+ {%- elseif _horizontal %}
134
+ {%- if attributes.hasClass('border-0') %}
135
+ {%- set _img_class = _img_class ~ ' rounded-1' %}
136
+ {%- else %}
137
+ {%- set _img_class = _img_class ~ ' rounded-0 rounded-start' %}
138
+ {%- endif %}
139
+ {%- elseif _card_header is not empty %}
140
+ {%- set _img_class = _img_class ~ ' rounded-0' %}
141
+ {%- endif %}
142
+ {%- if _image.classes is not empty %}
143
+ {%- set _img_class = _img_class ~ " " ~ _image.classes %}
144
+ {%- endif %}
145
145
  {% endif %}
146
- {% if _horizontal and (_image is not empty or _date is not empty) %}
147
- <div class='{{ _horizontal_grid.left_col_classes }}'>
148
- {% endif %}
149
- {% if _date is not empty %}
150
- {% block card_date %}
151
- {% include '@oe-bcl/bcl-date-block/date-block.html.twig' with _date only %}
152
- {% endblock %}
153
- {% elseif _image is not empty and _image.position != "bottom" %}
146
+ {% if _horizontal and (_image is not empty or _date is not empty) -%}
147
+ <div class='{{ _horizontal_grid.left_col_classes }}'>
148
+ {%- endif %}
149
+ {%- if _date is not empty %}
150
+ {%- block card_date %}
151
+ {%- include '@oe-bcl/bcl-date-block/date-block.html.twig' with _date only %}
152
+ {%- endblock %}
153
+ {%- elseif _image is not empty and _image.position != "bottom" -%}
154
154
  <img
155
155
  src="{{ _image.path }}"
156
156
  alt="{{ _image.alt }}"
157
157
  class="{{ _img_class }}"
158
158
  >
159
- {% endif %}
160
- {% if _horizontal and (_image is not empty or _date is not empty) %}
159
+ {%- endif %}
160
+ {% if _horizontal and (_image is not empty or _date is not empty) -%}
161
161
  </div>
162
- {% endif %}
163
- {% if _image.position == 'background' %}
162
+ {%- endif %}
163
+ {% if _image.position == 'background' -%}
164
164
  <div class="card-img-overlay">
165
- {% endif %}
166
- {% if _horizontal %}
165
+ {%- endif %}
166
+ {% if _horizontal -%}
167
167
  <div class='{{ _horizontal_grid.right_col_classes }}'>
168
- {% endif %}
168
+ {%- endif -%}
169
169
  <div class='{{ _body_classes }}'>
170
- {% if _title is not empty %}
171
- {% if _title_attributes.class is empty %}
172
- {% set _title_attributes = _title_attributes.addClass('fs-4') %}
173
- {% endif %}
174
- {% set _title_attributes = _title_attributes.addClass('card-title') %}
175
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
170
+ {%- if _title is not empty %}
171
+ {%- if _title_attributes.class is empty %}
172
+ {%- set _title_attributes = _title_attributes.addClass('h4') %}
173
+ {%- endif %}
174
+ {%- set _title_attributes = _title_attributes.addClass('card-title') %}
175
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
176
176
  title: _title,
177
177
  title_tag: _title_tag,
178
178
  title_link: _title_link,
179
179
  attributes: _title_attributes,
180
180
  } only %}
181
- {% endif %}
181
+ {%- endif %}
182
182
  {%- if _subtitle is not empty -%}
183
- {% set _subtitle_tag = _subtitle.tag ?? 'h6' %}
183
+ {% set _subtitle_tag = _subtitle.tag ?? 'h6' -%}
184
184
  <{{ _subtitle_tag }}
185
185
  class='card-subtitle{{ _subtitle.classes ? ' ' ~ _subtitle.classes }}'
186
186
  >
@@ -188,7 +188,7 @@
188
188
  </{{ _subtitle_tag }}>
189
189
  {%- endif -%}
190
190
  {%- if _text is not empty -%}
191
- {% set _text_tag = _text.tag ?? 'p' %}
191
+ {% set _text_tag = _text.tag ?? 'p' -%}
192
192
  <{{ _text_tag }}
193
193
  class='card-text{{ _text.classes ? ' ' ~ _text.classes }}'
194
194
  >
@@ -201,72 +201,72 @@
201
201
  {% block card_badges %}
202
202
  {%- if _badges is not empty and _badges is iterable -%}
203
203
  <div class="mt-2-5">
204
- {% for _badge in _badges %}
205
- {% if _badge.attributes is empty %}
206
- {% set _badge = _badge|merge({
204
+ {%- for _badge in _badges %}
205
+ {%- if _badge.attributes is empty %}
206
+ {%- set _badge = _badge|merge({
207
207
  attributes: create_attribute()
208
208
  }) %}
209
- {% endif %}
210
- {% set _badge = _badge|merge({
209
+ {%- endif %}
210
+ {%- set _badge = _badge|merge({
211
211
  attributes: _badge.attributes.addClass('mb-2')
212
212
  })
213
213
  %}
214
- {% if not loop.last %}
215
- {% set _badge = _badge|merge({
214
+ {%- if not loop.last %}
215
+ {%- set _badge = _badge|merge({
216
216
  attributes: _badge.attributes.addClass('me-2')
217
217
  })
218
218
  %}
219
- {% endif %}
220
- {% include '@oe-bcl/bcl-badge/badge.html.twig' with _badge only %}
221
-
222
- {% endfor %}
219
+ {%- endif %}
220
+ {%- include '@oe-bcl/bcl-badge/badge.html.twig' with _badge only %}
221
+
222
+ {%- endfor -%}
223
223
  </div>
224
224
  {%- endif -%}
225
225
  {% endblock %}
226
- {% block card_links %}
226
+ {%- block card_links %}
227
227
  {%- if _links is not empty and _links is iterable -%}
228
228
  <div class="mt-2-5 mb-2">
229
- {% for _link in _links %}
229
+ {%- for _link in _links -%}
230
230
  <div class="mb-3 mb-md-0 d-block d-md-inline-block me-md-4-5">
231
- {% include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
231
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _link only -%}
232
232
  </div>
233
- {% endfor %}
233
+ {%- endfor -%}
234
234
  </div>
235
235
  {%- endif -%}
236
- {% endblock %}
236
+ {% endblock -%}
237
237
  </div>
238
- {% if _horizontal %}
238
+ {%- if _horizontal -%}
239
239
  </div>
240
- {% endif %}
240
+ {%- endif %}
241
241
  {% if _image is not empty %}
242
- {% if _image.position == 'background' %}
242
+ {%- if _image.position == 'background' -%}
243
243
  </div>
244
- {% endif %}
245
- {% set _img_class = "card-img-bottom" %}
246
- {% if _image.classes is not empty %}
247
- {% set _img_class = _img_class ~ " " ~ _image.classes %}
248
- {% endif %}
249
- {% if _image.position == 'bottom' %}
250
- {% if _horizontal %}
244
+ {%- endif %}
245
+ {%- set _img_class = "card-img-bottom" %}
246
+ {%- if _image.classes is not empty %}
247
+ {%- set _img_class = _img_class ~ " " ~ _image.classes %}
248
+ {%- endif %}
249
+ {%- if _image.position == 'bottom' %}
250
+ {%- if _horizontal -%}
251
251
  <div class="col-4">
252
- {% endif %}
252
+ {%- endif -%}
253
253
  <img
254
254
  src="{{ _image.path }}"
255
255
  alt="{{ _image.alt }}"
256
256
  class="{{ _img_class }}"
257
257
  >
258
- {% if _horizontal %}
258
+ {%- if _horizontal -%}
259
259
  </div>
260
- {% endif %}
261
- {% endif %}
260
+ {%- endif %}
261
+ {%- endif %}
262
262
  {% endif %}
263
- {% if _horizontal %}
263
+ {% if _horizontal -%}
264
264
  </div>
265
- {% endif %}
266
- {% if _card_footer is not empty %}
265
+ {%- endif %}
266
+ {% if _card_footer is not empty -%}
267
267
  <div class="{{ _footer_classes }}">
268
268
  {{- _card_footer -}}
269
269
  </div>
270
- {% endif %}
270
+ {%- endif -%}
271
271
  </article>
272
-
272
+ {#--#}
@@ -18,7 +18,7 @@
18
18
  - card_layout_card
19
19
  #}
20
20
 
21
- {% set _type = type|default('group') %}
21
+ {%- set _type = type|default('group') %}
22
22
  {% set _items = items|default([]) %}
23
23
  {% set _grid_columns = grid_columns|default(1) %}
24
24
  {% set _responsiveness = responsiveness|default('md') %}
@@ -27,58 +27,58 @@
27
27
  {% set _equal_height = equal_height ?? false %}
28
28
  {% set _cols_extra_classes = cols_extra_classes|default('') %}
29
29
 
30
- {% set _cols_classes = 'col' %}
30
+ {%- set _cols_classes = 'col' %}
31
31
 
32
- {% if _cols_extra_classes is not empty %}
33
- {% set _cols_classes = _cols_classes ~ ' ' ~ _cols_extra_classes %}
32
+ {%- if _cols_extra_classes is not empty %}
33
+ {%- set _cols_classes = _cols_classes ~ ' ' ~ _cols_extra_classes %}
34
34
  {% endif %}
35
35
  {% if _type == 'group' %}
36
- {% set _classes = ['card-group'] %}
36
+ {%- set _classes = ['card-group'] %}
37
37
  {% elseif type == 'grid' or type == 'masonry' %}
38
- {% set _classes = ['row', 'row-cols-' ~ _grid_columns] %}
39
- {% if _responsive_columns is not empty %}
40
- {% set _classes = _classes|merge(['row-cols-' ~ _responsiveness ~ '-' ~ _responsive_columns]) %}
41
- {% endif %}
42
- {% if _gutter is not empty %}
43
- {% set _classes = _classes|merge(['g-' ~ _gutter]) %}
44
- {% endif %}
38
+ {%- set _classes = ['row', 'row-cols-' ~ _grid_columns] %}
39
+ {%- if _responsive_columns is not empty %}
40
+ {%- set _classes = _classes|merge(['row-cols-' ~ _responsiveness ~ '-' ~ _responsive_columns]) %}
41
+ {%- endif %}
42
+ {%- if _gutter is not empty %}
43
+ {%- set _classes = _classes|merge(['g-' ~ _gutter]) %}
44
+ {%- endif %}
45
45
  {% endif %}
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(_classes) %}
51
+ {%- set attributes = attributes.addClass(_classes) -%}
52
52
 
53
53
  <div
54
54
  {{ attributes }}
55
- {% if _type == 'masonry' %}
55
+ {%- if _type == 'masonry' %}
56
56
  data-masonry='{"percentPosition": true }'
57
57
  {% endif %}
58
58
  >
59
- {% if _items is not empty and _items is iterable %}
60
- {% for _item in _items %}
61
- {% if _item.attributes is empty %}
62
- {% set _item = _item|merge({
59
+ {%- if _items is not empty and _items is iterable %}
60
+ {%- for _item in _items %}
61
+ {%- if _item.attributes is empty %}
62
+ {%- set _item = _item|merge({
63
63
  attributes: create_attribute()
64
64
  }) %}
65
- {% endif %}
66
- {% if _equal_height %}
67
- {% set _item = _item|merge({
65
+ {%- endif %}
66
+ {%- if _equal_height %}
67
+ {%- set _item = _item|merge({
68
68
  attributes: _item.attributes.addClass('h-100')
69
69
  })
70
70
  %}
71
- {% endif %}
72
- {% if _type == 'grid' or _type == 'masonry' %}
71
+ {%- endif %}
72
+ {%- if _type == 'grid' or _type == 'masonry' -%}
73
73
  <div class="{{ _cols_classes }}">
74
- {% endif %}
75
- {% block card_layout_card %}
76
- {% include '@oe-bcl/bcl-card/card.html.twig' with _item only %}
77
- {% endblock %}
78
- {% if _type == 'grid' or _type == 'masonry' %}
74
+ {%- endif %}
75
+ {%- block card_layout_card %}
76
+ {%- include '@oe-bcl/bcl-card/card.html.twig' with _item only %}
77
+ {%- endblock %}
78
+ {%- if _type == 'grid' or _type == 'masonry' -%}
79
79
  </div>
80
- {% endif %}
81
- {% endfor %}
82
- {% endif %}
80
+ {%- endif %}
81
+ {%- endfor %}
82
+ {% endif -%}
83
83
  </div>
84
-
84
+ {#--#}