@total_onion/onion-library 2.0.85 → 2.0.87
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-form-selection-v3/form-selection-v3.twig +1 -1
- package/components/block-group-container-v3/group-container-v3.twig +3 -2
- package/components/block-group-container-v3/group_6865578ada499.json +98 -1
- package/components/block-market-selector-v3/market-selector-v3.twig +1 -1
- package/components/block-nav-menu-container-v3/nav-menu-container-v3.twig +0 -4
- package/components/block-post-info-v3/post-info-v3.twig +0 -1
- package/components/block-post-type-filter-grid-v3/group_64690c62487bc.json +437 -71
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-title-widget.vue +2 -2
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/ptfg-utils.vue +4 -1
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.js +3 -3
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.scss +144 -5
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.twig +14 -39
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.vue +2 -0
- package/components/block-single-responsive-image-v3/group_6867bcf24c2fc.json +5 -14
- package/components/block-social-networks-v3/social-networks-v3.twig +1 -1
- package/components/block-standard-content-v3/group_68655756737c9.json +2 -3
- package/components/block-standard-content-v3/standard-content-v3.twig +2 -3
- package/components/block-sub-group-container-v3/sub-group-container-v3.twig +1 -1
- package/components/component-animations-v3/group_689f39c37980a.json +10 -2
- package/components/component-content-box-v3/content-box-v3.twig +2 -2
- package/components/component-content-image-v3/content-image-v3.twig +3 -4
- package/components/component-core-head-v3/core-head-v3.twig +12 -13
- package/components/component-e-shop-settings-v3/e-shop-settings-v3.twig +93 -66
- package/components/component-responsive-image-v3/responsive-image-v3.twig +6 -8
- package/components/entrypoint-entry-point-html-v3/entry-point-html-v3.twig +1 -1
- package/components/fields-archive-pages-v3/group_635e777ce46d4.json +150 -0
- package/components/fields-modal-popup-content-v3/modal-popup-content-v3.twig +3 -3
- package/package.json +1 -1
- package/components/block-standard-content-v3/standard-content-v3.js +0 -39
- package/components/block-standard-content-v3/standard-content-v3.scss +0 -9
- package/components/block-sub-group-container-v3/sub-group-container-v3.js +0 -9
- package/components/block-sub-group-container-v3/sub-group-container-v3.scss +0 -27
- package/components/component-athena-body-close-v3/athena-body-close-v3.twig +0 -2
- package/components/component-athena-body-open-v3/athena-body-open-v3.twig +0 -32
- package/components/component-athena-head-v3/athena-head-v3.twig +0 -63
package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-title-widget.vue
CHANGED
|
@@ -14,7 +14,7 @@ const textEditorStylesString = textEditorStyles(props);
|
|
|
14
14
|
<h3 :class="`${element.text_style?.typography_style.slice(2)}`" :style="`${textEditorStylesString}`"
|
|
15
15
|
v-html="post.post_title">
|
|
16
16
|
</h3>
|
|
17
|
-
<img :class="`${blockClassname}__post-title-icon
|
|
18
|
-
|
|
17
|
+
<img :class="`${blockClassname}__post-title-icon`" v-if="element.enable_icon" :src="ctaIcons.cta_load_more_icon"
|
|
18
|
+
alt="title icon">
|
|
19
19
|
</a>
|
|
20
20
|
</template>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
export default function (props) {
|
|
2
|
+
export default function (props) {
|
|
3
|
+
console.log('pointless default function');
|
|
4
|
+
}
|
|
3
5
|
export function gridLayoutElement(props) {
|
|
4
6
|
const element = props.element;
|
|
5
7
|
return `
|
|
@@ -22,6 +24,7 @@ export function gridLayoutElement(props) {
|
|
|
22
24
|
--grid-horizontal-placement-desktop: ${element.grid_layout_element?.grid_horizontal_placement?.slice(2)};
|
|
23
25
|
--grid-vertical-placement-desktop: ${element.grid_layout_element?.grid_vertical_placement?.slice(2)};`;
|
|
24
26
|
}
|
|
27
|
+
|
|
25
28
|
export function textEditorStyles(props) {
|
|
26
29
|
const element = props.element;
|
|
27
30
|
const textColourType = props.element?.text_style?.text_colour?.slice(2);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {createApp} from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import posttypefiltergridv2 from 'Assets/vue/blocks/post-type-filter-grid-v3.vue';
|
|
3
3
|
|
|
4
|
-
export default function
|
|
4
|
+
export default function posttypefiltergridv2Js(options = {}) {
|
|
5
5
|
try {
|
|
6
6
|
const {block} = options;
|
|
7
7
|
const mountElement = block.children[0];
|
|
8
|
-
createApp(
|
|
8
|
+
createApp(posttypefiltergridv2, {...mountElement.dataset}).mount(
|
|
9
9
|
mountElement
|
|
10
10
|
);
|
|
11
11
|
} catch (error) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
4
|
-
@use '
|
|
5
|
-
@use '
|
|
1
|
+
@use 'NodeModules/@total_onion/onion-library/components/fields-core-mixins-v3/core-mixins-v3';
|
|
2
|
+
@use 'NodeModules/@total_onion/onion-library/components/fields-core-functions-v3/core-functions-v3';
|
|
3
|
+
@use 'NodeModules/@total_onion/onion-library/breakpoints';
|
|
4
|
+
// @use 'Assets/scss/modules/library-modules/core-gradient-designer/core-gradient-designer';
|
|
5
|
+
@use 'NodeModules/@total_onion/onion-library/components/component-grid-layout-element-v3/grid-layout-element-v3';
|
|
6
|
+
@use 'NodeModules/@total_onion/onion-library/components/component-element-positioning-v3/element-positioning-v3';
|
|
6
7
|
|
|
7
8
|
.post-type-filter-grid-v3 {
|
|
8
9
|
z-index: 10;
|
|
@@ -545,6 +546,100 @@
|
|
|
545
546
|
);
|
|
546
547
|
}
|
|
547
548
|
}
|
|
549
|
+
&__market-toggle {
|
|
550
|
+
background: var(--black);
|
|
551
|
+
align-items: center;
|
|
552
|
+
display: inline-flex;
|
|
553
|
+
gap: core-functions-v3.fluidSize(10, 'static');
|
|
554
|
+
padding: core-functions-v3.fluidSize(15, 'static')
|
|
555
|
+
core-functions-v3.fluidSize(10, 'static');
|
|
556
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
557
|
+
padding: core-functions-v3.fluidSize(15, 'static');
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
&__switch {
|
|
561
|
+
align-items: center;
|
|
562
|
+
display: inline-flex;
|
|
563
|
+
gap: core-functions-v3.fluidSize(10, 'static');
|
|
564
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
565
|
+
gap: core-functions-v3.fluidSize(20, 'static');
|
|
566
|
+
}
|
|
567
|
+
margin: auto;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
&__switch-toggle {
|
|
571
|
+
display: inline-block;
|
|
572
|
+
position: relative;
|
|
573
|
+
height: core-functions-v3.fluidSize(26, 'static');
|
|
574
|
+
width: core-functions-v3.fluidSize(50, 'static');
|
|
575
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
576
|
+
height: core-functions-v3.fluidSize(34, 'static');
|
|
577
|
+
width: core-functions-v3.fluidSize(68, 'static');
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
input {
|
|
581
|
+
opacity: 0;
|
|
582
|
+
width: 0;
|
|
583
|
+
height: 0;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.switch-slider {
|
|
587
|
+
background-color: var(--palette-default-1);
|
|
588
|
+
border-radius: core-functions-v3.fluidSize(34, 'static');
|
|
589
|
+
bottom: 0;
|
|
590
|
+
cursor: pointer;
|
|
591
|
+
height: core-functions-v3.fluidSize(26, 'static');
|
|
592
|
+
left: 0;
|
|
593
|
+
top: 0;
|
|
594
|
+
position: absolute;
|
|
595
|
+
right: 0;
|
|
596
|
+
transition: 0.4s;
|
|
597
|
+
width: core-functions-v3.fluidSize(50, 'static');
|
|
598
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
599
|
+
height: core-functions-v3.fluidSize(34, 'static');
|
|
600
|
+
width: core-functions-v3.fluidSize(68, 'static');
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
&::before {
|
|
604
|
+
background-color: var(--black);
|
|
605
|
+
border-radius: 50%;
|
|
606
|
+
bottom: core-functions-v3.fluidSize(2, 'static');
|
|
607
|
+
content: '';
|
|
608
|
+
height: core-functions-v3.fluidSize(22, 'static');
|
|
609
|
+
right: core-functions-v3.fluidSize(2, 'static');
|
|
610
|
+
position: absolute;
|
|
611
|
+
transition: 0.4s;
|
|
612
|
+
width: core-functions-v3.fluidSize(22, 'static');
|
|
613
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
614
|
+
height: core-functions-v3.fluidSize(30, 'static');
|
|
615
|
+
width: core-functions-v3.fluidSize(30, 'static');
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
input:checked + .switch-slider::before {
|
|
621
|
+
transform: translateX(core-functions-v3.fluidSize(-24, 'static'));
|
|
622
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
623
|
+
transform: translateX(
|
|
624
|
+
core-functions-v3.fluidSize(-34, 'static')
|
|
625
|
+
);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
input:checked + .switch-slider {
|
|
630
|
+
background-color: var(--palette-default-1);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
&__switch-text {
|
|
635
|
+
color: var(--palette-default-5);
|
|
636
|
+
font-family: var(--tertiary-font-family);
|
|
637
|
+
font-size: core-functions-v3.fluidSize(10, 'static');
|
|
638
|
+
text-transform: uppercase;
|
|
639
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
640
|
+
font-size: core-functions-v3.fluidSize(11, 'static');
|
|
641
|
+
}
|
|
642
|
+
}
|
|
548
643
|
|
|
549
644
|
&__grid {
|
|
550
645
|
grid-area: grid;
|
|
@@ -619,6 +714,24 @@
|
|
|
619
714
|
z-index: 1;
|
|
620
715
|
grid-row: var(--gradient-overlay-row-start, 1) /
|
|
621
716
|
var(--gradient-overlay-row-end, -1);
|
|
717
|
+
|
|
718
|
+
&--gradient-overlay-top,
|
|
719
|
+
&--gradient-overlay-right,
|
|
720
|
+
&--gradient-overlay-bottom,
|
|
721
|
+
&--gradient-overlay-left {
|
|
722
|
+
// @include core-gradient-designer.gradientDesigner();
|
|
723
|
+
position: absolute;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
&--gradient-overlay-vertical {
|
|
727
|
+
// @include core-gradient-designer.gradientDesignerVertical();
|
|
728
|
+
position: absolute;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
&--gradient-overlay-horizontal {
|
|
732
|
+
// @include core-gradient-designer.gradientDesignerHorizontal();
|
|
733
|
+
position: absolute;
|
|
734
|
+
}
|
|
622
735
|
}
|
|
623
736
|
|
|
624
737
|
&__post-image-container-link {
|
|
@@ -654,6 +767,19 @@
|
|
|
654
767
|
&__info-item {
|
|
655
768
|
@include grid-layout-element-v3.gridLayoutElement();
|
|
656
769
|
z-index: 2;
|
|
770
|
+
|
|
771
|
+
&:not(
|
|
772
|
+
.post-type-filter-grid-v3__post-link,
|
|
773
|
+
.post-type-filter-grid-v3__product-buy-now,
|
|
774
|
+
.post-type-filter-grid-v3__post-image-container-link,
|
|
775
|
+
.post-type-filter-grid-v3__post-tags,
|
|
776
|
+
.post-type-filter-grid-v3__shopify
|
|
777
|
+
) {
|
|
778
|
+
* {
|
|
779
|
+
width: 100%;
|
|
780
|
+
// @include core-mixins-v3.textStyle();
|
|
781
|
+
}
|
|
782
|
+
}
|
|
657
783
|
}
|
|
658
784
|
|
|
659
785
|
&__post-tags {
|
|
@@ -731,6 +857,7 @@
|
|
|
731
857
|
}
|
|
732
858
|
&__post-headline {
|
|
733
859
|
width: 100%;
|
|
860
|
+
// @include core-mixins-v3.textStyle();
|
|
734
861
|
}
|
|
735
862
|
&__post-title-icon {
|
|
736
863
|
width: 1em;
|
|
@@ -915,6 +1042,10 @@
|
|
|
915
1042
|
}
|
|
916
1043
|
|
|
917
1044
|
&__show-all {
|
|
1045
|
+
&[data-layout='5'] {
|
|
1046
|
+
text-align: left;
|
|
1047
|
+
justify-content: flex-start;
|
|
1048
|
+
}
|
|
918
1049
|
z-index: 2;
|
|
919
1050
|
position: relative;
|
|
920
1051
|
width: auto;
|
|
@@ -926,6 +1057,14 @@
|
|
|
926
1057
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
927
1058
|
width: initial;
|
|
928
1059
|
}
|
|
1060
|
+
|
|
1061
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
1062
|
+
&[data-layout='2'],
|
|
1063
|
+
&[data-layout='5'] {
|
|
1064
|
+
grid-column: 1;
|
|
1065
|
+
width: max-content;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
929
1068
|
}
|
|
930
1069
|
|
|
931
1070
|
// filter elements transition effect. If more effects are needed, add them in ACF and replace 'fade' in css by new transition name
|
|
@@ -1,38 +1,11 @@
|
|
|
1
|
-
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
1
|
{% set ajaxUrl = fn('admin_url', 'admin-ajax.php') %}
|
|
3
|
-
|
|
4
2
|
{% set blockClassName = 'post-type-filter-grid-v3' %}
|
|
5
3
|
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
|
|
6
4
|
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, environment, is_preview, nav_menus, imagekit_config }, with_context = false) %}
|
|
7
5
|
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
|
|
8
6
|
{% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields: fields, block: block, is_preview: is_preview }, with_context = false) %}
|
|
9
7
|
{% set postType = fields.post_type|ru %}
|
|
10
|
-
{% set postFieldConfig = fields
|
|
11
|
-
{# <pre>
|
|
12
|
-
{{ dump(options) }}
|
|
13
|
-
|
|
14
|
-
</pre> #}
|
|
15
|
-
|
|
16
|
-
{% if fields.enable_featured_post and fields.featured_post is not empty %}
|
|
17
|
-
{% set featuredPost = {} %}
|
|
18
|
-
{% set featuredPostData = get_post(fields.featured_post) %}
|
|
19
|
-
{% set featuredPost = featuredPost|merge({'post' : featuredPostData}) %}
|
|
20
|
-
{% set featuredPostCategory = featuredPostData.terms %}
|
|
21
|
-
{% set featuredPostImage = get_image(featuredPostData.meta.post_image) %}
|
|
22
|
-
{% set featuredPost = featuredPost|merge({'post_image_src' : gt_image_mainsrc(featuredPostImage, {'aspect_ratio' : '16x9'})}) %}
|
|
23
|
-
{% set featuredPost = featuredPost|merge({'post_image_srcset' : gt_image_srcset(featuredPostImage, {'aspect_ratio' : '16x9'})}) %}
|
|
24
|
-
{% set featuredPost = featuredPost|merge({'post_image_src_mobile' : gt_image_mainsrc(featuredPostImage, {'aspect_ratio' : '1x1'})}) %}
|
|
25
|
-
{% set featuredPost = featuredPost|merge({'post_image_srcset_mobile' : gt_image_srcset(featuredPostImage, {'aspect_ratio' : '1x1'})}) %}
|
|
26
|
-
{% set featuredPost = featuredPost|merge({'post_image_width' : featuredPostImage.width}) %}
|
|
27
|
-
{% set featuredPost = featuredPost|merge({'post_image_height' : featuredPostImage.height}) %}
|
|
28
|
-
{% set featuredPost = featuredPost|merge({'post_image_alt' : featuredPostImage.alt}) %}
|
|
29
|
-
{% set featuredPost = featuredPost|merge({'post_category' : featuredPostCategory}) %}
|
|
30
|
-
{% set featuredPost = featuredPost|merge({'post_info_subtitle' : featuredPostData.post_info_subtitle}) %}
|
|
31
|
-
{% set featuredPost = featuredPost|merge({'post_info_description' : featuredPostData.post_info_description}) %}
|
|
32
|
-
{% set featuredPost = featuredPost|merge({'post_link' : featuredPostData.link}) %}
|
|
33
|
-
{% set featuredPost = featuredPost|merge({'featured_post_background_colour' : fields.featured_post_background_colour}) %}
|
|
34
|
-
{% set featuredPost = featuredPost|merge({'featured_post_button_style' : fields.featured_post_button_style}) %}
|
|
35
|
-
{% endif %}
|
|
8
|
+
{% set postFieldConfig = fields.post_data %}
|
|
36
9
|
|
|
37
10
|
{% if fields.limit_posts_to_selected_categories %}
|
|
38
11
|
{% set limitPostsToSelectedCategories = 'true' %}
|
|
@@ -92,6 +65,15 @@
|
|
|
92
65
|
{{ dump('updatedposts', updatedPosts.posts) }}
|
|
93
66
|
</pre> #}
|
|
94
67
|
|
|
68
|
+
{% if fields.enable_micro_grid_gap %}
|
|
69
|
+
{% set microGridGapAmount = '--micro-grid-gap-amount: ' ~ fields.micro_grid_gap_amount ~ ';' %}
|
|
70
|
+
{% set microGridGapClass = blockClassName ~ '--micro-gap' %}
|
|
71
|
+
{% endif %}
|
|
72
|
+
{% if fields.enable_grid_border %}
|
|
73
|
+
{% set gridBorderColour = '--grid-border-colour: ' ~ fields.grid_border_colour ~ ';' %}
|
|
74
|
+
{% set gridBorderWidth = '--grid-border-width: ' ~ fields.grid_border_width ~ ';' %}
|
|
75
|
+
{% endif %}
|
|
76
|
+
|
|
95
77
|
{% set blockBackgroundColour = '--block-background-colour: ' ~ fields.block_background_colour ~ ';' %}
|
|
96
78
|
{% set gridBackgroundColour = '--grid-background-colour: ' ~ fields.grid_background_colour ~ ';' %}
|
|
97
79
|
{% set postImageAspectRatio = '--post-image-aspect-ratio:' ~ fields.post_image_aspect_ratio ~ ';' %}
|
|
@@ -103,20 +85,13 @@
|
|
|
103
85
|
{% set gridGapMultiPortrait = '--gap-multiplier-portrait: ' ~ fields.grid_gap_portrait|default(fields.grid_gap) ~ ';' %}
|
|
104
86
|
{% set gridGapMultiMobile = '--gap-multiplier-mobile: ' ~ fields.grid_gap_mobile|default(fields.grid_gap) ~ ';' %}
|
|
105
87
|
|
|
106
|
-
{% if fields.enable_micro_grid_gap %}
|
|
107
|
-
{% set microGridGapAmount = '--micro-grid-gap-amount: ' ~ fields.micro_grid_gap_amount ~ ';' %}
|
|
108
|
-
{% set microGridGapClass = blockClassName ~ '--micro-gap' %}
|
|
109
|
-
{% endif %}
|
|
110
88
|
{% set postContainerPadding = '--post-container-padding: ' ~ fields.post_container_padding ~ ';' %}
|
|
111
89
|
{% set postContainerPaddingMobile = '--post-container-padding-mobile: ' ~ fields.post_container_padding_mobile ~ ';' %}
|
|
112
90
|
{% set blockContainerVerticalAlign = '--block-container-vertical-align: ' ~ fields.post_container_vertical_align|ru ~ ';' %}
|
|
113
|
-
{% if fields.enable_grid_border %}
|
|
114
|
-
{% set gridBorderColour = '--grid-border-colour: ' ~ fields.grid_border_colour ~ ';' %}
|
|
115
|
-
{% set gridBorderWidth = '--grid-border-width: ' ~ fields.grid_border_width ~ ';' %}
|
|
116
|
-
{% endif %}
|
|
117
91
|
{% set filterCategoryGap = '--filter-category-gap: ' ~ fields.filter_category_gap ~ ';' %}
|
|
118
92
|
{% set filterBackgroundColour = '--filter-background-colour: ' ~ fields.filter_background_colour ~ ';' %}
|
|
119
93
|
{% set filterBackgroundColourMobile = '--filter-background-colour-mobile: ' ~ fields.filter_background_colour_mobile ~ ';' %}
|
|
94
|
+
|
|
120
95
|
{% set sectionStyles = styleEntryPoint ~ blockBackgroundColour ~ filterCategoryGap ~ gridBackgroundColour ~ gridGapMulti ~ gridGapMultiPortrait ~ gridGapMultiMobile ~ microGridGapAmount ~ gridBorderColour ~ gridBorderWidth ~ postContainerPadding ~ postContainerPaddingMobile ~ blockContainerVerticalAlign ~ columnsDesktop ~ columnsTablet ~ columnsMobile ~ backgroundColour ~ filterBackgroundColour ~ filterBackgroundColourMobile ~ postImageAspectRatio ~ postImageFitStyle ~ subFilterOverflowMobile ~ subFilterOverflowTablet ~ subFilterOverflowDesktop ~ subFilterOverflowMobileAlignment ~ subFilterOverflowTabletAlignment ~ subFilterOverflowDesktopAlignment %}
|
|
121
96
|
{% set sectionClasses = microGridGapClass %}
|
|
122
97
|
{% set blockIdPtfgData = 'ptfgData' ~ block.id %}
|
|
@@ -134,9 +109,9 @@ window["{{ blockIdPtfgData }}"] = {{{ posts: updatedPosts.posts,
|
|
|
134
109
|
taxonomies: taxonomies,
|
|
135
110
|
featuredPost: featuredPost,
|
|
136
111
|
mappedIcons: mappedIcons,
|
|
137
|
-
ctaStyles: cta_styles
|
|
138
|
-
cta_icons: options.
|
|
139
|
-
global_images:
|
|
112
|
+
ctaStyles: options.cta_styles|default([]),
|
|
113
|
+
cta_icons: options.cta_icons|default([]),
|
|
114
|
+
global_images: [],
|
|
140
115
|
total: updatedPosts.total,
|
|
141
116
|
ajaxUrl: ajaxUrl,
|
|
142
117
|
currentMarket: fn('apply_filters', 'wpml_current_language', NULL)
|
|
@@ -202,6 +202,7 @@ const allPosts = reactive({ items: ptfgData.posts });
|
|
|
202
202
|
const allProducts = ptfgData.allProducts;
|
|
203
203
|
const postDataConfig = ptfgData.postDataConfig;
|
|
204
204
|
const allCategories = ptfgData.taxonomies;
|
|
205
|
+
const featuredPost = ptfgData.featuredPost;
|
|
205
206
|
const mappedIcons = ptfgData.mappedIcons;
|
|
206
207
|
const ctaStyles = ptfgData.ctaStyles;
|
|
207
208
|
const totalPosts = ptfgData.total;
|
|
@@ -304,6 +305,7 @@ const computedAllPosts = computed(() => {
|
|
|
304
305
|
});
|
|
305
306
|
const computedFilteredPosts = computed(() => {
|
|
306
307
|
let computedPosts = computedAllPosts.value;
|
|
308
|
+
|
|
307
309
|
const posts = filterPosts(computedPosts, activeFilterCategories.value);
|
|
308
310
|
return sortPosts(posts);
|
|
309
311
|
});
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"key": "field_6867bcf259d1a",
|
|
177
|
-
"label": "Block
|
|
177
|
+
"label": "Block",
|
|
178
178
|
"name": "",
|
|
179
179
|
"aria-label": "",
|
|
180
180
|
"type": "accordion",
|
|
@@ -186,13 +186,9 @@
|
|
|
186
186
|
"class": "",
|
|
187
187
|
"id": ""
|
|
188
188
|
},
|
|
189
|
-
"user_roles": [
|
|
190
|
-
"administrator"
|
|
191
|
-
],
|
|
192
189
|
"open": 0,
|
|
193
190
|
"multi_expand": 0,
|
|
194
|
-
"endpoint": 0
|
|
195
|
-
"wpml_cf_preferences": 3
|
|
191
|
+
"endpoint": 0
|
|
196
192
|
},
|
|
197
193
|
{
|
|
198
194
|
"key": "field_6867bcf25a085",
|
|
@@ -208,7 +204,6 @@
|
|
|
208
204
|
"class": "",
|
|
209
205
|
"id": ""
|
|
210
206
|
},
|
|
211
|
-
"wpml_cf_preferences": 3,
|
|
212
207
|
"clone": [
|
|
213
208
|
"group_689f649af2ac4"
|
|
214
209
|
],
|
|
@@ -224,7 +219,7 @@
|
|
|
224
219
|
},
|
|
225
220
|
{
|
|
226
221
|
"key": "field_6867bcf25a500",
|
|
227
|
-
"label": "Block
|
|
222
|
+
"label": "Block end",
|
|
228
223
|
"name": "",
|
|
229
224
|
"aria-label": "",
|
|
230
225
|
"type": "accordion",
|
|
@@ -236,10 +231,6 @@
|
|
|
236
231
|
"class": "",
|
|
237
232
|
"id": ""
|
|
238
233
|
},
|
|
239
|
-
"wpml_cf_preferences": 3,
|
|
240
|
-
"user_roles": [
|
|
241
|
-
"administrator"
|
|
242
|
-
],
|
|
243
234
|
"open": 0,
|
|
244
235
|
"multi_expand": 0,
|
|
245
236
|
"endpoint": 1
|
|
@@ -263,13 +254,13 @@
|
|
|
263
254
|
"active": true,
|
|
264
255
|
"description": "",
|
|
265
256
|
"show_in_rest": 0,
|
|
257
|
+
"display_title": "",
|
|
266
258
|
"acfe_autosync": [
|
|
267
259
|
"json"
|
|
268
260
|
],
|
|
269
|
-
"acfml_field_group_mode": "localization",
|
|
270
261
|
"acfe_form": 0,
|
|
271
262
|
"acfe_display_title": "",
|
|
272
263
|
"acfe_meta": "",
|
|
273
264
|
"acfe_note": "",
|
|
274
|
-
"modified":
|
|
265
|
+
"modified": 1761474179
|
|
275
266
|
}
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
{{ include('components/wysiwyg-editor-v3.twig', { fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
|
|
19
19
|
{% endif %}
|
|
20
20
|
|
|
21
|
-
{{ include('components/social-networks-v3.twig', {fields, block, blockClassName, is_preview,
|
|
21
|
+
{{ include('components/social-networks-v3.twig', {fields, block, blockClassName, is_preview, options}, with_context = false, ignore_missing = true) }}
|
|
22
22
|
{{htmlEntryPoint}}
|
|
23
23
|
</section>
|
|
@@ -293,7 +293,6 @@
|
|
|
293
293
|
"class": "",
|
|
294
294
|
"id": ""
|
|
295
295
|
},
|
|
296
|
-
"wpml_cf_preferences": 3,
|
|
297
296
|
"clone": [
|
|
298
297
|
"group_689f649af2ac4"
|
|
299
298
|
],
|
|
@@ -423,13 +422,13 @@
|
|
|
423
422
|
"active": true,
|
|
424
423
|
"description": "Library version - Do not modify in this project as any changes will be overwritten by future updates.",
|
|
425
424
|
"show_in_rest": 0,
|
|
425
|
+
"display_title": "",
|
|
426
426
|
"acfe_autosync": [
|
|
427
427
|
"json"
|
|
428
428
|
],
|
|
429
|
-
"acfml_field_group_mode": "localization",
|
|
430
429
|
"acfe_form": 0,
|
|
431
430
|
"acfe_display_title": "",
|
|
432
431
|
"acfe_meta": "",
|
|
433
432
|
"acfe_note": "",
|
|
434
|
-
"modified":
|
|
433
|
+
"modified": 1761474994
|
|
435
434
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{% set displaytype = 'grid' %}
|
|
4
4
|
|
|
5
5
|
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields, block }, with_context = false) %}
|
|
6
|
-
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, cta_styles, environment,
|
|
6
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, cta_styles, environment, is_preview, nav_menus, imageSizes }, with_context = false) %}
|
|
7
7
|
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
|
|
8
8
|
{% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
9
9
|
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
{{sectionStyles}}
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
|
-
<section {{ block.anchor ? 'id=' ~ block.anchor : '' }}
|
|
19
|
-
|
|
18
|
+
<section {{ block.anchor ? 'id=' ~ block.anchor : '' }} class="{{blockClassName}} {{fields.section_class}} {{classNameEntryPoint}} {{ block.id }} lazy-fade" {{dataAttributeEntryPoint}} data-assetkey="{{blockClassName}}">
|
|
20
19
|
{{htmlEntryPoint}}
|
|
21
20
|
</section>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
</style>
|
|
50
50
|
<div class="{{blockClassName}}__block-container cmpl-core-group-container-styles__block-container {{block.id}}">
|
|
51
|
-
{{ include('blocks/' ~ (section.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: section, options, block,
|
|
51
|
+
{{ include('blocks/' ~ (section.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: section, options, block, post, is_preview, site, cta_styles, languages, imageSizes, loop: loop.index }, with_context = false, ignore_missing = true) }}
|
|
52
52
|
</div>
|
|
53
53
|
{% endfor %}
|
|
54
54
|
</div>
|
|
@@ -430,7 +430,15 @@
|
|
|
430
430
|
"type": "text",
|
|
431
431
|
"instructions": "Add your timeline function with the appropriate arguments or leave blank for no timeline.\r\nSee https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline",
|
|
432
432
|
"required": 0,
|
|
433
|
-
"conditional_logic":
|
|
433
|
+
"conditional_logic": [
|
|
434
|
+
[
|
|
435
|
+
{
|
|
436
|
+
"field": "field_689f39c38fbd7",
|
|
437
|
+
"operator": "==",
|
|
438
|
+
"value": "1"
|
|
439
|
+
}
|
|
440
|
+
]
|
|
441
|
+
],
|
|
434
442
|
"wrapper": {
|
|
435
443
|
"width": "",
|
|
436
444
|
"class": "",
|
|
@@ -468,5 +476,5 @@
|
|
|
468
476
|
"acfe_display_title": "",
|
|
469
477
|
"acfe_meta": "",
|
|
470
478
|
"acfe_note": "",
|
|
471
|
-
"modified":
|
|
479
|
+
"modified": 1761217399
|
|
472
480
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
</style>
|
|
7
7
|
{% set currentBlockId = block.id %}
|
|
8
|
-
<div class="{{blockClassName}}__inner-container {{block.id}}
|
|
8
|
+
<div class="{{blockClassName}}__inner-container {{block.id}}">
|
|
9
9
|
{% for item in fields.content_sections %}
|
|
10
10
|
{% if block %}
|
|
11
11
|
{% set block = block|merge({'anchor' : ''}) %}
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
{% else %}
|
|
19
19
|
{% set path = 'components' %}
|
|
20
20
|
{% endif %}
|
|
21
|
-
{{ include(path ~ '/' ~ (item.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: item, block, contentImageSizes, blockClassName, options, nav_menus,
|
|
21
|
+
{{ include(path ~ '/' ~ (item.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: item, block, contentImageSizes, blockClassName, options, nav_menus, cta_styles}, with_context = false, ignore_missing = true) }}
|
|
22
22
|
{% endfor %}
|
|
23
23
|
</div>
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
|
-
|
|
3
1
|
{% set enableContentImage = fields.enable_content_image %}
|
|
4
2
|
{% set enablePostImage = fields.enable_post_image %}
|
|
5
3
|
{% set contentImage = get_image(fields.ci_image) %}
|
|
@@ -9,7 +7,7 @@
|
|
|
9
7
|
{% set post = get_post(fields.product) %}
|
|
10
8
|
{% set renderDynamic = fields.render_dynamic|default(0) %}
|
|
11
9
|
{% set suffix = fields.suffix %}
|
|
12
|
-
{% set sizes = contentImageSizes|default('(min-width: 1440px) 50vw, (min-width: 1024px) 50vw, (min-width: 768px) 50vw, 100vw') %}
|
|
10
|
+
{% set sizes = contentImageSizes|default('auto,(min-width: 1440px) 50vw, (min-width: 1024px) 50vw, (min-width: 768px) 50vw, 100vw') %}
|
|
13
11
|
{% set contentImagePosHoriz = '--image-position-horizontal: ' ~ fields.image_position_horizontal|ru ~ ';' %}
|
|
14
12
|
{% set contentImagePosOffsetHoriz = '--image-position-offset-horizontal: ' ~ fields.image_position_offset_horizontal ~ '%;' %}
|
|
15
13
|
{% set contentImagePosVert = '--image-position-vertical: ' ~ fields.image_position_vertical|ru ~ ';' %}
|
|
@@ -71,7 +69,8 @@
|
|
|
71
69
|
{% if fields.enable_content_image_link %}
|
|
72
70
|
<a href="{{fields.content_image_link.url}}" class="{{blockClassName|default('cbl-image')}}__content-image-link">
|
|
73
71
|
{% endif %}
|
|
74
|
-
<img loading="lazy" data-elementname="content-image" data-pattern-dynamic="{{renderDynamic}}" data-pattern-suffix="{{suffix}}" class="{{blockClassName|default('cbl-image')}}__content-image content-image {{block.id}}" src="{{ gt_image_mainsrc(image) }}" srcset="{{ gt_image_srcset(image) }}" width="{{ image.width }}" height="{{ image.height }}" alt="{{ image.alt }}" title="{{ image.title }}"/>
|
|
72
|
+
<img loading="lazy" data-elementname="content-image" data-pattern-dynamic="{{renderDynamic}}" data-pattern-suffix="{{suffix}}" class="{{blockClassName|default('cbl-image')}}__content-image content-image {{block.id}}" src="{{ gt_image_mainsrc(image) }}" srcset="{{ gt_image_srcset(image) }}" width="{{ image.width }}" sizes="{{sizes}}" height="{{ image.height }}" alt="{{ image.alt }}" title="{{ image.title }}"/>
|
|
73
|
+
|
|
75
74
|
{% if fields.enable_content_image_link %}
|
|
76
75
|
</a>
|
|
77
76
|
{% endif %}
|
|
@@ -42,22 +42,21 @@
|
|
|
42
42
|
|
|
43
43
|
<script type="speculationrules">
|
|
44
44
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
"prefetch": [
|
|
46
|
+
{
|
|
47
|
+
"where": { "href_matches": ["/"] },
|
|
48
|
+
"eagerness": "eager"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
52
|
</script>
|
|
53
53
|
{# speculation api end #}
|
|
54
54
|
|
|
55
|
-
|
|
56
55
|
{# core design settings #}
|
|
57
|
-
{{function('core_design_settings_v3').0}}
|
|
58
|
-
{{function('core_site_global_v3').0}}
|
|
59
|
-
{{function('core_font_modifiers_v3').0}}
|
|
56
|
+
{{function('core_design_settings_v3', options).0}}
|
|
57
|
+
{{function('core_site_global_v3', options).0}}
|
|
58
|
+
{{function('core_font_modifiers_v3', options).0}}
|
|
60
59
|
{{function('core_critical_css_v3').0}}
|
|
61
|
-
{{function('core_typography_v3').0}}
|
|
62
|
-
{{function('core_themes_v3').0}}
|
|
60
|
+
{{function('core_typography_v3', options).0}}
|
|
61
|
+
{{function('core_themes_v3', options).0}}
|
|
63
62
|
{# core design settings end #}
|