@openeuropa/bcl-theme-default 0.4298.202511051800 → 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 (114) 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 +167 -85
  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/_input.scss +72 -31
  26. package/src/scss/_mega-menu.scss +57 -58
  27. package/src/scss/_multiselect-2.scss +21 -11
  28. package/src/scss/_pagination.scss +1 -0
  29. package/src/scss/_search-form.scss +4 -0
  30. package/src/scss/base/_colors.scss +1 -0
  31. package/src/scss/base/_mixins.scss +12 -0
  32. package/templates/bcl-accordion/accordion.html.twig +42 -46
  33. package/templates/bcl-alert/alert.html.twig +18 -21
  34. package/templates/bcl-badge/badge.html.twig +11 -15
  35. package/templates/bcl-banner/banner.html.twig +34 -37
  36. package/templates/bcl-base-templates/content-type.html.twig +63 -67
  37. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  38. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  39. package/templates/bcl-blockquote/blockquote.html.twig +17 -20
  40. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
  41. package/templates/bcl-button/button.html.twig +24 -27
  42. package/templates/bcl-button-group/button-group.html.twig +25 -29
  43. package/templates/bcl-card/card.html.twig +98 -101
  44. package/templates/bcl-card-layout/card-layout.html.twig +34 -37
  45. package/templates/bcl-carousel/carousel.html.twig +64 -67
  46. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  47. package/templates/bcl-content-banner/content-banner.html.twig +37 -40
  48. package/templates/bcl-date-block/date-block.html.twig +26 -29
  49. package/templates/bcl-description-list/description-list-details.html.twig +6 -9
  50. package/templates/bcl-description-list/description-list-title.html.twig +11 -14
  51. package/templates/bcl-description-list/description-list.html.twig +44 -48
  52. package/templates/bcl-dropdown/dropdown.html.twig +48 -52
  53. package/templates/bcl-event/event.html.twig +7 -7
  54. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
  55. package/templates/bcl-featured-media/featured-media.html.twig +42 -46
  56. package/templates/bcl-file/file-translations.html.twig +29 -32
  57. package/templates/bcl-file/file.html.twig +47 -50
  58. package/templates/bcl-footer/footer.html.twig +31 -34
  59. package/templates/bcl-form/form.html.twig +70 -73
  60. package/templates/bcl-form-input/form-input.html.twig +57 -61
  61. package/templates/bcl-gallery/gallery-item.html.twig +20 -23
  62. package/templates/bcl-gallery/gallery.html.twig +62 -66
  63. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  64. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  65. package/templates/bcl-group/group-landing.html.twig +69 -69
  66. package/templates/bcl-group/group.html.twig +19 -19
  67. package/templates/bcl-header/header.html.twig +71 -82
  68. package/templates/bcl-heading/heading.html.twig +13 -17
  69. package/templates/bcl-icon/icon.html.twig +10 -13
  70. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
  71. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  72. package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
  73. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  74. package/templates/bcl-language-list/language-list.html.twig +33 -37
  75. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
  76. package/templates/bcl-link/link.html.twig +24 -27
  77. package/templates/bcl-links-block/links-block.html.twig +30 -34
  78. package/templates/bcl-list-group/list-group.html.twig +43 -47
  79. package/templates/bcl-listing/listing.html.twig +88 -91
  80. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
  81. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +28 -26
  82. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
  83. package/templates/bcl-modal/modal.html.twig +21 -23
  84. package/templates/bcl-navbar/navbar.html.twig +35 -38
  85. package/templates/bcl-navigation/navigation.html.twig +105 -110
  86. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
  87. package/templates/bcl-page/page.html.twig +27 -27
  88. package/templates/bcl-pagination/pagination-item.html.twig +22 -26
  89. package/templates/bcl-pagination/pagination.html.twig +59 -62
  90. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
  91. package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
  92. package/templates/bcl-person/person.html.twig +12 -12
  93. package/templates/bcl-placeholder/placeholder.html.twig +14 -18
  94. package/templates/bcl-progress/progress.html.twig +16 -20
  95. package/templates/bcl-project/project-lists.html.twig +25 -29
  96. package/templates/bcl-project/project.html.twig +35 -35
  97. package/templates/bcl-project-status/project-contributions.html.twig +25 -28
  98. package/templates/bcl-project-status/project-status.html.twig +32 -37
  99. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
  100. package/templates/bcl-search/search.html.twig +12 -12
  101. package/templates/bcl-search-form/search-form.html.twig +21 -24
  102. package/templates/bcl-select/select.html.twig +52 -56
  103. package/templates/bcl-spinner/spinner.html.twig +10 -13
  104. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  105. package/templates/bcl-subscription/subscription.html.twig +3 -3
  106. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -17
  107. package/templates/bcl-table/table.html.twig +61 -65
  108. package/templates/bcl-textarea/textarea.html.twig +44 -47
  109. package/templates/bcl-timeline/timeline-item.html.twig +12 -15
  110. package/templates/bcl-timeline/timeline.html.twig +42 -45
  111. package/templates/bcl-toasts/toasts.html.twig +56 -60
  112. package/templates/bcl-user/user-compact.html.twig +24 -27
  113. package/templates/bcl-user/user-terms.html.twig +6 -6
  114. package/templates/bcl-user/user.html.twig +117 -117
