@total_onion/onion-library 2.0.182 → 2.0.184

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.
@@ -1,64 +1,78 @@
1
1
  {
2
- "key": "group_687192c28b7eb",
3
- "title": "Block: Cover Link v3",
4
- "fields": [
5
- {
6
- "key": "field_6865575689b08",
7
- "label": "cover link fields",
8
- "name": "cover_link_fields",
9
- "aria-label": "",
10
- "type": "clone",
11
- "instructions": "",
12
- "required": 0,
13
- "conditional_logic": 0,
14
- "wrapper": {
15
- "width": "",
16
- "class": "",
17
- "id": ""
18
- },
19
- "wpml_cf_preferences": 3,
20
- "user_roles": [
21
- "administrator"
22
- ],
23
- "clone": [
24
- "group_65ca55f45368c"
25
- ],
26
- "display": "seamless",
27
- "layout": "block",
28
- "prefix_label": 0,
29
- "prefix_name": 0,
30
- "acfe_seamless_style": 0,
31
- "acfe_clone_modal": 0,
32
- "acfe_clone_modal_close": 0,
33
- "acfe_clone_modal_button": "",
34
- "acfe_clone_modal_size": "large"
35
- }
36
- ],
37
- "location": [
38
- [
39
- {
40
- "param": "block",
41
- "operator": "==",
42
- "value": "all"
43
- }
44
- ]
45
- ],
46
- "menu_order": 0,
47
- "position": "normal",
48
- "style": "default",
49
- "label_placement": "left",
50
- "instruction_placement": "label",
51
- "hide_on_screen": "",
52
- "active": false,
53
- "description": "",
54
- "show_in_rest": 0,
55
- "display_title": "",
56
- "acfe_autosync": [
57
- "json"
58
- ],
59
- "acfe_form": 0,
60
- "acfe_display_title": "",
61
- "acfe_meta": "",
62
- "acfe_note": "",
63
- "modified": 1762794520
2
+ "key": "group_687192c28b7eb",
3
+ "title": "Block: Cover Link v3",
4
+ "fields": [
5
+ {
6
+ "key": "field_6956c07662240",
7
+ "label": "Enable cover link",
8
+ "name": "enable_cover_link",
9
+ "aria-label": "",
10
+ "type": "true_false",
11
+ "instructions": "",
12
+ "required": 0,
13
+ "conditional_logic": 0,
14
+ "wrapper": {
15
+ "width": "",
16
+ "class": "",
17
+ "id": ""
18
+ },
19
+ "message": "",
20
+ "default_value": 0,
21
+ "style": "",
22
+ "allow_in_bindings": 0,
23
+ "ui": 0,
24
+ "ui_on_text": "",
25
+ "ui_off_text": ""
26
+ },
27
+ {
28
+ "key": "field_6956c05d6223f",
29
+ "label": "Cover link",
30
+ "name": "cover_link",
31
+ "aria-label": "",
32
+ "type": "link",
33
+ "instructions": "",
34
+ "required": 0,
35
+ "conditional_logic": [
36
+ [
37
+ {
38
+ "field": "field_6956c07662240",
39
+ "operator": "==",
40
+ "value": "1"
41
+ }
42
+ ]
43
+ ],
44
+ "wrapper": {
45
+ "width": "",
46
+ "class": "",
47
+ "id": ""
48
+ },
49
+ "return_format": "array",
50
+ "allow_in_bindings": 0
51
+ }
52
+ ],
53
+ "location": [
54
+ [
55
+ {
56
+ "param": "block",
57
+ "operator": "==",
58
+ "value": "all"
59
+ }
60
+ ]
61
+ ],
62
+ "menu_order": 0,
63
+ "position": "normal",
64
+ "style": "default",
65
+ "label_placement": "left",
66
+ "instruction_placement": "label",
67
+ "hide_on_screen": "",
68
+ "active": false,
69
+ "description": "",
70
+ "show_in_rest": 0,
71
+ "display_title": "",
72
+ "acfe_autosync": ["json"],
73
+ "acfe_form": 0,
74
+ "acfe_display_title": "",
75
+ "acfe_meta": "",
76
+ "acfe_note": "",
77
+ "modified": 1767293062
64
78
  }
