@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
@@ -11,7 +11,7 @@
11
11
  - attributes (drupal attrs)
12
12
  #}
13
13
 
14
- {% set _label = label|default('') %}
14
+ {%- set _label = label|default('') %}
15
15
  {% set _background = background|default('primary') %}
16
16
  {% set _url = url|default('') %}
17
17
  {% set _title = title|default('') %}
@@ -22,18 +22,18 @@
22
22
  {% set _icon_path = icon_path|default('') %}
23
23
  {% set _classes = ['badge'] %}
24
24
 
25
- {% if _rounded_pill %}
26
- {% set _classes = _classes|merge(['rounded-pill']) %}
25
+ {%- if _rounded_pill %}
26
+ {%- set _classes = _classes|merge(['rounded-pill']) %}
27
27
  {% endif %}
28
28
 
29
- {% if _outline %}
30
- {% set _classes = _classes|merge(['badge-outline-' ~ _background]) %}
29
+ {%- if _outline %}
30
+ {%- set _classes = _classes|merge(['badge-outline-' ~ _background]) %}
31
31
  {% else %}
32
- {% set _classes = _classes|merge(['text-bg-' ~ _background]) %}
32
+ {%- set _classes = _classes|merge(['text-bg-' ~ _background]) %}
33
33
  {% endif %}
34
34
 
35
- {% if attributes is empty %}
36
- {% set attributes = create_attribute() %}
35
+ {%- if attributes is empty %}
36
+ {%- set attributes = create_attribute() %}
37
37
  {% endif %}
38
38
 
39
39
  {%- if _title is not empty -%}
@@ -42,7 +42,7 @@
42
42
 
43
43
  {% set attributes = attributes.addClass(_classes) %}
44
44
 
45
- {% set _label %}
45
+ {%- set _label %}
46
46
  {%- if _assistive_text is not empty -%}
47
47
  <span class="visually-hidden">
48
48
  {{- _assistive_text -}}
@@ -51,11 +51,11 @@
51
51
  {{- _label -}}
52
52
  {%- if _dismissible -%}
53
53
  <span class="icon--close" aria-hidden="true">
54
- {% include '@oe-bcl/bcl-icon/icon.html.twig' with {
54
+ {%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
55
55
  name: "x-circle-fill",
56
56
  size: "xs",
57
57
  path: _icon_path,
58
- } only %}
58
+ } only -%}
59
59
  </span>
60
60
  {%- endif -%}
61
61
  {% endset %}
@@ -73,4 +73,3 @@
73
73
  {{- _label -}}
74
74
  </span>
75
75
  {%- endif -%}
76
-
@@ -14,7 +14,7 @@
14
14
  - attributes (drupal attrs)
15
15
  #}
16
16
 
17
- {% set _title = title|default('') %}
17
+ {%- set _title = title|default('') %}
18
18
  {% set _title_tag = title_tag|default('div') %}
19
19
  {% set _title_link = title_link|default({}) %}
20
20
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -27,67 +27,67 @@
27
27
  {% set _fixed_height = fixed_height ?? false %}
28
28
  {% set _content_classes = content_classes|default('') %}
29
29
 
30
- {% set _content_class = 'bcl-banner__content' %}
30
+ {%- set _content_class = 'bcl-banner__content' %}
31
31
  {% if _content_classes is not empty %}
32
- {% set _content_class = _content_class ~ " " ~ _content_classes %}
32
+ {%- set _content_class = _content_class ~ " " ~ _content_classes %}
33
33
  {% endif %}
34
34
 
35
- {% set _title_classes = ['display-6'] %}
35
+ {%- set _title_classes = ['display-6'] %}
36
36
  {% if _description is not empty or _link is not empty %}
37
- {% set _title_classes = _title_classes|merge(['mb-3']) %}
37
+ {%- set _title_classes = _title_classes|merge(['mb-3']) %}
38
38
  {% endif %}
39
39
 
40
- {% set _title_attributes = _title_attributes.addClass(_title_classes) %}
40
+ {%- set _title_attributes = _title_attributes.addClass(_title_classes) %}
41
41
 
42
- {% set _classes = ['bcl-banner'] %}
42
+ {%- set _classes = ['bcl-banner'] %}
43
43
 
44
- {% if _shade %}
45
- {% set _classes = _classes|merge(['shade']) %}
44
+ {%- if _shade %}
45
+ {%- set _classes = _classes|merge(['shade']) %}
46
46
  {% endif %}
47
47
 
48
- {% if _image and not _shade %}
49
- {% set _classes = _classes|merge(['overlay']) %}
48
+ {%- if _image and not _shade %}
49
+ {%- set _classes = _classes|merge(['overlay']) %}
50
50
  {% endif %}
51
51
 
52
- {% if _hero %}
53
- {% set _classes = _classes|merge(['hero']) %}
52
+ {%- if _hero %}
53
+ {%- set _classes = _classes|merge(['hero']) %}
54
54
  {% endif %}
55
55
 
56
- {% if _full_width %}
57
- {% set _classes = _classes|merge(['full-width']) %}
56
+ {%- if _full_width %}
57
+ {%- set _classes = _classes|merge(['full-width']) %}
58
58
  {% endif %}
59
59
 
60
- {% if _fixed_height %}
61
- {% set _classes = _classes|merge(['fixed-height']) %}
60
+ {%- if _fixed_height %}
61
+ {%- set _classes = _classes|merge(['fixed-height']) %}
62
62
  {% endif %}
63
63
 
64
- {% if attributes is empty %}
65
- {% set attributes = create_attribute() %}
64
+ {%- if attributes is empty %}
65
+ {%- set attributes = create_attribute() %}
66
66
  {% endif %}
67
67
 
68
- {% set attributes = attributes.addClass(_classes) %}
68
+ {%- set attributes = attributes.addClass(_classes) -%}
69
69
 
70
70
  <div {{ attributes }}>
71
- {% if _image is not empty %}
71
+ {%- if _image is not empty -%}
72
72
  <div class="bcl-banner__image" style="background-image:url({{ _image }})"></div>