@@ -12,6 +12,18 @@
12
12
  }
13
13
  }
14
14
 
15
+ @mixin form-focus-ring(
16
+ $outline-offset: 2px,
17
+ $outline-width: 2px,
18
+ $radius: 4px,
19
+ $outline-color: $primary
20
+ ) {
21
+ outline: $outline-width solid $outline-color;
22
+ box-shadow: none;
23
+ border-radius: $radius;
24
+ outline-offset: $outline-offset;
25
+ }
26
+
15
27
  @mixin focused-item($width: 2px, $offset: 2px, $color: $primary) {
16
28
  &:focus,
17
29
  &:focus-visible {
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - title (string) (default: '')
@@ -22,7 +20,7 @@
22
20
  - attributes (drupal attrs)
23
21
  #}
24
22
 
25
- {% set _title = title|default('') %}
23
+ {%- set _title = title|default('') %}
26
24
  {% set _title_tag = title_tag|default('h2') %}
27
25
  {% set _title_link = title_link|default({}) %}
28
26
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -34,16 +32,16 @@
34
32
  {% set _open_item_id = open_item_id|default(0) %}
35
33
  {% set _classes = ['accordion'] %}
36
34
  {% if _flush %}
37
- {% set _classes = _classes|merge(['accordion-flush']) %}
35
+ {%- set _classes = _classes|merge(['accordion-flush']) %}
38
36
  {% endif %}
39
37
 
40
- {% if attributes is empty %}
41
- {% set attributes = create_attribute() %}
38
+ {%- if attributes is empty %}
39
+ {%- set attributes = create_attribute() %}
42
40
  {% endif %}
43
41
 
44
- {% set attributes = attributes.addClass(_classes).setAttribute('id', 'accordion-' ~ _id) %}
42
+ {%- set attributes = attributes.addClass(_classes).setAttribute('id', 'accordion-' ~ _id) %}
45
43
 
46
- {% if _items is not empty %}
44
+ {%- if _items is not empty -%}
47
45
  <div
48
46
  {{ attributes }}
49
47
  >
@@ -57,52 +55,52 @@
57
55
  {%- endif -%}
58
56
 
59
57
  {% if _items|length > 1 and (_expand_button is not empty or _collapse_button is not empty) %}
60
- {% set wrapper_attributes = create_attribute().addClass(['d-flex', 'justify-content-end', 'gap-3', 'mb-3']) %}
58
+ {%- set wrapper_attributes = create_attribute().addClass(['d-flex', 'justify-content-end', 'gap-3', 'mb-3']) -%}
61
59
  <div
62
60
  {{ wrapper_attributes }}
63
61
  >
64
- {% if _expand_button is not empty %}
65
- {% if _expand_button.attributes is empty %}
66
- {% set _expand_button = _expand_button|merge({
62
+ {%- if _expand_button is not empty %}
63
+ {%- if _expand_button.attributes is empty %}
64
+ {%- set _expand_button = _expand_button|merge({
67
65
  attributes: create_attribute()
68
66
  })
69
67
  %}
70
- {% endif %}
71
- {% include '@oe-bcl/bcl-button/button.html.twig' with _expand_button|merge({
68
+ {%- endif %}
69
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with _expand_button|merge({
72
70
  attributes: _expand_button.attributes
73
71
  .setAttribute('data-target', 'accordion-' ~ _id)
74
72
  .setAttribute('data-action', 'expand')
75
73
  }) only %}
76
- {% endif %}
77
- {% if _collapse_button is not empty %}
78
- {% if _collapse_button.attributes is empty %}
79
- {% set _collapse_button = _collapse_button|merge({
74
+ {%- endif %}
75
+ {%- if _collapse_button is not empty %}
76
+ {%- if _collapse_button.attributes is empty %}
77
+ {%- set _collapse_button = _collapse_button|merge({
80
78
  attributes: create_attribute()
81
79
  })
82
80
  %}
83
- {% endif %}
84
- {% include '@oe-bcl/bcl-button/button.html.twig' with _collapse_button|merge({
81
+ {%- endif %}
82
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with _collapse_button|merge({
85
83
  attributes: _collapse_button.attributes
86
84
  .setAttribute('data-target', 'accordion-' ~ _id)
87
85
  .setAttribute('data-action', 'collapse')
88
86
  }) only %}
89
- {% endif %}
87
+ {%- endif -%}
90
88
  </div>
91
- {% endif %}
89
+ {%- endif -%}
92
90
  <div class="accordion-items-wrapper">
93
- {% for _item in _items %}
94
- {% set _open_item = _open_item_id == loop.index %}
95
- {% set _button_classes = ['accordion-button'] %}
96
- {% if not _open_item %}
97
- {% set _button_classes = _button_classes|merge(['collapsed']) %}
98
- {% endif %}
91
+ {%- for _item in _items %}
92
+ {%- set _open_item = _open_item_id == loop.index %}
93
+ {%- set _button_classes = ['accordion-button'] %}
94
+ {%- if not _open_item %}
95
+ {%- set _button_classes = _button_classes|merge(['collapsed']) %}
96
+ {%- endif -%}
99
97
  <div class="accordion-item">
100
- {%- set _item_title_tag = _item.title_tag|default('h2') %}
101
- <{{ _item_title_tag }}
102
- class="accordion-header"
98
+ {%- set _item_title_tag = _item.title_tag|default('h2') -%}
99
+ <{{ _item_title_tag }}
100
+ class="accordion-header"
103
101
  id="heading-{{ _id }}-{{ loop.index }}"
104
102
  >
105
- {% set button_attributes = create_attribute()
103
+ {%- set button_attributes = create_attribute()
106
104
  .addClass(_button_classes)
107
105
  .setAttribute('data-bs-toggle', 'collapse')
108
106
  .setAttribute('autocomplete', 'off')
@@ -110,35 +108,33 @@
110
108
  .setAttribute('aria-controls', 'collapse-' ~ _id ~ '-' ~ loop.index)
111
109
  .setAttribute('aria-expanded', open_item ? 'true' : 'false')
112
110
  %}
113
- {% set item_title %}
111
+ {%- set item_title -%}
114
112
  <span>
115
113
  {{- _item.title -}}
116
114
  </span>
117
- {% endset %}
118
- {% include '@oe-bcl/bcl-button/button.html.twig' with {
115
+ {%- endset %}
116
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with {
119
117
  label: item_title,
120
118
  clean_class: true,
121
119
  attributes: button_attributes
122
- } only %}
123
- </{{ _item_title_tag }}>
120
+ } only -%}
121
+ </{{ _item_title_tag }}>{# -#}
124
122
  <div
125
123
  id="collapse-{{ _id }}-{{ loop.index }}"
126
124
  class="accordion-collapse collapse{{ _open_item ? ' show' }}"
127
125
  aria-labelledby="heading-{{ _id }}-{{ loop.index }}"
128
126
  role="region"
129
- {% if not _item.stay_open and _expand_button is empty %}
127
+ {% if not _item.stay_open and _expand_button is empty %}
130
128
  data-bs-parent="#accordion-{{ _id }}"
131
129
  {% endif %}
132
- >
130
+ >{# -#}
133
131
  <div class="accordion-body">
134
132
  {%- set _content = _item.content|default('') %}
135
133
  {%- block content _content -%}
136
- </div>
137
- </div>
134
+ </div>{# -#}
135
+ </div>{# -#}
138
136
  </div>
139
- {% endfor %}
140
- </div>
137
+ {%- endfor -%}
138
+ </div>{# -#}
141
139
  </div>
142
- {% endif %}
143
-
144
- {% endapply %}
140
+ {%- endif -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - message (string) (default: '')
5
3
  - heading (string) (default: '')
@@ -11,7 +9,7 @@
11
9
  - attributes (drupal attrs)
12
10
  #}
13
11
 
14
- {% set _message = message|default('') %}
12
+ {%- set _message = message|default('') %}
15
13
  {% set _heading = heading|default('') %}
16
14
  {% set _variant = variant|default('primary') %}
17
15
  {% set _dismissible = dismissible ?? true %}
@@ -19,7 +17,7 @@
19
17
  {% set _icon_path = icon_path|default('') %}
20
18
  {% set _icon_name = icon_name|default('') %}
21
19
 
22
- {% set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
20
+ {%- set _classes = ['alert', 'alert-' ~ _variant|e('html_attr'), 'd-flex', 'align-items-center'] %}
23
21
  {% set _icon_names = {
24
22
  primary: "info-circle-fill",
25
23
  secondary: "info-circle-fill",
@@ -32,36 +30,36 @@
32
30
  }
33
31
  %}
34
32
 
35
- {% if _dismissible %}
36
- {% set _classes = _classes|merge(['alert-dismissible']) %}
33
+ {%- if _dismissible %}
34
+ {%- set _classes = _classes|merge(['alert-dismissible']) %}
37
35
  {% endif %}
38
36
  {% if _animated_dismiss %}
39
- {% set _classes = _classes|merge(['fade', 'show']) %}
37
+ {%- set _classes = _classes|merge(['fade', 'show']) %}
40
38
  {% endif %}
41
39
 
42
- {% set _classes = _classes|merge(['text-dark']) %}
40
+ {%- set _classes = _classes|merge(['text-dark']) %}
43
41
 
44
- {% set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
42
+ {%- set _icon_classes = ['flex-shrink-0 me-3 mt-1 align-self-start' ] %}
45
43
 
46
- {% if _variant != 'light' %}
47
- {% set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
44
+ {%- if _variant != 'light' %}
45
+ {%- set _icon_classes = _icon_classes|merge(['text-' ~ _variant]) %}
48
46
  {% endif %}
49
47
 
50
- {% if attributes is empty %}
51
- {% set attributes = create_attribute() %}
48
+ {%- if attributes is empty %}
49
+ {%- set attributes = create_attribute() %}
52
50
  {% endif %}
53
51
 
54
- {% set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') %}
52
+ {%- set attributes = attributes.addClass(_classes).setAttribute('role', 'alert') -%}
55
53
 
56
54
  <div {{ attributes }}>
57
- {% if _icon_path is not empty %}
58
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
55
+ {%- if _icon_path is not empty %}
56
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
59
57
  name: _icon_name ?: _icon_names[_variant],
60
58
  size: 's',
61
59
  path: _icon_path,
62
60
  attributes: create_attribute().addClass(_icon_classes),
63
61
  } only %}
64
- {% endif %}
62
+ {% endif -%}
65
63
  <div class="alert-content flex-grow-1">
66
64
  {%- if _heading is not empty -%}
67
65
  <div class="alert-heading h4">{{ _heading }}</div>
@@ -75,9 +73,8 @@
75
73
  type="button"
76
74
  class="btn-close"
77
75
  data-bs-dismiss="alert"
78
- aria-label="Close">
79
- </button>
76
+ aria-label="Close"
77
+ ></button>
80
78
  {%- endif -%}
81
79
  </div>
82
-
83
- {% endapply %}
80
+ {#--#}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - label (string) (default: '')
5
3
  - background: (string) (default: 'primary')
@@ -13,7 +11,7 @@
13
11
  - attributes (drupal attrs)
14
12
  #}
15
13
 
16
- {% set _label = label|default('') %}
14
+ {%- set _label = label|default('') %}
17
15
  {% set _background = background|default('primary') %}
18
16
  {% set _url = url|default('') %}
19
17
  {% set _title = title|default('') %}
@@ -24,18 +22,18 @@
24
22
  {% set _icon_path = icon_path|default('') %}
25
23
  {% set _classes = ['badge'] %}
26
24
 
27
- {% if _rounded_pill %}
28
- {% set _classes = _classes|merge(['rounded-pill']) %}
25
+ {%- if _rounded_pill %}
26
+ {%- set _classes = _classes|merge(['rounded-pill']) %}
29
27
  {% endif %}
30
28
 
31
- {% if _outline %}
32
- {% set _classes = _classes|merge(['badge-outline-' ~ _background]) %}
29
+ {%- if _outline %}
30
+ {%- set _classes = _classes|merge(['badge-outline-' ~ _background]) %}
33
31
  {% else %}
34
- {% set _classes = _classes|merge(['text-bg-' ~ _background]) %}
32
+ {%- set _classes = _classes|merge(['text-bg-' ~ _background]) %}
35
33
  {% endif %}
36
34
 
37
- {% if attributes is empty %}
38
- {% set attributes = create_attribute() %}
35
+ {%- if attributes is empty %}
36
+ {%- set attributes = create_attribute() %}
39
37
  {% endif %}
40
38
 
41
39
  {%- if _title is not empty -%}
@@ -44,7 +42,7 @@
44
42
 
45
43
  {% set attributes = attributes.addClass(_classes) %}
46
44
 
47
- {% set _label %}
45
+ {%- set _label %}
48
46
  {%- if _assistive_text is not empty -%}
49
47
  <span class="visually-hidden">
50
48
  {{- _assistive_text -}}
@@ -53,11 +51,11 @@
53
51
  {{- _label -}}
54
52
  {%- if _dismissible -%}
55
53
  <span class="icon--close" aria-hidden="true">
56
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
54
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
57
55
  name: "x-circle-fill",
58
56
  size: "xs",
59
57
  path: _icon_path,
60
- } only %}
58
+ } only -%}
61
59
  </span>
62
60
  {%- endif -%}
63
61
  {% endset %}
@@ -75,5 +73,3 @@
75
73
  {{- _label -}}
76
74
  </span>
77
75
  {%- endif -%}
78
-
79
- {% endapply %}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title: (string) (default: '')
5
3
  - title_tag: (string) (default: 'div')
@@ -16,7 +14,7 @@
16
14
  - attributes (drupal attrs)
17
15
  #}
18
16
 
19
- {% set _title = title|default('') %}
17
+ {%- set _title = title|default('') %}
20
18
  {% set _title_tag = title_tag|default('div') %}
21
19
  {% set _title_link = title_link|default({}) %}
22
20
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -29,68 +27,67 @@
29
27
  {% set _fixed_height = fixed_height ?? false %}
30
28
  {% set _content_classes = content_classes|default('') %}
31
29
 
32
- {% set _content_class = 'bcl-banner__content' %}
30
+ {%- set _content_class = 'bcl-banner__content' %}
33
31
  {% if _content_classes is not empty %}
34
- {% set _content_class = _content_class ~ " " ~ _content_classes %}
32
+ {%- set _content_class = _content_class ~ " " ~ _content_classes %}
35
33
  {% endif %}
36
34
 
37
- {% set _title_classes = ['display-6'] %}
35
+ {%- set _title_classes = ['display-6'] %}
38
36
  {% if _description is not empty or _link is not empty %}
39
- {% set _title_classes = _title_classes|merge(['mb-3']) %}
37
+ {%- set _title_classes = _title_classes|merge(['mb-3']) %}
40
38
  {% endif %}
41
39
 
42
- {% set _title_attributes = _title_attributes.addClass(_title_classes) %}
40
+ {%- set _title_attributes = _title_attributes.addClass(_title_classes) %}
43
41
 
44
- {% set _classes = ['bcl-banner'] %}
42
+ {%- set _classes = ['bcl-banner'] %}
45
43
 
46
- {% if _shade %}
47
- {% set _classes = _classes|merge(['shade']) %}
44
+ {%- if _shade %}
45
+ {%- set _classes = _classes|merge(['shade']) %}
48
46
  {% endif %}
49
47
 
50
- {% if _image and not _shade %}
51
- {% set _classes = _classes|merge(['overlay']) %}
48
+ {%- if _image and not _shade %}
49
+ {%- set _classes = _classes|merge(['overlay']) %}
52
50
  {% endif %}
53
51
 
54
- {% if _hero %}
55
- {% set _classes = _classes|merge(['hero']) %}
52
+ {%- if _hero %}
53
+ {%- set _classes = _classes|merge(['hero']) %}
56
54
  {% endif %}
57
55
 
58
- {% if _full_width %}
59
- {% set _classes = _classes|merge(['full-width']) %}
56
+ {%- if _full_width %}
57
+ {%- set _classes = _classes|merge(['full-width']) %}
60
58
  {% endif %}
61
59
 
62
- {% if _fixed_height %}
63
- {% set _classes = _classes|merge(['fixed-height']) %}
60
+ {%- if _fixed_height %}
61
+ {%- set _classes = _classes|merge(['fixed-height']) %}
64
62
  {% endif %}
65
63
 
66
- {% if attributes is empty %}
67
- {% set attributes = create_attribute() %}
64
+ {%- if attributes is empty %}
65
+ {%- set attributes = create_attribute() %}
68
66
  {% endif %}
69
67
 
70
- {% set attributes = attributes.addClass(_classes) %}
68
+ {%- set attributes = attributes.addClass(_classes) -%}
71
69
 
72
70
  <div {{ attributes }}>
73
- {% if _image is not empty %}
71
+ {%- if _image is not empty -%}
74
72
  <div class="bcl-banner__image" style="background-image:url({{ _image }})"></div>
75
- {% endif %}
76
- <div class="container">
73
+ {%- endif -%}
74
+ <div class="container">{# -#}
77
75
  <div class="{{ _content_class }}">
78
- {% if _title is not empty %}
79
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
76
+ {%- if _title is not empty %}
77
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
80
78
  title: _title,
81
79
  title_tag: _title_tag,
82
80
  title_link: _title_link,
83
81
  attributes: _title_attributes,
84
82
  } only %}
85
- {% endif %}
86
- {% if _description is not empty %}
83
+ {%- endif %}
84
+ {%- if _description is not empty -%}
87
85
  <p class="mb-4">{{ _description }}</p>
88
- {% endif %}
89
- {% if _link.path %}
90
- {% include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
91
- {% endif %}
92
- </div>
93
- </div>
86
+ {%- endif %}
87
+ {%- if _link.path %}
88
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
89
+ {%- endif -%}
90
+ </div>{# -#}
91
+ </div>{# -#}
94
92
  </div>
95
-
96
- {% endapply %}
93
+ {#--#}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - with_header (boolean) (default: false)
@@ -25,7 +23,7 @@
25
23
  - messages_area
26
24
  #}
27
25
 
28
- {% set _with_header = header ?? false %}
26
+ {%- set _with_header = header ?? false %}
29
27
  {% set _with_footer = footer ?? false %}
30
28
  {% set _with_banner = banner ?? false %}
31
29
  {% set _with_sidebar = sidebar ?? false %}
@@ -34,8 +32,8 @@
34
32
  {% set _content_type = content_type|default('') %}
35
33
  {% set _classes = ['bcl-node-type'] %}
36
34
 
37
- {% if _with_sidebar %}
38
- {% set _col_classes = {
35
+ {%- if _with_sidebar %}
36
+ {%- set _col_classes = {
39
37
  left: [
40
38
  'col-12',
41
39
  'bcl-sidebar',
@@ -45,95 +43,93 @@
45
43
  ],
46
44
  } %}
47
45
 
48
- {% if _sidebar_size == 'normal' %}
49
- {% set _col_classes = _col_classes|merge({
46
+ {%- if _sidebar_size == 'normal' %}
47
+ {%- set _col_classes = _col_classes|merge({
50
48
  left: _col_classes.left|merge(['col-lg-3']),
51
49
  right: _col_classes.right|merge(['col-lg-9', 'col-xxl-8']),
52
50
  }) %}
53
- {% endif %}
51
+ {%- endif %}
54
52
 
55
- {% if _sidebar_size == 'large' %}
56
- {% set _col_classes = _col_classes|merge({
53
+ {%- if _sidebar_size == 'large' %}
54
+ {%- set _col_classes = _col_classes|merge({
57
55
  left: _col_classes.left|merge(['col-lg-4']),
58
56
  right: _col_classes.right|merge(['col-lg-8']),
59
57
  }) %}
60
- {% endif %}
58
+ {%- endif %}
61
59
  {% endif %}
62
60
 
63
- {% if _content_type is not empty %}
64
- {% set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
61
+ {%- if _content_type is not empty %}
62
+ {%- set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
65
63
  {% endif %}
66
64
 
67
- {% if attributes is empty %}
68
- {% set attributes = create_attribute() %}
65
+ {%- if attributes is empty %}
66
+ {%- set attributes = create_attribute() %}
69
67
  {% endif %}
70
68
 
71
- {% if _with_header %}
72
- {% include '@oe-bcl/bcl-header/header.html.twig' with header only %}
73
- {% endif %}
69
+ {%- if _with_header %}
70
+ {%- include '@oe-bcl/bcl-header/header.html.twig' with header only %}
71
+ {% endif -%}
74
72
 
75
73
  <main {{ attributes }}>
76
- {% if messages is defined and messages is not empty %}
77
- {% block messages_area %}
74
+ {%- if messages is defined and messages is not empty %}
75
+ {%- block messages_area -%}
78
76
  <div class="container">
79
- {% for message in messages %}
80
- {% set message_attributes = create_attribute().addClass(['mt-lg-5', 'mt-2']) %}
81
- {% include '@oe-bcl/bcl-alert/alert.html.twig' with message|merge({
77
+ {%- for message in messages %}
78
+ {%- set message_attributes = create_attribute().addClass(['mt-lg-5', 'mt-2']) %}
79
+ {%- include '@oe-bcl/bcl-alert/alert.html.twig' with message|merge({
82
80
  attributes: message_attributes,
83
81
  }) only %}
84
- {% endfor %}
82
+ {%- endfor -%}
85
83
  </div>
86
- {% endblock %}
84
+ {%- endblock %}
87
85
  {% endif %}
88
86
 
89
- {% if _with_banner %}
90
- {% block banner %}
91
- {% include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
92
- {% endblock %}
93
- {% endif %}
87
+ {%- if _with_banner %}
88
+ {%- block banner %}
89
+ {%- include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with banner only %}
90
+ {%- endblock %}
91
+ {% endif -%}
94
92
 
95
- <div class="container mt-md-4-75 mt-4">
93
+ <div class="container mt-md-4-75 mt-4">{# -#}
96
94
  <div class="row">
97
- {% block content_row %}
98
- {{ content_row }}
99
- {% endblock %}
100
- {% if _with_sidebar %}
95
+ {%- block content_row %}
96
+ {{- content_row }}
97
+ {%- endblock %}
98
+ {%- if _with_sidebar -%}
101
99
  <div class="{{ _col_classes.left|join(' ') }}">
102
- {% block sidebar %}{% endblock %}
103
- </div>
100
+ {%- block sidebar %}{% endblock -%}
101
+ </div>{# -#}
104
102
  <div class="{{ _col_classes.right|join(' ') }}">
105
- {% else %}
106
- {% if _landing %}
103
+ {%- else %}
104
+ {%- if _landing -%}
107
105
  <div class="col-12">
108
- {% else %}
106
+ {%- else -%}
109
107
  <div class="col-lg-10 col-xl-9 col-xxl-8">
110
- {% endif %}
111
- {% endif %}
112
- {% block content_top %}
113
- {{ content_top }}
114
- {% endblock %}
115
- {% block content %}
116
- {{ content }}
117
- {% endblock %}
118
- {% block content_bottom %}
119
- {{ content_bottom }}
120
- {% endblock %}
121
- {% block related %}
122
- {{ related }}
123
- {% endblock %}
124
- {% block share %}
125
- {{ share }}
126
- {% endblock %}
127
- </div>
128
- </div>
108
+ {%- endif %}
109
+ {%- endif %}
110
+ {%- block content_top %}
111
+ {{- content_top }}
112
+ {%- endblock %}
113
+ {%- block content %}
114
+ {{- content }}
115
+ {%- endblock %}
116
+ {%- block content_bottom %}
117
+ {{- content_bottom }}
118
+ {%- endblock %}
119
+ {%- block related %}
120
+ {{- related }}
121
+ {%- endblock %}
122
+ {%- block share %}
123
+ {{- share }}
124
+ {%- endblock -%}
125
+ </div>{# -#}
126
+ </div>{# -#}
129
127
  </main>
130
128
 
131
- {% block feedback %}
132
- {{ feedback }}
133
- {% endblock %}
134
-
135
- {% if _with_footer %}
136
- {% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
137
- {% endif %}
129
+ {%- block feedback %}
130
+ {{- feedback }}
131
+ {%- endblock %}
138
132
 
139
- {% endapply %}
133
+ {%- if _with_footer %}
134
+ {%- include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
135
+ {% endif -%}