@openeuropa/bcl-theme-joinup 1.10.9 → 1.10.11

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 (100) hide show
  1. package/css/oe-bcl-joinup.css +48 -34
  2. package/css/oe-bcl-joinup.css.map +1 -1
  3. package/css/oe-bcl-joinup.min.css +1 -1
  4. package/css/oe-bcl-joinup.min.css.map +1 -1
  5. package/js/oe-bcl-joinup.bundle.js +44 -0
  6. package/js/oe-bcl-joinup.bundle.js.map +1 -1
  7. package/js/oe-bcl-joinup.bundle.min.js +1 -1
  8. package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
  9. package/js/oe-bcl-joinup.esm.js +44 -0
  10. package/js/oe-bcl-joinup.esm.js.map +1 -1
  11. package/js/oe-bcl-joinup.esm.min.js +1 -1
  12. package/js/oe-bcl-joinup.esm.min.js.map +1 -1
  13. package/js/oe-bcl-joinup.umd.js +44 -0
  14. package/js/oe-bcl-joinup.umd.js.map +1 -1
  15. package/js/oe-bcl-joinup.umd.min.js +1 -1
  16. package/js/oe-bcl-joinup.umd.min.js.map +1 -1
  17. package/package.json +6 -6
  18. package/templates/bcl-accordion/accordion.html.twig +42 -46
  19. package/templates/bcl-alert/alert.html.twig +18 -21
  20. package/templates/bcl-badge/badge.html.twig +11 -15
  21. package/templates/bcl-banner/banner.html.twig +34 -37
  22. package/templates/bcl-base-templates/content-type.html.twig +63 -67
  23. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  24. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  25. package/templates/bcl-blockquote/blockquote.html.twig +17 -20
  26. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
  27. package/templates/bcl-button/button.html.twig +17 -36
  28. package/templates/bcl-button-group/button-group.html.twig +25 -29
  29. package/templates/bcl-card/card.html.twig +98 -101
  30. package/templates/bcl-card-layout/card-layout.html.twig +34 -37
  31. package/templates/bcl-carousel/carousel.html.twig +64 -67
  32. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  33. package/templates/bcl-content-banner/content-banner.html.twig +47 -44
  34. package/templates/bcl-date-block/date-block.html.twig +26 -29
  35. package/templates/bcl-description-list/description-list-details.html.twig +6 -9
  36. package/templates/bcl-description-list/description-list-title.html.twig +11 -14
  37. package/templates/bcl-description-list/description-list.html.twig +44 -48
  38. package/templates/bcl-dropdown/dropdown.html.twig +48 -52
  39. package/templates/bcl-event/event.html.twig +7 -7
  40. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
  41. package/templates/bcl-featured-media/featured-media.html.twig +42 -46
  42. package/templates/bcl-file/file-translations.html.twig +29 -32
  43. package/templates/bcl-file/file.html.twig +46 -49
  44. package/templates/bcl-footer/footer.html.twig +31 -34
  45. package/templates/bcl-form/form.html.twig +70 -73
  46. package/templates/bcl-form-input/form-input.html.twig +57 -61
  47. package/templates/bcl-gallery/gallery-item.html.twig +20 -23
  48. package/templates/bcl-gallery/gallery.html.twig +62 -66
  49. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  50. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  51. package/templates/bcl-group/group-landing.html.twig +69 -69
  52. package/templates/bcl-group/group.html.twig +19 -19
  53. package/templates/bcl-header/header.html.twig +44 -48
  54. package/templates/bcl-heading/heading.html.twig +13 -17
  55. package/templates/bcl-icon/icon.html.twig +10 -13
  56. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
  57. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  58. package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
  59. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  60. package/templates/bcl-language-list/language-list.html.twig +33 -37
  61. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
  62. package/templates/bcl-link/link.html.twig +32 -27
  63. package/templates/bcl-links-block/links-block.html.twig +29 -33
  64. package/templates/bcl-list-group/list-group.html.twig +43 -47
  65. package/templates/bcl-listing/listing.html.twig +88 -91
  66. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
  67. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +25 -26
  68. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
  69. package/templates/bcl-modal/modal.html.twig +17 -20
  70. package/templates/bcl-navbar/navbar.html.twig +35 -38
  71. package/templates/bcl-navigation/navigation.html.twig +105 -110
  72. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
  73. package/templates/bcl-page/page.html.twig +27 -27
  74. package/templates/bcl-pagination/pagination-item.html.twig +22 -26
  75. package/templates/bcl-pagination/pagination.html.twig +59 -62
  76. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
  77. package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
  78. package/templates/bcl-person/person.html.twig +12 -12
  79. package/templates/bcl-placeholder/placeholder.html.twig +14 -18
  80. package/templates/bcl-progress/progress.html.twig +16 -20
  81. package/templates/bcl-project/project-lists.html.twig +25 -29
  82. package/templates/bcl-project/project.html.twig +35 -35
  83. package/templates/bcl-project-status/project-contributions.html.twig +25 -28
  84. package/templates/bcl-project-status/project-status.html.twig +32 -37
  85. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
  86. package/templates/bcl-search/search.html.twig +12 -12
  87. package/templates/bcl-search-form/search-form.html.twig +21 -24
  88. package/templates/bcl-select/select.html.twig +52 -56
  89. package/templates/bcl-spinner/spinner.html.twig +10 -13
  90. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  91. package/templates/bcl-subscription/subscription.html.twig +3 -3
  92. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -17
  93. package/templates/bcl-table/table.html.twig +61 -65
  94. package/templates/bcl-textarea/textarea.html.twig +44 -47
  95. package/templates/bcl-timeline/timeline-item.html.twig +12 -15
  96. package/templates/bcl-timeline/timeline.html.twig +42 -45
  97. package/templates/bcl-toasts/toasts.html.twig +56 -60
  98. package/templates/bcl-user/user-compact.html.twig +24 -27
  99. package/templates/bcl-user/user-terms.html.twig +6 -6
  100. 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']
