@total_onion/onion-library 2.0.62 → 2.0.64
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-featured-image-gallery-v3/featured-image-gallery-v3.js +20 -6
- package/components/block-featured-image-gallery-v3/featured-image-gallery-v3.scss +13 -19
- package/components/block-post-info-v3/group_6866429531436.json +372 -2
- package/components/block-post-info-v3/post-info-v3/post-buy-now.twig +115 -0
- package/package.json +1 -1
- package/components/block-post-info-v3/post-info-v3/buy-now.twig +0 -95
|
@@ -7,18 +7,32 @@ export default function featuredImagegalleryJs(options = {}) {
|
|
|
7
7
|
const featuredImage = block.querySelector(
|
|
8
8
|
`.featured-image-gallery-v3__featured-image`
|
|
9
9
|
);
|
|
10
|
-
const
|
|
11
|
-
`.featured-image-gallery-v3__image`
|
|
10
|
+
const thumbnailImages = block.querySelectorAll(
|
|
11
|
+
`.featured-image-gallery-v3__image-wrapper`
|
|
12
12
|
);
|
|
13
|
-
|
|
13
|
+
thumbnailImages.forEach((image) => {
|
|
14
14
|
image.addEventListener('click', function updateSrc() {
|
|
15
|
+
thumbnailImages.forEach((wrapper) => {
|
|
16
|
+
wrapper.classList.remove(
|
|
17
|
+
'featured-image-gallery-v3__image-wrapper--active'
|
|
18
|
+
);
|
|
19
|
+
});
|
|
20
|
+
image.classList.add(
|
|
21
|
+
'featured-image-gallery-v3__image-wrapper--active'
|
|
22
|
+
);
|
|
15
23
|
featuredImageContainer.classList.add('changing-image');
|
|
16
24
|
setTimeout(() => {
|
|
17
|
-
featuredImage.setAttribute(
|
|
18
|
-
|
|
25
|
+
featuredImage.setAttribute(
|
|
26
|
+
'src',
|
|
27
|
+
this.querySelector('img').getAttribute('src')
|
|
28
|
+
);
|
|
29
|
+
featuredImage.setAttribute(
|
|
30
|
+
'alt',
|
|
31
|
+
this.querySelector('img').getAttribute('alt')
|
|
32
|
+
);
|
|
19
33
|
featuredImage.setAttribute(
|
|
20
34
|
'srcset',
|
|
21
|
-
this.getAttribute('srcset')
|
|
35
|
+
this.querySelector('img').getAttribute('srcset')
|
|
22
36
|
);
|
|
23
37
|
featuredImageContainer.classList.remove('changing-image');
|
|
24
38
|
}, 800);
|
|
@@ -7,20 +7,21 @@
|
|
|
7
7
|
grid-template:
|
|
8
8
|
'featured'
|
|
9
9
|
'other' / 1fr;
|
|
10
|
-
|
|
10
|
+
gap: core-functions-v3.fluidSize(10);
|
|
11
11
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
12
12
|
grid-template: 'featured other' / 1fr 1fr;
|
|
13
|
-
grid-gap: core-functions-v3.fluidSize(
|
|
13
|
+
grid-gap: core-functions-v3.fluidSize(20);
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
&__featured-image-container {
|
|
17
16
|
perspective: 1000px;
|
|
17
|
+
grid-area: featured;
|
|
18
|
+
place-self: stretch;
|
|
19
|
+
aspect-ratio: 1;
|
|
18
20
|
&.changing-image
|
|
19
21
|
.featured-image-gallery-v3__featured-image-inner-container {
|
|
20
22
|
transform: rotateY(180deg);
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
|
-
|
|
24
25
|
&__featured-image-inner-container {
|
|
25
26
|
position: relative;
|
|
26
27
|
width: 100%;
|
|
@@ -37,10 +38,8 @@
|
|
|
37
38
|
backface-visibility: hidden;
|
|
38
39
|
}
|
|
39
40
|
&__featured-image-front {
|
|
40
|
-
background-color:
|
|
41
|
-
color: black;
|
|
41
|
+
background-color: var(--bally-blue-dark);
|
|
42
42
|
}
|
|
43
|
-
|
|
44
43
|
&__featured-image-back {
|
|
45
44
|
display: grid;
|
|
46
45
|
place-items: center;
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
padding: core-functions-v3.fluidSize(120);
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
|
-
|
|
55
53
|
&__featured-image {
|
|
56
54
|
grid-area: featured;
|
|
57
55
|
object-fit: cover;
|
|
@@ -61,38 +59,34 @@
|
|
|
61
59
|
height: auto;
|
|
62
60
|
}
|
|
63
61
|
}
|
|
64
|
-
|
|
65
62
|
&__other-images {
|
|
66
63
|
grid-area: other;
|
|
67
64
|
place-self: stretch;
|
|
68
65
|
display: grid;
|
|
66
|
+
aspect-ratio: 1;
|
|
69
67
|
grid-gap: core-functions-v3.fluidSize(8);
|
|
70
68
|
grid-template-columns: repeat(3, 1fr);
|
|
71
|
-
grid-
|
|
69
|
+
grid-template-rows: repeat(3, 1fr);
|
|
72
70
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
73
71
|
grid-gap: core-functions-v3.fluidSize(10);
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
|
-
|
|
77
74
|
&__image-wrapper {
|
|
78
75
|
display: flex;
|
|
79
76
|
overflow: hidden;
|
|
80
77
|
box-shadow: 0px 0px 8px transparent;
|
|
81
78
|
transition: box-shadow 0.2s;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
&:hover,
|
|
81
|
+
&--active {
|
|
82
|
+
box-shadow: 0px 0px 0px core-functions-v3.fluidSize(2) white;
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
|
-
|
|
88
85
|
&__image {
|
|
89
86
|
object-fit: cover;
|
|
90
87
|
aspect-ratio: 1;
|
|
91
88
|
width: 100%;
|
|
92
89
|
height: auto;
|
|
93
|
-
transition: transform 0.5s ease-out
|
|
94
|
-
&:hover {
|
|
95
|
-
filter: contrast(105%);
|
|
96
|
-
}
|
|
90
|
+
transition: transform 0.5s ease-out;
|
|
97
91
|
}
|
|
98
92
|
}
|
|
@@ -375,6 +375,376 @@
|
|
|
375
375
|
"acfe_layout_col": "auto",
|
|
376
376
|
"acfe_layout_allowed_col": false
|
|
377
377
|
},
|
|
378
|
+
"layout_68ef8cfb4cd6b": {
|
|
379
|
+
"key": "layout_68ef8cfb4cd6b",
|
|
380
|
+
"name": "post_buy_now",
|
|
381
|
+
"label": "Post Buy Now",
|
|
382
|
+
"display": "block",
|
|
383
|
+
"sub_fields": [
|
|
384
|
+
{
|
|
385
|
+
"key": "field_68ef8cfb4cd70",
|
|
386
|
+
"label": "Grid layout",
|
|
387
|
+
"name": "",
|
|
388
|
+
"aria-label": "",
|
|
389
|
+
"type": "tab",
|
|
390
|
+
"instructions": "",
|
|
391
|
+
"required": 0,
|
|
392
|
+
"conditional_logic": 0,
|
|
393
|
+
"wrapper": {
|
|
394
|
+
"width": "",
|
|
395
|
+
"class": "",
|
|
396
|
+
"id": ""
|
|
397
|
+
},
|
|
398
|
+
"wpml_cf_preferences": 3,
|
|
399
|
+
"placement": "top",
|
|
400
|
+
"endpoint": 0,
|
|
401
|
+
"no_preference": 0,
|
|
402
|
+
"selected": 0
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"key": "field_68ef8cfb4cd71",
|
|
406
|
+
"label": "Grid layout",
|
|
407
|
+
"name": "grid_layout",
|
|
408
|
+
"aria-label": "",
|
|
409
|
+
"type": "clone",
|
|
410
|
+
"instructions": "",
|
|
411
|
+
"required": 0,
|
|
412
|
+
"conditional_logic": 0,
|
|
413
|
+
"wrapper": {
|
|
414
|
+
"width": "",
|
|
415
|
+
"class": "",
|
|
416
|
+
"id": ""
|
|
417
|
+
},
|
|
418
|
+
"wpml_cf_preferences": 3,
|
|
419
|
+
"clone": [
|
|
420
|
+
"group_68822860bda9f"
|
|
421
|
+
],
|
|
422
|
+
"display": "seamless",
|
|
423
|
+
"layout": "block",
|
|
424
|
+
"prefix_label": 0,
|
|
425
|
+
"prefix_name": 0,
|
|
426
|
+
"acfe_seamless_style": 0,
|
|
427
|
+
"acfe_clone_modal": 0,
|
|
428
|
+
"acfe_clone_modal_close": 0,
|
|
429
|
+
"acfe_clone_modal_button": "",
|
|
430
|
+
"acfe_clone_modal_size": "large"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"key": "field_68ef8cfb4cd72",
|
|
434
|
+
"label": "Style",
|
|
435
|
+
"name": "",
|
|
436
|
+
"aria-label": "",
|
|
437
|
+
"type": "tab",
|
|
438
|
+
"instructions": "",
|
|
439
|
+
"required": 0,
|
|
440
|
+
"conditional_logic": 0,
|
|
441
|
+
"wrapper": {
|
|
442
|
+
"width": "",
|
|
443
|
+
"class": "",
|
|
444
|
+
"id": ""
|
|
445
|
+
},
|
|
446
|
+
"wpml_cf_preferences": 3,
|
|
447
|
+
"placement": "top",
|
|
448
|
+
"endpoint": 0,
|
|
449
|
+
"no_preference": 0,
|
|
450
|
+
"selected": 0
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"key": "field_68ef8cfb4cd73",
|
|
454
|
+
"label": "Cta style select",
|
|
455
|
+
"name": "cta_style_select",
|
|
456
|
+
"aria-label": "",
|
|
457
|
+
"type": "select",
|
|
458
|
+
"instructions": "",
|
|
459
|
+
"required": 0,
|
|
460
|
+
"conditional_logic": 0,
|
|
461
|
+
"wrapper": {
|
|
462
|
+
"width": "",
|
|
463
|
+
"class": "",
|
|
464
|
+
"id": ""
|
|
465
|
+
},
|
|
466
|
+
"wpml_cf_preferences": 3,
|
|
467
|
+
"choices": {
|
|
468
|
+
"__default": "Default",
|
|
469
|
+
"__post-colour": "Post Colour",
|
|
470
|
+
"__post-text-colour-style": "Post text colour style"
|
|
471
|
+
},
|
|
472
|
+
"default_value": false,
|
|
473
|
+
"return_format": "value",
|
|
474
|
+
"multiple": 0,
|
|
475
|
+
"prepend": "",
|
|
476
|
+
"append": "",
|
|
477
|
+
"allow_null": 0,
|
|
478
|
+
"ui": 0,
|
|
479
|
+
"ajax": 0,
|
|
480
|
+
"placeholder": "",
|
|
481
|
+
"allow_custom": 0,
|
|
482
|
+
"search_placeholder": "",
|
|
483
|
+
"min": "",
|
|
484
|
+
"max": ""
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"key": "field_68ef8cfb4cd74",
|
|
488
|
+
"label": "Cta style",
|
|
489
|
+
"name": "cta_style",
|
|
490
|
+
"aria-label": "",
|
|
491
|
+
"type": "select",
|
|
492
|
+
"instructions": "",
|
|
493
|
+
"required": 0,
|
|
494
|
+
"conditional_logic": 0,
|
|
495
|
+
"wrapper": {
|
|
496
|
+
"width": "",
|
|
497
|
+
"class": "",
|
|
498
|
+
"id": ""
|
|
499
|
+
},
|
|
500
|
+
"wpml_cf_preferences": 3,
|
|
501
|
+
"choices": {
|
|
502
|
+
"1": "Bally 1",
|
|
503
|
+
"2": "Bally 2",
|
|
504
|
+
"3": "Bally 3",
|
|
505
|
+
"4": "Bally 4",
|
|
506
|
+
"5": "Bally 5"
|
|
507
|
+
},
|
|
508
|
+
"default_value": 1,
|
|
509
|
+
"return_format": "value",
|
|
510
|
+
"multiple": 0,
|
|
511
|
+
"allow_custom": 0,
|
|
512
|
+
"search_placeholder": "",
|
|
513
|
+
"prepend": "",
|
|
514
|
+
"append": "",
|
|
515
|
+
"allow_null": 0,
|
|
516
|
+
"ui": 1,
|
|
517
|
+
"ajax": 0,
|
|
518
|
+
"placeholder": "",
|
|
519
|
+
"min": "",
|
|
520
|
+
"max": ""
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"key": "field_68ef8cfb4cd75",
|
|
524
|
+
"label": "CTA Alignment",
|
|
525
|
+
"name": "",
|
|
526
|
+
"aria-label": "",
|
|
527
|
+
"type": "accordion",
|
|
528
|
+
"instructions": "",
|
|
529
|
+
"required": 0,
|
|
530
|
+
"conditional_logic": 0,
|
|
531
|
+
"wrapper": {
|
|
532
|
+
"width": "",
|
|
533
|
+
"class": "",
|
|
534
|
+
"id": ""
|
|
535
|
+
},
|
|
536
|
+
"wpml_cf_preferences": 3,
|
|
537
|
+
"open": 0,
|
|
538
|
+
"multi_expand": 0,
|
|
539
|
+
"endpoint": 0
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"key": "field_68ef8cfb4cd76",
|
|
543
|
+
"label": "Cta alignment",
|
|
544
|
+
"name": "cta_alignment",
|
|
545
|
+
"aria-label": "",
|
|
546
|
+
"type": "clone",
|
|
547
|
+
"instructions": "",
|
|
548
|
+
"required": 0,
|
|
549
|
+
"conditional_logic": 0,
|
|
550
|
+
"wrapper": {
|
|
551
|
+
"width": "",
|
|
552
|
+
"class": "",
|
|
553
|
+
"id": ""
|
|
554
|
+
},
|
|
555
|
+
"wpml_cf_preferences": 3,
|
|
556
|
+
"clone": [
|
|
557
|
+
"field_64b24a4e1d0b0"
|
|
558
|
+
],
|
|
559
|
+
"display": "seamless",
|
|
560
|
+
"layout": "block",
|
|
561
|
+
"prefix_label": 0,
|
|
562
|
+
"prefix_name": 0,
|
|
563
|
+
"acfe_seamless_style": 0,
|
|
564
|
+
"acfe_clone_modal": 0,
|
|
565
|
+
"acfe_clone_modal_close": 0,
|
|
566
|
+
"acfe_clone_modal_button": "",
|
|
567
|
+
"acfe_clone_modal_size": "large"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"key": "field_68ef8cfb4cd77",
|
|
571
|
+
"label": "Cta alignment portrait",
|
|
572
|
+
"name": "cta_alignment_portrait",
|
|
573
|
+
"aria-label": "",
|
|
574
|
+
"type": "clone",
|
|
575
|
+
"instructions": "",
|
|
576
|
+
"required": 0,
|
|
577
|
+
"conditional_logic": 0,
|
|
578
|
+
"wrapper": {
|
|
579
|
+
"width": "",
|
|
580
|
+
"class": "",
|
|
581
|
+
"id": ""
|
|
582
|
+
},
|
|
583
|
+
"wpml_cf_preferences": 3,
|
|
584
|
+
"clone": [
|
|
585
|
+
"field_66f2e285a5748"
|
|
586
|
+
],
|
|
587
|
+
"display": "seamless",
|
|
588
|
+
"layout": "block",
|
|
589
|
+
"prefix_label": 0,
|
|
590
|
+
"prefix_name": 0,
|
|
591
|
+
"acfe_seamless_style": 0,
|
|
592
|
+
"acfe_clone_modal": 0,
|
|
593
|
+
"acfe_clone_modal_close": 0,
|
|
594
|
+
"acfe_clone_modal_button": "",
|
|
595
|
+
"acfe_clone_modal_size": "large"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"key": "field_68ef8cfb4cd78",
|
|
599
|
+
"label": "Cta alignment mobile",
|
|
600
|
+
"name": "cta_alignment_mobile",
|
|
601
|
+
"aria-label": "",
|
|
602
|
+
"type": "clone",
|
|
603
|
+
"instructions": "",
|
|
604
|
+
"required": 0,
|
|
605
|
+
"conditional_logic": 0,
|
|
606
|
+
"wrapper": {
|
|
607
|
+
"width": "",
|
|
608
|
+
"class": "",
|
|
609
|
+
"id": ""
|
|
610
|
+
},
|
|
611
|
+
"wpml_cf_preferences": 3,
|
|
612
|
+
"clone": [
|
|
613
|
+
"field_66f2e28ea5749"
|
|
614
|
+
],
|
|
615
|
+
"display": "seamless",
|
|
616
|
+
"layout": "block",
|
|
617
|
+
"prefix_label": 0,
|
|
618
|
+
"prefix_name": 0,
|
|
619
|
+
"acfe_seamless_style": 0,
|
|
620
|
+
"acfe_clone_modal": 0,
|
|
621
|
+
"acfe_clone_modal_close": 0,
|
|
622
|
+
"acfe_clone_modal_button": "",
|
|
623
|
+
"acfe_clone_modal_size": "large"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"key": "field_68ef8cfb4cd79",
|
|
627
|
+
"label": "CTA Alignment",
|
|
628
|
+
"name": "",
|
|
629
|
+
"aria-label": "",
|
|
630
|
+
"type": "accordion",
|
|
631
|
+
"instructions": "",
|
|
632
|
+
"required": 0,
|
|
633
|
+
"conditional_logic": 0,
|
|
634
|
+
"wrapper": {
|
|
635
|
+
"width": "",
|
|
636
|
+
"class": "",
|
|
637
|
+
"id": ""
|
|
638
|
+
},
|
|
639
|
+
"wpml_cf_preferences": 3,
|
|
640
|
+
"open": 0,
|
|
641
|
+
"multi_expand": 0,
|
|
642
|
+
"endpoint": 1
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"key": "field_68ef8cfb4cd7a",
|
|
646
|
+
"label": "Text",
|
|
647
|
+
"name": "",
|
|
648
|
+
"aria-label": "",
|
|
649
|
+
"type": "tab",
|
|
650
|
+
"instructions": "",
|
|
651
|
+
"required": 0,
|
|
652
|
+
"conditional_logic": 0,
|
|
653
|
+
"wrapper": {
|
|
654
|
+
"width": "",
|
|
655
|
+
"class": "",
|
|
656
|
+
"id": ""
|
|
657
|
+
},
|
|
658
|
+
"wpml_cf_preferences": 3,
|
|
659
|
+
"placement": "top",
|
|
660
|
+
"endpoint": 0,
|
|
661
|
+
"no_preference": 0,
|
|
662
|
+
"selected": 0
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"key": "field_68ef8cfb4cd7b",
|
|
666
|
+
"label": "Post link text",
|
|
667
|
+
"name": "post_link_text",
|
|
668
|
+
"aria-label": "",
|
|
669
|
+
"type": "text",
|
|
670
|
+
"instructions": "",
|
|
671
|
+
"required": 0,
|
|
672
|
+
"conditional_logic": 0,
|
|
673
|
+
"wrapper": {
|
|
674
|
+
"width": "",
|
|
675
|
+
"class": "",
|
|
676
|
+
"id": ""
|
|
677
|
+
},
|
|
678
|
+
"wpml_cf_preferences": 2,
|
|
679
|
+
"default_value": "Buy Now",
|
|
680
|
+
"maxlength": "",
|
|
681
|
+
"placeholder": "",
|
|
682
|
+
"prepend": "",
|
|
683
|
+
"append": ""
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"key": "field_68ef8d384cd7c",
|
|
687
|
+
"label": "Buy Now Button",
|
|
688
|
+
"name": "",
|
|
689
|
+
"aria-label": "",
|
|
690
|
+
"type": "tab",
|
|
691
|
+
"instructions": "",
|
|
692
|
+
"required": 0,
|
|
693
|
+
"conditional_logic": 0,
|
|
694
|
+
"wrapper": {
|
|
695
|
+
"width": "",
|
|
696
|
+
"class": "",
|
|
697
|
+
"id": ""
|
|
698
|
+
},
|
|
699
|
+
"wpml_cf_preferences": 0,
|
|
700
|
+
"placement": "top",
|
|
701
|
+
"endpoint": 0,
|
|
702
|
+
"no_preference": 0,
|
|
703
|
+
"selected": 0
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"key": "field_68ef8d434cd7d",
|
|
707
|
+
"label": "Post Buy Now Fields",
|
|
708
|
+
"name": "post_buy_now_fields",
|
|
709
|
+
"aria-label": "",
|
|
710
|
+
"type": "clone",
|
|
711
|
+
"instructions": "",
|
|
712
|
+
"required": 0,
|
|
713
|
+
"conditional_logic": 0,
|
|
714
|
+
"wrapper": {
|
|
715
|
+
"width": "",
|
|
716
|
+
"class": "",
|
|
717
|
+
"id": ""
|
|
718
|
+
},
|
|
719
|
+
"wpml_cf_preferences": 0,
|
|
720
|
+
"clone": [
|
|
721
|
+
"group_658430fa58bf1"
|
|
722
|
+
],
|
|
723
|
+
"display": "seamless",
|
|
724
|
+
"layout": "block",
|
|
725
|
+
"prefix_label": 0,
|
|
726
|
+
"prefix_name": 0,
|
|
727
|
+
"acfe_seamless_style": 0,
|
|
728
|
+
"acfe_clone_modal": 0,
|
|
729
|
+
"acfe_clone_modal_close": 0,
|
|
730
|
+
"acfe_clone_modal_button": "",
|
|
731
|
+
"acfe_clone_modal_size": "large"
|
|
732
|
+
}
|
|
733
|
+
],
|
|
734
|
+
"min": "",
|
|
735
|
+
"max": "",
|
|
736
|
+
"acfe_flexible_render_template": false,
|
|
737
|
+
"acfe_flexible_render_style": false,
|
|
738
|
+
"acfe_flexible_render_script": false,
|
|
739
|
+
"acfe_flexible_thumbnail": false,
|
|
740
|
+
"acfe_flexible_settings": false,
|
|
741
|
+
"acfe_flexible_settings_size": "medium",
|
|
742
|
+
"acfe_layout_locations": [],
|
|
743
|
+
"acfe_flexible_modal_edit_size": false,
|
|
744
|
+
"acfe_flexible_category": false,
|
|
745
|
+
"acfe_layout_col": "auto",
|
|
746
|
+
"acfe_layout_allowed_col": false
|
|
747
|
+
},
|
|
378
748
|
"layout_6892115b57e2c": {
|
|
379
749
|
"key": "layout_6892115b57e2c",
|
|
380
750
|
"name": "post_video",
|
|
@@ -2202,7 +2572,7 @@
|
|
|
2202
2572
|
"class": "",
|
|
2203
2573
|
"id": ""
|
|
2204
2574
|
},
|
|
2205
|
-
"wpml_cf_preferences":
|
|
2575
|
+
"wpml_cf_preferences": 3,
|
|
2206
2576
|
"clone": [
|
|
2207
2577
|
"group_687a4e2334e37"
|
|
2208
2578
|
],
|
|
@@ -2535,5 +2905,5 @@
|
|
|
2535
2905
|
"acfe_display_title": "",
|
|
2536
2906
|
"acfe_meta": "",
|
|
2537
2907
|
"acfe_note": "",
|
|
2538
|
-
"modified":
|
|
2908
|
+
"modified": 1760529768
|
|
2539
2909
|
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
+
{% set postColour = '--post-colour: ' ~ post.post_colour|ru ~ ';' %}
|
|
3
|
+
{% set postTextColourStyle = '--post-text-colour-style: ' ~ post.post_text_colour_style|ru ~ ';' %}
|
|
4
|
+
{% set ctaStyle = field.cta_style|ru %}
|
|
5
|
+
|
|
6
|
+
{% if field.cta_style_select|ru == 'post-colour' %}
|
|
7
|
+
{% set ctaStyle = 'post-colour' %}
|
|
8
|
+
{% endif %}
|
|
9
|
+
|
|
10
|
+
{% if field.cta_style_select|ru == 'post-text-colour-style' %}
|
|
11
|
+
{% set ctaStyle = 'post-text-colour-style' %}
|
|
12
|
+
{% endif %}
|
|
13
|
+
|
|
14
|
+
{% if field.cta_style|ru matches '/^\\d+$/' %}
|
|
15
|
+
{% set ctaData = attribute(cta_styles['theme_cta_styles'], field.cta_style|ru - 1) %}
|
|
16
|
+
{% set enableCtaAnimation = ctaData.cta_settings.enable_cta_animation %}
|
|
17
|
+
{% set enableCtaIcon = ctaData.cta_settings.include_cta_icon %}
|
|
18
|
+
{% endif %}
|
|
19
|
+
|
|
20
|
+
{% set widgetStyles = gridLayoutElement ~ postColour ~ postTextColourStyle %}
|
|
21
|
+
{% set ctaAnimationStyle = ctaData.cta_settings.cta_animation_style %}
|
|
22
|
+
|
|
23
|
+
{% set buyNowOptionSelect = post.meta('buy_now_option_select') %}
|
|
24
|
+
|
|
25
|
+
<style>
|
|
26
|
+
.{{blockClassName}}__post-link.{{block.id}}{
|
|
27
|
+
{{widgetStyles}}
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
30
|
+
<div class="{{blockClassName}}__post-link-container {{blockClassName}}__post-link {{blockClassName}}__info-item {{block.id}}">
|
|
31
|
+
{% if buyNowOptionSelect|ru == 'none' %}
|
|
32
|
+
<style>
|
|
33
|
+
.{{blockClassName}}__product-buy-now.{{block.id}}{
|
|
34
|
+
{{widgetStyles}}
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
37
|
+
<a href="#" class="{{blockClassName}}__product-buy-now {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}} {{enableCtaAnimation ? 'cmpl-cta-animation-style-' ~ ctaAnimationStyle : ''}} {{block.id}}">
|
|
38
|
+
<span class="{{blockClassName}}__cta-span">{{field.post_link_text}}</span>
|
|
39
|
+
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
40
|
+
</a>
|
|
41
|
+
{% endif %}
|
|
42
|
+
{% if buyNowOptionSelect|ru == 'link' %}
|
|
43
|
+
{% set productDirectLink = post.meta('direct_link') %}
|
|
44
|
+
{% set directLinkTarget = '_self' %}
|
|
45
|
+
{% if productDirectLink.target is not empty %}
|
|
46
|
+
{% set directLinkTarget = '_self' %}
|
|
47
|
+
{% endif %}
|
|
48
|
+
<style>
|
|
49
|
+
.{{blockClassName}}__product-buy-now {
|
|
50
|
+
{{widgetStyles}}
|
|
51
|
+
}
|
|
52
|
+
</style>
|
|
53
|
+
<a href="{{productDirectLink.url}}" class="{{blockClassName}}__product-buy-now link {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}} {{enableCtaAnimation ? 'cmpl-cta-animation-style-' ~ ctaAnimationStyle : ''}} {{block.id}}" target="{{directLinkTarget}}">
|
|
54
|
+
<span class="{{blockClassName}}__cta-span">{{field.post_link_text}}</span>
|
|
55
|
+
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
56
|
+
</a>
|
|
57
|
+
{% endif %}
|
|
58
|
+
{% if buyNowOptionSelect|ru == 'ctb' %}
|
|
59
|
+
{% set productCtbPimid = post.meta('click_to_buy_pim_id') %}
|
|
60
|
+
<style>
|
|
61
|
+
.{{blockClassName}}__product-buy-now {
|
|
62
|
+
{{widgetStyles}}
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
65
|
+
<a href="#" class="{{blockClassName}}__product-buy-now ctb {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}} {{enableCtaAnimation ? 'cmpl-cta-animation-style-' ~ ctaAnimationStyle : ''}} {{block.id}}" data-ctbuy data-ctbuy-variant="{{productCtbPimid}}" data-ctbuy-country="" data-ctbuy-lang="" data-ctbuy-default-view="" data-ctbuy-customquerystring="" data-ctbuy-direct-link="" title="{{field.post_link_text}}">
|
|
66
|
+
<span class="{{blockClassName}}__cta-span">{{field.post_link_text}}</span>
|
|
67
|
+
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
68
|
+
</a>
|
|
69
|
+
{% endif %}
|
|
70
|
+
{% if buyNowOptionSelect|ru == 'wtb' %}
|
|
71
|
+
{% set productPimDebrainId = post.meta('debrain_pim_id') %}
|
|
72
|
+
<style>
|
|
73
|
+
.{{blockClassName}}__product-buy-now {
|
|
74
|
+
{{widgetStyles}}
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
77
|
+
<a href="#" class="dloc-link {{blockClassName}}__product-buy-now wtb {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}} {{enableCtaAnimation ? 'cmpl-cta-animation-style-' ~ ctaAnimationStyle : ''}} {{block.id}}" data-action="where-to-buy" data-filter="{{productPimDebrainId}}" title="{{field.post_link_text}}">
|
|
78
|
+
<span class="{{blockClassName}}__cta-span">{{field.post_link_text}}</span>
|
|
79
|
+
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
80
|
+
</a>
|
|
81
|
+
{% endif %}
|
|
82
|
+
{% if buyNowOptionSelect|ru == 'wtb-v2' %}
|
|
83
|
+
{% set productDebrainSkuId = post.meta('debrain_sku_id') %}
|
|
84
|
+
<wtb-button sku={{productDebrainSkuId}}></wtb-button>
|
|
85
|
+
{% endif %}
|
|
86
|
+
{% if buyNowOptionSelect|ru == 'mikmak' %}
|
|
87
|
+
{% set productEANs = post.meta('mikmak_ean_ids') %}
|
|
88
|
+
{% set relatedProducts = post.meta('related_products') %}
|
|
89
|
+
{% set drawer_widget_id = attribute(market_settings['e-shop_settings'], 'mikmak_ctb_drawer_widget_id') %}
|
|
90
|
+
{% set relatedProductEANs = '' %}
|
|
91
|
+
{% for relatedPost in relatedProducts %}
|
|
92
|
+
{% set relatedProduct = get_post(relatedPost) %}
|
|
93
|
+
{% set relatedProductEANs = relatedProductEANs ~ ',' ~ relatedProduct.meta('mikmak_ean_ids')|trim(',') %}
|
|
94
|
+
{% endfor %}
|
|
95
|
+
{% set relatedProductEANs = relatedProductEANs|trim(',') %}
|
|
96
|
+
{# {% if productEANs is not empty and drawer_widget_id is not empty %} #}
|
|
97
|
+
{% if productEANs is not empty %}
|
|
98
|
+
{% set totalProductEANs = productEANs ~ (relatedProductEANs is not empty ? ',' ~ relatedProductEANs : '') %}
|
|
99
|
+
<a href="#" data-mm-wtbid="{{drawer_widget_id}}" data-mm-ids="{{totalProductEANs}}" data-mm-default-id="{{productEANs}}" class="{{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}} {{enableCtaAnimation ? 'cmpl-cta-animation-style-' ~ ctaAnimationStyle : ''}} {{block.id}} mikmak-buy-now">{{field.post_link_text}}</a>
|
|
100
|
+
{% endif %}
|
|
101
|
+
{% endif %}
|
|
102
|
+
{% if buyNowOptionSelect|ru == 'reservebar' %}
|
|
103
|
+
{% set reserveBarLiquidId = post.meta('reserve_bar_liquid_grouping_id') %}
|
|
104
|
+
<style>
|
|
105
|
+
.{{blockClassName}}__product-buy-now {
|
|
106
|
+
{{widgetStyles}}
|
|
107
|
+
}
|
|
108
|
+
</style>
|
|
109
|
+
<a href="#" class="{{blockClassName}}__product-buy-now reservebar {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}} {{enableCtaAnimation ? 'cmpl-cta-animation-style-' ~ ctaAnimationStyle : ''}} {{block.id}} reservebar-popup-trigger" title="{{field.post_link_text}}" reservebar-liquid-id="{{reserveBarLiquidId}}">
|
|
110
|
+
<span class="{{blockClassName}}__cta-span">{{field.post_link_text}}</span>
|
|
111
|
+
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
112
|
+
</a>
|
|
113
|
+
{% endif %}
|
|
114
|
+
|
|
115
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set icon = field.enable_cta_icon %}
|
|
3
|
-
{% set postColour = '--post-colour: ' ~ post.post_colour|ru ~ ';' %}
|
|
4
|
-
{% set postTextColourStyle = '--post-text-colour-style: ' ~ post.post_text_colour_style|ru ~ ';' %}
|
|
5
|
-
{% set ctaStyle = field.cta_style|ru %}
|
|
6
|
-
{% if field.cta_style_select|ru == 'post-colour' %}
|
|
7
|
-
{% set ctaStyle = 'post-colour' %}
|
|
8
|
-
{% endif %}
|
|
9
|
-
{% if field.cta_style_select|ru == 'post-text-colour-style' %}
|
|
10
|
-
{% set ctaStyle = 'post-text-colour-style' %}
|
|
11
|
-
{% endif %}
|
|
12
|
-
{% set widgetStyles = gridLayoutElement ~ postColour ~ postTextColourStyle %}
|
|
13
|
-
{% set buyNowOptionSelect = post.meta('buy_now_option_select') %}
|
|
14
|
-
{% if buyNowOptionSelect|ru == 'none' %}
|
|
15
|
-
<style>
|
|
16
|
-
.{{blockClassName}}__product-buy-now.{{block.id}}{
|
|
17
|
-
{{widgetStyles}}
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
20
|
-
<a href="#" class="{{blockClassName}}__product-buy-now {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}} {{block.id}}">
|
|
21
|
-
<span class="{{blockClassName}}__cta-span">{{field.buy_now_text}}</span>
|
|
22
|
-
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
23
|
-
</a>
|
|
24
|
-
{% endif %}
|
|
25
|
-
{% if buyNowOptionSelect|ru == 'link' %}
|
|
26
|
-
{% set productDirectLink = post.meta('direct_link') %}
|
|
27
|
-
{% set directLinkTarget = '_self' %}
|
|
28
|
-
{% if productDirectLink.target is not empty %}
|
|
29
|
-
{% set directLinkTarget = '_self' %}
|
|
30
|
-
{% endif %}
|
|
31
|
-
<style>
|
|
32
|
-
.{{blockClassName}}__product-buy-now {
|
|
33
|
-
{{widgetStyles}}
|
|
34
|
-
}
|
|
35
|
-
</style>
|
|
36
|
-
<a href="{{productDirectLink.url}}" class="{{blockClassName}}__product-buy-now link {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}}" target="{{directLinkTarget}}">
|
|
37
|
-
<span class="{{blockClassName}}__cta-span">{{field.buy_now_text}}</span>
|
|
38
|
-
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
39
|
-
</a>
|
|
40
|
-
{% endif %}
|
|
41
|
-
{% if buyNowOptionSelect|ru == 'ctb' %}
|
|
42
|
-
{% set productCtbPimid = post.meta('click_to_buy_pim_id') %}
|
|
43
|
-
<style>
|
|
44
|
-
.{{blockClassName}}__product-buy-now {
|
|
45
|
-
{{widgetStyles}}
|
|
46
|
-
}
|
|
47
|
-
</style>
|
|
48
|
-
<a href="#" class="{{blockClassName}}__product-buy-now ctb {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}}" data-ctbuy data-ctbuy-variant="{{productCtbPimid}}" data-ctbuy-country="" data-ctbuy-lang="" data-ctbuy-default-view="" data-ctbuy-customquerystring="" data-ctbuy-direct-link="" title="{{field.buy_now_text}}">
|
|
49
|
-
<span class="{{blockClassName}}__cta-span">{{field.buy_now_text}}</span>
|
|
50
|
-
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
51
|
-
</a>
|
|
52
|
-
{% endif %}
|
|
53
|
-
{% if buyNowOptionSelect|ru == 'wtb' %}
|
|
54
|
-
{% set productPimDebrainId = post.meta('debrain_pim_id') %}
|
|
55
|
-
<style>
|
|
56
|
-
.{{blockClassName}}__product-buy-now {
|
|
57
|
-
{{widgetStyles}}
|
|
58
|
-
}
|
|
59
|
-
</style>
|
|
60
|
-
<a href="#" class="dloc-link {{blockClassName}}__product-buy-now wtb {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}}" data-action="where-to-buy" data-filter="{{productPimDebrainId}}" title="{{field.buy_now_text}}">
|
|
61
|
-
<span class="{{blockClassName}}__cta-span">{{field.buy_now_text}}</span>
|
|
62
|
-
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
63
|
-
</a>
|
|
64
|
-
{% endif %}
|
|
65
|
-
{% if buyNowOptionSelect|ru == 'wtb-v2' %}
|
|
66
|
-
{% set productDebrainSkuId = post.meta('debrain_sku_id') %}
|
|
67
|
-
<wtb-button sku={{productDebrainSkuId}}></wtb-button>
|
|
68
|
-
{% endif %}
|
|
69
|
-
{% if buyNowOptionSelect|ru == 'mikmak' %}
|
|
70
|
-
{% set productEANs = post.meta('mikmak_ean_ids') %}
|
|
71
|
-
{% set relatedProducts = post.meta('related_products') %}
|
|
72
|
-
{% set drawer_widget_id = attribute(market_settings['e-shop_settings'], 'mikmak_ctb_drawer_widget_id') %}
|
|
73
|
-
{% set relatedProductEANs = '' %}
|
|
74
|
-
{% for relatedPost in relatedProducts %}
|
|
75
|
-
{% set relatedProduct = get_post(relatedPost) %}
|
|
76
|
-
{% set relatedProductEANs = relatedProductEANs ~ ',' ~ relatedProduct.meta('mikmak_ean_ids')|trim(',') %}
|
|
77
|
-
{% endfor %}
|
|
78
|
-
{% set relatedProductEANs = relatedProductEANs|trim(',') %}
|
|
79
|
-
{% if productEANs is not empty and drawer_widget_id is not empty %}
|
|
80
|
-
{% set totalProductEANs = productEANs ~ (relatedProductEANs is not empty ? ',' ~ relatedProductEANs : '') %}
|
|
81
|
-
<a href="#" data-mm-wtbid="{{drawer_widget_id}}" data-mm-ids="{{totalProductEANs}}" data-mm-default-id="{{productEANs}}" class="{{blockClassName}}__cta-span mikmak-buy-now">{{cta.cta_buy_now_text}}</a>
|
|
82
|
-
{% endif %}
|
|
83
|
-
{% endif %}
|
|
84
|
-
{% if buyNowOptionSelect|ru == 'reservebar' %}
|
|
85
|
-
{% set reserveBarLiquidId = post.meta('reserve_bar_liquid_grouping_id') %}
|
|
86
|
-
<style>
|
|
87
|
-
.{{blockClassName}}__product-buy-now {
|
|
88
|
-
{{widgetStyles}}
|
|
89
|
-
}
|
|
90
|
-
</style>
|
|
91
|
-
<a href="#" class="{{blockClassName}}__product-buy-now reservebar {{blockClassName}}__info-item {{blockClassName}}__cta cmpl-cta-style-{{ctaStyle}} reservebar-popup-trigger" title="{{field.buy_now_text}}" reservebar-liquid-id="{{reserveBarLiquidId}}">
|
|
92
|
-
<span class="{{blockClassName}}__cta-span">{{field.buy_now_text}}</span>
|
|
93
|
-
{{icon ? '<span class="' ~ blockClassName ~ '__icon-link"><img class="style-svg" src="' ~ options.theme_cta_icons.cta_link_icon ~ '"></span>' : ""}}
|
|
94
|
-
</a>
|
|
95
|
-
{% endif %}
|