@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
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - variant (string) (default: 'neutral')
5
3
  - options: ['ec', 'eu', 'neutral']
@@ -17,10 +15,12 @@
17
15
  - language_modal (object) (default: {})
18
16
  - light (boolean) (default: false)
19
17
  - modals (modal[]) (default: [])
18
+ - toggler_attributes (drupal attrs)
19
+ - icon_path (string) (default: '')
20
20
  - attributes (drupal attrs)
21
21
  #}
22
22
 
23
- {% set _variant = variant|default('neutral') %}
23
+ {%- set _variant = variant|default('neutral') %}
24
24
  {% set _navbar = navbar|default({}) %}
25
25
  {% set _project_logo = project_logo|default({}) %}
26
26
  {% set _site_name = site_name|default('') %}
@@ -30,117 +30,106 @@
30
30
  {% set _breadcrumbs = breadcrumbs|default({}) %}
31
31
  {% set _language_modal = language_modal|default({}) %}
32
32
  {% set _light = light ?? false %}
33
+ {% set _toggler_attributes = toggler_attributes ?: create_attribute() %}
34
+ {% set _icon_path = icon_path|default('') %}
33
35
  {% set _modals = modals|default([]) %}
34
36
 
35
- {% set _site_name_classes = 'bcl-header__site-name' %}
37
+ {%- set _site_name_classes = 'bcl-header__site-name' %}
36
38
 
37
- {% if attributes is empty %}
38
- {% set attributes = create_attribute() %}
39
+ {%- if attributes is empty %}
40
+ {%- set attributes = create_attribute() %}
39
41
  {% endif %}
40
42
 
41
- {% set attributes = attributes.addClass(['bcl-header', 'bcl-header--' ~ _variant]) %}
43
+ {%- set attributes = attributes.addClass(['bcl-header', 'bcl-header--' ~ _variant, 'shadow-sm']) %}
42
44
 
43
- {% if site_name_classes is not empty %}
44
- {% set _site_name_classes = _site_name_classes ~ ' ' ~ site_name_classes %}
45
+ {%- if site_name_classes is not empty %}
46
+ {%- set _site_name_classes = _site_name_classes ~ ' ' ~ site_name_classes %}
45
47
  {% endif %}
46
48
 
47
- {% set _project_classes = 'bcl-header__project' %}
49
+ {%- set _project_classes = 'bcl-header__project' %}
48
50
  {% if _light is not empty %}
49
- {% set _project_classes = _project_classes ~ ' light' %}
51
+ {%- set _project_classes = _project_classes ~ ' light' %}
50
52
  {% endif %}
51
53
 
54
+ {%- set toggler_attributes = _toggler_attributes.addClass(['bcl-navbar-toggler', 'd-lg-none'])
55
+ .setAttribute('type', 'button')
56
+ .setAttribute('data-bs-toggle', 'collapse')
57
+ .setAttribute('data-bs-target', '#' ~ navbar_id)
58
+ .setAttribute('aria-controls', navbar_id)
59
+ .setAttribute('aria-expanded', 'false')
60
+ %}
61
+
62
+ {%- set navbar_toggle_button -%}
63
+ <button
64
+ {{ toggler_attributes }}
65
+ >
66
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
67
+ name: 'list',
68
+ size: 'fluid',
69
+ path: _icon_path,
70
+ attributes: create_attribute().addClass(['default-icon']),
71
+ } only %}
72
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
73
+ name: 'x',
74
+ size: 'fluid',
75
+ path: _icon_path,
76
+ attributes: create_attribute().addClass(['active-icon']),
77
+ } only -%}
78
+ </button>
79
+ {%- endset -%}
80
+
52
81
  <header
53
82
  {{ attributes }}