@@ -22,7 +20,7 @@
22
20
  - attributes (drupal attrs)
23
21
  #}
24
22
 
25
- {% set _variant = variant|default('neutral') %}
23
+ {%- set _variant = variant|default('neutral') %}
26
24
  {% set _navbar = navbar|default({}) %}
27
25
  {% set _project_logo = project_logo|default({}) %}
28
26
  {% set _site_name = site_name|default('') %}
@@ -36,24 +34,24 @@
36
34
  {% set _icon_path = icon_path|default('') %}
37
35
  {% set _modals = modals|default([]) %}
38
36
 
39
- {% set _site_name_classes = 'bcl-header__site-name' %}
37
+ {%- set _site_name_classes = 'bcl-header__site-name' %}
40
38
 
41
- {% if attributes is empty %}
42
- {% set attributes = create_attribute() %}
39
+ {%- if attributes is empty %}
40
+ {%- set attributes = create_attribute() %}
43
41
  {% endif %}
44
42
 
45
- {% set attributes = attributes.addClass(['bcl-header', 'bcl-header--' ~ _variant, 'shadow-sm']) %}
43
+ {%- set attributes = attributes.addClass(['bcl-header', 'bcl-header--' ~ _variant, 'shadow-sm']) %}
46
44
 
47
- {% if site_name_classes is not empty %}
48
- {% 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 %}
49
47
  {% endif %}
50
48
 
51
- {% set _project_classes = 'bcl-header__project' %}
49
+ {%- set _project_classes = 'bcl-header__project' %}
52
50
  {% if _light is not empty %}
53
- {% set _project_classes = _project_classes ~ ' light' %}
51
+ {%- set _project_classes = _project_classes ~ ' light' %}
54
52
  {% endif %}
55
53
 
