@total_onion/onion-library 1.0.188 → 1.0.190

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.
@@ -0,0 +1,821 @@
1
+ {
2
+ "key": "group_68a4564d89574",
3
+ "title": "Block: Sticky buy CTA v3",
4
+ "fields": [
5
+ {
6
+ "key": "field_68a45650c12c5",
7
+ "label": "Content",
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_68a456b5de3ef",
27
+ "label": "Select product",
28
+ "name": "select_product",
29
+ "aria-label": "",
30
+ "type": "post_object",
31
+ "instructions": "",
32
+ "required": 0,
33
+ "conditional_logic": 0,
34
+ "wrapper": {
35
+ "width": "",
36
+ "class": "",
37
+ "id": ""
38
+ },
39
+ "wpml_cf_preferences": 3,
40
+ "post_type": [
41
+ "product"
42
+ ],
43
+ "post_status": [
44
+ "publish"
45
+ ],
46
+ "taxonomy": "",
47
+ "return_format": "object",
48
+ "multiple": 0,
49
+ "max": "",
50
+ "save_custom": 0,
51
+ "save_post_status": "publish",
52
+ "acfe_add_post": 0,
53
+ "acfe_edit_post": 0,
54
+ "acfe_bidirectional": {
55
+ "acfe_bidirectional_enabled": "0"
56
+ },
57
+ "allow_null": 0,
58
+ "bidirectional": 0,
59
+ "ui": 1,
60
+ "bidirectional_target": [],
61
+ "save_post_type": "",
62
+ "min": ""
63
+ },
64
+ {
65
+ "key": "field_68a456da3fcdf",
66
+ "label": "Cta style",
67
+ "name": "cta_style",
68
+ "aria-label": "",
69
+ "type": "select",
70
+ "instructions": "",
71
+ "required": 0,
72
+ "conditional_logic": [
73
+ [
74
+ {
75
+ "field": "field_68a4570072567",
76
+ "operator": "==",
77
+ "value": "__prctb"
78
+ }
79
+ ],
80
+ [
81
+ {
82
+ "field": "field_68a4570072567",
83
+ "operator": "==",
84
+ "value": "__direct_link"
85
+ }
86
+ ]
87
+ ],
88
+ "wrapper": {
89
+ "width": "",
90
+ "class": "",
91
+ "id": ""
92
+ },
93
+ "wpml_cf_preferences": 3,
94
+ "choices": {
95
+ "1": "White text",
96
+ "2": "test"
97
+ },
98
+ "default_value": false,
99
+ "return_format": "value",
100
+ "multiple": 0,
101
+ "max": "",
102
+ "prepend": "",
103
+ "append": "",
104
+ "allow_null": 0,
105
+ "ui": 0,
106
+ "ajax": 0,
107
+ "placeholder": "",
108
+ "allow_custom": 0,
109
+ "search_placeholder": "",
110
+ "min": ""
111
+ },
112
+ {
113
+ "key": "field_68a456e83fce0",
114
+ "label": "Cta text",
115
+ "name": "cta_text",
116
+ "aria-label": "",
117
+ "type": "text",
118
+ "instructions": "",
119
+ "required": 0,
120
+ "conditional_logic": [
121
+ [
122
+ {
123
+ "field": "field_68a4570072567",
124
+ "operator": "==",
125
+ "value": "__prctb"
126
+ }
127
+ ],
128
+ [
129
+ {
130
+ "field": "field_68a4570072567",
131
+ "operator": "==",
132
+ "value": "__direct_link"
133
+ }
134
+ ]
135
+ ],
136
+ "wrapper": {
137
+ "width": "",
138
+ "class": "",
139
+ "id": ""
140
+ },
141
+ "wpml_cf_preferences": 2,
142
+ "default_value": "",
143
+ "maxlength": "",
144
+ "placeholder": "",
145
+ "prepend": "",
146
+ "append": ""
147
+ },
148
+ {
149
+ "key": "field_68a4570072567",
150
+ "label": "Product CTA Button",
151
+ "name": "buy_now_cta",
152
+ "aria-label": "",
153
+ "type": "select",
154
+ "instructions": "",
155
+ "required": 0,
156
+ "conditional_logic": [
157
+ [
158
+ {
159
+ "field": "field_68a456b5de3ef",
160
+ "operator": "!=empty"
161
+ }
162
+ ]
163
+ ],
164
+ "wrapper": {
165
+ "width": "",
166
+ "class": "",
167
+ "id": ""
168
+ },
169
+ "wpml_cf_preferences": 3,
170
+ "choices": {
171
+ "__none": "None",
172
+ "__shopify": "Shopify",
173
+ "__prctb": "Click to Buy",
174
+ "__direct_link": "Direct Link",
175
+ "__pr_usa_widget": "PR USA Widget v1 (Reservebar)"
176
+ },
177
+ "default_value": "__none",
178
+ "return_format": "value",
179
+ "multiple": 0,
180
+ "max": "",
181
+ "prepend": "",
182
+ "append": "",
183
+ "allow_null": 0,
184
+ "ui": 0,
185
+ "ajax": 0,
186
+ "placeholder": "",
187
+ "allow_custom": 0,
188
+ "search_placeholder": "",
189
+ "min": ""
190
+ },
191
+ {
192
+ "key": "field_68a45802662c2",
193
+ "label": "CTA Button Text",
194
+ "name": "cta_button_text",
195
+ "aria-label": "",
196
+ "type": "select",
197
+ "instructions": "",
198
+ "required": 0,
199
+ "conditional_logic": [
200
+ [
201
+ {
202
+ "field": "field_68a4570072567",
203
+ "operator": "==",
204
+ "value": "__shopify"
205
+ }
206
+ ]
207
+ ],
208
+ "wrapper": {
209
+ "width": "",
210
+ "class": "",
211
+ "id": ""
212
+ },
213
+ "wpml_cf_preferences": 3,
214
+ "choices": {
215
+ "__add_to_cart": "ADD TO CART",
216
+ "__pre-order": "PRE-ORDER"
217
+ },
218
+ "default_value": "__add_to_cart",
219
+ "return_format": "value",
220
+ "multiple": 0,
221
+ "max": "",
222
+ "prepend": "",
223
+ "append": "",
224
+ "allow_null": 0,
225
+ "ui": 0,
226
+ "ajax": 0,
227
+ "placeholder": "",
228
+ "allow_custom": 0,
229
+ "search_placeholder": "",
230
+ "min": ""
231
+ },
232
+ {
233
+ "key": "field_68a4583972ee0",
234
+ "label": "Direct Link URL",
235
+ "name": "direct_link_url",
236
+ "aria-label": "",
237
+ "type": "text",
238
+ "instructions": "",
239
+ "required": 0,
240
+ "conditional_logic": [
241
+ [
242
+ {
243
+ "field": "field_68a4570072567",
244
+ "operator": "==",
245
+ "value": "__direct_link"
246
+ }
247
+ ]
248
+ ],
249
+ "wrapper": {
250
+ "width": "",
251
+ "class": "",
252
+ "id": ""
253
+ },
254
+ "wpml_cf_preferences": 2,
255
+ "default_value": "",
256
+ "maxlength": "",
257
+ "placeholder": "",
258
+ "prepend": "",
259
+ "append": ""
260
+ },
261
+ {
262
+ "key": "field_68a45868e51ed",
263
+ "label": "Open in a new tab?",
264
+ "name": "open_in_a_new_tab",
265
+ "aria-label": "",
266
+ "type": "radio",
267
+ "instructions": "",
268
+ "required": 0,
269
+ "conditional_logic": [
270
+ [
271
+ {
272
+ "field": "field_68a4570072567",
273
+ "operator": "==",
274
+ "value": "__direct_link"
275
+ }
276
+ ]
277
+ ],
278
+ "wrapper": {
279
+ "width": "",
280
+ "class": "",
281
+ "id": ""
282
+ },
283
+ "wpml_cf_preferences": 3,
284
+ "choices": {
285
+ "__true": "Yes",
286
+ "__false": "No"
287
+ },
288
+ "default_value": "__true",
289
+ "return_format": "value",
290
+ "allow_null": 0,
291
+ "other_choice": 0,
292
+ "layout": "horizontal",
293
+ "save_other_choice": 0
294
+ },
295
+ {
296
+ "key": "field_68a4589024899",
297
+ "label": "Price",
298
+ "name": "buy_now_price",
299
+ "aria-label": "",
300
+ "type": "number",
301
+ "instructions": "",
302
+ "required": 0,
303
+ "conditional_logic": [
304
+ [
305
+ {
306
+ "field": "field_68a4570072567",
307
+ "operator": "==",
308
+ "value": "__shopify"
309
+ }
310
+ ]
311
+ ],
312
+ "wrapper": {
313
+ "width": "",
314
+ "class": "",
315
+ "id": ""
316
+ },
317
+ "wpml_cf_preferences": 3,
318
+ "default_value": "",
319
+ "min": "",
320
+ "max": "",
321
+ "placeholder": "",
322
+ "step": "",
323
+ "prepend": "",
324
+ "append": ""
325
+ },
326
+ {
327
+ "key": "field_68a458b3e8ee6",
328
+ "label": "Currency",
329
+ "name": "currency",
330
+ "aria-label": "",
331
+ "type": "text",
332
+ "instructions": "",
333
+ "required": 0,
334
+ "conditional_logic": [
335
+ [
336
+ {
337
+ "field": "field_68a4570072567",
338
+ "operator": "==",
339
+ "value": "__shopify"
340
+ }
341
+ ]
342
+ ],
343
+ "wrapper": {
344
+ "width": "",
345
+ "class": "",
346
+ "id": ""
347
+ },
348
+ "wpml_cf_preferences": 2,
349
+ "default_value": "",
350
+ "maxlength": "",
351
+ "placeholder": "",
352
+ "prepend": "",
353
+ "append": ""
354
+ },
355
+ {
356
+ "key": "field_68a4599aea29a",
357
+ "label": "Click To Buy (PR) Settings",
358
+ "name": "buy_now_ctb",
359
+ "aria-label": "",
360
+ "type": "group",
361
+ "instructions": "",
362
+ "required": 0,
363
+ "conditional_logic": [
364
+ [
365
+ {
366
+ "field": "field_68a4570072567",
367
+ "operator": "==",
368
+ "value": "__prctb"
369
+ }
370
+ ]
371
+ ],
372
+ "wrapper": {
373
+ "width": "",
374
+ "class": "",
375
+ "id": ""
376
+ },
377
+ "wpml_cf_preferences": 3,
378
+ "layout": "block",
379
+ "acfe_seamless_style": 0,
380
+ "acfe_group_modal": 0,
381
+ "sub_fields": [
382
+ {
383
+ "key": "field_68a45b5244cb8",
384
+ "label": "Country",
385
+ "name": "country",
386
+ "aria-label": "",
387
+ "type": "text",
388
+ "instructions": "",
389
+ "required": 0,
390
+ "conditional_logic": 0,
391
+ "wrapper": {
392
+ "width": "",
393
+ "class": "",
394
+ "id": ""
395
+ },
396
+ "wpml_cf_preferences": 2,
397
+ "default_value": "",
398
+ "maxlength": "",
399
+ "placeholder": "",
400
+ "prepend": "",
401
+ "append": ""
402
+ },
403
+ {
404
+ "key": "field_68a45b6644cb9",
405
+ "label": "Language",
406
+ "name": "language",
407
+ "aria-label": "",
408
+ "type": "select",
409
+ "instructions": "",
410
+ "required": 0,
411
+ "conditional_logic": 0,
412
+ "wrapper": {
413
+ "width": "",
414
+ "class": "",
415
+ "id": ""
416
+ },
417
+ "wpml_cf_preferences": 3,
418
+ "choices": {
419
+ "__ar": "Arabic",
420
+ "__hy-AM": "Armenian",
421
+ "__bg-BG": "Bulgarian",
422
+ "__zh-CN": "Chinese \/ Mandarin",
423
+ "__hr-HR": "Croatian",
424
+ "__cs-CZ": "Czech",
425
+ "__da-DK": "Danish",
426
+ "__nl-NL": "Dutch",
427
+ "__de-DE": "German",
428
+ "__el-GR": "Greek",
429
+ "__en-US": "English",
430
+ "__et-EE": "Estonian",
431
+ "__fi-FI": "Finnish",
432
+ "__fr-CA": "French - Canada",
433
+ "__fr-FR": "French - France",
434
+ "__he-IL": "Hebrew",
435
+ "__hu-HU": "Hungarian",
436
+ "__id-ID": "Indonesian",
437
+ "__it-IT": "Italian",
438
+ "__ja-JP": "Japanese",
439
+ "__ko-KR": "Korean",
440
+ "__lt-LT": "Lithuanian",
441
+ "__lv-LV": "Latvian",
442
+ "__nb-NO": "Norwegian",
443
+ "__pl-PL": "Polish",
444
+ "__pt-PT": "Portuguese",
445
+ "__ro-RO": "Romanian",
446
+ "__ru-RU": "Russian",
447
+ "__sk-SK": "Slovakian",
448
+ "__sl-SI": "Slovenian",
449
+ "__sr-RS": "Serbian",
450
+ "__es-ES": "Spanish",
451
+ "__sv-SE": "Swedish",
452
+ "__th-TH": "Thai",
453
+ "__tr-TR": "Turkish",
454
+ "__uk-UA": "Ukranian",
455
+ "__vi-VN": "Vietnamese"
456
+ },
457
+ "default_value": false,
458
+ "return_format": "value",
459
+ "multiple": 0,
460
+ "max": "",
461
+ "prepend": "",
462
+ "append": "",
463
+ "allow_null": 1,
464
+ "ui": 0,
465
+ "ajax": 0,
466
+ "placeholder": "",
467
+ "allow_custom": 0,
468
+ "search_placeholder": "",
469
+ "min": ""
470
+ },
471
+ {
472
+ "key": "field_68a45b8044cba",
473
+ "label": "Custom Query String",
474
+ "name": "custom_query_string",
475
+ "aria-label": "",
476
+ "type": "text",
477
+ "instructions": "",
478
+ "required": 0,
479
+ "conditional_logic": 0,
480
+ "wrapper": {
481
+ "width": "",
482
+ "class": "",
483
+ "id": ""
484
+ },
485
+ "wpml_cf_preferences": 2,
486
+ "default_value": "",
487
+ "maxlength": "",
488
+ "placeholder": "",
489
+ "prepend": "",
490
+ "append": ""
491
+ }
492
+ ],
493
+ "acfe_group_modal_close": 0,
494
+ "acfe_group_modal_button": "",
495
+ "acfe_group_modal_size": "large"
496
+ },
497
+ {
498
+ "key": "field_68a459b5b0926",
499
+ "label": "Shopify Settings",
500
+ "name": "buy_now_shopify",
501
+ "aria-label": "",
502
+ "type": "group",
503
+ "instructions": "",
504
+ "required": 0,
505
+ "conditional_logic": [
506
+ [
507
+ {
508
+ "field": "field_68a4570072567",
509
+ "operator": "==",
510
+ "value": "__shopify"
511
+ }
512
+ ]
513
+ ],
514
+ "wrapper": {
515
+ "width": "",
516
+ "class": "",
517
+ "id": ""
518
+ },
519
+ "wpml_cf_preferences": 3,
520
+ "layout": "block",
521
+ "acfe_seamless_style": 0,
522
+ "acfe_group_modal": 0,
523
+ "sub_fields": [
524
+ {
525
+ "key": "field_68a45a5b6c1e5",
526
+ "label": "Pim",
527
+ "name": "shopify_product_id",
528
+ "aria-label": "",
529
+ "type": "text",
530
+ "instructions": "",
531
+ "required": 0,
532
+ "conditional_logic": [
533
+ [
534
+ {
535
+ "field": "field_68a4570072567",
536
+ "operator": "==",
537
+ "value": "__shopify"
538
+ }
539
+ ]
540
+ ],
541
+ "wrapper": {
542
+ "width": "",
543
+ "class": "",
544
+ "id": ""
545
+ },
546
+ "wpml_cf_preferences": 2,
547
+ "default_value": "",
548
+ "maxlength": "",
549
+ "placeholder": "",
550
+ "prepend": "",
551
+ "append": ""
552
+ },
553
+ {
554
+ "key": "field_68a45a956c1e6",
555
+ "label": "Engraved Bottle?",
556
+ "name": "engraved_bottle",
557
+ "aria-label": "",
558
+ "type": "true_false",
559
+ "instructions": "",
560
+ "required": 0,
561
+ "conditional_logic": 0,
562
+ "wrapper": {
563
+ "width": "",
564
+ "class": "",
565
+ "id": ""
566
+ },
567
+ "wpml_cf_preferences": 3,
568
+ "message": "",
569
+ "default_value": 0,
570
+ "ui": 0,
571
+ "ui_on_text": "",
572
+ "ui_off_text": "",
573
+ "style": ""
574
+ },
575
+ {
576
+ "key": "field_68a45aae6c1e7",
577
+ "label": "",
578
+ "name": "",
579
+ "aria-label": "",
580
+ "type": "group",
581
+ "instructions": "",
582
+ "required": 0,
583
+ "conditional_logic": 0,
584
+ "wrapper": {
585
+ "width": "",
586
+ "class": "",
587
+ "id": ""
588
+ },
589
+ "wpml_cf_preferences": 3,
590
+ "layout": "block",
591
+ "acfe_seamless_style": 0,
592
+ "acfe_group_modal": 0,
593
+ "sub_fields": [
594
+ {
595
+ "key": "field_68a45aba6c1e8",
596
+ "label": "Engraved Shopify Product ID",
597
+ "name": "engraved_pim",
598
+ "aria-label": "",
599
+ "type": "text",
600
+ "instructions": "",
601
+ "required": 0,
602
+ "conditional_logic": 0,
603
+ "wrapper": {
604
+ "width": "",
605
+ "class": "",
606
+ "id": ""
607
+ },
608
+ "wpml_cf_preferences": 2,
609
+ "default_value": "",
610
+ "maxlength": "",
611
+ "placeholder": "",
612
+ "prepend": "",
613
+ "append": ""
614
+ },
615
+ {
616
+ "key": "field_68a45acc6c1e9",
617
+ "label": "Engraved Price",
618
+ "name": "engraved_price",
619
+ "aria-label": "",
620
+ "type": "number",
621
+ "instructions": "",
622
+ "required": 0,
623
+ "conditional_logic": 0,
624
+ "wrapper": {
625
+ "width": "",
626
+ "class": "",
627
+ "id": ""
628
+ },
629
+ "wpml_cf_preferences": 3,
630
+ "default_value": "",
631
+ "min": "",
632
+ "max": "",
633
+ "placeholder": "",
634
+ "step": "",
635
+ "prepend": "",
636
+ "append": ""
637
+ }
638
+ ],
639
+ "acfe_group_modal_close": 0,
640
+ "acfe_group_modal_button": "",
641
+ "acfe_group_modal_size": "large"
642
+ },
643
+ {
644
+ "key": "field_68a45ae16c1ea",
645
+ "label": "Stock Visibility Settings",
646
+ "name": "stock_visibility_settings",
647
+ "aria-label": "",
648
+ "type": "group",
649
+ "instructions": "",
650
+ "required": 0,
651
+ "conditional_logic": 0,
652
+ "wrapper": {
653
+ "width": "",
654
+ "class": "",
655
+ "id": ""
656
+ },
657
+ "wpml_cf_preferences": 3,
658
+ "layout": "block",
659
+ "acfe_seamless_style": 0,
660
+ "acfe_group_modal": 0,
661
+ "sub_fields": [
662
+ {
663
+ "key": "field_68a45aee6c1eb",
664
+ "label": "Visibility Toggle",
665
+ "name": "visibility_toggle",
666
+ "aria-label": "",
667
+ "type": "true_false",
668
+ "instructions": "",
669
+ "required": 0,
670
+ "conditional_logic": 0,
671
+ "wrapper": {
672
+ "width": "",
673
+ "class": "",
674
+ "id": ""
675
+ },
676
+ "wpml_cf_preferences": 3,
677
+ "message": "Show or hide the product on the storefront manually",
678
+ "default_value": 1,
679
+ "ui_on_text": "Visible",
680
+ "ui_off_text": "Hidden",
681
+ "ui": 1,
682
+ "style": ""
683
+ },
684
+ {
685
+ "key": "field_68a45b146c1ec",
686
+ "label": "Always Visible Checkbox",
687
+ "name": "always_visible_checkbox",
688
+ "aria-label": "",
689
+ "type": "true_false",
690
+ "instructions": "",
691
+ "required": 0,
692
+ "conditional_logic": 0,
693
+ "wrapper": {
694
+ "width": "",
695
+ "class": "",
696
+ "id": ""
697
+ },
698
+ "wpml_cf_preferences": 3,
699
+ "message": "If checked, the product stays visible on the front end, even when it’s out of stock.",
700
+ "default_value": 0,
701
+ "style": "",
702
+ "ui_on_text": "",
703
+ "ui_off_text": "",
704
+ "ui": 1
705
+ }
706
+ ],
707
+ "acfe_group_modal_close": 0,
708
+ "acfe_group_modal_button": "",
709
+ "acfe_group_modal_size": "large"
710
+ }
711
+ ],
712
+ "acfe_group_modal_close": 0,
713
+ "acfe_group_modal_button": "",
714
+ "acfe_group_modal_size": "large"
715
+ },
716
+ {
717
+ "key": "field_68a459cb78a29",
718
+ "label": "SKU",
719
+ "name": "sku_pr_usa_widget",
720
+ "aria-label": "",
721
+ "type": "text",
722
+ "instructions": "",
723
+ "required": 0,
724
+ "conditional_logic": [
725
+ [
726
+ {
727
+ "field": "field_68a4570072567",
728
+ "operator": "==",
729
+ "value": "__pr_usa_widget"
730
+ }
731
+ ]
732
+ ],
733
+ "wrapper": {
734
+ "width": "",
735
+ "class": "",
736
+ "id": ""
737
+ },
738
+ "wpml_cf_preferences": 2,
739
+ "default_value": "",
740
+ "maxlength": "",
741
+ "placeholder": "",
742
+ "prepend": "",
743
+ "append": ""
744
+ },
745
+ {
746
+ "key": "field_68a459fb96dcb",
747
+ "label": "Block padding",
748
+ "name": "",
749
+ "aria-label": "",
750
+ "type": "tab",
751
+ "instructions": "",
752
+ "required": 0,
753
+ "conditional_logic": 0,
754
+ "wrapper": {
755
+ "width": "",
756
+ "class": "",
757
+ "id": ""
758
+ },
759
+ "wpml_cf_preferences": 3,
760
+ "placement": "top",
761
+ "endpoint": 0,
762
+ "no_preference": 0,
763
+ "selected": 0
764
+ },
765
+ {
766
+ "key": "field_68a45a0696dcc",
767
+ "label": "Block padding fields",
768
+ "name": "block_padding_fields",
769
+ "aria-label": "",
770
+ "type": "clone",
771
+ "instructions": "",
772
+ "required": 0,
773
+ "conditional_logic": 0,
774
+ "wrapper": {
775
+ "width": "",
776
+ "class": "",
777
+ "id": ""
778
+ },
779
+ "wpml_cf_preferences": 3,
780
+ "clone": [
781
+ "group_638f4148bc10b"
782
+ ],
783
+ "display": "seamless",
784
+ "layout": "block",
785
+ "prefix_label": 0,
786
+ "prefix_name": 0,
787
+ "acfe_seamless_style": 0,
788
+ "acfe_clone_modal": 0,
789
+ "acfe_clone_modal_close": 0,
790
+ "acfe_clone_modal_button": "",
791
+ "acfe_clone_modal_size": "large"
792
+ }
793
+ ],
794
+ "location": [
795
+ [
796
+ {
797
+ "param": "block",
798
+ "operator": "==",
799
+ "value": "acf\/sticky-buy-cta-v3"
800
+ }
801
+ ]
802
+ ],
803
+ "menu_order": 0,
804
+ "position": "normal",
805
+ "style": "default",
806
+ "label_placement": "left",
807
+ "instruction_placement": "label",
808
+ "hide_on_screen": "",
809
+ "active": true,
810
+ "description": "",
811
+ "show_in_rest": 0,
812
+ "acfe_autosync": [
813
+ "json"
814
+ ],
815
+ "acfml_field_group_mode": "localization",
816
+ "acfe_form": 0,
817
+ "acfe_display_title": "",
818
+ "acfe_meta": "",
819
+ "acfe_note": "",
820
+ "modified": 1755601984
821
+ }
@@ -0,0 +1,5 @@
1
+ @use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
2
+ @use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
3
+ @use 'Assets/scss/theme/breakpoints';
4
+ @mixin additionalStyles() {
5
+ }
@@ -0,0 +1,7 @@
1
+ export default function stickybuyctav3Js ( options = {} ) {
2
+ try {
3
+ const { block } = options;
4
+ } catch ( error ) {
5
+ console.error( error );
6
+ }
7
+ }
@@ -0,0 +1,14 @@
1
+ <?php
2
+
3
+ acf_register_block_type(
4
+ array(
5
+ 'name' => 'sticky-buy-cta-v3',
6
+ 'title' => __( 'Sticky buy cta 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,16 @@
1
+ @use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
2
+ @use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
3
+ @use 'Assets/scss/theme/breakpoints';
4
+ @use 'Assets/scss/blocks/sticky-buy-cta-v3/sticky-buy-cta-v3-extra';
5
+ .sticky-buy-cta-v3 {
6
+ pointer-events: all;
7
+ width: 100%;
8
+ position: fixed;
9
+ bottom: core-functions-v3.fluidSize(60);
10
+
11
+ @include core-mixins-v3.device(breakpoints.$tabPortrait) {
12
+ bottom: core-functions-v3.fluidSize(30);
13
+ }
14
+
15
+ @include sticky-buy-cta-v3-extra.additionalStyles();
16
+ }
@@ -0,0 +1,84 @@
1
+
2
+ {% set blockClassName = "sticky-buy-cta-v3" %}
3
+ {% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
4
+ {% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
5
+ {% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
6
+ {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
7
+ {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
8
+
9
+ {% set sectionStyles = styleEntryPoint %}
10
+
11
+ {{previewEntryPoint}}
12
+ <style>
13
+ .{{blockClassName}}.{{block.id}}{
14
+ {{sectionStyles}}
15
+ }
16
+ </style>
17
+ <section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
18
+
19
+ {% if item.cta_style|ru matches '/^\\d+$/' %}
20
+ {% set ctaData = attribute(cta_styles['theme_cta_styles'], item.cta_style|ru - 1) %}
21
+ {% set enableCtaAnimation = ctaData.cta_settings.enable_cta_animation %}
22
+ {% set enableCtaIcon = ctaData.cta_settings.include_cta_icon %}
23
+ {% set ctaAnimationStyle = ctaData.cta_settings.cta_animation_style %}
24
+ {% endif %}
25
+
26
+ {% if fields.buy_now_cta is defined and fields.buy_now_cta|remove_underscore == 'prctb' %}
27
+
28
+ {% if fields.select_product.ID is defined and fields.select_product.ID is not empty %}
29
+ <div class="{{ blockClassName }}__cta-wrapper">
30
+ {% apply shortcodes %}
31
+ [clicktobuy class="{{ blockClassName }}__cta-button cmpl-cta-style-{{fields.cta_style}} cmpl-cta-animation-style-{{enableCtaAnimation ? fields.ctaAnimationStyle : '1'}} cream-hover has-shop shop-ctb" lang="{{ fields.buy_now_ctb.language }}" variant="{{ fields.select_product.ID }}" country="{{ fields.buy_now_ctb.country }}" customQueryString="{{ fields.buy_now_ctb.custom_query_string }}"]
32
+ <span class="cmpl-cta-span">{{ fields.cta_text }}</span>
33
+ [/clicktobuy]
34
+ {% endapply %}
35
+ </div>
36
+ {% endif %}
37
+
38
+ {% elseif fields.buy_now_cta is defined and fields.buy_now_cta|remove_underscore == 'shopify' %}
39
+
40
+ <div class="{{ blockClassName }}__cta-wrapper">
41
+ {% if fields.buy_now_shopify.pim is defined %}
42
+ {% set label = (fields.cta_button_text is defined and fields.cta_button_text|remove_underscore == 'pre-order')
43
+ ? __( 'Pre-Order', 'The Glenlivet Theme' )
44
+ : __( 'Add To Cart', 'The Glenlivet Theme' )
45
+ %}
46
+
47
+ <div class="buy-now-wrapper shopify-integration has-shop shop-shopify has-price" data-pim="{{ fields.buy_now_shopify.pim }}" data-label="{{ label }}"
48
+ {% if fields.buy_now_price is defined and fields.buy_now_price is not empty %}
49
+ data-price="{{ fields.buy_now_price }} {{ fields.currency }}"
50
+ {% endif %}>
51
+ </div>
52
+ {% endif %}
53
+
54
+ {% if fields.buy_now_shopify.engraved_bottle == true and fields.buy_now_shopify.engraved_pim is not empty %}
55
+
56
+ <div class="buy-now-wrapper shopify-integration has-shop shop-shopify has-price engraved" data-pim="{{ fields.buy_now_shopify__engraved_pim }}" data-engraved="{{true}}" data-label="{{ __( 'Buy Engraved', 'The Glenlivet Theme' ) }}"
57
+ {% if fields.buy_now_shopify.engraved_price is defined and fields.buy_now_shopify.engraved_price is not empty %}
58
+ data-price="{{ fields.buy_now_shopify.engraved_price }} {{ fields.currency }}"
59
+ {% endif %}>
60
+ </div>
61
+ {% endif %}
62
+ </div>
63
+
64
+ {% elseif fields.buy_now_cta is defined and fields.buy_now_cta|remove_underscore == 'direct_link' %}
65
+ <div class="{{ blockClassName }}__cta-wrapper">
66
+ <a href={{ fields.direct_link_url }} class="{{ blockClassName }}__direct-link cmpl-cta-style-{{fields.cta_style}} cmpl-cta-animation-style-{{enableCtaAnimation ? fields.ctaAnimationStyle : '1'}}"
67
+ {% if fields.open_in_a_new_tab is defined and fields.open_in_a_new_tab|remove_underscore == 'true' %} target="_blank" {% endif %}>
68
+ <span class="cmpl-cta-span">{{ fields.cta_text }}</span>
69
+ </a>
70
+ </div>
71
+
72
+ {% elseif gtp_language_code() == 'en-us' and fields.buy_now_cta|remove_underscore == 'pr_usa_reservebar' %}
73
+ <div class="{{ blockClassName }}__rb-wrapper">
74
+ <h3 class="{{ blockClassName }}__rb-title">{{ __( 'Enter delivery address to check online availability', 'The Glenlivet Theme' ) }}</h3>
75
+ <div liquid-address-typeahead></div>
76
+ <div liquid-id="GROUPING-{{ postObject.meta.pr_usa_reservebar_grouping_id }}">
77
+ <div class="{{ blockClassName }}__rb-fulfillment" liquid-fulfillment-method-selector></div>
78
+ <div class="{{ blockClassName }}__rb-button" liquid-atc onclick="liquidSDK.cart.toggle();"></div>
79
+ </div>
80
+ </div>
81
+ {% endif %}
82
+
83
+ {{htmlEntryPoint}}
84
+ </section>
@@ -1385,6 +1385,103 @@
1385
1385
  "acfe_layout_col": "auto",
1386
1386
  "acfe_layout_allowed_col": false
1387
1387
  },
1388
+ "layout_68a4ea3abadb7": {
1389
+ "key": "layout_68a4ea3abadb7",
1390
+ "name": "sticky_buy_cta_v3",
1391
+ "label": "Sticky buy cta v3",
1392
+ "display": "block",
1393
+ "sub_fields": [
1394
+ {
1395
+ "key": "field_68a4ea3abadba",
1396
+ "label": "Grid Layout",
1397
+ "name": "",
1398
+ "aria-label": "",
1399
+ "type": "tab",
1400
+ "instructions": "",
1401
+ "required": 0,
1402
+ "conditional_logic": 0,
1403
+ "wrapper": {
1404
+ "width": "",
1405
+ "class": "",
1406
+ "id": ""
1407
+ },
1408
+ "wpml_cf_preferences": 3,
1409
+ "placement": "top",
1410
+ "endpoint": 0,
1411
+ "no_preference": 0,
1412
+ "selected": 0
1413
+ },
1414
+ {
1415
+ "key": "field_68a4ea3abadbb",
1416
+ "label": "grid layout",
1417
+ "name": "grid_layout_copy",
1418
+ "aria-label": "",
1419
+ "type": "clone",
1420
+ "instructions": "",
1421
+ "required": 0,
1422
+ "conditional_logic": 0,
1423
+ "wrapper": {
1424
+ "width": "",
1425
+ "class": "",
1426
+ "id": ""
1427
+ },
1428
+ "wpml_cf_preferences": 3,
1429
+ "clone": [
1430
+ "group_68822860bda9f"
1431
+ ],
1432
+ "display": "seamless",
1433
+ "layout": "block",
1434
+ "prefix_label": 0,
1435
+ "prefix_name": 0,
1436
+ "acfe_seamless_style": 0,
1437
+ "acfe_clone_modal": 0,
1438
+ "acfe_clone_modal_close": 0,
1439
+ "acfe_clone_modal_button": "",
1440
+ "acfe_clone_modal_size": "large"
1441
+ },
1442
+ {
1443
+ "key": "field_68a4ea3abadbc",
1444
+ "label": "sticky buy cta fields",
1445
+ "name": "sticky_buy_cta_fields",
1446
+ "aria-label": "",
1447
+ "type": "clone",
1448
+ "instructions": "",
1449
+ "required": 0,
1450
+ "conditional_logic": 0,
1451
+ "wrapper": {
1452
+ "width": "",
1453
+ "class": "",
1454
+ "id": ""
1455
+ },
1456
+ "wpml_cf_preferences": 3,
1457
+ "clone": [
1458
+ "group_68a4564d89574"
1459
+ ],
1460
+ "display": "seamless",
1461
+ "layout": "block",
1462
+ "prefix_label": 0,
1463
+ "prefix_name": 0,
1464
+ "acfe_seamless_style": 0,
1465
+ "acfe_clone_modal": 0,
1466
+ "acfe_clone_modal_close": 0,
1467
+ "acfe_clone_modal_button": "",
1468
+ "acfe_clone_modal_size": "large"
1469
+ }
1470
+ ],
1471
+ "min": "",
1472
+ "max": "",
1473
+ "acfe_flexible_render_template": false,
1474
+ "acfe_flexible_render_style": false,
1475
+ "acfe_flexible_render_script": false,
1476
+ "acfe_flexible_thumbnail": false,
1477
+ "acfe_flexible_settings": false,
1478
+ "acfe_flexible_settings_size": "medium",
1479
+ "acfe_layout_locations": [],
1480
+ "acfe_flexible_modal_edit_size": false,
1481
+ "acfe_flexible_category": false,
1482
+ "acfe_layout_col": "auto",
1483
+ "acfe_layout_allowed_col": false
1484
+ },
1388
1485
  "layout_68920fded9d71": {
1389
1486
  "key": "layout_68920fded9d71",
1390
1487
  "name": "social_networks_v3",
@@ -1825,6 +1922,59 @@
1825
1922
  "style": "",
1826
1923
  "wpml_cf_preferences": 3
1827
1924
  },
1925
+ {
1926
+ "key": "field_689e00b51905f",
1927
+ "label": "Render Dynamic",
1928
+ "name": "render_dynamic",
1929
+ "aria-label": "",
1930
+ "type": "true_false",
1931
+ "instructions": "",
1932
+ "required": 0,
1933
+ "conditional_logic": 0,
1934
+ "wrapper": {
1935
+ "width": "",
1936
+ "class": "",
1937
+ "id": ""
1938
+ },
1939
+ "message": "",
1940
+ "default_value": 0,
1941
+ "allow_in_bindings": 0,
1942
+ "ui_on_text": "",
1943
+ "ui_off_text": "",
1944
+ "ui": 1,
1945
+ "style": "",
1946
+ "wpml_cf_preferences": 3
1947
+ },
1948
+ {
1949
+ "key": "field_689e0dd38bc8d",
1950
+ "label": "Render Dynamic Suffix",
1951
+ "name": "render_dynamic_suffix",
1952
+ "aria-label": "",
1953
+ "type": "text",
1954
+ "instructions": "",
1955
+ "required": 0,
1956
+ "conditional_logic": [
1957
+ [
1958
+ {
1959
+ "field": "field_689e00b51905f",
1960
+ "operator": "==",
1961
+ "value": "1"
1962
+ }
1963
+ ]
1964
+ ],
1965
+ "wrapper": {
1966
+ "width": "",
1967
+ "class": "",
1968
+ "id": ""
1969
+ },
1970
+ "default_value": "",
1971
+ "maxlength": "",
1972
+ "allow_in_bindings": 0,
1973
+ "placeholder": "",
1974
+ "prepend": "",
1975
+ "append": "",
1976
+ "wpml_cf_preferences": 2
1977
+ },
1828
1978
  {
1829
1979
  "key": "field_689e0dd38bc8d",
1830
1980
  "label": "Render Dynamic Suffix",
@@ -2116,5 +2266,5 @@
2116
2266
  "acfe_display_title": "",
2117
2267
  "acfe_meta": "",
2118
2268
  "acfe_note": "",
2119
- "modified": 1755277147
2269
+ "modified": 1755638700
2120
2270
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.188",
3
+ "version": "1.0.190",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {