@openeuropa/bcl-twig-templates 0.4185.202511191330 → 0.4230.202512021730
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.
- package/package.json +67 -67
- package/templates/bcl-accordion/accordion.html.twig +0 -3
- package/templates/bcl-alert/alert.html.twig +0 -3
- package/templates/bcl-badge/badge.html.twig +0 -3
- package/templates/bcl-banner/banner.html.twig +0 -3
- package/templates/bcl-base-templates/content-type.html.twig +0 -3
- package/templates/bcl-blockquote/blockquote.html.twig +0 -3
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +0 -3
- package/templates/bcl-button/button.html.twig +0 -3
- package/templates/bcl-button-group/button-group.html.twig +0 -3
- package/templates/bcl-card/card.html.twig +0 -3
- package/templates/bcl-card-layout/card-layout.html.twig +0 -3
- package/templates/bcl-carousel/carousel.html.twig +0 -3
- package/templates/bcl-content-banner/content-banner.html.twig +0 -3
- package/templates/bcl-date-block/date-block.html.twig +0 -3
- package/templates/bcl-description-list/description-list-details.html.twig +0 -3
- package/templates/bcl-description-list/description-list-title.html.twig +0 -3
- package/templates/bcl-description-list/description-list.html.twig +0 -3
- package/templates/bcl-dropdown/dropdown.html.twig +0 -3
- package/templates/bcl-fact-figures/fact-figures.html.twig +0 -3
- package/templates/bcl-featured-media/featured-media.html.twig +0 -3
- package/templates/bcl-file/file-translations.html.twig +0 -3
- package/templates/bcl-file/file.html.twig +0 -3
- package/templates/bcl-footer/footer.html.twig +0 -3
- package/templates/bcl-form/form.html.twig +0 -3
- package/templates/bcl-form-input/form-input.html.twig +0 -3
- package/templates/bcl-gallery/gallery-item.html.twig +0 -3
- package/templates/bcl-gallery/gallery.html.twig +0 -3
- package/templates/bcl-header/header.html.twig +42 -10
- package/templates/bcl-heading/heading.html.twig +0 -3
- package/templates/bcl-icon/icon.html.twig +0 -3
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +0 -3
- package/templates/bcl-language-list/language-list-grid.html.twig +0 -3
- package/templates/bcl-language-list/language-list.html.twig +0 -3
- package/templates/bcl-language-switcher/language-switcher.html.twig +0 -3
- package/templates/bcl-link/link.html.twig +0 -3
- package/templates/bcl-links-block/links-block.html.twig +1 -4
- package/templates/bcl-list-group/list-group.html.twig +0 -3
- package/templates/bcl-listing/listing.html.twig +0 -3
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +0 -3
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +6 -12
- package/templates/bcl-mega-menu/mega-menu.html.twig +0 -3
- package/templates/bcl-modal/modal.html.twig +4 -6
- package/templates/bcl-navbar/navbar.html.twig +0 -3
- package/templates/bcl-navigation/navigation.html.twig +1 -6
- package/templates/bcl-offcanvas/offcanvas.html.twig +0 -3
- package/templates/bcl-pagination/pagination-item.html.twig +0 -3
- package/templates/bcl-pagination/pagination.html.twig +0 -3
- package/templates/bcl-pagination-v2/pagination-item.html.twig +0 -3
- package/templates/bcl-pagination-v2/pagination.html.twig +0 -3
- package/templates/bcl-placeholder/placeholder.html.twig +0 -3
- package/templates/bcl-progress/progress.html.twig +0 -3
- package/templates/bcl-project/project-lists.html.twig +0 -4
- package/templates/bcl-project-status/project-contributions.html.twig +0 -3
- package/templates/bcl-project-status/project-status.html.twig +0 -3
- package/templates/bcl-recent-activities/recent-activities.html.twig +0 -3
- package/templates/bcl-search-form/search-form.html.twig +0 -3
- package/templates/bcl-select/select.html.twig +0 -3
- package/templates/bcl-spinner/spinner.html.twig +0 -3
- package/templates/bcl-subscription-block/subscription-block.html.twig +0 -3
- package/templates/bcl-table/table.html.twig +0 -3
- package/templates/bcl-textarea/textarea.html.twig +0 -3
- package/templates/bcl-timeline/timeline-item.html.twig +0 -3
- package/templates/bcl-timeline/timeline.html.twig +0 -3
- package/templates/bcl-toasts/toasts.html.twig +0 -3
- package/templates/bcl-user/user-compact.html.twig +0 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-twig-templates",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.4230.202512021730",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -11,71 +11,71 @@
|
|
|
11
11
|
"hoistingLimits": "workspaces"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@openeuropa/bcl-accordion": "^0.
|
|
15
|
-
"@openeuropa/bcl-alert": "^0.
|
|
16
|
-
"@openeuropa/bcl-badge": "^0.
|
|
17
|
-
"@openeuropa/bcl-banner": "^0.
|
|
18
|
-
"@openeuropa/bcl-base-templates": "^0.
|
|
19
|
-
"@openeuropa/bcl-blockquote": "^0.
|
|
20
|
-
"@openeuropa/bcl-breadcrumb": "^0.
|
|
21
|
-
"@openeuropa/bcl-button": "^0.
|
|
22
|
-
"@openeuropa/bcl-button-group": "^0.
|
|
23
|
-
"@openeuropa/bcl-card": "^0.
|
|
24
|
-
"@openeuropa/bcl-card-layout": "^0.
|
|
25
|
-
"@openeuropa/bcl-carousel": "^0.
|
|
26
|
-
"@openeuropa/bcl-contact-form": "^0.
|
|
27
|
-
"@openeuropa/bcl-content-banner": "^0.
|
|
28
|
-
"@openeuropa/bcl-date-block": "^0.
|
|
29
|
-
"@openeuropa/bcl-description-list": "^0.
|
|
30
|
-
"@openeuropa/bcl-dropdown": "^0.
|
|
31
|
-
"@openeuropa/bcl-event": "^0.
|
|
32
|
-
"@openeuropa/bcl-fact-figures": "^0.
|
|
33
|
-
"@openeuropa/bcl-featured-media": "^0.
|
|
34
|
-
"@openeuropa/bcl-file": "^0.
|
|
35
|
-
"@openeuropa/bcl-footer": "^0.
|
|
36
|
-
"@openeuropa/bcl-form": "^0.
|
|
37
|
-
"@openeuropa/bcl-form-input": "^0.
|
|
38
|
-
"@openeuropa/bcl-gallery": "^0.
|
|
39
|
-
"@openeuropa/bcl-glossary": "^0.
|
|
40
|
-
"@openeuropa/bcl-group": "^0.
|
|
41
|
-
"@openeuropa/bcl-header": "^0.
|
|
42
|
-
"@openeuropa/bcl-heading": "^0.
|
|
43
|
-
"@openeuropa/bcl-icon": "^0.
|
|
44
|
-
"@openeuropa/bcl-inpage-navigation": "^0.
|
|
45
|
-
"@openeuropa/bcl-landing-page": "^0.
|
|
46
|
-
"@openeuropa/bcl-language-list": "^0.
|
|
47
|
-
"@openeuropa/bcl-language-switcher": "^0.
|
|
48
|
-
"@openeuropa/bcl-link": "^0.
|
|
49
|
-
"@openeuropa/bcl-links-block": "^0.
|
|
50
|
-
"@openeuropa/bcl-list-group": "^0.
|
|
51
|
-
"@openeuropa/bcl-listing": "^0.
|
|
52
|
-
"@openeuropa/bcl-mega-menu": "^0.
|
|
53
|
-
"@openeuropa/bcl-modal": "^0.
|
|
54
|
-
"@openeuropa/bcl-multilingual": "^0.
|
|
55
|
-
"@openeuropa/bcl-navbar": "^0.
|
|
56
|
-
"@openeuropa/bcl-navigation": "^0.
|
|
57
|
-
"@openeuropa/bcl-news": "^0.
|
|
58
|
-
"@openeuropa/bcl-offcanvas": "^0.
|
|
59
|
-
"@openeuropa/bcl-page": "^0.
|
|
60
|
-
"@openeuropa/bcl-pagination": "^0.
|
|
61
|
-
"@openeuropa/bcl-pagination-v2": "^0.
|
|
62
|
-
"@openeuropa/bcl-person": "^0.
|
|
63
|
-
"@openeuropa/bcl-placeholder": "^0.
|
|
64
|
-
"@openeuropa/bcl-progress": "^0.
|
|
65
|
-
"@openeuropa/bcl-project": "^0.
|
|
66
|
-
"@openeuropa/bcl-project-status": "^0.
|
|
67
|
-
"@openeuropa/bcl-recent-activities": "^0.
|
|
68
|
-
"@openeuropa/bcl-search": "^0.
|
|
69
|
-
"@openeuropa/bcl-search-form": "^0.
|
|
70
|
-
"@openeuropa/bcl-select": "^0.
|
|
71
|
-
"@openeuropa/bcl-spinner": "^0.
|
|
72
|
-
"@openeuropa/bcl-subscription": "^0.
|
|
73
|
-
"@openeuropa/bcl-subscription-block": "^0.
|
|
74
|
-
"@openeuropa/bcl-table": "^0.
|
|
75
|
-
"@openeuropa/bcl-textarea": "^0.
|
|
76
|
-
"@openeuropa/bcl-timeline": "^0.
|
|
77
|
-
"@openeuropa/bcl-toasts": "^0.
|
|
78
|
-
"@openeuropa/bcl-user": "^0.
|
|
14
|
+
"@openeuropa/bcl-accordion": "^0.4230.202512021730",
|
|
15
|
+
"@openeuropa/bcl-alert": "^0.4230.202512021730",
|
|
16
|
+
"@openeuropa/bcl-badge": "^0.4230.202512021730",
|
|
17
|
+
"@openeuropa/bcl-banner": "^0.4230.202512021730",
|
|
18
|
+
"@openeuropa/bcl-base-templates": "^0.4230.202512021730",
|
|
19
|
+
"@openeuropa/bcl-blockquote": "^0.4230.202512021730",
|
|
20
|
+
"@openeuropa/bcl-breadcrumb": "^0.4230.202512021730",
|
|
21
|
+
"@openeuropa/bcl-button": "^0.4230.202512021730",
|
|
22
|
+
"@openeuropa/bcl-button-group": "^0.4230.202512021730",
|
|
23
|
+
"@openeuropa/bcl-card": "^0.4230.202512021730",
|
|
24
|
+
"@openeuropa/bcl-card-layout": "^0.4230.202512021730",
|
|
25
|
+
"@openeuropa/bcl-carousel": "^0.4230.202512021730",
|
|
26
|
+
"@openeuropa/bcl-contact-form": "^0.4230.202512021730",
|
|
27
|
+
"@openeuropa/bcl-content-banner": "^0.4230.202512021730",
|
|
28
|
+
"@openeuropa/bcl-date-block": "^0.4230.202512021730",
|
|
29
|
+
"@openeuropa/bcl-description-list": "^0.4230.202512021730",
|
|
30
|
+
"@openeuropa/bcl-dropdown": "^0.4230.202512021730",
|
|
31
|
+
"@openeuropa/bcl-event": "^0.4230.202512021730",
|
|
32
|
+
"@openeuropa/bcl-fact-figures": "^0.4230.202512021730",
|
|
33
|
+
"@openeuropa/bcl-featured-media": "^0.4230.202512021730",
|
|
34
|
+
"@openeuropa/bcl-file": "^0.4230.202512021730",
|
|
35
|
+
"@openeuropa/bcl-footer": "^0.4230.202512021730",
|
|
36
|
+
"@openeuropa/bcl-form": "^0.4230.202512021730",
|
|
37
|
+
"@openeuropa/bcl-form-input": "^0.4230.202512021730",
|
|
38
|
+
"@openeuropa/bcl-gallery": "^0.4230.202512021730",
|
|
39
|
+
"@openeuropa/bcl-glossary": "^0.4230.202512021730",
|
|
40
|
+
"@openeuropa/bcl-group": "^0.4230.202512021730",
|
|
41
|
+
"@openeuropa/bcl-header": "^0.4230.202512021730",
|
|
42
|
+
"@openeuropa/bcl-heading": "^0.4230.202512021730",
|
|
43
|
+
"@openeuropa/bcl-icon": "^0.4230.202512021730",
|
|
44
|
+
"@openeuropa/bcl-inpage-navigation": "^0.4230.202512021730",
|
|
45
|
+
"@openeuropa/bcl-landing-page": "^0.4230.202512021730",
|
|
46
|
+
"@openeuropa/bcl-language-list": "^0.4230.202512021730",
|
|
47
|
+
"@openeuropa/bcl-language-switcher": "^0.4230.202512021730",
|
|
48
|
+
"@openeuropa/bcl-link": "^0.4230.202512021730",
|
|
49
|
+
"@openeuropa/bcl-links-block": "^0.4230.202512021730",
|
|
50
|
+
"@openeuropa/bcl-list-group": "^0.4230.202512021730",
|
|
51
|
+
"@openeuropa/bcl-listing": "^0.4230.202512021730",
|
|
52
|
+
"@openeuropa/bcl-mega-menu": "^0.4230.202512021730",
|
|
53
|
+
"@openeuropa/bcl-modal": "^0.4230.202512021730",
|
|
54
|
+
"@openeuropa/bcl-multilingual": "^0.4230.202512021730",
|
|
55
|
+
"@openeuropa/bcl-navbar": "^0.4230.202512021730",
|
|
56
|
+
"@openeuropa/bcl-navigation": "^0.4230.202512021730",
|
|
57
|
+
"@openeuropa/bcl-news": "^0.4230.202512021730",
|
|
58
|
+
"@openeuropa/bcl-offcanvas": "^0.4230.202512021730",
|
|
59
|
+
"@openeuropa/bcl-page": "^0.4230.202512021730",
|
|
60
|
+
"@openeuropa/bcl-pagination": "^0.4230.202512021730",
|
|
61
|
+
"@openeuropa/bcl-pagination-v2": "^0.4230.202512021730",
|
|
62
|
+
"@openeuropa/bcl-person": "^0.4230.202512021730",
|
|
63
|
+
"@openeuropa/bcl-placeholder": "^0.4230.202512021730",
|
|
64
|
+
"@openeuropa/bcl-progress": "^0.4230.202512021730",
|
|
65
|
+
"@openeuropa/bcl-project": "^0.4230.202512021730",
|
|
66
|
+
"@openeuropa/bcl-project-status": "^0.4230.202512021730",
|
|
67
|
+
"@openeuropa/bcl-recent-activities": "^0.4230.202512021730",
|
|
68
|
+
"@openeuropa/bcl-search": "^0.4230.202512021730",
|
|
69
|
+
"@openeuropa/bcl-search-form": "^0.4230.202512021730",
|
|
70
|
+
"@openeuropa/bcl-select": "^0.4230.202512021730",
|
|
71
|
+
"@openeuropa/bcl-spinner": "^0.4230.202512021730",
|
|
72
|
+
"@openeuropa/bcl-subscription": "^0.4230.202512021730",
|
|
73
|
+
"@openeuropa/bcl-subscription-block": "^0.4230.202512021730",
|
|
74
|
+
"@openeuropa/bcl-table": "^0.4230.202512021730",
|
|
75
|
+
"@openeuropa/bcl-textarea": "^0.4230.202512021730",
|
|
76
|
+
"@openeuropa/bcl-timeline": "^0.4230.202512021730",
|
|
77
|
+
"@openeuropa/bcl-toasts": "^0.4230.202512021730",
|
|
78
|
+
"@openeuropa/bcl-user": "^0.4230.202512021730",
|
|
79
79
|
"copyfiles": "2.4.1",
|
|
80
80
|
"rimraf": "6.0.1"
|
|
81
81
|
},
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"design-system",
|
|
99
99
|
"twig"
|
|
100
100
|
],
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "19735e328b2b53ccefbcc6829e2aaf149a2c438c"
|
|
102
102
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- variant (string) (default: 'neutral')
|
|
5
3
|
- options: ['ec', 'eu', 'neutral']
|
|
@@ -84,6 +82,41 @@
|
|
|
84
82
|
</div>
|
|
85
83
|
</nav>
|
|
86
84
|
|
|
85
|
+
|
|
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 %}
|
|
119
|
+
|
|
87
120
|
<!-- navbar -->
|
|
88
121
|
{% if _navbar is not empty %}
|
|
89
122
|
{% include '@oe-bcl/bcl-navbar/navbar.html.twig' with _navbar|merge({
|
|
@@ -91,14 +124,14 @@
|
|
|
91
124
|
attributes: create_attribute().addClass('bcl-header__navbar collapse navbar-collapse').setAttribute('id', _navbar_id).setAttribute('aria-label', 'Main Navigation'),
|
|
92
125
|
}) only %}
|
|
93
126
|
{% endif %}
|
|
94
|
-
</header>
|
|
95
127
|
|
|
96
|
-
<!-- breadcrumbs -->
|
|
97
|
-
{% if _breadcrumbs is not empty %}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
{% endif %}
|
|
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>
|
|
102
135
|
|
|
103
136
|
{% for modal in _modals %}
|
|
104
137
|
{% include '@oe-bcl/bcl-modal/modal.html.twig' with modal only %}
|
|
@@ -108,4 +141,3 @@
|
|
|
108
141
|
{% include '@oe-bcl/bcl-language-list/language-list.html.twig' with _language_modal only %}
|
|
109
142
|
{% endif %}
|
|
110
143
|
|
|
111
|
-
{% endapply %}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- title: (string) (default: '')
|
|
5
3
|
- title_tag: (string) (default: 'h2')
|
|
@@ -56,7 +54,7 @@
|
|
|
56
54
|
{% endif %}
|
|
57
55
|
{% set _link = _link|merge({
|
|
58
56
|
clean_class: true,
|
|
59
|
-
attributes: _link.attributes.addClass(['
|
|
57
|
+
attributes: _link.attributes.addClass(['mb-3', 'd-inline-block', 'standalone'])
|
|
60
58
|
}) %}
|
|
61
59
|
{% set _list_item_classes = 'list-unstyled' %}
|
|
62
60
|
{% if _variant == 'horizontal' %}
|
|
@@ -73,4 +71,3 @@
|
|
|
73
71
|
</div>
|
|
74
72
|
{% endif %}
|
|
75
73
|
|
|
76
|
-
{% endapply %}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{% set _items = items ?? [] %}
|
|
4
2
|
{% set _trigger = trigger ?? null %}
|
|
5
3
|
{% set _icon_path = icon_path ?? '' %}
|
|
@@ -21,24 +19,26 @@
|
|
|
21
19
|
}) %}
|
|
22
20
|
{% include '@oe-bcl/bcl-button/button.html.twig' with _trigger only %}
|
|
23
21
|
|
|
24
|
-
{
|
|
25
|
-
{# Prepare an optional "See all" link rendered outside the list. #}
|
|
22
|
+
{# Add an optional "See all" link as last item. #}
|
|
26
23
|
{% if _see_all is not empty %}
|
|
24
|
+
{# Wrap the label for an ellipsis. #}
|
|
27
25
|
{% set _see_all_label %}
|
|
28
26
|
<span>{{- _see_all.label -}}</span>
|
|
29
27
|
{% endset %}
|
|
30
28
|
{% set _see_all_attr = (_see_all.attributes is defined ? _see_all.attributes : create_attribute()) %}
|
|
31
|
-
{% set
|
|
29
|
+
{% set _see_all = _see_all|merge({
|
|
32
30
|
label: _see_all_label,
|
|
33
31
|
icon: {
|
|
34
|
-
size: 'xs',
|
|
35
32
|
name: 'arrow-right',
|
|
36
33
|
path: _icon_path,
|
|
37
34
|
},
|
|
35
|
+
li_attributes: create_attribute()
|
|
36
|
+
.addClass('__see_all'),
|
|
38
37
|
attributes: _see_all_attr
|
|
39
38
|
.addClass(['see-all-button'])
|
|
40
39
|
.setAttribute('aria-label', 'See all items in ‘' ~ _trigger.label ~ '’')
|
|
41
40
|
}) %}
|
|
41
|
+
{% set _items = _items|merge([_see_all]) %}
|
|
42
42
|
{% endif %}
|
|
43
43
|
{% set submenu_attributes = create_attribute()
|
|
44
44
|
.setAttribute('id', _panel_id)
|
|
@@ -58,11 +58,5 @@
|
|
|
58
58
|
icon_path: _icon_path,
|
|
59
59
|
level: _level,
|
|
60
60
|
} only %}
|
|
61
|
-
{% if _see_all_link %}
|
|
62
|
-
<div class="__see_all">
|
|
63
|
-
{% include '@oe-bcl/bcl-link/link.html.twig' with _see_all_link only %}
|
|
64
|
-
</div>
|
|
65
|
-
{% endif %}
|
|
66
61
|
</div>
|
|
67
62
|
|
|
68
|
-
{% endapply %}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- size (string) default('')
|
|
5
3
|
options: sm, lg, xl, fullscreen
|
|
@@ -7,7 +5,8 @@
|
|
|
7
5
|
- fullscreen_responsive (string) (default: '')
|
|
8
6
|
options: sm, md, lg, xl, xxl
|
|
9
7
|
- static_backdrop (boolean) (default: false)
|
|
10
|
-
-
|
|
8
|
+
- vertically_centered (boolean) (default: false)
|
|
9
|
+
- verticaly_centered (boolean) (default: false) // deprecated typo
|
|
11
10
|
- scrollable (boolean) (default: false)
|
|
12
11
|
- header (block) (default: '')
|
|
13
12
|
- messages (block) (default: '')
|
|
@@ -29,7 +28,7 @@
|
|
|
29
28
|
{% set _id = id|default('modal-' ~ random(10000)) %}
|
|
30
29
|
{% set _fullscreen_responsive = fullscreen_responsive|default('') %}
|
|
31
30
|
{% set _static_backdrop = static_backdrop ?? false %}
|
|
32
|
-
{% set
|
|
31
|
+
{% set _vertically_centered = vertically_centered ?? verticaly_centered ?? false %}
|
|
33
32
|
{% set _scrollable = scrollable ?? false %}
|
|
34
33
|
{% set _header = header|default('') %}
|
|
35
34
|
{% set _header_attributes = header_attributes ?: create_attribute() %}
|
|
@@ -63,7 +62,7 @@
|
|
|
63
62
|
<div class="modal-dialog
|
|
64
63
|
{{- _size ? ' modal-' ~ size -}}
|
|
65
64
|
{{- _fullscreen_responsive ? ' modal-fullscreen-' ~ _fullscreen_responsive ~ '-down' -}}
|
|
66
|
-
{{-
|
|
65
|
+
{{- _vertically_centered ? ' modal-dialog-centered' -}}
|
|
67
66
|
{{- _scrollable ? ' modal-dialog-scrollable' -}}"
|
|
68
67
|
>
|
|
69
68
|
<div class="modal-content">
|
|
@@ -91,4 +90,3 @@
|
|
|
91
90
|
</div>
|
|
92
91
|
</div>
|
|
93
92
|
|
|
94
|
-
{% endapply %}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
{% import _self as navigation %}
|
|
2
|
-
{% apply spaceless %}
|
|
3
|
-
|
|
4
2
|
{# Parameters:
|
|
5
3
|
- id (string) (default: '')
|
|
6
4
|
- pills (boolean) (default: false)
|
|
@@ -27,8 +25,7 @@
|
|
|
27
25
|
|
|
28
26
|
{# Define main macro #}
|
|
29
27
|
{% macro render(items, pills, tabs, tabs_content, vertical, full_width, alignment, id, nav, navbar, attributes) %}
|
|
30
|
-
{%
|
|
31
|
-
{% import _self as navigation %}
|
|
28
|
+
{% import _self as navigation %}
|
|
32
29
|
|
|
33
30
|
{% set _id = id|default('') %}
|
|
34
31
|
{% set _pills = pills ?? false %}
|
|
@@ -181,9 +178,7 @@
|
|
|
181
178
|
{%- endblock -%}
|
|
182
179
|
</div>
|
|
183
180
|
{% endif %}
|
|
184
|
-
{% endapply %}
|
|
185
181
|
{% endmacro %}
|
|
186
182
|
|
|
187
183
|
{{ navigation.render(items, pills, tabs, tabs_content, vertical, full_width, alignment, id, nav, navbar, attributes) }}
|
|
188
184
|
|
|
189
|
-
{% endapply %}
|