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