@@ -1,212 +1,504 @@
1
1
  {
2
- "key": "group_68e67fca1ec80",
3
- "title": "Block: Scrolling Banner v3",
4
- "fields": [
5
- {
6
- "key": "field_68e6822690986",
7
- "label": "Banner Fields",
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_68e6801d43db8",
27
- "label": "scrolling banner fields",
28
- "name": "scrolling_banner_fields_1",
29
- "aria-label": "",
30
- "type": "clone",
31
- "instructions": "",
32
- "required": 0,
33
- "conditional_logic": 0,
34
- "wrapper": {
35
- "width": "",
36
- "class": "",
37
- "id": ""
38
- },
39
- "wpml_cf_preferences": 3,
40
- "clone": [
41
- "group_626472bf26f5c"
42
- ],
43
- "display": "seamless",
44
- "layout": "block",
45
- "prefix_label": 0,
46
- "prefix_name": 0,
47
- "acfe_seamless_style": 0,
48
- "acfe_clone_modal": 0,
49
- "acfe_clone_modal_close": 0,
50
- "acfe_clone_modal_button": "",
51
- "acfe_clone_modal_size": "large"
52
- },
53
- {
54
- "key": "field_68e6801d43db9",
55
- "label": "scrolling banner fields",
56
- "name": "scrolling_banner_fields_2",
57
- "aria-label": "",
58
- "type": "clone",
59
- "instructions": "",
60
- "required": 0,
61
- "conditional_logic": 0,
62
- "wrapper": {
63
- "width": "",
64
- "class": "",
65
- "id": ""
66
- },
67
- "wpml_cf_preferences": 3,
68
- "clone": [
69
- "group_626472bf26f5c"
70
- ],
71
- "display": "seamless",
72
- "layout": "block",
73
- "prefix_label": 0,
74
- "prefix_name": 0,
75
- "acfe_seamless_style": 0,
76
- "acfe_clone_modal": 0,
77
- "acfe_clone_modal_close": 0,
78
- "acfe_clone_modal_button": "",
79
- "acfe_clone_modal_size": "large"
80
- },
81
- {
82
- "key": "field_68e6801d43db10",
83
- "label": "size",
84
- "name": "size",
85
- "aria-label": "",
86
- "type": "select",
87
- "instructions": "",
88
- "required": 0,
89
- "conditional_logic": 0,
90
- "wrapper": {
91
- "width": "",
92
- "class": "",
93
- "id": ""
94
- },
95
- "wpml_cf_preferences": 3,
96
- "options": {
97
- "large": "Large",
98
- "small": "Small"
99
- },
100
- "default_value": "large",
101
- "allow_null": 0,
102
- "multiple": 0,
103
- "ui": 0,
104
- "return_format": "value",
105
- "ajax": 0,
106
- "placeholder": "",
107
- "choices": [],
108
- "allow_custom": 0,
109
- "search_placeholder": "",
110
- "prepend": "",
111
- "append": "",
112
- "min": "",
113
- "max": "",
114
- "create_options": 0,
115
- "save_options": 0
116
- },
117
- {
118
- "key": "field_68e67fca63368",
119
- "label": "Block Settings",
120
- "name": "",
121
- "aria-label": "",
122
- "type": "tab",
123
- "instructions": "",
124
- "required": 0,
125
- "conditional_logic": 0,
126
- "wrapper": {
127
- "width": "",
128
- "class": "",
129
- "id": ""
130
- },
131
- "wpml_cf_preferences": 3,
132
- "placement": "top",
133
- "endpoint": 0,
134
- "no_preference": 0,
135
- "selected": 0
136
- },
137
- {
138
- "key": "field_68e68346cb037",
139
- "label": "Block",
140
- "name": "",
141
- "aria-label": "",
142
- "type": "accordion",
143
- "instructions": "",
144
- "required": 0,
145
- "conditional_logic": 0,
146
- "wrapper": {
147
- "width": "",
148
- "class": "",
149
- "id": ""
150
- },
151
- "wpml_cf_preferences": 0,
152
- "open": 0,
153
- "multi_expand": 0,
154
- "endpoint": 0
155
- },
156
- {
157
- "key": "field_68e6835dcb038",
158
- "label": "Block Settings",
159
- "name": "block_settings",
160
- "aria-label": "",
161
- "type": "clone",
162
- "instructions": "",
163
- "required": 0,
164
- "conditional_logic": 0,
165
- "wrapper": {
166
- "width": "",
167
- "class": "",
168
- "id": ""
169
- },
170
- "wpml_cf_preferences": 0,
171
- "clone": [
172
- "group_689f649af2ac4"
173
- ],
174
- "display": "seamless",
175
- "layout": "block",
176
- "prefix_label": 0,
177
- "prefix_name": 0,
178
- "acfe_seamless_style": 0,
179
- "acfe_clone_modal": 0,
180
- "acfe_clone_modal_close": 0,
181
- "acfe_clone_modal_button": "",
182
- "acfe_clone_modal_size": "large"
183
- }
184
- ],
185
- "location": [
186
- [
187
- {
188
- "param": "block",
189
- "operator": "==",
190
- "value": "all"
191
- }
192
- ]
193
- ],
194
- "menu_order": 0,
195
- "position": "normal",
196
- "style": "default",
197
- "label_placement": "left",
198
- "instruction_placement": "label",
199
- "hide_on_screen": "",
200
- "active": false,
201
- "description": "",
202
- "show_in_rest": 0,
203
- "display_title": "",
204
- "acfe_autosync": [
205
- "json"
206
- ],
207
- "acfe_form": 0,
208
- "acfe_display_title": "",
209
- "acfe_meta": "",
210
- "acfe_note": "",
211
- "modified": 1762794598
2
+ "key": "group_68e67fca1ec80",
3
+ "title": "Block: Scrolling Banner v3",
4
+ "fields": [
5
+ {
6
+ "key": "field_68e6822690986",
7
+ "label": "Banner Fields",
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_62647319056f2",
27
+ "label": "Enable Scrolling Banner",
28
+ "name": "enable_scrolling_banner",
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
+ "user_roles": ["all"],
41
+ "message": "",
42
+ "default_value": 0,
43
+ "ui_on_text": "",
44
+ "ui_off_text": "",
45
+ "ui": 1,
46
+ "style": ""
47
+ },
48
+ {
49
+ "key": "field_62647331056f3",
50
+ "label": "Scrolling Banner Text 1",
51
+ "name": "scrolling_banner_text_1",
52
+ "aria-label": "",
53
+ "type": "text",
54
+ "instructions": "",
55
+ "required": 0,
56
+ "conditional_logic": 0,
57
+ "wrapper": {
58
+ "width": "",
59
+ "class": "",
60
+ "id": ""
61
+ },
62
+ "default_value": "Scrolling banner text 1",
63
+ "maxlength": "",
64
+ "allow_in_bindings": 1,
65
+ "placeholder": "",
66
+ "prepend": "",
67
+ "append": ""
68
+ },
69
+ {
70
+ "key": "field_6956aaecccc4f",
71
+ "label": "Scrolling Banner Text 2",
72
+ "name": "scrolling_banner_text_2",
73
+ "aria-label": "",
74
+ "type": "text",
75
+ "instructions": "",
76
+ "required": 0,
77
+ "conditional_logic": 0,
78
+ "wrapper": {
79
+ "width": "",
80
+ "class": "",
81
+ "id": ""
82
+ },
83
+ "default_value": "Scrolling banner text 2",
84
+ "maxlength": "",
85
+ "allow_in_bindings": 1,
86
+ "placeholder": "",
87
+ "prepend": "",
88
+ "append": ""
89
+ },
90
+ {
91
+ "key": "field_68e6801d43db8",
92
+ "label": "scrolling banner fields",
93
+ "name": "scrolling_banner_fields_1",
94
+ "aria-label": "",
95
+ "type": "clone",
96
+ "instructions": "",
97
+ "required": 0,
98
+ "conditional_logic": 0,
99
+ "wrapper": {
100
+ "width": "",
101
+ "class": "",
102
+ "id": ""
103
+ },
104
+ "wpml_cf_preferences": 3,
105
+ "clone": ["group_626472bf26f5c"],
106
+ "display": "seamless",
107
+ "layout": "block",
108
+ "prefix_label": 0,
109
+ "prefix_name": 0,
110
+ "acfe_seamless_style": 0,
111
+ "acfe_clone_modal": 0,
112
+ "acfe_clone_modal_close": 0,
113
+ "acfe_clone_modal_button": "",
114
+ "acfe_clone_modal_size": "large"
115
+ },
116
+ {
117
+ "key": "field_62647361727b8",
118
+ "label": "Scrolling Banner Speed",
119
+ "name": "scrolling_banner_speed",
120
+ "aria-label": "",
121
+ "type": "range",
122
+ "instructions": "",
123
+ "required": 0,
124
+ "conditional_logic": 0,
125
+ "wrapper": {
126
+ "width": "",
127
+ "class": "",
128
+ "id": ""
129
+ },
130
+ "wpml_cf_preferences": 3,
131
+ "user_roles": ["all"],
132
+ "default_value": 5,
133
+ "min": "",
134
+ "max": 10,
135
+ "step": "",
136
+ "prepend": "",
137
+ "append": ""
138
+ },
139
+ {
140
+ "key": "field_656601518b51f",
141
+ "label": "Font Size Desktop",
142
+ "name": "font_size_desktop",
143
+ "aria-label": "",
144
+ "type": "range",
145
+ "instructions": "",
146
+ "required": 0,
147
+ "conditional_logic": 0,
148
+ "wrapper": {
149
+ "width": "",
150
+ "class": "",
151
+ "id": ""
152
+ },
153
+ "wpml_cf_preferences": 3,
154
+ "user_roles": ["all"],
155
+ "default_value": 32,
156
+ "min": "",
157
+ "max": 300,
158
+ "step": "",
159
+ "prepend": "",
160
+ "append": ""
161
+ },
162
+ {
163
+ "key": "field_6566087dede58",
164
+ "label": "Font Size Portrait",
165
+ "name": "font_size_portrait",
166
+ "aria-label": "",
167
+ "type": "range",
168
+ "instructions": "",
169
+ "required": 0,
170
+ "conditional_logic": 0,
171
+ "wrapper": {
172
+ "width": "",
173
+ "class": "",
174
+ "id": ""
175
+ },
176
+ "wpml_cf_preferences": 3,
177
+ "user_roles": ["all"],
178
+ "default_value": 24,
179
+ "min": "",
180
+ "max": 300,
181
+ "step": "",
182
+ "prepend": "",
183
+ "append": ""
184
+ },
185
+ {
186
+ "key": "field_656608a8ede59",
187
+ "label": "Font Size Mobile",
188
+ "name": "font_size_mobile",
189
+ "aria-label": "",
190
+ "type": "range",
191
+ "instructions": "",
192
+ "required": 0,
193
+ "conditional_logic": 0,
194
+ "wrapper": {
195
+ "width": "",
196
+ "class": "",
197
+ "id": ""
198
+ },
199
+ "wpml_cf_preferences": 3,
200
+ "user_roles": ["all"],
201
+ "default_value": 16,
202
+ "min": "",
203
+ "max": 300,
204
+ "step": "",
205
+ "prepend": "",
206
+ "append": ""
207
+ },
208
+ {
209
+ "key": "field_656612fd660a7",
210
+ "label": "Seperator As Image?",
211
+ "name": "seperator_as_image",
212
+ "aria-label": "",
213
+ "type": "true_false",
214
+ "instructions": "",
215
+ "required": 0,
216
+ "conditional_logic": 0,
217
+ "wrapper": {
218
+ "width": "",
219
+ "class": "",
220
+ "id": ""
221
+ },
222
+ "wpml_cf_preferences": 3,
223
+ "user_roles": ["all"],
224
+ "message": "",
225
+ "default_value": 0,
226
+ "ui_on_text": "",
227
+ "ui_off_text": "",
228
+ "ui": 1,
229
+ "style": ""
230
+ },
231
+ {
232
+ "key": "field_656615b26dfc2",
233
+ "label": "Positioning",
234
+ "name": "positioning",
235
+ "aria-label": "",
236
+ "type": "radio",
237
+ "instructions": "",
238
+ "required": 0,
239
+ "conditional_logic": 0,
240
+ "wrapper": {
241
+ "width": "",
242
+ "class": "",
243
+ "id": ""
244
+ },
245
+ "wpml_cf_preferences": 3,
246
+ "user_roles": ["all"],
247
+ "choices": {
248
+ "__flex-start": "Top",
249
+ "__center": "Center",
250
+ "__flex-end": "Bottom"
251
+ },
252
+ "default_value": "__center",
253
+ "return_format": "value",
254
+ "allow_null": 0,
255
+ "other_choice": 0,
256
+ "layout": "vertical",
257
+ "save_other_choice": 0
258
+ },
259
+ {
260
+ "key": "field_65661d79b8b14",
261
+ "label": "Text Colour",
262
+ "name": "text_colour",
263
+ "aria-label": "",
264
+ "type": "color_picker",
265
+ "instructions": "",
266
+ "required": 0,
267
+ "conditional_logic": 0,
268
+ "wrapper": {
269
+ "width": "",
270
+ "class": "",
271
+ "id": ""
272
+ },
273
+ "wpml_cf_preferences": 3,
274
+ "user_roles": ["all"],
275
+ "default_value": "#FFFFFF",
276
+ "enable_opacity": 1,
277
+ "return_format": "string",
278
+ "display": "default",
279
+ "button_label": "Select Color",
280
+ "color_picker": true,
281
+ "absolute": false,
282
+ "input": true,
283
+ "allow_null": true,
284
+ "theme_colors": false,
285
+ "colors": [],
286
+ "custom_palette_source": "",
287
+ "palette_colors": "",
288
+ "show_color_wheel": true
289
+ },
290
+ {
291
+ "key": "field_65b7ac3ef1fea",
292
+ "label": "Enable Text Shadow",
293
+ "name": "enable_text_shadow",
294
+ "aria-label": "",
295
+ "type": "true_false",
296
+ "instructions": "",
297
+ "required": 0,
298
+ "conditional_logic": 0,
299
+ "wrapper": {
300
+ "width": "",
301
+ "class": "",
302
+ "id": ""
303
+ },
304
+ "wpml_cf_preferences": 3,
305
+ "user_roles": ["all"],
306
+ "message": "",
307
+ "default_value": 0,
308
+ "ui_on_text": "",
309
+ "ui_off_text": "",
310
+ "ui": 1,
311
+ "style": ""
312
+ },
313
+ {
314
+ "key": "field_65b7acbbf1feb",
315
+ "label": "Text shadow horizontal offset",
316
+ "name": "text_shadow_horizontal_offset",
317
+ "aria-label": "",
318
+ "type": "range",
319
+ "instructions": "",
320
+ "required": 0,
321
+ "conditional_logic": 0,
322
+ "wrapper": {
323
+ "width": "",
324
+ "class": "",
325
+ "id": ""
326
+ },
327
+ "wpml_cf_preferences": 3,
328
+ "user_roles": ["all"],
329
+ "default_value": 0,
330
+ "min": -40,
331
+ "max": 40,
332
+ "step": "",
333
+ "prepend": "",
334
+ "append": ""
335
+ },
336
+ {
337
+ "key": "field_65b7acc6f1fec",
338
+ "label": "Text shadow vertical offset",
339
+ "name": "text_shadow_vertical_offset",
340
+ "aria-label": "",
341
+ "type": "range",
342
+ "instructions": "",
343
+ "required": 0,
344
+ "conditional_logic": 0,
345
+ "wrapper": {
346
+ "width": "",
347
+ "class": "",
348
+ "id": ""
349
+ },
350
+ "wpml_cf_preferences": 3,
351
+ "user_roles": ["all"],
352
+ "default_value": 0,
353
+ "min": -40,
354
+ "max": 40,
355
+ "step": "",
356
+ "prepend": "",
357
+ "append": ""
358
+ },
359
+ {
360
+ "key": "field_65b7ad0df1fed",
361
+ "label": "Text shadow blur",
362
+ "name": "text_shadow_blur",
363
+ "aria-label": "",
364
+ "type": "range",
365
+ "instructions": "",
366
+ "required": 0,
367
+ "conditional_logic": 0,
368
+ "wrapper": {
369
+ "width": "",
370
+ "class": "",
371
+ "id": ""
372
+ },
373
+ "wpml_cf_preferences": 3,
374
+ "user_roles": ["all"],
375
+ "default_value": 0,
376
+ "min": 0,
377
+ "max": 20,
378
+ "step": "",
379
+ "prepend": "",
380
+ "append": ""
381
+ },
382
+ {
383
+ "key": "field_65b7ad42f1fee",
384
+ "label": "Text shadow colour",
385
+ "name": "text_shadow_colour",
386
+ "aria-label": "",
387
+ "type": "color_picker",
388
+ "instructions": "",
389
+ "required": 0,
390
+ "conditional_logic": 0,
391
+ "wrapper": {
392
+ "width": "",
393
+ "class": "",
394
+ "id": ""
395
+ },
396
+ "wpml_cf_preferences": 3,
397
+ "user_roles": ["all"],
398
+ "default_value": "rgba(255,255,255,0.5)",
399
+ "enable_opacity": 1,
400
+ "return_format": "string",
401
+ "display": "default",
402
+ "button_label": "Select Color",
403
+ "color_picker": 1,
404
+ "absolute": 0,
405
+ "input": 1,
406
+ "allow_null": 1,
407
+ "theme_colors": 0,
408
+ "colors": [],
409
+ "custom_palette_source": "",
410
+ "palette_colors": "",
411
+ "show_color_wheel": true
412
+ },
413
+ {
414
+ "key": "field_68e67fca63368",
415
+ "label": "Block Settings",
416
+ "name": "",
417
+ "aria-label": "",
418
+ "type": "tab",
419
+ "instructions": "",
420
+ "required": 0,
421
+ "conditional_logic": 0,
422
+ "wrapper": {
423
+ "width": "",
424
+ "class": "",
425
+ "id": ""
426
+ },
427
+ "wpml_cf_preferences": 3,
428
+ "placement": "top",
429
+ "endpoint": 0,
430
+ "no_preference": 0,
431
+ "selected": 0
432
+ },
433
+ {
434
+ "key": "field_68e68346cb037",
435
+ "label": "Block",
436
+ "name": "",
437
+ "aria-label": "",
438
+ "type": "accordion",
439
+ "instructions": "",
440
+ "required": 0,
441
+ "conditional_logic": 0,
442
+ "wrapper": {
443
+ "width": "",
444
+ "class": "",
445
+ "id": ""
446
+ },
447
+ "wpml_cf_preferences": 0,
448
+ "open": 0,
449
+ "multi_expand": 0,
450
+ "endpoint": 0
451
+ },
452
+ {
453
+ "key": "field_68e6835dcb038",
454
+ "label": "Block Settings",
455
+ "name": "block_settings",
456
+ "aria-label": "",
457
+ "type": "clone",
458
+ "instructions": "",
459
+ "required": 0,
460
+ "conditional_logic": 0,
461
+ "wrapper": {
462
+ "width": "",
463
+ "class": "",
464
+ "id": ""
465
+ },
466
+ "wpml_cf_preferences": 0,
467
+ "clone": ["group_689f649af2ac4"],
468
+ "display": "seamless",
469
+ "layout": "block",
470
+ "prefix_label": 0,
471
+ "prefix_name": 0,
472
+ "acfe_seamless_style": 0,
473
+ "acfe_clone_modal": 0,
474
+ "acfe_clone_modal_close": 0,
475
+ "acfe_clone_modal_button": "",
476
+ "acfe_clone_modal_size": "large"
477
+ }
478
+ ],
479
+ "location": [
480
+ [
481
+ {
482
+ "param": "block",
483
+ "operator": "==",
484
+ "value": "all"
485
+ }
486
+ ]
487
+ ],
488
+ "menu_order": 0,
489
+ "position": "normal",
490
+ "style": "default",
491
+ "label_placement": "left",
492
+ "instruction_placement": "label",
493
+ "hide_on_screen": "",
494
+ "active": false,
495
+ "description": "",
496
+ "show_in_rest": 0,
497
+ "display_title": "",
498
+ "acfe_autosync": ["json"],
499
+ "acfe_form": 0,
500
+ "acfe_display_title": "",
501
+ "acfe_meta": "",
502
+ "acfe_note": "",
503
+ "modified": 1767287567
212
504
  }