73
- {% endif %}
74
- <div class="container">
73
+ {%- endif -%}
74
+ <div class="container">{# -#}
75
75
  <div class="{{ _content_class }}">
76
- {% if _title is not empty %}
77
- {% 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 {
78
78
  title: _title,
79
79
  title_tag: _title_tag,
80
80
  title_link: _title_link,
81
81
  attributes: _title_attributes,
82
82
  } only %}
83
- {% endif %}
84
- {% if _description is not empty %}
83
+ {%- endif %}
84
+ {%- if _description is not empty -%}
85
85
  <p class="mb-4">{{ _description }}</p>
86
- {% endif %}
87
- {% if _link.path %}
88
- {% include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
89
- {% endif %}
90
- </div>
91
- </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>{# -#}
92
92
  </div>
93
-
93
+ {#--#}
@@ -23,7 +23,7 @@
23
23
  - messages_area
24
24
  #}
25
25
 
26
- {% set _with_header = header ?? false %}
26
+ {%- set _with_header = header ?? false %}
27
27
  {% set _with_footer = footer ?? false %}
28
28
  {% set _with_banner = banner ?? false %}
29
29
  {% set _with_sidebar = sidebar ?? false %}
@@ -32,8 +32,8 @@
32
32
  {% set _content_type = content_type|default('') %}
33
33
  {% set _classes = ['bcl-node-type'] %}
34
34
 
35
- {% if _with_sidebar %}
36
- {% set _col_classes = {
35
+ {%- if _with_sidebar %}
36
+ {%- set _col_classes = {
37
37
  left: [
38
38
  'col-12',
39
39
  'bcl-sidebar',
@@ -43,94 +43,93 @@
43
43
  ],
44
44
  } %}
45
45
 
46
- {% if _sidebar_size == 'normal' %}
47
- {% set _col_classes = _col_classes|merge({
46
+ {%- if _sidebar_size == 'normal' %}
47
+ {%- set _col_classes = _col_classes|merge({
48
48
  left: _col_classes.left|merge(['col-lg-3']),
49
49
  right: _col_classes.right|merge(['col-lg-9', 'col-xxl-8']),
50
50
  }) %}
51
- {% endif %}
51
+ {%- endif %}
52
52
 
53
- {% if _sidebar_size == 'large' %}
54
- {% set _col_classes = _col_classes|merge({
53
+ {%- if _sidebar_size == 'large' %}
54
+ {%- set _col_classes = _col_classes|merge({
55
55
  left: _col_classes.left|merge(['col-lg-4']),
56
56
  right: _col_classes.right|merge(['col-lg-8']),
57
57
  }) %}
58
- {% endif %}
58
+ {%- endif %}
59
59
  {% endif %}
60
60
 
61
- {% if _content_type is not empty %}
62
- {% set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
61
+ {%- if _content_type is not empty %}
62
+ {%- set _classes = _classes|merge(['bcl-' ~ _content_type]) %}
63
63
  {% endif %}
64
64
 
65
- {% if attributes is empty %}
66
- {% set attributes = create_attribute() %}
65
+ {%- if attributes is empty %}
66
+ {%- set attributes = create_attribute() %}
67
67
  {% endif %}
68
68
 
69
- {% if _with_header %}
70
- {% include '@oe-bcl/bcl-header/header.html.twig' with header only %}
71
- {% endif %}
69
+ {%- if _with_header %}
70
+ {%- include '@oe-bcl/bcl-header/header.html.twig' with header only %}
71
+ {% endif -%}
72
72
 
73
73
  <main {{ attributes }}>
74
- {% if messages is defined and messages is not empty %}
75
- {% block messages_area %}
74
+ {%- if messages is defined and messages is not empty %}
75
+ {%- block messages_area -%}
76
76
  <div class="container">
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({
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({
80
80
  attributes: message_attributes,
81
81
  }) only %}
82
- {% endfor %}
82
+ {%- endfor -%}
83
83
  </div>
84
- {% endblock %}
84
+ {%- endblock %}
85
85
  {% endif %}
86
86
 
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 %}
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 -%}
92
92
 
93
- <div class="container mt-md-4-75 mt-4">
93
+ <div class="container mt-md-4-75 mt-4">{# -#}
94
94
  <div class="row">
95
- {% block content_row %}
96
- {{ content_row }}
97
- {% endblock %}
98
- {% if _with_sidebar %}
95
+ {%- block content_row %}
96
+ {{- content_row }}
97
+ {%- endblock %}
98
+ {%- if _with_sidebar -%}
99
99
  <div class="{{ _col_classes.left|join(' ') }}">
100
- {% block sidebar %}{% endblock %}
101
- </div>
100
+ {%- block sidebar %}{% endblock -%}
101
+ </div>{# -#}
102
102
  <div class="{{ _col_classes.right|join(' ') }}">
103
- {% else %}
104
- {% if _landing %}
103
+ {%- else %}
104
+ {%- if _landing -%}
105
105
  <div class="col-12">
106
- {% else %}
106
+ {%- else -%}
107
107
  <div class="col-lg-10 col-xl-9 col-xxl-8">
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>
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>{# -#}
127
127
  </main>
128
128
 
129
- {% block feedback %}
130
- {{ feedback }}
131
- {% endblock %}
132
-
133
- {% if _with_footer %}
134
- {% include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
135
- {% endif %}
129
+ {%- block feedback %}
130
+ {{- feedback }}
131
+ {%- endblock %}
136
132
 
133
+ {%- if _with_footer %}
134
+ {%- include '@oe-bcl/bcl-footer/footer.html.twig' with footer only %}
135
+ {% endif -%}
@@ -13,60 +13,60 @@
13
13
  {% set _listing = listing|default({}) %}
14
14
 
15
15
  {%- block content_top %}
16
- {% set _title = title|default('') %}
17
- {% set _title_tag = title_tag|default('h2') %}
18
- {% set _title_link = title_link|default({}) %}
19
- {% set _title_attributes = title_attributes ?: create_attribute() %}
20
- {% set _title_attributes = _title_attributes ?: create_attribute() %}
16
+ {%- set _title = title|default('') %}
17
+ {%- set _title_tag = title_tag|default('h2') %}
18
+ {%- set _title_link = title_link|default({}) %}
19
+ {%- set _title_attributes = title_attributes ?: create_attribute() %}
20
+ {%- set _title_attributes = _title_attributes ?: create_attribute() %}
21
21
  {% if filter_button %}
22
- {% include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
23
- {% endif %}
24
- <div class="row">
22
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with filter_button only %}
23
+ {% endif -%}
24
+ <div class="row">{# -#}
25
25
  <div class="col-md-6 col-lg-8 align-self-center">
26
- {% if _title is not empty %}
27
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
26
+ {%- if _title is not empty %}
27
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
28
28
  title: _title ~ ' (' ~ (_listing.items|length) ~ ')',
29
29
  title_tag: _title_tag,
30
30
  title_link: _title_link,
31
31
  attributes: _title_attributes.addClass(['mb-0', 'text-capitalize']),
32
32
  } only %}
33
- {% endif %}
33
+ {%- endif -%}
34
34
  </div>
35
- {% if badges is not empty and badges is iterable %}
35
+ {%- if badges is not empty and badges is iterable -%}
36
36
  <div class="col-md-12 order-md-2 mt-3">
37
- {% for badge in badges %}
38
- {% include '@oe-bcl/bcl-badge/badge.html.twig' with badge|merge({
37
+ {%- for badge in badges %}
38
+ {%- include '@oe-bcl/bcl-badge/badge.html.twig' with badge|merge({
39
39
  attributes: create_attribute().addClass(["mb-2", "me-2"])
40
40
  }) only %}
41
- {% endfor %}
41
+ {%- endfor -%}
42
42
  </div>
43
- {% endif %}
44
- <div class="col-md-6 col-lg-4 mt-3 mt-md-0">
43
+ {%- endif -%}
44
+ <div class="col-md-6 col-lg-4 mt-3 mt-md-0">{# -#}
45
45
  <div class="float-md-end d-md-flex align-items-center mb-4 mb-md-0">
46
- {% include '@oe-bcl/bcl-select/select.html.twig' with sort_select|merge({
46
+ {%- include '@oe-bcl/bcl-select/select.html.twig' with sort_select|merge({
47
47
  attributes: create_attribute().addClass(['ms-md-2']),
48
- }) only %}
49
- </div>
50
- </div>
51
- </div>
48
+ }) only -%}
49
+ </div>{# -#}
50
+ </div>{# -#}
51
+ </div>{# -#}
52
52
  <hr class="d-none d-md-block mb-4-75"/>
53
53
  {%- endblock -%}
54
54
 
55
55
  {%- block content %}
56
- {% if _listing is not empty %}
57
- {% include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
58
- {% endif %}
56
+ {%- if _listing is not empty %}
57
+ {%- include '@oe-bcl/bcl-listing/listing.html.twig' with _listing only %}
58
+ {%- endif %}
59
59
  {%- endblock -%}
60
60
 
61
61
  {%- block content_bottom %}
62
- {% set _pagination = pagination|default({}) %}
63
- {% if _pagination is not empty %}
62
+ {%- set _pagination = pagination|default({}) %}
63
+ {%- if _pagination is not empty -%}
64
64
  <hr class="d-none d-md-block mt-4-5">
65
- {% include '@oe-bcl/bcl-pagination/pagination.html.twig' with _pagination only %}
66
- {% endif %}
65
+ {%- include '@oe-bcl/bcl-pagination/pagination.html.twig' with _pagination only %}
66
+ {%- endif %}
67
67
  {%- endblock -%}
68
68
 
69
69
  {%- block sidebar %}
70
- {% set _sidebar = sidebar|default({}) %}
71
- {% include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
70
+ {%- set _sidebar = sidebar|default({}) %}
71
+ {%- include '@oe-bcl/bcl-base-templates/sidebar-search.html.twig' with _sidebar only %}
72
72
  {%- endblock -%}
@@ -1,20 +1,20 @@
1
1
  {% extends "@oe-bcl/bcl-offcanvas/offcanvas.html.twig" %}
2
2
 
3
- {% set responsiveness = 'lg' %}
3
+ {%- set responsiveness = 'lg' %}
4
4
  {% if extra_classes_header is empty %}
5
- {% set extra_classes_header = 'd-lg-block' %}
5
+ {%- set extra_classes_header = 'd-lg-block' %}
6
6
  {% else %}
7
- {% set extra_classes_header = extra_classes_header ~ ' d-lg-block' %}
7
+ {%- set extra_classes_header = extra_classes_header ~ ' d-lg-block' %}
8
8
  {% endif %}
9
9
 
10
- {% block body %}
11
- {% if search_form.attributes is empty %}
12
- {% set attributes = search_form.create_attribute() %}
13
- {% endif %}
10
+ {%- block body %}
11
+ {%- if search_form.attributes is empty %}
12
+ {%- set attributes = search_form.create_attribute() %}
13
+ {%- endif -%}
14
14
 
15
15
  <div class="offcanvas-body p-lg-0">
16
- {% include '@oe-bcl/bcl-form/form.html.twig' with search_form|merge({
16
+ {%- include '@oe-bcl/bcl-form/form.html.twig' with search_form|merge({
17
17
  attributes: search_form.attributes.addClass('w-100')
18
- }) only %}
18
+ }) only -%}
19
19
  </div>
20
- {% endblock %}
20
+ {%- endblock %}
@@ -11,7 +11,7 @@
11
11
  - attributes (drupal attrs)
12
12
  #}
13
13
 
14
- {% set _title = title|default('') %}
14
+ {%- set _title = title|default('') %}
15
15
  {% set _title_tag = title_tag|default('h2') %}
16
16
  {% set _title_link = title_link|default({}) %}
17
17
  {% set _title_attributes = title_attributes ?: create_attribute() %}
@@ -20,7 +20,7 @@
20
20
  {% set _cite = cite|default('') %}
21
21
  {% set _alignment = alignment|default('left') %}
22
22
 
23
- {% set _classes = [
23
+ {%- set _classes = [
24
24
  'text-' ~ _alignment,
25
25
  "bg-lighter",
26
26
  "p-2",
@@ -29,19 +29,19 @@
29
29
  "border-secondary"
30
30
  ] %}
31
31
 
32
- {% if _alignment == "center" %}
33
- {% set _classes = _classes|merge(["border-top"]) %}
32
+ {%- if _alignment == "center" %}
33
+ {%- set _classes = _classes|merge(["border-top"]) %}
34
34
  {% elseif _alignment == "end" %}
35
- {% set _classes = _classes|merge(["border-end"]) %}
35
+ {%- set _classes = _classes|merge(["border-end"]) %}
36
36
  {% else %}
37
- {% set _classes = _classes|merge(["border-start"]) %}
37
+ {%- set _classes = _classes|merge(["border-start"]) %}
38
38
  {% endif %}
39
39
 
40
- {% if attributes is empty %}
41
- {% set attributes = create_attribute() %}
40
+ {%- if attributes is empty %}
41
+ {%- set attributes = create_attribute() %}
42
42
  {% endif %}
43
43
 
44
- {% set attributes = attributes.addClass(_classes) %}
44
+ {%- set attributes = attributes.addClass(_classes) %}
45
45
 
46
46
  {%- if _title is not empty -%}
47
47
  {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
@@ -54,17 +54,17 @@
54
54
 
55
55
  <figure
56
56
  {{ attributes }}
57
- >
58
- <blockquote class="blockquote mb-2">
59
- <p>{{- _quote -}}</p>
57
+ >{# -#}
58
+ <blockquote class="blockquote mb-2">{# -#}
59
+ <p>{{- _quote -}}</p>{# -#}
60
60
  </blockquote>
61
- {% if _attribution is not empty %}
61
+ {%- if _attribution is not empty -%}
62
62
  <figcaption class="blockquote-footer m-0">
63
63
  {{- _attribution -}}
64
- {% if _cite is not empty %}
64
+ {% if _cite is not empty -%}
65
65
  <cite title="{{ _cite }}">{{- _cite -}}</cite>
66
- {% endif %}
66
+ {%- endif -%}
67
67
  </figcaption>
68
- {% endif %}
68
+ {%- endif -%}
69
69
  </figure>
70
-
70
+ {#--#}
@@ -4,41 +4,41 @@
4
4
  - attributes (drupal attrs)
5
5
  #}
6
6
 
7
- {% set _links = links|default([]) %}
7
+ {%- set _links = links|default([]) %}
8
8
  {% set _icon_path = icon_path|default('') %}
9
9
 
10
- {% set _classes = 'breadcrumb' %}
10
+ {%- set _classes = 'breadcrumb' %}
11
11
 
12
- {% if attributes is empty %}
13
- {% set attributes = create_attribute() %}
12
+ {%- if attributes is empty %}
13
+ {%- set attributes = create_attribute() %}
14
14
  {% endif %}
15
15
 
16
- {% set attributes = attributes.setAttribute('aria-label', 'breadcrumb') %}
16
+ {%- set attributes = attributes.setAttribute('aria-label', 'breadcrumb') %}
17
17
 
18
- {% if _links is not empty %}
18
+ {%- if _links is not empty -%}
19
19
  <nav
20
20
  {{ attributes }}
21
- >
21
+ >{# -#}
22
22
  <ol
23
23
  class="{{ _classes }}"
24
24
  >
25
- {% for _link in _links %}
26
- {% set _segment_classes = 'breadcrumb-item d-none d-md-block' %}
27
- {% if loop.revindex == 2 %}
28
- {% set _segment_classes = 'breadcrumb-item' %}
29
- {% endif %}
30
- {% set _segment_attrs = '' %}
31
- {% if loop.last %}
32
- {% set _segment_classes = _segment_classes ~ ' active' %}
33
- {% set _segment_attrs = 'aria-current="page"' %}
34
- {% endif %}
25
+ {%- for _link in _links %}
26
+ {%- set _segment_classes = 'breadcrumb-item d-none d-md-block' %}
27
+ {%- if loop.revindex == 2 %}
28
+ {%- set _segment_classes = 'breadcrumb-item' %}
29
+ {%- endif %}
30
+ {%- set _segment_attrs = '' %}
31
+ {%- if loop.last %}
32
+ {%- set _segment_classes = _segment_classes ~ ' active' %}
33
+ {%- set _segment_attrs = 'aria-current="page"' %}
34
+ {%- endif -%}
35
35
  <li
36
36
  class="{{ _segment_classes }}"
37
37
  {{ _segment_attrs|raw }}
38
38
  >
39
39
  {%- if _link.path -%}
40
40
  {% if loop.revindex == 2 %}
41
- {% set _link = _link|merge({
41
+ {%- set _link = _link|merge({
42
42
  icon_position: 'before',
43
43
  icon: {
44
44
  name: "arrow-left",
@@ -46,14 +46,13 @@
46
46
  attributes: create_attribute().addClass(['d-md-none ms-0 me-2']),
47
47
  },
48
48
  }) %}
49
- {% endif %}
50
- {% include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
51
- {% else %}
49
+ {%- endif %}
50
+ {%- include '@oe-bcl/bcl-link/link.html.twig' with _link only %}
51
+ {%- else %}
52
52
  {{- _link.label -}}
53
53
  {%- endif -%}
54
54
  </li>
55
- {% endfor %}
56
- </ol>
55
+ {%- endfor -%}
56
+ </ol>{# -#}
57
57
  </nav>
58
- {% endif %}
59
-
58
+ {%- endif -%}