54
- >
83
+ >{# -#}
55
84
  <nav
56
- {{ _head.attributes.addClass(['navbar', 'navbar-expand-lg', 'navbar-light']) }}>
85
+ {{ _head.attributes.addClass(['navbar', 'navbar-expand-lg', 'navbar-light']) }}>{# -#}
57
86
  <div class='container'>
58
- {% if _head.brand is not empty %}
87
+ {%- if _head.brand is not empty -%}
59
88
  <a class='navbar-brand' href='{{ _head.brand.link }}'>
60
- {% for logo in _head.brand.logos %}
89
+ {%- for logo in _head.brand.logos -%}
61
90
  <img
62
91
  src='{{ logo.src }}'
63
92
  {% if logo.alt is not empty %}
64
93
  alt='{{ logo.alt }}'
65
94
  {% endif %}
66
- {% if logo.class is not empty %}
95
+ {%- if logo.class is not empty %}
67
96
  class='{{ logo.class }}'
68
97
  {% endif %}
69
98
  />
70
- {% endfor %}
99
+ {%- endfor -%}
71
100
  </a>
72
- {% endif %}
73
- <button
74
- class="navbar-toggler bcl-navbar-toggler"
75
- type="button"
76
- data-bs-toggle="collapse"
77
- data-bs-target='#{{ _navbar_id }}'
78
- aria-controls='{{ _navbar_id }}'
79
- aria-expanded="false"
80
- aria-label="Toggle navigation"
81
- >
82
- <span class="navbar-toggler-icon"></span>
83
- </button>
84
- </div>
85
- </nav>
101
+ {%- endif %}
102
+ {{- navbar_toggle_button -}}
103
+ </div>{# -#}
104
+ </nav>{# -#}
86
105
 
87
-
88
- <!-- project name -->
89
- {% if _project_logo is not empty or _site_name is not empty %}
90
- <div class="{{ _project_classes }}">
91
- <div class="container">
92
- {% if _project_link is not empty %}
93
- <a
94
- href="{{ _project_link }}"
95
- >
96
- {% endif %}
97
- {% if _project_logo is not empty %}
98
- <img
99
- {% if _project_logo.path is not empty %}
100
- src="{{ _project_logo.path }}"
101
- {% endif %}
102
- {% if _project_logo.alt is not empty %}
103
- alt="{{ _project_logo.alt }}"
104
- {% endif %}
105
- {% if _project_logo.classes is not empty %}
106
- class="{{ _project_logo.classes }}"
107
- {% endif %}
108
- />
109
- {% endif %}
110
- {% if _site_name is not empty %}
111
- <span class="{{ _site_name_classes }}">
112
- {{- _site_name -}}
113
- </span>
114
- {% endif %}
115
- {% if _project_link is not empty %}
116
- </a>
117
- {% endif %}
118
- </div>
119
- </div>
120
- {% endif %}
106
+ <!-- site name -->{# -#}
107
+ <div class="bcl-header__site-name" id="site-name-heading">{# -#}
108
+ <div class="container">{# -#}
109
+ <span class="h5 py-3-5 border-top-subtle mb-0 d-block">{{ _site_name }}</span>{# -#}
110
+ </div>{# -#}
111
+ </div>{# -#}
121
112
 
122
113
  <!-- navbar -->
123
- {% if _navbar is not empty %}
124
- {% include '@oe-bcl/bcl-navbar/navbar.html.twig' with _navbar|merge({
114
+ {%- if _navbar is not empty %}
115
+ {%- include '@oe-bcl/bcl-navbar/navbar.html.twig' with _navbar|merge({
125
116
  disable_collapse: true,
126
117
  attributes: create_attribute().addClass('bcl-header__navbar collapse navbar-collapse').setAttribute('id', _navbar_id).setAttribute('aria-label', 'Main Navigation'),
127
118
  }) only %}
128
- {% endif %}
119
+ {%- endif -%}
120
+ </header>{# -#}
129
121
 
130
- <!-- breadcrumbs -->
131
- {% if _breadcrumbs is not empty %}
132
- <div class="container">
133
- {% include '@oe-bcl/bcl-breadcrumb/breadcrumb.html.twig' with _breadcrumbs only %}
134
- </div>
135
- {% endif %}
136
- </header>
122
+ <!-- breadcrumbs -->
123
+ {%- if _breadcrumbs is not empty -%}
124
+ <div class="container">
125
+ {%- include '@oe-bcl/bcl-breadcrumb/breadcrumb.html.twig' with _breadcrumbs only -%}
126
+ </div>
127
+ {%- endif %}
137
128
 
138
- {% for modal in _modals %}
139
- {% include '@oe-bcl/bcl-modal/modal.html.twig' with modal only %}
129
+ {%- for modal in _modals %}
130
+ {%- include '@oe-bcl/bcl-modal/modal.html.twig' with modal only %}
140
131
  {% endfor %}
141
132
 
142
- {% if _language_modal is not empty %}
143
- {% include '@oe-bcl/bcl-language-list/language-list.html.twig' with _language_modal only %}
144
- {% endif %}
145
-
146
- {% endapply %}
133
+ {%- if _language_modal is not empty %}
134
+ {%- include '@oe-bcl/bcl-language-list/language-list.html.twig' with _language_modal only %}
135
+ {% endif -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - title (string) (default: '')
5
3
  - title_tag (string) (default: 'h2')
@@ -7,34 +5,32 @@
7
5
  - attributes (drupal attrs)
8
6
  #}
9
7
 
10
- {% set _title = title|default('') %}
8
+ {%- set _title = title|default('') %}
11
9
  {% set _title_tag = title_tag|default('h2') %}
12
10
  {% set _title_link = title_link|default({}) %}
13
11
 
14
- {% if attributes is empty %}
15
- {% set attributes = create_attribute() %}
16
- {% endif %}
12
+ {%- if attributes is empty %}
13
+ {%- set attributes = create_attribute() %}
14
+ {% endif %}
17
15
 
18
- {% if attributes.class is empty %}
19
- {% set attributes = attributes.addClass(['mb-4']) %}
16
+ {%- if attributes.class is empty %}
17
+ {%- set attributes = attributes.addClass(['mb-4']) %}
20
18
  {% endif %}
21
19
 
22
- {% set attributes = attributes.addClass(['bcl-heading']) %}
20
+ {%- set attributes = attributes.addClass(['bcl-heading']) %}
23
21
 
24
- {% if _title_link is not empty and _title is not empty and _title_link.label is empty %}
25
- {% set _title_link = _title_link|merge({ label: _title }) %}
22
+ {%- if _title_link is not empty and _title is not empty and _title_link.label is empty %}
23
+ {%- set _title_link = _title_link|merge({ label: _title }) %}
26
24
  {% endif %}
27
25
 
28
- {% if _title is not empty or _title_link is not empty %}
29
- <{{ _title_tag }}
26
+ {%- if _title is not empty or _title_link is not empty -%}
27
+ <{{ _title_tag }}
30
28
  {{- attributes -}}
31
29
  >
32
30
  {%- if _title_link is not empty -%}
33
31
  {% include '@oe-bcl/bcl-link/link.html.twig' with _title_link|merge({ standalone: true }) only %}
34
32
  {%- else -%}
35
33
  {{- _title -}}
36
- {%- endif %}
34
+ {%- endif -%}
37
35
  </{{ _title_tag }}>
38
- {% endif -%}
39
-
40
- {% endapply %}
36
+ {%- endif -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - name (string) (default: '')
5
3
  - path (string) (default: '')
@@ -10,27 +8,26 @@
10
8
  - attributes (drupal attrs)
11
9
  #}
12
10
 
13
- {% set _name = name|default('') %}
11
+ {%- set _name = name|default('') %}
14
12
  {% set _path = path|default('') %}
15
13
  {% set _size = size|default('s') %}
16
14
  {% set _transformation = transformation|default('') %}
17
15
 
18
- {% set _classes = ['bi', 'icon--' ~ _size] %}
16
+ {%- set _classes = ['bi', 'icon--' ~ _size] %}
19
17
 
20
- {% if _transformation is not empty %}
21
- {% set _classes = _classes|merge(['icon--' ~ _transformation]) %}
18
+ {%- if _transformation is not empty %}
19
+ {%- set _classes = _classes|merge(['icon--' ~ _transformation]) %}
22
20
  {% endif %}
23
21
 
24
- {% if attributes is empty %}
25
- {% set attributes = create_attribute() %}
22
+ {%- if attributes is empty %}
23
+ {%- set attributes = create_attribute() %}
26
24
  {% endif %}
27
25
 
28
- {% set attributes = attributes.addClass(_classes) %}
26
+ {%- set attributes = attributes.addClass(_classes) -%}
29
27
 
30
28
  <svg
31
29
  {{ attributes }}
32
- >
33
- <use xlink:href="{{ _path ~ "#" ~ _name }}"/>
30
+ >{# -#}
31
+ <use xlink:href="{{ _path ~ "#" ~ _name }}"/>{# -#}
34
32
  </svg>
35
-
36
- {% endapply %}
33
+ {#--#}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - title: (string) (default: '')
@@ -14,7 +12,7 @@ Parameters:
14
12
  - attributes (drupal attrs)
15
13
  #}
16
14
 
17
- {% set _title = title|default('') %}
15
+ {%- set _title = title|default('') %}
18
16
  {% set _title_tag = title_tag|default('h2') %}
19
17
  {% set _title_link = title_link|default({}) %}
20
18
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -24,19 +22,19 @@ Parameters:
24
22
  {% set _dropdown_id = dropdown_id|default('bcl-inpage-navigation-dropdown' ~ random(10000)) %}
25
23
  {% set _dyanmic_active = dynamic_active|default(false) %}
26
24
 
27
- {% if attributes is empty %}
28
- {% set attributes = create_attribute() %}
25
+ {%- if attributes is empty %}
26
+ {%- set attributes = create_attribute() %}
29
27
  {% endif %}
30
28
 
31
- {% set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
29
+ {%- set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
32
30
 
33
- {% if not attributes.hasAttribute('aria-label') and not attributes.hasAttribute('aria-labelledby') %}
34
- {% set attributes = attributes.setAttribute('aria-labelledby', _dropdown_id) %}
31
+ {%- if not attributes.hasAttribute('aria-label') and not attributes.hasAttribute('aria-labelledby') %}
32
+ {%- set attributes = attributes.setAttribute('aria-labelledby', _dropdown_id) %}
35
33
  {% endif %}
36
34
 
37
- {% set title_attributes = _title_attributes.addClass(['mb-0', 'd-none', 'd-md-block']) %}
35
+ {%- set title_attributes = _title_attributes.addClass(['mb-0', 'd-none', 'd-md-block']) %}
38
36
  {% set _button_content %}
39
- {{ _title }}
37
+ {{- _title }}
40
38
  {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
41
39
  name: 'chevron-down',
42
40
  size: 's',
@@ -44,37 +42,36 @@ Parameters:
44
42
  } only -%}
45
43
  {% endset %}
46
44
 
47
- {% set _classes = [] %}
45
+ {%- set _classes = [] %}
48
46
 
49
- {% if _dyanmic_active %}
50
- {% set _classes = _classes|merge(['dynamic-active']) %}
51
- {% endif %}
47
+ {%- if _dyanmic_active %}
48
+ {%- set _classes = _classes|merge(['dynamic-active']) %}
49
+ {% endif -%}
52
50
 
53
51
  <nav{{ attributes.addClass(_classes) }}>
54
- {% set trigger_attributes = create_attribute()
52
+ {%- set trigger_attributes = create_attribute()
55
53
  .setAttribute('aria-expanded', 'false')
56
54
  .setAttribute('type', 'button')
57
55
  .setAttribute('id', _dropdown_id)
58
56
  .setAttribute('data-bs-toggle', 'dropdown')
59
57
  .addClass(['dropdown-toggle', 'h2', 'd-md-none']) %}
60
- {% include '@oe-bcl/bcl-button/button.html.twig' with {
58
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with {
61
59
  label: _button_content,
62
60
  clean_class: true,
63
61
  attributes: trigger_attributes,
64
62
  } only %}
65
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
63
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
66
64
  title: _title,
67
65
  title_tag: _title_tag,
68
66
  title_link: _title_link,
69
67
  attributes: _title_attributes,
70
- } only %}
68
+ } only -%}
71
69
  <div class="dropdown-menu">
72
- {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
70
+ {%- include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
73
71
  'pills': true,
74
72
  'vertical': true,
75
73
  'items': _links,
76
- } only %}
77
- </div>
74
+ } only -%}
75
+ </div>{# -#}
78
76
  </nav>
79
-
80
- {% endapply %}
77
+ {#--#}
@@ -1,56 +1,56 @@
1
1
  {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
2
2
 
3
3
  {%- block banner %}
4
- {% if banner is defined %}
5
- {% include '@oe-bcl/bcl-banner/banner.html.twig' with banner only %}
6
- {% endif %}
4
+ {%- if banner is defined %}
5
+ {%- include '@oe-bcl/bcl-banner/banner.html.twig' with banner only %}
6
+ {%- endif %}
7
7
  {%- endblock -%}
8
- {%- block content %}
8
+ {%- block content -%}
9
9
  <div class="container">
10
- {% if featured_section is defined %}
11
- <div class="my-4">
12
- <h2 class="mb-4">{{ featured_section.title }}</h2>
13
- <div class="row">
10
+ {%- if featured_section is defined -%}
11
+ <div class="my-4">{# -#}
12
+ <h2 class="mb-4">{{ featured_section.title }}</h2>{# -#}
13
+ <div class="row">{# -#}
14
14
  <div class="col-12 col-md-6">
15
- {{ featured_section.content }}
16
- </div>
15
+ {{- featured_section.content -}}
16
+ </div>{# -#}
17
17
  <div class="col-12 col-md-6">
18
- {% include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with featured_section.featured_media only %}
19
- </div>
20
- </div>
18
+ {%- include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with featured_section.featured_media only -%}
19
+ </div>{# -#}
20
+ </div>{# -#}
21
21
  </div>
22
- {% endif %}
22
+ {%- endif %}
23
23
 
24
- {% if listing_section is defined %}
24
+ {%- if listing_section is defined -%}
25
25
  <div class="my-4">
26
- {% include '@oe-bcl/bcl-listing/listing.html.twig' with listing_section only %}
26
+ {%- include '@oe-bcl/bcl-listing/listing.html.twig' with listing_section only -%}
27
27
  </div>
28
- {% endif %}
28
+ {%- endif %}
29
29
 
30
- {% if inpage_banner is defined %}
30
+ {%- if inpage_banner is defined -%}
31
31
  <div class="my-4">
32
- {% include '@oe-bcl/bcl-banner/banner.html.twig' with inpage_banner only %}
32
+ {%- include '@oe-bcl/bcl-banner/banner.html.twig' with inpage_banner only -%}
33
33
  </div>
34
- {% endif %}
34
+ {%- endif %}
35
35
 
36
- {% if activity_featured is defined %}
37
- <div class="my-4">
38
- <h2 class="mb-4">{{ activity_featured.title }}</h2>
39
- <div class="row">
36
+ {%- if activity_featured is defined -%}
37
+ <div class="my-4">{# -#}
38
+ <h2 class="mb-4">{{ activity_featured.title }}</h2>{# -#}
39
+ <div class="row">{# -#}
40
40
  <div class="col-12 col-md-6">
41
- {{ activity_featured.content }}
42
- </div>
41
+ {{- activity_featured.content -}}
42
+ </div>{# -#}
43
43
  <div class="col-12 col-md-6">
44
- {% include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with activity_featured.featured_media only %}
45
- </div>
46
- </div>
44
+ {%- include '@oe-bcl/bcl-featured-media/featured-media.html.twig' with activity_featured.featured_media only -%}
45
+ </div>{# -#}
46
+ </div>{# -#}
47
47
  </div>
48
- {% endif %}
48
+ {%- endif %}
49
49
 
50
- {% if activity_listing is defined %}
50
+ {%- if activity_listing is defined -%}
51
51
  <div class="my-4">
52
- {% include '@oe-bcl/bcl-listing/listing.html.twig' with activity_listing only %}
52
+ {%- include '@oe-bcl/bcl-listing/listing.html.twig' with activity_listing only -%}
53
53
  </div>
54
- {% endif %}
54
+ {%- endif -%}
55
55
  </div>
56
56
  {%- endblock -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - items (array) (default: []) format: [
@@ -14,55 +12,54 @@
14
12
  - icon_path (string) (default: '')
15
13
  #}
16
14
 
17
- {% set _items = items|default([]) %}
15
+ {%- set _items = items|default([]) %}
18
16
  {% set _category = category|default('') %}
19
17
  {% set _icon_path = icon_path|default('') %}
20
18
 
21
- {% set _columns = [] %}
19
+ {%- set _columns = [] %}
22
20
  {% set _columns = _columns|merge([_items|slice(0, (items|length / 2)|round(0, 'ceil'))]) %}
23
- {% set _columns = _columns|merge([_items|slice((items|length / 2)|round(0, 'ceil'), items|length)]) %}
21
+ {% set _columns = _columns|merge([_items|slice((items|length / 2)|round(0, 'ceil'), items|length)]) -%}
24
22
 
25
23
  <div class="pb-2">
26
- {% if _category is not empty %}
24
+ {%- if _category is not empty -%}
27
25
  <h5 class="mb-4">{{ _category }}</h5>
28
- {% endif %}
29
- {% if _columns is not empty and _columns is iterable %}
26
+ {%- endif %}
27
+ {%- if _columns is not empty and _columns is iterable -%}
30
28
  <div class="row">
31
- {% for _column in _columns %}
29
+ {%- for _column in _columns -%}
32
30
  <div class="col-12 col-md">
33
- {% for _item in _column %}
34
- {% if _item.attributes is empty %}
35
- {% set _item = _item|merge({
31
+ {%- for _item in _column %}
32
+ {%- if _item.attributes is empty %}
33
+ {%- set _item = _item|merge({
36
34
  attributes: create_attribute()
37
35
  }) %}
38
- {% endif %}
39
- {% set _item = _item|merge({
36
+ {%- endif %}
37
+ {%- set _item = _item|merge({
40
38
  attributes: _item.attributes.addClass(['w-100', 'mb-2-5', 'btn', 'w-100'])
41
39
  }) %}
42
- {% if _item.active %}
43
- {% set _item = _item|merge({
40
+ {%- if _item.active %}
41
+ {%- set _item = _item|merge({
44
42
  icon: {
45
43
  name: "check2",
46
44
  path: _icon_path,
47
45
  },
48
46
  attributes: _item.attributes.addClass(['selected', 'justify-content-between'])
49
47
  }) %}
50
- {% else %}
51
- {% set _item = _item|merge({
48
+ {%- else %}
49
+ {%- set _item = _item|merge({
52
50
  attributes: _item.attributes.addClass('justify-content-start')
53
51
  }) %}
54
- {% endif %}
55
- {% if _item.lang is not empty %}
56
- {% set _item = _item|merge({
52
+ {%- endif %}
53
+ {%- if _item.lang is not empty %}
54
+ {%- set _item = _item|merge({
57
55
  attributes: _item.attributes.setAttribute('lang', _item.lang).setAttribute('hreflang', _item.lang)
58
56
  }) %}
59
- {% endif %}
60
- {% include '@oe-bcl/bcl-link/link.html.twig' with _item only %}
61
- {% endfor %}
57
+ {%- endif %}
58
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _item only %}
59
+ {%- endfor -%}
62
60
  </div>
63
- {% endfor %}
61
+ {%- endfor -%}
64
62
  </div>
65
- {% endif %}
63
+ {%- endif -%}
66
64
  </div>
67
-
68
- {% endapply %}
65
+ {#--#}