@total_onion/onion-library 1.0.37 → 1.0.38
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.
|
@@ -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 %}
|