@total_onion/onion-library 1.0.37 → 1.0.39
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.
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"conditional_logic": [
|
|
81
81
|
[
|
|
82
82
|
{
|
|
83
|
-
"field": "
|
|
83
|
+
"field": "field_686642953df36",
|
|
84
84
|
"operator": "==",
|
|
85
85
|
"value": "__post"
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
88
|
[
|
|
89
89
|
{
|
|
90
|
-
"field": "
|
|
90
|
+
"field": "field_686642953df36",
|
|
91
91
|
"operator": "==empty"
|
|
92
92
|
}
|
|
93
93
|
]
|
|
@@ -1469,8 +1469,8 @@
|
|
|
1469
1469
|
},
|
|
1470
1470
|
"layout_64464831f8209": {
|
|
1471
1471
|
"key": "layout_64464831f8209",
|
|
1472
|
-
"name": "
|
|
1473
|
-
"label": "Spacer
|
|
1472
|
+
"name": "spacer_v3",
|
|
1473
|
+
"label": "Spacer v3",
|
|
1474
1474
|
"display": "block",
|
|
1475
1475
|
"sub_fields": [
|
|
1476
1476
|
{
|
|
@@ -1489,7 +1489,7 @@
|
|
|
1489
1489
|
},
|
|
1490
1490
|
"wpml_cf_preferences": 3,
|
|
1491
1491
|
"clone": [
|
|
1492
|
-
"
|
|
1492
|
+
"group_686b8cb48c708"
|
|
1493
1493
|
],
|
|
1494
1494
|
"display": "seamless",
|
|
1495
1495
|
"layout": "block",
|
|
@@ -1969,5 +1969,5 @@
|
|
|
1969
1969
|
"acfe_display_title": "",
|
|
1970
1970
|
"acfe_meta": "",
|
|
1971
1971
|
"acfe_note": "",
|
|
1972
|
-
"modified":
|
|
1972
|
+
"modified": 1752862571
|
|
1973
1973
|
}
|
|
@@ -6,15 +6,10 @@
|
|
|
6
6
|
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
7
7
|
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
8
8
|
{% set gridGapMults = include('components/grid-gap-mults.twig', { fields: fields, block: block }, with_context = false) %}
|
|
9
|
-
{% set blockBackgroundColour = '--block-background-colour: ' ~ fields.block_background_colour ~ ';' %}
|
|
10
|
-
{% if fields.use_post_background_colour_as_background_colour %}
|
|
11
|
-
{% set blockBackgroundColour = '--block-background-colour: ' ~ product.post_colour ~';' %}
|
|
12
|
-
{% endif %}
|
|
13
9
|
{% set gridLayoutContainer = include('components/grid-layout-container.twig') %}
|
|
14
|
-
{% set sectionStyles = styleEntryPoint ~
|
|
15
|
-
{% set
|
|
16
|
-
{% set
|
|
17
|
-
{% set postTypeFields = fields[postType ~ '_fields'] %}
|
|
10
|
+
{% set sectionStyles = styleEntryPoint ~ gridGapMults ~ gridLayoutContainer %}
|
|
11
|
+
{% set post = get_post(fields.post) %}
|
|
12
|
+
{% set postTypeFields = fields.post_fields %}
|
|
18
13
|
{% set layout = fields.layout|ru %}
|
|
19
14
|
{% set imageSizes = imageSizes %}
|
|
20
15
|
{{previewEntryPoint}}
|
|
@@ -29,8 +24,8 @@
|
|
|
29
24
|
{% set block = block|merge({'anchor' : '','className' : '', 'id': block.id ~ '-' ~ loop.index }) %}
|
|
30
25
|
{% endif %}
|
|
31
26
|
{% if field.acf_fc_layout == 'cta_selection' or field.acf_fc_layout == 'social_media_share' %}
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
{{include('components/' ~ field.acf_fc_layout|replace({'_': '-'}) ~ '.twig', {fields: field, field, post, block, blockClassName, postType, options, cta_styles, imageSizes}, with_context = false, ignore_missing = true)}}
|
|
28
|
+
{% else %}
|
|
34
29
|
{{include('blocks/post-info/' ~ field.acf_fc_layout|replace({'_': '-'}) ~ '.twig', {field, post, block, blockClassName, postType, options, cta_styles, imageSizes}, with_context = false, ignore_missing = true)}}
|
|
35
30
|
{% endif %}
|
|
36
31
|
{% endfor %}
|