@total_onion/onion-library 1.1.45 → 1.1.48
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/components/block-site-copyright-notice-v3/group_66296c3716b4f.json +287 -0
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.js +7 -0
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.php +14 -0
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.twig +27 -0
- package/components/block-sub-group-container/sub-group-container-extra.scss +2 -0
- package/components/block-sub-group-container/sub-group-container.scss +27 -0
- package/components/component-content-box-v3/group_686b8a4f1fe5d.json +50 -1
- package/components/component-nav-menu-v3/group_68da703f710ff.json +432 -0
- package/components/component-nav-menu-v3/nav-menu-v3.twig +76 -0
- package/package.json +1 -1
- package/public/jsAssets.mjs +1 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "group_66296c3716b4f",
|
|
3
|
+
"title": "Block: Site Copyright Notice v3",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_6721ff9f2e67a",
|
|
7
|
+
"label": "Settings",
|
|
8
|
+
"name": "",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "tab",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"wpml_cf_preferences": 3,
|
|
20
|
+
"placement": "top",
|
|
21
|
+
"endpoint": 0,
|
|
22
|
+
"no_preference": 0,
|
|
23
|
+
"selected": 0
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "field_66296c3740e28",
|
|
27
|
+
"label": "Enable Site Copyright notice",
|
|
28
|
+
"name": "enable_site_copyright_notice",
|
|
29
|
+
"aria-label": "",
|
|
30
|
+
"type": "true_false",
|
|
31
|
+
"instructions": "",
|
|
32
|
+
"required": 0,
|
|
33
|
+
"conditional_logic": 0,
|
|
34
|
+
"wrapper": {
|
|
35
|
+
"width": "",
|
|
36
|
+
"class": "",
|
|
37
|
+
"id": ""
|
|
38
|
+
},
|
|
39
|
+
"wpml_cf_preferences": 3,
|
|
40
|
+
"message": "",
|
|
41
|
+
"default_value": 0,
|
|
42
|
+
"ui_on_text": "",
|
|
43
|
+
"ui_off_text": "",
|
|
44
|
+
"ui": 1,
|
|
45
|
+
"style": ""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "field_66296c8ff3719",
|
|
49
|
+
"label": "Site Copyright font size desktop",
|
|
50
|
+
"name": "site_copyright_font_size_desktop",
|
|
51
|
+
"aria-label": "",
|
|
52
|
+
"type": "range",
|
|
53
|
+
"instructions": "",
|
|
54
|
+
"required": 0,
|
|
55
|
+
"conditional_logic": 0,
|
|
56
|
+
"wrapper": {
|
|
57
|
+
"width": "",
|
|
58
|
+
"class": "",
|
|
59
|
+
"id": ""
|
|
60
|
+
},
|
|
61
|
+
"wpml_cf_preferences": 3,
|
|
62
|
+
"default_value": 20,
|
|
63
|
+
"min": "",
|
|
64
|
+
"max": "",
|
|
65
|
+
"step": "",
|
|
66
|
+
"prepend": "",
|
|
67
|
+
"append": ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"key": "field_66296ca5f371a",
|
|
71
|
+
"label": "Site Copyright font size portrait",
|
|
72
|
+
"name": "site_copyright_font_size_portrait",
|
|
73
|
+
"aria-label": "",
|
|
74
|
+
"type": "range",
|
|
75
|
+
"instructions": "",
|
|
76
|
+
"required": 0,
|
|
77
|
+
"conditional_logic": 0,
|
|
78
|
+
"wrapper": {
|
|
79
|
+
"width": "",
|
|
80
|
+
"class": "",
|
|
81
|
+
"id": ""
|
|
82
|
+
},
|
|
83
|
+
"wpml_cf_preferences": 3,
|
|
84
|
+
"default_value": 20,
|
|
85
|
+
"min": "",
|
|
86
|
+
"max": "",
|
|
87
|
+
"step": "",
|
|
88
|
+
"prepend": "",
|
|
89
|
+
"append": ""
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"key": "field_66296cabf371b",
|
|
93
|
+
"label": "Site Copyright font size mobile",
|
|
94
|
+
"name": "site_copyright_font_size_mobile",
|
|
95
|
+
"aria-label": "",
|
|
96
|
+
"type": "range",
|
|
97
|
+
"instructions": "",
|
|
98
|
+
"required": 0,
|
|
99
|
+
"conditional_logic": 0,
|
|
100
|
+
"wrapper": {
|
|
101
|
+
"width": "",
|
|
102
|
+
"class": "",
|
|
103
|
+
"id": ""
|
|
104
|
+
},
|
|
105
|
+
"wpml_cf_preferences": 3,
|
|
106
|
+
"default_value": 20,
|
|
107
|
+
"min": "",
|
|
108
|
+
"max": "",
|
|
109
|
+
"step": "",
|
|
110
|
+
"prepend": "",
|
|
111
|
+
"append": ""
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"key": "field_6721ff0d58df4",
|
|
115
|
+
"label": "Block Padding",
|
|
116
|
+
"name": "",
|
|
117
|
+
"aria-label": "",
|
|
118
|
+
"type": "tab",
|
|
119
|
+
"instructions": "",
|
|
120
|
+
"required": 0,
|
|
121
|
+
"conditional_logic": 0,
|
|
122
|
+
"wrapper": {
|
|
123
|
+
"width": "",
|
|
124
|
+
"class": "",
|
|
125
|
+
"id": ""
|
|
126
|
+
},
|
|
127
|
+
"wpml_cf_preferences": 3,
|
|
128
|
+
"placement": "top",
|
|
129
|
+
"endpoint": 0,
|
|
130
|
+
"no_preference": 0,
|
|
131
|
+
"selected": 0
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"key": "field_6721ff1e58df5",
|
|
135
|
+
"label": "block padding fields",
|
|
136
|
+
"name": "block_padding_fields",
|
|
137
|
+
"aria-label": "",
|
|
138
|
+
"type": "clone",
|
|
139
|
+
"instructions": "",
|
|
140
|
+
"required": 0,
|
|
141
|
+
"conditional_logic": 0,
|
|
142
|
+
"wrapper": {
|
|
143
|
+
"width": "",
|
|
144
|
+
"class": "",
|
|
145
|
+
"id": ""
|
|
146
|
+
},
|
|
147
|
+
"wpml_cf_preferences": 3,
|
|
148
|
+
"user_roles": [
|
|
149
|
+
"all"
|
|
150
|
+
],
|
|
151
|
+
"clone": [
|
|
152
|
+
"group_638f4148bc10b"
|
|
153
|
+
],
|
|
154
|
+
"display": "seamless",
|
|
155
|
+
"layout": "block",
|
|
156
|
+
"prefix_label": 0,
|
|
157
|
+
"prefix_name": 0,
|
|
158
|
+
"acfe_seamless_style": 0,
|
|
159
|
+
"acfe_clone_modal": 0,
|
|
160
|
+
"acfe_clone_modal_close": 0,
|
|
161
|
+
"acfe_clone_modal_button": "",
|
|
162
|
+
"acfe_clone_modal_size": "large"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"key": "field_6721ffc454f27",
|
|
166
|
+
"label": "Block settings",
|
|
167
|
+
"name": "",
|
|
168
|
+
"aria-label": "",
|
|
169
|
+
"type": "tab",
|
|
170
|
+
"instructions": "",
|
|
171
|
+
"required": 0,
|
|
172
|
+
"conditional_logic": 0,
|
|
173
|
+
"wrapper": {
|
|
174
|
+
"width": "",
|
|
175
|
+
"class": "",
|
|
176
|
+
"id": ""
|
|
177
|
+
},
|
|
178
|
+
"wpml_cf_preferences": 3,
|
|
179
|
+
"placement": "top",
|
|
180
|
+
"endpoint": 0,
|
|
181
|
+
"no_preference": 0,
|
|
182
|
+
"selected": 0
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"key": "field_672200439f45c",
|
|
186
|
+
"label": "Block",
|
|
187
|
+
"name": "",
|
|
188
|
+
"aria-label": "",
|
|
189
|
+
"type": "accordion",
|
|
190
|
+
"instructions": "",
|
|
191
|
+
"required": 0,
|
|
192
|
+
"conditional_logic": 0,
|
|
193
|
+
"wrapper": {
|
|
194
|
+
"width": "",
|
|
195
|
+
"class": "",
|
|
196
|
+
"id": ""
|
|
197
|
+
},
|
|
198
|
+
"wpml_cf_preferences": 3,
|
|
199
|
+
"user_roles": [
|
|
200
|
+
"all"
|
|
201
|
+
],
|
|
202
|
+
"open": 0,
|
|
203
|
+
"multi_expand": 0,
|
|
204
|
+
"endpoint": 0
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"key": "field_6721ffda54f28",
|
|
208
|
+
"label": "block settings fields",
|
|
209
|
+
"name": "block_settings_fields",
|
|
210
|
+
"aria-label": "",
|
|
211
|
+
"type": "clone",
|
|
212
|
+
"instructions": "",
|
|
213
|
+
"required": 0,
|
|
214
|
+
"conditional_logic": 0,
|
|
215
|
+
"wrapper": {
|
|
216
|
+
"width": "",
|
|
217
|
+
"class": "",
|
|
218
|
+
"id": ""
|
|
219
|
+
},
|
|
220
|
+
"wpml_cf_preferences": 3,
|
|
221
|
+
"user_roles": [
|
|
222
|
+
"all"
|
|
223
|
+
],
|
|
224
|
+
"clone": [
|
|
225
|
+
"group_65a45ada4e128"
|
|
226
|
+
],
|
|
227
|
+
"display": "seamless",
|
|
228
|
+
"layout": "block",
|
|
229
|
+
"prefix_label": 0,
|
|
230
|
+
"prefix_name": 0,
|
|
231
|
+
"acfe_seamless_style": 0,
|
|
232
|
+
"acfe_clone_modal": 0,
|
|
233
|
+
"acfe_clone_modal_close": 0,
|
|
234
|
+
"acfe_clone_modal_button": "",
|
|
235
|
+
"acfe_clone_modal_size": "large"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"key": "field_6722004e9f45d",
|
|
239
|
+
"label": "accordion end",
|
|
240
|
+
"name": "",
|
|
241
|
+
"aria-label": "",
|
|
242
|
+
"type": "accordion",
|
|
243
|
+
"instructions": "",
|
|
244
|
+
"required": 0,
|
|
245
|
+
"conditional_logic": 0,
|
|
246
|
+
"wrapper": {
|
|
247
|
+
"width": "",
|
|
248
|
+
"class": "",
|
|
249
|
+
"id": ""
|
|
250
|
+
},
|
|
251
|
+
"wpml_cf_preferences": 3,
|
|
252
|
+
"user_roles": [
|
|
253
|
+
"all"
|
|
254
|
+
],
|
|
255
|
+
"open": 0,
|
|
256
|
+
"multi_expand": 0,
|
|
257
|
+
"endpoint": 1
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"location": [
|
|
261
|
+
[
|
|
262
|
+
{
|
|
263
|
+
"param": "block",
|
|
264
|
+
"operator": "==",
|
|
265
|
+
"value": "acf\/site-copyright-notice-v3"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
],
|
|
269
|
+
"menu_order": 0,
|
|
270
|
+
"position": "normal",
|
|
271
|
+
"style": "default",
|
|
272
|
+
"label_placement": "left",
|
|
273
|
+
"instruction_placement": "label",
|
|
274
|
+
"hide_on_screen": "",
|
|
275
|
+
"active": true,
|
|
276
|
+
"description": "",
|
|
277
|
+
"show_in_rest": 0,
|
|
278
|
+
"acfe_autosync": [
|
|
279
|
+
"json"
|
|
280
|
+
],
|
|
281
|
+
"acfml_field_group_mode": "localization",
|
|
282
|
+
"acfe_form": 0,
|
|
283
|
+
"acfe_display_title": "",
|
|
284
|
+
"acfe_meta": "",
|
|
285
|
+
"acfe_note": "",
|
|
286
|
+
"modified": 1758878905
|
|
287
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
acf_register_block_type(
|
|
4
|
+
array(
|
|
5
|
+
'name' => 'site-copyright-notice-v3',
|
|
6
|
+
'title' => __('Site copyright notice v3', 'Global-theme Admin'),
|
|
7
|
+
'render_callback' => 'athena_block_render_post_object',
|
|
8
|
+
'category' => 'common',
|
|
9
|
+
'icon' => get_svg_icon_content('brick.svg'),
|
|
10
|
+
'keywords' => array('content', 'text'),
|
|
11
|
+
'mode' => 'preview',
|
|
12
|
+
'supports' => array('align' => false, 'anchor' => true),
|
|
13
|
+
)
|
|
14
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{% set blockClassName = "site-copyright-notice-v3" %}
|
|
2
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
|
|
3
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html.twig', { fields, block, blockClassName, options, environment, is_preview, nav_menus }, with_context = false) %}
|
|
4
|
+
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
|
|
5
|
+
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
|
|
6
|
+
|
|
7
|
+
{% set siteCopyrightFontSizeDesktop = '--site-copyright-font-size-desktop: ' ~ fields.site_copyright_font_size_desktop ~ ';' %}
|
|
8
|
+
{% set siteCopyrightFontSizePortrait = '--site-copyright-font-size-portrait: ' ~ fields.site_copyright_font_size_portrait ~ ';'%}
|
|
9
|
+
{% set siteCopyrightFontSizeMobile = '--site-copyright-font-size-mobile: ' ~ fields.site_copyright_font_size_mobile ~ ';' %}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
{% set sectionStyles = styleEntryPoint ~ siteCopyrightFontSizeDesktop ~ siteCopyrightFontSizePortrait ~ siteCopyrightFontSizeMobile %}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<style>
|
|
16
|
+
.{{blockClassName}}.{{block.id}}{
|
|
17
|
+
{{sectionStyles}}
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{loop ? block.className ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-jsload="false" data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
21
|
+
|
|
22
|
+
{% if fields.enable_site_copyright_notice %}
|
|
23
|
+
<div class="{{blockClassName}}__title">
|
|
24
|
+
{{market_settings.site_copyright_notice|default('Pernod Ricard 2024')}}</div>
|
|
25
|
+
{% endif %}
|
|
26
|
+
{{htmlEntryPoint}}
|
|
27
|
+
</section>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// LIBRARY FILE - Do not modify/override here as your changes will be lost when the package is updated.
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/grid-layout-element/grid-layout-element';
|
|
3
|
+
@use 'Assets/scss/modules/library-modules/grid-layout-container/grid-layout-container';
|
|
4
|
+
@use 'Assets/scss/modules/library-modules/responsive-image/responsive-image';
|
|
5
|
+
// @use 'Assets/scss/modules/library-modules/animations/animations';
|
|
6
|
+
@use 'Assets/scss/blocks/sub-group-container/sub-group-container-extra';
|
|
7
|
+
@use 'Assets/scss/modules/library-modules/cover-link/cover-link';
|
|
8
|
+
.sub-group-container {
|
|
9
|
+
@include responsive-image.responsiveImage();
|
|
10
|
+
// @include animations.animations();
|
|
11
|
+
@include cover-link.coverLink();
|
|
12
|
+
}
|
|
13
|
+
.sub-group-container {
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template: 'main' / 1fr;
|
|
16
|
+
place-items: center;
|
|
17
|
+
&__grid-container {
|
|
18
|
+
grid-area: main;
|
|
19
|
+
place-self: stretch;
|
|
20
|
+
@include grid-layout-container.gridLayoutContainer();
|
|
21
|
+
}
|
|
22
|
+
&__block-container {
|
|
23
|
+
z-index: 5;
|
|
24
|
+
@include grid-layout-element.gridLayoutElement();
|
|
25
|
+
}
|
|
26
|
+
@include sub-group-container-extra.additionalStyles();
|
|
27
|
+
}
|
|
@@ -360,6 +360,55 @@
|
|
|
360
360
|
"acfe_flexible_category": false,
|
|
361
361
|
"acfe_layout_col": "auto",
|
|
362
362
|
"acfe_layout_allowed_col": false
|
|
363
|
+
},
|
|
364
|
+
"layout_68da6f73c3b3c": {
|
|
365
|
+
"key": "layout_68da6f73c3b3c",
|
|
366
|
+
"name": "nav_menu_v3",
|
|
367
|
+
"label": "Nav Menu v3",
|
|
368
|
+
"display": "block",
|
|
369
|
+
"sub_fields": [
|
|
370
|
+
{
|
|
371
|
+
"key": "field_68da6f8ac3b3e",
|
|
372
|
+
"label": "Nav Menu V3 Fields",
|
|
373
|
+
"name": "nav_menu_v3_fields",
|
|
374
|
+
"aria-label": "",
|
|
375
|
+
"type": "clone",
|
|
376
|
+
"instructions": "",
|
|
377
|
+
"required": 0,
|
|
378
|
+
"conditional_logic": 0,
|
|
379
|
+
"wrapper": {
|
|
380
|
+
"width": "",
|
|
381
|
+
"class": "",
|
|
382
|
+
"id": ""
|
|
383
|
+
},
|
|
384
|
+
"wpml_cf_preferences": 3,
|
|
385
|
+
"clone": [
|
|
386
|
+
"group_68da703f710ff"
|
|
387
|
+
],
|
|
388
|
+
"display": "seamless",
|
|
389
|
+
"layout": "block",
|
|
390
|
+
"prefix_label": 0,
|
|
391
|
+
"prefix_name": 0,
|
|
392
|
+
"acfe_seamless_style": 0,
|
|
393
|
+
"acfe_clone_modal": 0,
|
|
394
|
+
"acfe_clone_modal_close": 0,
|
|
395
|
+
"acfe_clone_modal_button": "",
|
|
396
|
+
"acfe_clone_modal_size": "large"
|
|
397
|
+
}
|
|
398
|
+
],
|
|
399
|
+
"min": "",
|
|
400
|
+
"max": "",
|
|
401
|
+
"acfe_flexible_render_template": false,
|
|
402
|
+
"acfe_flexible_render_style": false,
|
|
403
|
+
"acfe_flexible_render_script": false,
|
|
404
|
+
"acfe_flexible_thumbnail": false,
|
|
405
|
+
"acfe_flexible_settings": false,
|
|
406
|
+
"acfe_flexible_settings_size": "medium",
|
|
407
|
+
"acfe_layout_locations": [],
|
|
408
|
+
"acfe_flexible_modal_edit_size": false,
|
|
409
|
+
"acfe_flexible_category": false,
|
|
410
|
+
"acfe_layout_col": "auto",
|
|
411
|
+
"acfe_layout_allowed_col": false
|
|
363
412
|
}
|
|
364
413
|
},
|
|
365
414
|
"min": "",
|
|
@@ -397,5 +446,5 @@
|
|
|
397
446
|
"acfe_display_title": "",
|
|
398
447
|
"acfe_meta": "",
|
|
399
448
|
"acfe_note": "",
|
|
400
|
-
"modified":
|
|
449
|
+
"modified": 1759146210
|
|
401
450
|
}
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "group_68da703f710ff",
|
|
3
|
+
"title": "Component: Nav Menu V3",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_68da703f8e11e",
|
|
7
|
+
"label": "Menu",
|
|
8
|
+
"name": "",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "tab",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"wpml_cf_preferences": 3,
|
|
20
|
+
"placement": "top",
|
|
21
|
+
"endpoint": 0,
|
|
22
|
+
"no_preference": 0,
|
|
23
|
+
"selected": 0
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "field_68da703f8e5d8",
|
|
27
|
+
"label": "Menu",
|
|
28
|
+
"name": "menu",
|
|
29
|
+
"aria-label": "",
|
|
30
|
+
"type": "select",
|
|
31
|
+
"instructions": "",
|
|
32
|
+
"required": 0,
|
|
33
|
+
"conditional_logic": 0,
|
|
34
|
+
"wrapper": {
|
|
35
|
+
"width": "",
|
|
36
|
+
"class": "",
|
|
37
|
+
"id": ""
|
|
38
|
+
},
|
|
39
|
+
"wpml_cf_preferences": 3,
|
|
40
|
+
"choices": {
|
|
41
|
+
"__primary-menu": "Primary Menu",
|
|
42
|
+
"__secondary-menu": "Secondary Menu",
|
|
43
|
+
"__tertiary-menu": "Tertiary Menu",
|
|
44
|
+
"__legal-menu": "Legal Menu",
|
|
45
|
+
"__social-menu": "Social Menu",
|
|
46
|
+
"__footer-navigation-menu": "Footer Navigation Menu",
|
|
47
|
+
"__footer-navigation-menu-secondary": "Footer Navigation Menu Secondary",
|
|
48
|
+
"__footer-navigation-menu-tertiary": "Footer Navigation Menu Tertiary",
|
|
49
|
+
"__footer-navigation-menu-quaternary": "Footer Navigation Menu Quaternary"
|
|
50
|
+
},
|
|
51
|
+
"default_value": "__primary-menu",
|
|
52
|
+
"return_format": "value",
|
|
53
|
+
"multiple": 0,
|
|
54
|
+
"max": "",
|
|
55
|
+
"prepend": "",
|
|
56
|
+
"append": "",
|
|
57
|
+
"allow_null": 0,
|
|
58
|
+
"ui": 0,
|
|
59
|
+
"ajax": 0,
|
|
60
|
+
"placeholder": "",
|
|
61
|
+
"allow_custom": 0,
|
|
62
|
+
"search_placeholder": "",
|
|
63
|
+
"min": ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"key": "field_68da703f8e998",
|
|
67
|
+
"label": "Cta style",
|
|
68
|
+
"name": "cta_style",
|
|
69
|
+
"aria-label": "",
|
|
70
|
+
"type": "select",
|
|
71
|
+
"instructions": "",
|
|
72
|
+
"required": 0,
|
|
73
|
+
"conditional_logic": 0,
|
|
74
|
+
"wrapper": {
|
|
75
|
+
"width": "",
|
|
76
|
+
"class": "",
|
|
77
|
+
"id": ""
|
|
78
|
+
},
|
|
79
|
+
"wpml_cf_preferences": 3,
|
|
80
|
+
"choices": {
|
|
81
|
+
"1": "White text",
|
|
82
|
+
"2": "test"
|
|
83
|
+
},
|
|
84
|
+
"default_value": 1,
|
|
85
|
+
"return_format": "value",
|
|
86
|
+
"multiple": 0,
|
|
87
|
+
"max": "",
|
|
88
|
+
"allow_custom": 0,
|
|
89
|
+
"search_placeholder": "",
|
|
90
|
+
"prepend": "",
|
|
91
|
+
"append": "",
|
|
92
|
+
"allow_null": 0,
|
|
93
|
+
"ui": 1,
|
|
94
|
+
"ajax": 0,
|
|
95
|
+
"placeholder": "",
|
|
96
|
+
"min": ""
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"key": "field_68da703f8ed81",
|
|
100
|
+
"label": "Alignment",
|
|
101
|
+
"name": "",
|
|
102
|
+
"aria-label": "",
|
|
103
|
+
"type": "tab",
|
|
104
|
+
"instructions": "",
|
|
105
|
+
"required": 0,
|
|
106
|
+
"conditional_logic": 0,
|
|
107
|
+
"wrapper": {
|
|
108
|
+
"width": "",
|
|
109
|
+
"class": "",
|
|
110
|
+
"id": ""
|
|
111
|
+
},
|
|
112
|
+
"wpml_cf_preferences": 3,
|
|
113
|
+
"placement": "top",
|
|
114
|
+
"endpoint": 0,
|
|
115
|
+
"no_preference": 0,
|
|
116
|
+
"selected": 0
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"key": "field_68da703f8f167",
|
|
120
|
+
"label": "Alignment desktop",
|
|
121
|
+
"name": "alignment_desktop",
|
|
122
|
+
"aria-label": "",
|
|
123
|
+
"type": "radio",
|
|
124
|
+
"instructions": "",
|
|
125
|
+
"required": 0,
|
|
126
|
+
"conditional_logic": 0,
|
|
127
|
+
"wrapper": {
|
|
128
|
+
"width": "",
|
|
129
|
+
"class": "",
|
|
130
|
+
"id": ""
|
|
131
|
+
},
|
|
132
|
+
"wpml_cf_preferences": 3,
|
|
133
|
+
"choices": {
|
|
134
|
+
"__flex-start": "Left",
|
|
135
|
+
"__center": "Center",
|
|
136
|
+
"__flex-end": "Right"
|
|
137
|
+
},
|
|
138
|
+
"default_value": "__flex-start",
|
|
139
|
+
"return_format": "value",
|
|
140
|
+
"allow_null": 0,
|
|
141
|
+
"other_choice": 0,
|
|
142
|
+
"layout": "horizontal",
|
|
143
|
+
"save_other_choice": 0
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "field_68da703f8f55a",
|
|
147
|
+
"label": "Alignment portrait",
|
|
148
|
+
"name": "alignment_portrait",
|
|
149
|
+
"aria-label": "",
|
|
150
|
+
"type": "radio",
|
|
151
|
+
"instructions": "",
|
|
152
|
+
"required": 0,
|
|
153
|
+
"conditional_logic": 0,
|
|
154
|
+
"wrapper": {
|
|
155
|
+
"width": "",
|
|
156
|
+
"class": "",
|
|
157
|
+
"id": ""
|
|
158
|
+
},
|
|
159
|
+
"wpml_cf_preferences": 3,
|
|
160
|
+
"choices": {
|
|
161
|
+
"__flex-start": "Left",
|
|
162
|
+
"__center": "Center",
|
|
163
|
+
"__flex-end": "Right"
|
|
164
|
+
},
|
|
165
|
+
"default_value": "__flex-start",
|
|
166
|
+
"return_format": "value",
|
|
167
|
+
"allow_null": 0,
|
|
168
|
+
"other_choice": 0,
|
|
169
|
+
"layout": "horizontal",
|
|
170
|
+
"save_other_choice": 0
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"key": "field_68da703f8f93e",
|
|
174
|
+
"label": "Alignment mobile",
|
|
175
|
+
"name": "alignment_mobile",
|
|
176
|
+
"aria-label": "",
|
|
177
|
+
"type": "radio",
|
|
178
|
+
"instructions": "",
|
|
179
|
+
"required": 0,
|
|
180
|
+
"conditional_logic": 0,
|
|
181
|
+
"wrapper": {
|
|
182
|
+
"width": "",
|
|
183
|
+
"class": "",
|
|
184
|
+
"id": ""
|
|
185
|
+
},
|
|
186
|
+
"wpml_cf_preferences": 3,
|
|
187
|
+
"choices": {
|
|
188
|
+
"__flex-start": "Left",
|
|
189
|
+
"__center": "Center",
|
|
190
|
+
"__flex-end": "Right"
|
|
191
|
+
},
|
|
192
|
+
"default_value": "__flex-start",
|
|
193
|
+
"return_format": "value",
|
|
194
|
+
"allow_null": 0,
|
|
195
|
+
"other_choice": 0,
|
|
196
|
+
"layout": "horizontal",
|
|
197
|
+
"save_other_choice": 0
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"key": "field_68da703f8fd2a",
|
|
201
|
+
"label": "Direction",
|
|
202
|
+
"name": "",
|
|
203
|
+
"aria-label": "",
|
|
204
|
+
"type": "tab",
|
|
205
|
+
"instructions": "",
|
|
206
|
+
"required": 0,
|
|
207
|
+
"conditional_logic": 0,
|
|
208
|
+
"wrapper": {
|
|
209
|
+
"width": "",
|
|
210
|
+
"class": "",
|
|
211
|
+
"id": ""
|
|
212
|
+
},
|
|
213
|
+
"wpml_cf_preferences": 3,
|
|
214
|
+
"placement": "top",
|
|
215
|
+
"endpoint": 0,
|
|
216
|
+
"no_preference": 0,
|
|
217
|
+
"selected": 0
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"key": "field_68da703f90107",
|
|
221
|
+
"label": "Menu direction desktop",
|
|
222
|
+
"name": "menu_direction",
|
|
223
|
+
"aria-label": "",
|
|
224
|
+
"type": "select",
|
|
225
|
+
"instructions": "",
|
|
226
|
+
"required": 0,
|
|
227
|
+
"conditional_logic": 0,
|
|
228
|
+
"wrapper": {
|
|
229
|
+
"width": "50",
|
|
230
|
+
"class": "",
|
|
231
|
+
"id": ""
|
|
232
|
+
},
|
|
233
|
+
"wpml_cf_preferences": 3,
|
|
234
|
+
"choices": {
|
|
235
|
+
"__column": "Vertical",
|
|
236
|
+
"__row": "Horizontal"
|
|
237
|
+
},
|
|
238
|
+
"default_value": false,
|
|
239
|
+
"return_format": "value",
|
|
240
|
+
"multiple": 0,
|
|
241
|
+
"max": "",
|
|
242
|
+
"allow_custom": 0,
|
|
243
|
+
"search_placeholder": "",
|
|
244
|
+
"prepend": "",
|
|
245
|
+
"append": "",
|
|
246
|
+
"allow_null": 0,
|
|
247
|
+
"ui": 1,
|
|
248
|
+
"ajax": 0,
|
|
249
|
+
"placeholder": "",
|
|
250
|
+
"min": ""
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"key": "field_68da703f90504",
|
|
254
|
+
"label": "Menu direction portrait",
|
|
255
|
+
"name": "menu_direction_portrait",
|
|
256
|
+
"aria-label": "",
|
|
257
|
+
"type": "select",
|
|
258
|
+
"instructions": "",
|
|
259
|
+
"required": 0,
|
|
260
|
+
"conditional_logic": 0,
|
|
261
|
+
"wrapper": {
|
|
262
|
+
"width": "50",
|
|
263
|
+
"class": "",
|
|
264
|
+
"id": ""
|
|
265
|
+
},
|
|
266
|
+
"wpml_cf_preferences": 3,
|
|
267
|
+
"choices": {
|
|
268
|
+
"__column": "Vertical",
|
|
269
|
+
"__row": "Horizontal"
|
|
270
|
+
},
|
|
271
|
+
"default_value": "__column",
|
|
272
|
+
"return_format": "value",
|
|
273
|
+
"multiple": 0,
|
|
274
|
+
"allow_custom": 0,
|
|
275
|
+
"search_placeholder": "",
|
|
276
|
+
"prepend": "",
|
|
277
|
+
"append": "",
|
|
278
|
+
"allow_null": 0,
|
|
279
|
+
"ui": 1,
|
|
280
|
+
"ajax": 0,
|
|
281
|
+
"placeholder": "",
|
|
282
|
+
"min": "",
|
|
283
|
+
"max": ""
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"key": "field_68da703f908d7",
|
|
287
|
+
"label": "Menu direction mobile",
|
|
288
|
+
"name": "menu_direction_mobile",
|
|
289
|
+
"aria-label": "",
|
|
290
|
+
"type": "select",
|
|
291
|
+
"instructions": "",
|
|
292
|
+
"required": 0,
|
|
293
|
+
"conditional_logic": 0,
|
|
294
|
+
"wrapper": {
|
|
295
|
+
"width": "50",
|
|
296
|
+
"class": "",
|
|
297
|
+
"id": ""
|
|
298
|
+
},
|
|
299
|
+
"wpml_cf_preferences": 3,
|
|
300
|
+
"choices": {
|
|
301
|
+
"__column": "Vertical",
|
|
302
|
+
"__row": "Horizontal"
|
|
303
|
+
},
|
|
304
|
+
"default_value": "__column",
|
|
305
|
+
"return_format": "value",
|
|
306
|
+
"multiple": 0,
|
|
307
|
+
"max": "",
|
|
308
|
+
"allow_custom": 0,
|
|
309
|
+
"search_placeholder": "",
|
|
310
|
+
"prepend": "",
|
|
311
|
+
"append": "",
|
|
312
|
+
"allow_null": 0,
|
|
313
|
+
"ui": 1,
|
|
314
|
+
"ajax": 0,
|
|
315
|
+
"placeholder": "",
|
|
316
|
+
"min": ""
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"key": "field_68da703f90cd4",
|
|
320
|
+
"label": "Gap",
|
|
321
|
+
"name": "",
|
|
322
|
+
"aria-label": "",
|
|
323
|
+
"type": "tab",
|
|
324
|
+
"instructions": "",
|
|
325
|
+
"required": 0,
|
|
326
|
+
"conditional_logic": 0,
|
|
327
|
+
"wrapper": {
|
|
328
|
+
"width": "",
|
|
329
|
+
"class": "",
|
|
330
|
+
"id": ""
|
|
331
|
+
},
|
|
332
|
+
"wpml_cf_preferences": 3,
|
|
333
|
+
"placement": "top",
|
|
334
|
+
"endpoint": 0,
|
|
335
|
+
"no_preference": 0,
|
|
336
|
+
"selected": 0
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"key": "field_68da703f9109f",
|
|
340
|
+
"label": "Gap desktop",
|
|
341
|
+
"name": "gap_desktop",
|
|
342
|
+
"aria-label": "",
|
|
343
|
+
"type": "range",
|
|
344
|
+
"instructions": "",
|
|
345
|
+
"required": 0,
|
|
346
|
+
"conditional_logic": 0,
|
|
347
|
+
"wrapper": {
|
|
348
|
+
"width": "",
|
|
349
|
+
"class": "",
|
|
350
|
+
"id": ""
|
|
351
|
+
},
|
|
352
|
+
"wpml_cf_preferences": 3,
|
|
353
|
+
"default_value": "0.25",
|
|
354
|
+
"min": "",
|
|
355
|
+
"max": "",
|
|
356
|
+
"step": "0.125",
|
|
357
|
+
"prepend": "",
|
|
358
|
+
"append": ""
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"key": "field_68da703f91461",
|
|
362
|
+
"label": "Gap portrait",
|
|
363
|
+
"name": "gap_portrait",
|
|
364
|
+
"aria-label": "",
|
|
365
|
+
"type": "range",
|
|
366
|
+
"instructions": "",
|
|
367
|
+
"required": 0,
|
|
368
|
+
"conditional_logic": 0,
|
|
369
|
+
"wrapper": {
|
|
370
|
+
"width": "",
|
|
371
|
+
"class": "",
|
|
372
|
+
"id": ""
|
|
373
|
+
},
|
|
374
|
+
"wpml_cf_preferences": 3,
|
|
375
|
+
"default_value": "0.5",
|
|
376
|
+
"min": "",
|
|
377
|
+
"max": "",
|
|
378
|
+
"step": "0.125",
|
|
379
|
+
"prepend": "",
|
|
380
|
+
"append": ""
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"key": "field_68da703f91891",
|
|
384
|
+
"label": "Gap mobile",
|
|
385
|
+
"name": "gap_mobile",
|
|
386
|
+
"aria-label": "",
|
|
387
|
+
"type": "range",
|
|
388
|
+
"instructions": "",
|
|
389
|
+
"required": 0,
|
|
390
|
+
"conditional_logic": 0,
|
|
391
|
+
"wrapper": {
|
|
392
|
+
"width": "",
|
|
393
|
+
"class": "",
|
|
394
|
+
"id": ""
|
|
395
|
+
},
|
|
396
|
+
"wpml_cf_preferences": 3,
|
|
397
|
+
"default_value": "0.5",
|
|
398
|
+
"min": "",
|
|
399
|
+
"max": "",
|
|
400
|
+
"step": "0.125",
|
|
401
|
+
"prepend": "",
|
|
402
|
+
"append": ""
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"location": [
|
|
406
|
+
[
|
|
407
|
+
{
|
|
408
|
+
"param": "block",
|
|
409
|
+
"operator": "!=",
|
|
410
|
+
"value": "all"
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
],
|
|
414
|
+
"menu_order": 0,
|
|
415
|
+
"position": "normal",
|
|
416
|
+
"style": "default",
|
|
417
|
+
"label_placement": "top",
|
|
418
|
+
"instruction_placement": "label",
|
|
419
|
+
"hide_on_screen": "",
|
|
420
|
+
"active": false,
|
|
421
|
+
"description": "Library version - Do not modify in this project as any changes will be overwritten by future updates.",
|
|
422
|
+
"show_in_rest": 0,
|
|
423
|
+
"acfe_autosync": [
|
|
424
|
+
"json"
|
|
425
|
+
],
|
|
426
|
+
"acfml_field_group_mode": "localization",
|
|
427
|
+
"acfe_form": 0,
|
|
428
|
+
"acfe_display_title": "",
|
|
429
|
+
"acfe_meta": "",
|
|
430
|
+
"acfe_note": "",
|
|
431
|
+
"modified": 1759146069
|
|
432
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
|
+
{% set menudata = {} %}
|
|
3
|
+
{% if fields.acf_fc_layout == 'nav_menu_v3' %}
|
|
4
|
+
{% if fields.menu|ru == 'primary-menu' %}
|
|
5
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.primary_menu }) %}
|
|
6
|
+
{% endif %}
|
|
7
|
+
{% if fields.menu|ru == 'secondary-menu' %}
|
|
8
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.secondary_menu }) %}
|
|
9
|
+
{% endif %}
|
|
10
|
+
{% if fields.menu|ru == 'tertiary-menu' %}
|
|
11
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.tertiary_menu }) %}
|
|
12
|
+
{% endif %}
|
|
13
|
+
{% if fields.menu|ru == 'legal-menu' %}
|
|
14
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.legal_menu }) %}
|
|
15
|
+
{% endif %}
|
|
16
|
+
{% if fields.menu|ru == 'social-menu' %}
|
|
17
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.social_menu }) %}
|
|
18
|
+
{% endif %}
|
|
19
|
+
{% if fields.menu|ru == 'footer-navigation-menu' %}
|
|
20
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.footer_navigation_menu }) %}
|
|
21
|
+
{% endif %}
|
|
22
|
+
{% if fields.menu|ru == 'footer-navigation-menu-secondary' %}
|
|
23
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.footer_navigation_menu_secondary }) %}
|
|
24
|
+
{% endif %}
|
|
25
|
+
{% if fields.menu|ru == 'footer-navigation-menu-tertiary' %}
|
|
26
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.footer_navigation_menu_tertiary }) %}
|
|
27
|
+
{% endif %}
|
|
28
|
+
{% if fields.menu|ru == 'footer-navigation-menu-quaternary' %}
|
|
29
|
+
{% set menudata = menudata|merge({'menu' : nav_menus.footer_navigation_menu_quaternary }) %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% endif %}
|
|
32
|
+
|
|
33
|
+
{% set menu = menudata.menu %}
|
|
34
|
+
{% set alignmentDesktop = '--alignment-desktop: ' ~ fields.alignment_desktop|ru ~ ';' %}
|
|
35
|
+
{% set alignmentPortrait = '--alignment-portrait: ' ~ fields.alignment_portrait|ru ~ ';' %}
|
|
36
|
+
{% set alignmentMobile = '--alignment-mobile: ' ~ fields.alignment_mobile|ru ~ ';' %}
|
|
37
|
+
{% set alignment = alignmentDesktop ~ alignmentPortrait ~ alignmentMobile %}
|
|
38
|
+
|
|
39
|
+
<nav class="{{blockClassName}}__nav-menu {{blockClassName}}__nav-menu--{{menu.name|lower}}" style="{{alignment}}">
|
|
40
|
+
|
|
41
|
+
{% set direction = '--menu-direction: ' ~ fields.menu_direction|ru ~ ';' %}
|
|
42
|
+
{% set directionPortrait = '--menu-direction-portrait: ' ~ fields.menu_direction_portrait|ru ~ ';' %}
|
|
43
|
+
{% set directionMobile = '--menu-direction-mobile: ' ~ fields.menu_direction_mobile|ru ~ ';' %}
|
|
44
|
+
{% set gapString = '--gap-mobile: ' ~ fields.gap_mobile ~ '; --gap-portrait: ' ~ fields.gap_portrait ~ '; --gap-desktop: ' ~ fields.gap_desktop ~ ';' %}
|
|
45
|
+
{% set styleString = direction ~ directionPortrait ~ directionMobile ~ gapString %}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
{% if menu.items is defined and menu.items is not empty %}
|
|
49
|
+
<ul class="{{blockClassName}}__nav-menu-list" style="{{styleString}}">
|
|
50
|
+
{% for item in menu.items %}
|
|
51
|
+
<li class="{{ item.class }} {{blockClassName}}__nav-menu-list-item nav-menu__item">
|
|
52
|
+
<a class="{{blockClassName}}__nav-menu-link nav-menu__item-link {{blockClassName}}__nav-menu-link cmpl-cta-style-{{fields.cta_style|ru}}" target="{{item.target}}" href="{{item.url}}">
|
|
53
|
+
<span class="cmpl-cta-span">{{item.name}}</span>
|
|
54
|
+
|
|
55
|
+
{% if item.children is defined and item.children is not empty %}
|
|
56
|
+
<div class="{{blockClassName}}__nav-menu__sub-nav">
|
|
57
|
+
<ul class="{{blockClassName}}__nav-menu__sub-nav-container">
|
|
58
|
+
{% for child in item.children %}
|
|
59
|
+
<li class="{{ child.class }} {{blockClassName}}__nav-menu__nav-item {{blockClassName}}__nav-menu__sub-nav-item">
|
|
60
|
+
<div class="{{ item.class }} {{blockClassName}}__nav-menu__sub-nav-item-main">
|
|
61
|
+
<a class="{{blockClassName}}__nav-menu__link {{blockClassName}}__nav-menu__sub-nav-link {{blockClassName}}__nav-menu-link cmpl-cta-style-{{fields.cta_style|ru}}" href="{{ child.url }}">
|
|
62
|
+
<span class="cmpl-cta-span">{{ child.name }}</span>
|
|
63
|
+
|
|
64
|
+
</a>
|
|
65
|
+
</div>
|
|
66
|
+
</li>
|
|
67
|
+
{% endfor %}
|
|
68
|
+
</ul>
|
|
69
|
+
</div>
|
|
70
|
+
{% endif %}
|
|
71
|
+
</a>
|
|
72
|
+
</li>
|
|
73
|
+
{% endfor %}
|
|
74
|
+
</ul>
|
|
75
|
+
{% endif %}
|
|
76
|
+
</nav>
|
package/package.json
CHANGED
package/public/jsAssets.mjs
CHANGED