@@ -83,12 +83,12 @@ function scrollingbannerJs(block) {
83
83
  wrapper.appendChild(newTickerContainer);
84
84
 
85
85
  const animation1 = [
86
- { transform: 'translateX(0%)' },
87
- { transform: 'translateX(-100%)' }
86
+ {transform: 'translateX(0%)'},
87
+ {transform: 'translateX(-100%)'}
88
88
  ];
89
89
  const animation2 = [
90
- { transform: 'translateX(100%)' },
91
- { transform: 'translateX(0%)' }
90
+ {transform: 'translateX(100%)'},
91
+ {transform: 'translateX(0%)'}
92
92
  ];
93
93
 
94
94
  const time = 100000 / speed;
@@ -14,8 +14,8 @@
14
14
  </style>
15
15
  <section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
16
16
 
17
- {% set bannerText1 = fields.scrolling_banner_text1 %}
18
- {% set bannerText2 = fields.scrolling_banner_text2 %}
17
+ {% set bannerText1 = fields.scrolling_banner_text_1 %}
18
+ {% set bannerText2 = fields.scrolling_banner_text_2 %}
19
19
  {% set enableScrolling = fields.enable_scrolling_banner %}
20
20
  {% set bannerSpeed = fields.scrolling_banner_speed %}
21
21
  {% set imageSeperator = fields.seperator_as_image %}
@@ -47,7 +47,5 @@
47
47
  </div>
48
48
  </div>
49
49
  {% endif %}
50
-
51
-
52
50
  {# {{htmlEntryPoint}} #}
53
51
  </section>
@@ -1,15 +1,14 @@
1
1
  <?php
2
- add_action('enqueue_block_assets', 'add_block_editor_assets_v3', 10, true);
3
2
  function add_block_editor_assets_v3(): void
4
3
  {
5
4
  if (is_admin()) {
6
5
  wp_enqueue_script('editorstyles', gtp_get_asset_uri('editor.js'), array(), null, true);
7
- wp_localize_script('editorstyles', 'previewvars', core_design_settings_v3());
8
- wp_localize_script('editorstyles', 'siteglobal', core_site_global_v3());
9
- wp_localize_script('editorstyles', 'coretypography', core_typography_v3());
6
+ wp_localize_script('editorstyles', 'previewvars', core_design_settings_v3(OPTIONS));
7
+ wp_localize_script('editorstyles', 'corePostOverrides', core_post_overrides_v3(OPTIONS));
8
+ wp_localize_script('editorstyles', 'coretypography', core_typography_v3(OPTIONS));
10
9
  wp_localize_script('editorstyles', 'corefontmodifiers', core_font_modifiers_v3());
11
- wp_localize_script('editorstyles', 'corethemes', core_themes_v3());
12
- wp_localize_script('editorstyles', 'currenttheme', core_current_theme_v3());
13
- wp_localize_script('editorstyles', 'colourconfig', create_colour_data());
10
+ wp_localize_script('editorstyles', 'corethemes', core_themes_v3(OPTIONS));
11
+ wp_localize_script('editorstyles', 'currenttheme', core_current_theme_v3(OPTIONS));
12
+ wp_localize_script('editorstyles', 'colourconfig', create_colour_data(OPTIONS));
14
13
  }
15
14
  }
@@ -0,0 +1,39 @@
1
+ <?php
2
+
3
+ use Timber\Timber;
4
+
5
+ /**
6
+ * Rendering of core blocks with Post entity
7
+ *
8
+ * @param array<string, mixed> $block block.
9
+ * @param string $content content.
10
+ * @param bool $is_preview If it's a preview.
11
+ */
12
+ function core_block_render_post_object_v3(array $block, string $content = '', bool $is_preview = false, $post_id = 0, $wp_block = false, $context = false, array $extra_context = array()): void
13
+ {
14
+ $context = \Timber\Timber::context();
15
+ $slug = substr($block['name'], 4); // Removes 'acf/' from the name.
16
+ $fields = get_fields();
17
+ $context['block'] = $block;
18
+ $context['fields'] = $fields;
19
+ $context['is_preview'] = $is_preview;
20
+ $context['environment'] = $_ENV['PANTHEON_ENVIRONMENT'] ?? 'local';
21
+
22
+ if (defined('OPTIONS') && is_array(OPTIONS)) {
23
+ $context['options'] = OPTIONS;
24
+ $context['nav_menus'] = Defined('NAV_MENUS') ? NAV_MENUS : [];
25
+ }
26
+
27
+ if ($extra_context) {
28
+ foreach ($extra_context as $key => $value) {
29
+ $context[$key] = $value;
30
+ }
31
+ }
32
+
33
+
34
+ if (file_exists(__DIR__ . '/../../../views/blocks/' . $slug . '.twig')) {
35
+ \Timber\Timber::render("blocks/{$slug}.twig", $context);
36
+ } else {
37
+ echo 'could not find Twig template for ' . $slug . '. This block may no longer be in use.';
38
+ }
39
+ }
@@ -1,8 +1,11 @@
1
1
  <?php
2
2
  // @codingStandardsIgnoreStart
3
- function core_design_settings_v3()
3
+ function core_design_settings_v3($options)
4
4
  {
5
- $json_data = file_get_contents(get_template_directory() . '/inc/theme-data/' . CURRENT_THEME . '/design-settings-vars.json');
5
+ if (!is_array($options)) {
6
+ return [];
7
+ }
8
+ $json_data = file_get_contents(get_template_directory() . '/inc/theme-data/' . $options['current_theme_name'] . '/design-settings-vars.json');
6
9
  $design_settings_data = json_decode($json_data, true);
7
10
  $output = '';
8
11
  if ($design_settings_data) {
@@ -31,6 +34,7 @@ function core_design_settings_v3()
31
34
  --landscape-design-reference:' . ($settings['landscape_design_reference'] ?? 1024) . ';
32
35
  --portrait-design-reference:' . ($settings['portrait_design_reference'] ?? 1024) . ';
33
36
  --mobile-design-reference:' . ($settings['mobile_design_reference'] ?? 1024) . ';
37
+ --global-content-max-width-setting:' . ($settings['global_max_width'] ?? 1024) . ';
34
38
  }</style>';
35
39
  }
36
40
  }
@@ -0,0 +1,21 @@
1
+ <?php
2
+ // @codingStandardsIgnoreStart
3
+ function core_post_overrides_v3($options)
4
+ {
5
+ $output = '';
6
+ $current_post = [];
7
+ if (isset($GLOBALS['post'])) {
8
+ $current_post = Timber::get_post($GLOBALS['post']->ID);
9
+ }
10
+ if (is_array($options)) {
11
+
12
+ $output = '
13
+ <style id="core-site-global-v3">
14
+ body {
15
+ --post-colour:' . ($current_post && (property_exists($current_post, 'meta') && isset($current_post->meta['post_colour'])) ? $current_post->meta['post_colour'] : '') . ';
16
+ --post-text-colour-style:' . ($current_post && (property_exists($current_post, 'meta') && isset($current_post->meta['post_text_colour_style'])) ? remove_underscore($current_post->meta['post_text_colour_style']) : '') . ';
17
+ }</style>';
18
+ }
19
+ return [$output];
20
+ } // END function core_design_vars
21
+ // @codingStandardsIgnoreEnd
@@ -0,0 +1,68 @@
1
+ <?php
2
+ // @codingStandardsIgnoreStart
3
+ function core_themes_v3($options)
4
+ {
5
+ if (!is_array($options)) {
6
+ return [];
7
+ }
8
+ $json_data = file_get_contents(get_template_directory() . '/inc/theme-data/' . $options['current_theme_name'] . '/theme-vars.json');
9
+ $themes_data = json_decode($json_data, true);
10
+ if ($themes_data) {
11
+
12
+ $output = '';
13
+ $output = '<style id="core-themes-vars">
14
+ :root {
15
+ ';
16
+
17
+ foreach ($themes_data as $theme => $value) {
18
+ if (isset($value['theme_primary_background_type'])) {
19
+ $background_value = remove_underscore($value['theme_primary_background_type']) == 'solid-colour' ? $value['theme_primary_background_colour'] : (remove_underscore($value['theme_primary_background_type']) == 'gradient' ? $value['theme_primary_background_gradient'] : null);
20
+ } else {
21
+ $background_value = $value['theme_primary_background_colour'];
22
+ }
23
+ $output .=
24
+ '&[data-currentcolourpalette="theme-' . $theme + 1 . '"] {
25
+ ';
26
+ foreach ($value['theme_colours'] as $index => $content) {
27
+ if (is_array($content) && array_key_exists('theme_colour', $content)) {
28
+ $output .= '--palette-default-' . ($index + 1) . ': ' . $content['theme_colour'] . ';
29
+ ';
30
+ }
31
+ };
32
+ foreach ($value['text_colours'] as $index => $content) {
33
+ if (is_array($content) && array_key_exists('colour', $content)) {
34
+ $output .= '--text-colour-default-' . ($index + 1) . ': ' . $content['colour'] . ';
35
+ ';
36
+ }
37
+ };
38
+ $output .= '--theme-primary-text-colour: ' . ($value['theme_primary_text_colour'] ?? '#ffffff') . ';
39
+ --theme-secondary-text-colour: ' . ($value['theme_secondary_text_colour'] ?? '#ffffff') . ';
40
+ --theme-tertiary-text-colour: ' . ($value['theme_tertiary_text_colour'] ?? '#ffffff') . ';
41
+ --theme-primary-background-colour:' . $background_value . ';
42
+ --theme-secondary-background-colour: ' . ($value['theme_secondary_background_colour'] ?? '#ffffff') . ';
43
+ --theme-tertiary-background-colour: ' . ($value['theme_tertiary_background_colour'] ?? '#ffffff') . ';
44
+ --theme-primary-accent-colour:' . ($value['theme_primary_accent_colour'] ?? '#ffffff') . ';
45
+ --theme-secondary-accent-colour: ' . ($value['theme_secondary_accent_colour'] ?? '#ffffff') . ';
46
+ --theme-tertiary-accent-colour: ' . ($value['theme_tertiary_accent_colour'] ?? '#ffffff') . ';
47
+ --link-colour: ' . ($value['links']['link_colour'] ?? '#ffffff') . ';
48
+ --link-colour-hover: ' . ($value['links']['link_colour_hover'] ?? '#ffffff') . ';
49
+ --link-decoration-colour: ' . ($value['links']['link_decoration_colour'] ?? '#ffffff') . ';
50
+ --link-decoration-colour-hover: ' . ($value['links']['link_decoration_colour_hover'] ?? '#ffffff') . ';
51
+ --link-decoration-style: ' . (remove_underscore($value['links']['link_decoration_style']) ?? '#ffffff') . ';
52
+ --link-decoration-style-hover: ' . (remove_underscore($value['links']['link_decoration_style_hover']) ?? '#ffffff') . ';
53
+ --primary-font-family:' . (remove_underscore($value['theme_primary_font']['font'] ?? 'arial')) . ';
54
+ --secondary-font-family:' . (remove_underscore($value['theme_secondary_font']['font'] ?? 'arial')) . ';
55
+ --tertiary-font-family:' . (remove_underscore($value['theme_tertiary_font']['font'] ?? 'arial')) . ';
56
+ --quaternary-font-family:' . (remove_underscore($value['theme_quaternary_font']['font'] ?? 'arial')) . ';
57
+ }
58
+ ';
59
+ }
60
+ $output .= '}
61
+ </style>';
62
+
63
+ return [$output];
64
+ } else {
65
+ return array();
66
+ }
67
+ } // END function core_design_vars
68
+ // @codingStandardsIgnoreEnd
@@ -0,0 +1,39 @@
1
+ <?php
2
+
3
+ /**
4
+ * Sets globals in the context
5
+ *
6
+ * @package Global Theme
7
+ *s
8
+ * @return array<string,mixed>
9
+ */
10
+
11
+ function create_context(): array
12
+ {
13
+ $context = \Timber\Timber::context();
14
+ $context['environment'] = $_ENV['PANTHEON_ENVIRONMENT'] ?? 'local';
15
+ Define('NAV_MENUS', assemble_menus());
16
+
17
+ if (file_exists(__DIR__ . '/inc/markets.php')) {
18
+ require_once get_template_directory() . '/inc/markets.php';
19
+ }
20
+ if (defined('ICL_LANGUAGE_CODE')) {
21
+ $context['market_slug'] = ICL_LANGUAGE_CODE; // @phpstan-ignore-line
22
+ $languages = apply_filters('wpml_active_languages', null);
23
+ $context['languages'] = $languages;
24
+ }
25
+
26
+ if (defined('OPTIONS') && is_array(OPTIONS)) {
27
+ if (array_key_exists('header_pattern', OPTIONS)) {
28
+ $context['header_post'] = Timber::get_post(OPTIONS['header_pattern']);
29
+ }
30
+ if (array_key_exists('footer_pattern', OPTIONS)) {
31
+ $context['footer_post'] = Timber::get_post(OPTIONS['footer_pattern']);
32
+ }
33
+ $context['options'] = OPTIONS;
34
+ $context['options']['nav_menus'] = NAV_MENUS;
35
+ $context['archive_links'] = OPTIONS['archive_links'];
36
+ }
37
+
38
+ return $context;
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.182",
3
+ "version": "2.0.184",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,50 +0,0 @@
1
- <?php
2
-
3
- use Timber\Timber;
4
-
5
- /**
6
- * Rendering of core blocks with Post entity
7
- *
8
- * @param array<string, mixed> $block block.
9
- * @param string $content content.
10
- * @param bool $is_preview If it's a preview.
11
- */
12
- function core_block_render_post_object_v3(array $block, string $content = '', bool $is_preview = false, $post_id = 0, $wp_block = false, $context = false, array $extraContext = null): void
13
- {
14
- $context = \Timber\Timber::context();
15
- $slug = substr($block['name'], 4); // Removes 'acf/' from the name.
16
- $fields = get_fields();
17
- $current_post =
18
- $is_preview ? Timber::get_post(get_post()->ID) : Timber::get_post();
19
- $context['current_post'] = $current_post;
20
- $context['block'] = $block;
21
- $context['fields'] = $fields;
22
- $context['is_preview'] = $is_preview;
23
- $context['environment'] = $_ENV['PANTHEON_ENVIRONMENT'] ?? 'local';
24
- $context['global_settings'] = defined('GLOBAL_SETTINGS') ? GLOBAL_SETTINGS : [];
25
- $context['market_settings'] = defined('MARKET_SETTINGS_OPTIONS') ? MARKET_SETTINGS_OPTIONS : [];
26
- $context['options'] = defined('GLOBAL_SETTINGS') ? GLOBAL_SETTINGS : [];
27
- $context['cta_styles'] = defined('GLOBAL_SETTINGS') ? GLOBAL_SETTINGS : [];
28
- // $context['nav_menus'] = defined('SITE_MENUS') ? SITE_MENUS : [];
29
- if (file_exists(__DIR__ . '/site-menus.php')) {
30
- include_once __DIR__ . '/site-menus.php';
31
- $context['nav_menus'] = assemble_menus();
32
- }
33
-
34
- if ($extraContext) {
35
- foreach ($extraContext as $key => $value) {
36
- $context[$key] = $value;
37
- }
38
- }
39
-
40
- if (defined('ICL_LANGUAGE_CODE')) {
41
- $context['market_slug'] = ICL_LANGUAGE_CODE; // @phpstan-ignore-line
42
- $languages = apply_filters('wpml_active_languages', null);
43
- $context['languages'] = $languages;
44
- }
45
- if (file_exists(__DIR__ . '/../../views/blocks/' . $slug . '.twig')) {
46
- \Timber\Timber::render("blocks/{$slug}.twig", $context);
47
- } else {
48
- echo 'could not find Twig template for ' . $slug . '. This block may no longer be in use.';
49
- }
50
- }