56
- {% set toggler_attributes = _toggler_attributes.addClass(['bcl-navbar-toggler', 'd-lg-none'])
54
+ {%- set toggler_attributes = _toggler_attributes.addClass(['bcl-navbar-toggler', 'd-lg-none'])
57
55
  .setAttribute('type', 'button')
58
56
  .setAttribute('data-bs-toggle', 'collapse')
59
57
  .setAttribute('data-bs-target', '#' ~ navbar_id)
@@ -61,79 +59,77 @@
61
59
  .setAttribute('aria-expanded', 'false')
62
60
  %}
63
61
 
64
- {% set navbar_toggle_button %}
62
+ {%- set navbar_toggle_button -%}
65
63
  <button
66
64
  {{ toggler_attributes }}
67
65
  >
68
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
66
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
69
67
  name: 'list',
70
68
  size: 'fluid',
71
69
  path: _icon_path,
72
70
  attributes: create_attribute().addClass(['default-icon']),
73
71
  } only %}
74
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
72
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
75
73
  name: 'x',
76
74
  size: 'fluid',
77
75
  path: _icon_path,
78
76
  attributes: create_attribute().addClass(['active-icon']),
79
- } only %}
77
+ } only -%}
80
78
  </button>
81
- {% endset %}
79
+ {%- endset -%}
82
80
 
83
81
  <header
84
82
  {{ attributes }}
85
- >
83
+ >{# -#}
86
84
  <nav
87
- {{ _head.attributes.addClass(['navbar', 'navbar-expand-lg', 'navbar-light']) }}>
85
+ {{ _head.attributes.addClass(['navbar', 'navbar-expand-lg', 'navbar-light']) }}>{# -#}
88
86
  <div class='container'>
89
- {% if _head.brand is not empty %}
87
+ {%- if _head.brand is not empty -%}
90
88
  <a class='navbar-brand' href='{{ _head.brand.link }}'>
91
- {% for logo in _head.brand.logos %}
89
+ {%- for logo in _head.brand.logos -%}
92
90
  <img
93
91
  src='{{ logo.src }}'
94
92
  {% if logo.alt is not empty %}
95
93
  alt='{{ logo.alt }}'
96
94
  {% endif %}
97
- {% if logo.class is not empty %}
95
+ {%- if logo.class is not empty %}
98
96
  class='{{ logo.class }}'
99
97
  {% endif %}
100
98
  />
101
- {% endfor %}
99
+ {%- endfor -%}
102
100
  </a>
103
- {% endif %}
104
- {{ navbar_toggle_button }}
105
- </div>
106
- </nav>
107
-
108
- <!-- site name -->
109
- <div class="bcl-header__site-name" id="site-name-heading">
110
- <div class="container">
111
- <span class="h5 py-3-5 border-top-subtle mb-0 d-block">{{ _site_name }}</span>
112
- </div>
113
- </div>
101
+ {%- endif %}
102
+ {{- navbar_toggle_button -}}
103
+ </div>{# -#}
104
+ </nav>{# -#}
105
+
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>{# -#}
114
112
 
115
113
  <!-- navbar -->
116
- {% if _navbar is not empty %}
117
- {% 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({
118
116
  disable_collapse: true,
119
117
  attributes: create_attribute().addClass('bcl-header__navbar collapse navbar-collapse').setAttribute('id', _navbar_id).setAttribute('aria-label', 'Main Navigation'),
120
118
  }) only %}
121
- {% endif %}
122
- </header>
119
+ {%- endif -%}
120
+ </header>{# -#}
123
121
 
124
122
  <!-- breadcrumbs -->
125
- {% if _breadcrumbs is not empty %}
123
+ {%- if _breadcrumbs is not empty -%}
126
124
  <div class="container">
127
- {% include '@oe-bcl/bcl-breadcrumb/breadcrumb.html.twig' with _breadcrumbs only %}
125
+ {%- include '@oe-bcl/bcl-breadcrumb/breadcrumb.html.twig' with _breadcrumbs only -%}
128
126
  </div>
129
- {% endif %}
127
+ {%- endif %}
130
128
 
131
- {% for modal in _modals %}
132
- {% 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 %}
133
131
  {% endfor %}
134
132
 
135
- {% if _language_modal is not empty %}
136
- {% include '@oe-bcl/bcl-language-list/language-list.html.twig' with _language_modal only %}
137
- {% endif %}
138
-
139
- {% 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
+ {#--#}