@total_onion/onion-library 1.0.129 → 1.0.131
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-post-info-v3/group_6866429531436.json +40 -16
- package/components/block-post-info-v3/post-info-v3/post-image.twig +1 -1
- package/components/block-post-info-v3/post-info-v3/post-info-description.twig +2 -2
- package/components/block-post-info-v3/post-info-v3/post-info-subtitle.twig +2 -2
- package/components/block-post-info-v3/post-info-v3/post-text-alternative-style.twig +12 -6
- package/components/block-post-info-v3/post-info-v3/post-title.twig +5 -3
- package/components/block-post-info-v3/post-info-v3/spacer-v3.twig +2 -3
- package/components/block-post-info-v3/post-info-v3.twig +1 -1
- package/package.json +1 -1
- package/components/block-post-info-v3/post-info-v3/cocktail-glass-type.twig +0 -23
- package/components/block-post-info-v3/post-info-v3/cocktail-ingredients-description.twig +0 -11
- package/components/block-post-info-v3/post-info-v3/cocktail-ingredients-title.twig +0 -11
- package/components/block-post-info-v3/post-info-v3/cocktail-instructions-title.twig +0 -11
- package/components/block-post-info-v3/post-info-v3/cocktail-prep-time.twig +0 -30
- package/components/block-post-info-v3/post-info-v3/cocktail-recipe-ingredients.twig +0 -136
- package/components/block-post-info-v3/post-info-v3/cocktail-recipe-instructions.twig +0 -19
- package/components/block-post-info-v3/post-info-v3/cocktail-skill-level.twig +0 -30
- package/components/block-post-info-v3/post-info-v3/cocktail-taste.twig +0 -30
- package/components/block-post-info-v3/post-info-v3/cocktail-tasting-notes.twig +0 -9
- package/components/block-post-info-v3/post-info-v3/product-abv.twig +0 -11
- package/components/block-post-info-v3/post-info-v3/product-age-statement.twig +0 -12
- package/components/block-post-info-v3/post-info-v3/product-cask-type.twig +0 -10
- package/components/block-post-info-v3/post-info-v3/product-country.twig +0 -10
- package/components/block-post-info-v3/post-info-v3/product-details-brand.twig +0 -9
- package/components/block-post-info-v3/post-info-v3/product-details-description.twig +0 -9
- package/components/block-post-info-v3/post-info-v3/product-details-name.twig +0 -9
- package/components/block-post-info-v3/post-info-v3/product-details-price.twig +0 -9
- package/components/block-post-info-v3/post-info-v3/product-finish.twig +0 -10
- package/components/block-post-info-v3/post-info-v3/product-history.twig +0 -10
- package/components/block-post-info-v3/post-info-v3/product-logo.twig +0 -9
- package/components/block-post-info-v3/post-info-v3/product-name.twig +0 -9
- package/components/block-post-info-v3/post-info-v3/product-nose.twig +0 -10
- package/components/block-post-info-v3/post-info-v3/product-price.twig +0 -9
- package/components/block-post-info-v3/post-info-v3/product-taste.twig +0 -10
- package/components/block-post-info-v3/post-info-v3/product-whisky-type.twig +0 -10
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
},
|
|
236
236
|
"wpml_cf_preferences": 3,
|
|
237
237
|
"clone": [
|
|
238
|
-
"
|
|
238
|
+
"group_68822860bda9f"
|
|
239
239
|
],
|
|
240
240
|
"display": "seamless",
|
|
241
241
|
"layout": "block",
|
|
@@ -1815,11 +1815,11 @@
|
|
|
1815
1815
|
"selected": 0
|
|
1816
1816
|
},
|
|
1817
1817
|
{
|
|
1818
|
-
"key": "
|
|
1819
|
-
"label": "Grid
|
|
1820
|
-
"name": "
|
|
1818
|
+
"key": "field_6891e100bd186",
|
|
1819
|
+
"label": "Grid Layout",
|
|
1820
|
+
"name": "grid_layout",
|
|
1821
1821
|
"aria-label": "",
|
|
1822
|
-
"type": "
|
|
1822
|
+
"type": "group",
|
|
1823
1823
|
"instructions": "",
|
|
1824
1824
|
"required": 0,
|
|
1825
1825
|
"conditional_logic": 0,
|
|
@@ -1829,18 +1829,42 @@
|
|
|
1829
1829
|
"id": ""
|
|
1830
1830
|
},
|
|
1831
1831
|
"wpml_cf_preferences": 3,
|
|
1832
|
-
"clone": [
|
|
1833
|
-
"group_6504a88c17463"
|
|
1834
|
-
],
|
|
1835
|
-
"display": "seamless",
|
|
1836
1832
|
"layout": "block",
|
|
1837
|
-
"prefix_label": 0,
|
|
1838
|
-
"prefix_name": 0,
|
|
1839
1833
|
"acfe_seamless_style": 0,
|
|
1840
|
-
"
|
|
1841
|
-
"
|
|
1842
|
-
|
|
1843
|
-
|
|
1834
|
+
"acfe_group_modal": 0,
|
|
1835
|
+
"sub_fields": [
|
|
1836
|
+
{
|
|
1837
|
+
"key": "field_686644fafc821",
|
|
1838
|
+
"label": "Grid layout container fields",
|
|
1839
|
+
"name": "grid_layout_container_fields",
|
|
1840
|
+
"aria-label": "",
|
|
1841
|
+
"type": "clone",
|
|
1842
|
+
"instructions": "",
|
|
1843
|
+
"required": 0,
|
|
1844
|
+
"conditional_logic": 0,
|
|
1845
|
+
"wrapper": {
|
|
1846
|
+
"width": "",
|
|
1847
|
+
"class": "",
|
|
1848
|
+
"id": ""
|
|
1849
|
+
},
|
|
1850
|
+
"wpml_cf_preferences": 3,
|
|
1851
|
+
"clone": [
|
|
1852
|
+
"group_6882282e65bf2"
|
|
1853
|
+
],
|
|
1854
|
+
"display": "seamless",
|
|
1855
|
+
"layout": "block",
|
|
1856
|
+
"prefix_label": 0,
|
|
1857
|
+
"prefix_name": 0,
|
|
1858
|
+
"acfe_seamless_style": 0,
|
|
1859
|
+
"acfe_clone_modal": 0,
|
|
1860
|
+
"acfe_clone_modal_close": 0,
|
|
1861
|
+
"acfe_clone_modal_button": "",
|
|
1862
|
+
"acfe_clone_modal_size": "large"
|
|
1863
|
+
}
|
|
1864
|
+
],
|
|
1865
|
+
"acfe_group_modal_close": 0,
|
|
1866
|
+
"acfe_group_modal_button": "",
|
|
1867
|
+
"acfe_group_modal_size": "large"
|
|
1844
1868
|
},
|
|
1845
1869
|
{
|
|
1846
1870
|
"key": "field_686642954506e",
|
|
@@ -1942,5 +1966,5 @@
|
|
|
1942
1966
|
"acfe_display_title": "",
|
|
1943
1967
|
"acfe_meta": "",
|
|
1944
1968
|
"acfe_note": "",
|
|
1945
|
-
"modified":
|
|
1969
|
+
"modified": 1754398374
|
|
1946
1970
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
1
|
+
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
2
|
{% set imageSelect = field.image_select|ru %}
|
|
3
3
|
{% if imageSelect == 'image_accent' %}
|
|
4
4
|
{% set positionVars = include('components/element-positioning.twig', {fields : field.post_image_positioning, block : block, blockClassName : imageClassname}, with_context = false) %}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
{{textEditorStyleVars}}
|
|
9
9
|
}
|
|
10
10
|
</style>
|
|
11
|
-
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
12
|
-
<{{elementType|default('p')}} data-pattern-post-info="post_info_description" class="{{blockClassName}}__post-info-description {{
|
|
11
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}} {{blockClassName}}__info-item">
|
|
12
|
+
<{{elementType|default('p')}} data-pattern-post-info="post_info_description" class="{{blockClassName}}__post-info-description {{textEditorElementClasses}} {{block.id}}">
|
|
13
13
|
{{post.post_info_description}}</{{elementType|default('p')}}>
|
|
14
14
|
</div>
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
{{textEditorStyleVars}}
|
|
9
9
|
}
|
|
10
10
|
</style>
|
|
11
|
-
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
12
|
-
<{{elementType|default('p')}} class="{{blockClassName}}__post-info-subtitle {{
|
|
11
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}} {{blockClassName}}__info-item">
|
|
12
|
+
<{{elementType|default('p')}} class="{{blockClassName}}__post-info-subtitle {{field.text_style.typography_style|ru}} {{block.id}}">{{post.post_info_subtitle}}</{{elementType|default('p')}}>
|
|
13
13
|
</div>
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set
|
|
3
|
-
{% set
|
|
1
|
+
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
+
{% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
3
|
+
{% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
4
|
+
{% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
5
|
+
{% set elementType = field.element_type|ru %}
|
|
6
|
+
|
|
4
7
|
<style>
|
|
5
|
-
.{{blockClassName}}__post_text_alternative_style.{{block.id}}
|
|
6
|
-
{{
|
|
8
|
+
.{{blockClassName}}__post_text_alternative_style.{{block.id}}{
|
|
9
|
+
{{textEditorStyleVars}}
|
|
10
|
+
{{gridLayoutElement}}
|
|
7
11
|
}
|
|
8
12
|
</style>
|
|
9
|
-
<
|
|
13
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}} {{blockClassName}}__info-item">
|
|
14
|
+
<{{field.text_style.text_element_type|ru}} data-pattern-post-info="post_text_alternative_style" class="{{blockClassName}}__post_text_alternative_style {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.post_text_alternative_style}}</{{field.text_style.text_element_type|ru}}>
|
|
15
|
+
</div>
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
1
|
+
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
2
|
{% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
3
3
|
{% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
4
4
|
{% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
5
5
|
{% set elementType = field.element_type|ru %}
|
|
6
|
+
|
|
6
7
|
<style>
|
|
7
8
|
.{{blockClassName}}__post-title.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
9
|
{{textEditorStyleVars}}
|
|
10
|
+
{{gridLayoutElement}}
|
|
9
11
|
}
|
|
10
12
|
</style>
|
|
11
|
-
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
12
|
-
<{{elementType|default('p')}} data-pattern-post-info="post_title" class="{{blockClassName}}__post-title {{
|
|
13
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}} {{blockClassName}}__info-item">
|
|
14
|
+
<{{elementType|default('p')}} data-pattern-post-info="post_title" class="{{blockClassName}}__post-title {{textEditorElementClasses}} {{block.id}}">{{post.name}}</{{elementType|default('p')}}>
|
|
13
15
|
</div>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block }, with_context = false) %}
|
|
2
|
-
{% set elementStyles = gridLayoutElement %}
|
|
1
|
+
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
|
|
3
2
|
<style>
|
|
4
3
|
.{{blockClassName}}__spacer-container.{{block.id}}{
|
|
5
|
-
{{
|
|
4
|
+
{{gridLayoutElement}}
|
|
6
5
|
}
|
|
7
6
|
</style>
|
|
8
7
|
<div class="{{blockClassName}}__spacer-container {{blockClassName}}__info-item {{block.id}}">
|
|
@@ -6,7 +6,7 @@
|
|
|
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 gridLayoutContainer = include('components/grid-layout-container.twig') %}
|
|
9
|
+
{% set gridLayoutContainer = include('components/grid-layout-container-v3.twig') %}
|
|
10
10
|
{% set sectionStyles = styleEntryPoint ~ gridGapMults ~ gridLayoutContainer %}
|
|
11
11
|
|
|
12
12
|
{% if fields.post_info_type|ru == 'post-info' %}
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
{% set cocktail_glass_type = post.meta('cocktail_glass_type') %}
|
|
5
|
-
{% set accentImage = '' %}
|
|
6
|
-
{% set globalImageSelectedIndex = field.select_global_image - 1 %}
|
|
7
|
-
{% if globalImageSelectedIndex >= 0 %}
|
|
8
|
-
{% set globalImageSelectedImg = attribute(options.global_images, globalImageSelectedIndex) %}
|
|
9
|
-
{% if globalImageSelectedImg.global_image is not empty %}
|
|
10
|
-
{% set accentImage = get_image(globalImageSelectedImg.global_image) %}
|
|
11
|
-
{% endif %}
|
|
12
|
-
{% endif %}
|
|
13
|
-
<style>
|
|
14
|
-
.{{blockClassName}}__glass-type.{{block.id}}, .{{blockClassName}}__glass-type-element.{{block.id}} {
|
|
15
|
-
{{elementStyles}}
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
<div class="{{blockClassName}}__glass-type {{blockClassName}}__info-item {{block.id}}">
|
|
19
|
-
{% if accentImage is not empty %}
|
|
20
|
-
<img src="{{accentImage}}" class="post-info__global-image__image" alt="{{accentImageAlt}}" loading="lazy">
|
|
21
|
-
{% endif %}
|
|
22
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__glass-type-element {{field.text_style.typography_style|ru}} {{block.id}}">{{cocktail_glass_type}}</{{field.text_style.text_element_type|ru}}>
|
|
23
|
-
</div>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
|
|
5
|
-
{% set cocktail_ingredients_desc = post.meta('cocktail_ingredients_description') %}
|
|
6
|
-
<style>
|
|
7
|
-
.{{blockClassName}}__cocktail-ingredients-description.{{block.id}} {
|
|
8
|
-
{{elementStyles}}
|
|
9
|
-
}
|
|
10
|
-
</style>
|
|
11
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__cocktail-ingredients-description {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{cocktail_ingredients_desc}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
|
|
5
|
-
{% set cocktail_ingredients_title = post.meta('cocktail_ingredients_title') %}
|
|
6
|
-
<style>
|
|
7
|
-
.{{blockClassName}}__cocktail-ingredients-title.{{block.id}} {
|
|
8
|
-
{{elementStyles}}
|
|
9
|
-
}
|
|
10
|
-
</style>
|
|
11
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__cocktail-ingredients-title {{blockClassName}}__info-item {{field.text_style.typography_style|ru}}">{{cocktail_ingredients_title}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
|
|
5
|
-
{% set cocktail_instructions_title = post.meta('cocktail_instructions_title') %}
|
|
6
|
-
<style>
|
|
7
|
-
.{{blockClassName}}__cocktail-instructions-title.{{block.id}} {
|
|
8
|
-
{{elementStyles}}
|
|
9
|
-
}
|
|
10
|
-
</style>
|
|
11
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__cocktail-instructions-title {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{cocktail_instructions_title}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
3
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
4
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
5
|
-
|
|
6
|
-
{% set cocktail_prep_time = post.meta('cocktail_prep_time') %}
|
|
7
|
-
|
|
8
|
-
{% set accentImage = '' %}
|
|
9
|
-
{% set globalImageSelectedIndex = field.select_global_image - 1 %}
|
|
10
|
-
{% if globalImageSelectedIndex >= 0 %}
|
|
11
|
-
{% set globalImageSelectedImg = attribute(options.global_images, globalImageSelectedIndex) %}
|
|
12
|
-
{% if globalImageSelectedImg.global_image is not empty %}
|
|
13
|
-
{% set accentImage = get_image(globalImageSelectedImg.global_image) %}
|
|
14
|
-
{% endif %}
|
|
15
|
-
{% endif %}
|
|
16
|
-
<style>
|
|
17
|
-
.{{blockClassName}}__cocktail-prep-time.{{block.id}} {
|
|
18
|
-
{{elementStyles}}
|
|
19
|
-
}
|
|
20
|
-
</style>
|
|
21
|
-
<div class="{{blockClassName}}__cocktail-prep-time {{blockClassName}}__info-item {{block.id}}">
|
|
22
|
-
{% if accentImage is not empty %}
|
|
23
|
-
<img src="{{accentImage}}" class="post-info__global-image__image" alt="{{accentImageAlt}}" loading="lazy">
|
|
24
|
-
{% endif %}
|
|
25
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{field.text_style.typography_style|ru}}" style="{{elementStyles}}">
|
|
26
|
-
Prep Time
|
|
27
|
-
<span class="{{blockClassName}}__info-item-separator">:</span>
|
|
28
|
-
<span class="{{blockClassName}}__info-item-value">{{cocktail_prep_time}}</span>
|
|
29
|
-
</{{field.text_style.text_element_type|ru}}>
|
|
30
|
-
</div>
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
3
|
-
|
|
4
|
-
{% set cocktailRecipeIngredients = post.meta('cocktail_recipe_ingredients') %}
|
|
5
|
-
{% set servesControlPositionMobile = '--serves-control-position-mobile: ' ~ post.serves_control_position_mobile|ru ~ ';' %}
|
|
6
|
-
{% set servesControlPositionPortrait = '--serves-control-position-portrait: ' ~ post.serves_control_position_portrait|ru ~ ';' %}
|
|
7
|
-
{% set servesControlPositionDesktop = '--serves-control-position-desktop: ' ~ post.serves_control_position_desktop|ru ~ ';' %}
|
|
8
|
-
{% set elementStyles = gridLayoutElement ~ servesControlPositionMobile ~ servesControlPositionPortrait ~ servesControlPositionDesktop %}
|
|
9
|
-
|
|
10
|
-
{% set uniqueMeasurementUnits = [] %}
|
|
11
|
-
{% set allCustomUnits = false %}
|
|
12
|
-
{% set customUnitsCount = 0 %}
|
|
13
|
-
{% set totalIngredientsCount = cocktailRecipeIngredients|length %}
|
|
14
|
-
{% for ingredients in cocktailRecipeIngredients %}
|
|
15
|
-
{% set defaultUnit = ingredients.default_unit|ru %}
|
|
16
|
-
{% if(defaultUnit != "custom") %}
|
|
17
|
-
{% if defaultUnit not in uniqueMeasurementUnits %}
|
|
18
|
-
{% set uniqueMeasurementUnits = uniqueMeasurementUnits|merge([defaultUnit]) %}
|
|
19
|
-
{% endif %}
|
|
20
|
-
{% else %}
|
|
21
|
-
{% if defaultUnit == "custom" %}
|
|
22
|
-
{% set customUnitsCount = ( customUnitsCount | default(0) ) + 1 %}
|
|
23
|
-
{# set uniqueMeasurementUnits = uniqueMeasurementUnits|merge([defaultUnit]) #}
|
|
24
|
-
{% endif %}
|
|
25
|
-
{% endif %}
|
|
26
|
-
|
|
27
|
-
{% for conversionOptions in ingredients.conversion_options %}
|
|
28
|
-
{% set co = conversionOptions|ru %}
|
|
29
|
-
{% if co not in uniqueMeasurementUnits and co != "none" %}
|
|
30
|
-
{% set uniqueMeasurementUnits = uniqueMeasurementUnits|merge([co]) %}
|
|
31
|
-
{% endif %}
|
|
32
|
-
{% endfor %}
|
|
33
|
-
{% endfor %}
|
|
34
|
-
|
|
35
|
-
{% if totalIngredientsCount == customUnitsCount %}
|
|
36
|
-
{% set allCustomUnits = true %}
|
|
37
|
-
{% set allCustomUnitsClass = "all-custom-content" %}
|
|
38
|
-
{% endif %}
|
|
39
|
-
|
|
40
|
-
{% set partsTabOrder = post.meta('parts_tab_order') %}
|
|
41
|
-
{% set mlTabOrder = post.meta('ml_tab_order') %}
|
|
42
|
-
{% set clTabOrder = post.meta('cl_tab_order') %}
|
|
43
|
-
{% set ozTabOrder = post.meta('oz_tab_order') %}
|
|
44
|
-
|
|
45
|
-
{% set defaultIndex = '' %}
|
|
46
|
-
{% if partsTabOrder == 1 %}
|
|
47
|
-
{% set defaultIndex = 'parts' %}
|
|
48
|
-
{% elseif mlTabOrder == 1 %}
|
|
49
|
-
{% set defaultIndex = 'ml' %}
|
|
50
|
-
{% elseif clTabOrder == 1 %}
|
|
51
|
-
{% set defaultIndex = 'cl' %}
|
|
52
|
-
{% elseif ozTabOrder == 1 %}
|
|
53
|
-
{% set defaultIndex = 'oz' %}
|
|
54
|
-
{% endif %}
|
|
55
|
-
<style>
|
|
56
|
-
.{{blockClassName}}__cocktail-recipe-ingredients.{{block.id}} {
|
|
57
|
-
{{elementStyles}}
|
|
58
|
-
}
|
|
59
|
-
</style>
|
|
60
|
-
<div class="{{blockClassName}}__cocktail-recipe-ingredients ingredients-tabs-outer-wrap {{blockClassName}}__info-item {{block.id}}">
|
|
61
|
-
<div class="ingredients-tabs-inner-wrap">
|
|
62
|
-
{% if allCustomUnits == false %}
|
|
63
|
-
{% for ingredients in uniqueMeasurementUnits %}
|
|
64
|
-
<input class="ingredients-radio" id="ingredients-tab{{loop.index}}" type="radio" name="pct" {% if defaultIndex is not empty and defaultIndex == ingredients %} checked="checked" {% elseif loop.index == 1 %} checked="checked" {% endif %}/>
|
|
65
|
-
{% endfor %}
|
|
66
|
-
<nav class="ingredients-tabs">
|
|
67
|
-
<ul class="ingredients-tabs-ul">
|
|
68
|
-
{% for unit in uniqueMeasurementUnits %}
|
|
69
|
-
{% set tabOrder = 1 %}
|
|
70
|
-
{% if partsTabOrder is not empty and unit == 'parts' %}
|
|
71
|
-
{% set tabOrder = partsTabOrder %}
|
|
72
|
-
{% endif %}
|
|
73
|
-
{% if mlTabOrder is not empty and unit == 'ml' %}
|
|
74
|
-
{% set tabOrder = mlTabOrder %}
|
|
75
|
-
{% endif %}
|
|
76
|
-
{% if clTabOrder is not empty and unit == 'cl' %}
|
|
77
|
-
{% set tabOrder = clTabOrder %}
|
|
78
|
-
{% endif %}
|
|
79
|
-
{% if ozTabOrder is not empty and unit == 'oz' %}
|
|
80
|
-
{% set tabOrder = ozTabOrder %}
|
|
81
|
-
{% endif %}
|
|
82
|
-
<li class="ingredients-tab{{loop.index}} ingredients-tab-li" style="order: {{tabOrder}}">
|
|
83
|
-
<label for="ingredients-tab{{loop.index}}" class="ingredients-tabs-lbl">{{unit|upper}}</label>
|
|
84
|
-
</li>
|
|
85
|
-
{% endfor %}
|
|
86
|
-
</ul>
|
|
87
|
-
</nav>
|
|
88
|
-
{% endif %}
|
|
89
|
-
<section class="ingredients-tab-content-wrapper">
|
|
90
|
-
{% if post.enable_serves %}
|
|
91
|
-
<div class="ingredients-serve-control">
|
|
92
|
-
<button class="minus-button serve-button" disabled>-</button>
|
|
93
|
-
<span class="serves-display">1 SERVE</span>
|
|
94
|
-
<button class="plus-button serve-button">+</button>
|
|
95
|
-
</div>
|
|
96
|
-
{% endif %}
|
|
97
|
-
{% for unit in uniqueMeasurementUnits %}
|
|
98
|
-
<div class="ingredients-tab{{loop.index}} content {{allCustomUnitsClass}}">
|
|
99
|
-
{% for ingredients in cocktailRecipeIngredients %}
|
|
100
|
-
{% set conversionInfo = attribute(ingredients, 'conversion_' ~ unit) %}
|
|
101
|
-
{% set conversion_method = attribute(conversionInfo, unit ~ '_conversion_style') %}
|
|
102
|
-
{% set conversion_val = attribute(conversionInfo, unit ~ '_converted_value') %}
|
|
103
|
-
{% set link_type = ingredients.link_type|ru %}
|
|
104
|
-
{% set amount = '' %}
|
|
105
|
-
|
|
106
|
-
{% if ingredients.default_unit|ru == unit or (ingredients.default_unit|ru == 'custom' and ingredients.amount is not null) %}
|
|
107
|
-
{% set amount = ingredients.amount %}
|
|
108
|
-
{% else %}
|
|
109
|
-
{% if(conversion_method|ru == 'auto') %}
|
|
110
|
-
{# code for auto conversion #}
|
|
111
|
-
{% else %}
|
|
112
|
-
{% set amount = conversion_val %}
|
|
113
|
-
{% endif %}
|
|
114
|
-
{% endif %}
|
|
115
|
-
<p class="ingredients-tab-content" data-base-amount="{{amount}}" data-unit="{{unit}}">
|
|
116
|
-
<span class="ingredient-measure-unit">
|
|
117
|
-
{{amount}}
|
|
118
|
-
{{((ingredients.default_unit|ru == 'custom') ? ingredients.custom_unit_info.custom_unit_label : (unit == 'parts' and amount == 1 ? 'part' : unit))}}</span>
|
|
119
|
-
{% if ingredients.link != false and link_type == 'internal' %}
|
|
120
|
-
{% set ingredientLink = get_post(ingredients.link.ID) %}
|
|
121
|
-
<a href="{{ingredientLink.link}}" class="ingredient-entity-link">{{ingredients.name}}</a>
|
|
122
|
-
{% elseif ingredients.external_link != false and link_type == 'external' %}
|
|
123
|
-
<a href="{{ingredients.external_link}}" class="ingredient-entity-link">{{ingredients.name}}</a>
|
|
124
|
-
{% else %}
|
|
125
|
-
{{ingredients.name}}
|
|
126
|
-
{% endif %}
|
|
127
|
-
{% if ingredients.notes != false %}
|
|
128
|
-
{{ingredients.notes}}
|
|
129
|
-
{% endif %}
|
|
130
|
-
</p>
|
|
131
|
-
{% endfor %}
|
|
132
|
-
</div>
|
|
133
|
-
{% endfor %}
|
|
134
|
-
</section>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement %}
|
|
4
|
-
|
|
5
|
-
{% set cocktail_recipe_instructions = post.meta('cocktail_recipe_instructions') %}
|
|
6
|
-
|
|
7
|
-
<div class="{{blockClassName}}__cocktail-recipe-instructions instructions-wrapper {{blockClassName}}__info-item" style="{{elementStyles}}">
|
|
8
|
-
<div class="instructions-inner-wrap" style="--column-start: {{fields.grid_layout.grid_column_start}}; --column-span: {{fields.grid_layout.grid_column_span}}; --row-span: {{fields.grid_layout.grid_row_span}};">
|
|
9
|
-
{% for instructions_grp in cocktail_recipe_instructions %}
|
|
10
|
-
{% for instructions in instructions_grp %}
|
|
11
|
-
<ol class="instructions-list-wrap">
|
|
12
|
-
{% for instruction in instructions %}
|
|
13
|
-
<li class="instruction-list">{{instruction.instruction}}</li>
|
|
14
|
-
{% endfor %}
|
|
15
|
-
</ol>
|
|
16
|
-
{% endfor %}
|
|
17
|
-
{% endfor %}
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
3
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
4
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
5
|
-
|
|
6
|
-
{% set cocktail_skill_level = post.meta('cocktail_skill_level') %}
|
|
7
|
-
|
|
8
|
-
{% set accentImage = '' %}
|
|
9
|
-
{% set globalImageSelectedIndex = field.select_global_image - 1 %}
|
|
10
|
-
{% if globalImageSelectedIndex >= 0 %}
|
|
11
|
-
{% set globalImageSelectedImg = attribute(options.global_images, globalImageSelectedIndex) %}
|
|
12
|
-
{% if globalImageSelectedImg.global_image is not empty %}
|
|
13
|
-
{% set accentImage = get_image(globalImageSelectedImg.global_image) %}
|
|
14
|
-
{% endif %}
|
|
15
|
-
{% endif %}
|
|
16
|
-
<style>
|
|
17
|
-
.{{blockClassName}}__cocktail-skill-level.{{block.id}} {
|
|
18
|
-
{{elementStyles}}
|
|
19
|
-
}
|
|
20
|
-
</style>
|
|
21
|
-
<div class="{{blockClassName}}__cocktail-skill-level {{blockClassName}}__info-item {{block.id}}">
|
|
22
|
-
{% if accentImage is not empty %}
|
|
23
|
-
<img src="{{accentImage}}" class="post-info__global-image__image" alt="{{accentImageAlt}}" loading="lazy">
|
|
24
|
-
{% endif %}
|
|
25
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{field.text_style.typography_style|ru}}" style="{{elementStyles}}">
|
|
26
|
-
Skill Level
|
|
27
|
-
<span class="{{blockClassName}}__info-item-separator">:</span>
|
|
28
|
-
<span class="{{blockClassName}}__info-item-value">{{cocktail_skill_level}}</span>
|
|
29
|
-
</{{field.text_style.text_element_type|ru}}>
|
|
30
|
-
</div>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
3
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
4
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
5
|
-
|
|
6
|
-
{% set cocktail_taste = post.meta('cocktail_taste') %}
|
|
7
|
-
|
|
8
|
-
{% set accentImage = '' %}
|
|
9
|
-
{% set globalImageSelectedIndex = field.select_global_image - 1 %}
|
|
10
|
-
{% if globalImageSelectedIndex >= 0 %}
|
|
11
|
-
{% set globalImageSelectedImg = attribute(options.global_images, globalImageSelectedIndex) %}
|
|
12
|
-
{% if globalImageSelectedImg.global_image is not empty %}
|
|
13
|
-
{% set accentImage = get_image(globalImageSelectedImg.global_image) %}
|
|
14
|
-
{% endif %}
|
|
15
|
-
{% endif %}
|
|
16
|
-
<style>
|
|
17
|
-
.{{blockClassName}}__cocktail-taste.{{block.id}} {
|
|
18
|
-
{{elementStyles}}
|
|
19
|
-
}
|
|
20
|
-
</style>
|
|
21
|
-
<div class="{{blockClassName}}__cocktail-taste {{blockClassName}}__info-item {{block.id}}">
|
|
22
|
-
{% if accentImage is not empty %}
|
|
23
|
-
<img src="{{accentImage}}" class="post-info__global-image__image" alt="{{accentImageAlt}}" loading="lazy">
|
|
24
|
-
{% endif %}
|
|
25
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{field.text_style.typography_style|ru}}" style="{{elementStyles}}">
|
|
26
|
-
Taste
|
|
27
|
-
<span class="{{blockClassName}}__info-item-separator">:</span>
|
|
28
|
-
<span class="{{blockClassName}}__info-item-value">{{cocktail_taste}}</span>
|
|
29
|
-
</{{field.text_style.text_element_type|ru}}>
|
|
30
|
-
</div>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__cocktail-tasting-notes.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__cocktail-tasting-notes {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.cocktail_tasting_notes}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-abv.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__product-abv {{field.text_style.typography_style|ru}} {{block.id}}">
|
|
10
|
-
{{field.enable_label ? '<span class="' ~ blockClassName ~ '__product-abv-label">' ~ field.label ~ ' </span>'}}<span data-pattern-post-info="product_abv">{{post.product_abv}}</span>
|
|
11
|
-
</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__age-statement.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
{% if field.enable_age_statement_label|ru %}
|
|
10
|
-
<div class="{{blockClassName}}__age-statement-label">{{field.age_statement_label}}</div>
|
|
11
|
-
{% endif %}
|
|
12
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__age-statement {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.product_age_statement}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-cask-type.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__product-cask-type {{field.text_style.typography_style|ru}}">
|
|
10
|
-
{{field.enable_label ? '<span class="' ~ blockClassName ~ '__product-cask-type-label">' ~ field.label ~ ' </span>'}}<span data-pattern-post-info="product_cask_type">{{post.product_cask_type}}</span></{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-country.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__product-country {{field.text_style.typography_style|ru}} {{block.id}}">
|
|
10
|
-
{{field.enable_label ? '<span class="' ~ blockClassName ~ '__product-country-label">' ~ field.label ~ ' </span>'}}{{post.product_country}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-details-brand.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} data-pattern-post-info="product_details.brand" class="{{blockClassName}}__product-details-brand {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.product_details.brand}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-details-description.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} data-pattern-post-info="product_details.description" class="{{blockClassName}}__product-details-description {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.product_details.description}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-details-name.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} data-pattern-post-info="product_details.productName" class="{{blockClassName}}__product-details-name {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.product_details.productName}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-details-price.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} data-pattern-post-info="product_details.price" class="{{blockClassName}}__product-details-price {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.product_details.price}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-finish.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__product-finish {{field.text_style.typography_style|ru}} {{block.id}}">
|
|
10
|
-
{{field.enable_label ? '<span class="' ~ blockClassName ~ '__product-finish-label">' ~ field.label ~ ' </span>'}}<span data-pattern-post-info="product_finish">{{post.product_finish}}</span></{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-history.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__product-history {{field.text_style.typography_style|ru}}">
|
|
10
|
-
{{field.enable_label ? '<span class="' ~ blockClassName ~ '__product-history-label">' ~ field.label ~ ' </span>'}}<span class="pattern-product_history">{{post.product_history}}</span></{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set image = get_image(post.product_logo) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-logo.{{block.id}} {
|
|
6
|
-
{{elementStyles}}; --logo-max-width-desktop: {{field.logo_max_width_desktop}}; --logo-max-width-mobile: {{field.logo_max_width_mobile}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<img src="{{image.src}}" srcset="{{image.srcset}}" width="{{image.width}}" height="{{image.height}}" alt="{{image.alt}}" class="{{blockClassName}}__product-logo {{blockClassName}}__info-item pattern-product_logo {{block.id}}">
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-name.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} data-pattern-post-info="product_name" class="{{blockClassName}}__product-name {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.product_name}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-nose.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__product-nose {{field.text_style.typography_style|ru}} {{block.id}}">
|
|
10
|
-
{{field.enable_label ? '<span class="' ~ blockClassName ~ '__product-nose-label">' ~ field.label ~ ' </span>'}}<span data-pattern-post-info="product_nose">{{post.product_nose}}</span></{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-price.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} data-pattern-post-info="product-price" class="{{blockClassName}}__product-price {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.product_price}}</{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-taste.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__product-taste {{field.text_style.typography_style|ru}} {{block.id}}">
|
|
10
|
-
{{field.enable_label ? '<span class="' ~ blockClassName ~ '__product-taste-label">' ~ field.label ~ ' </span>'}}<span data-pattern-post-info="product_taste">{{post.product_taste}}</span></{{field.text_style.text_element_type|ru}}>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
|
-
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
3
|
-
{% set elementStyles = gridLayoutElement ~ textStyle %}
|
|
4
|
-
<style>
|
|
5
|
-
.{{blockClassName}}__product-whisky-type.{{block.id}} {
|
|
6
|
-
{{elementStyles}}
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__info-item {{blockClassName}}__product-whisky-type {{field.text_style.typography_style|ru}} {{block.id}}">
|
|
10
|
-
{{field.enable_label ? '<span class="' ~ blockClassName ~ '__product-whisky-type-label">' ~ field.label ~ ' </span>'}}<span data-pattern-post-info="product_whisky_type">{{post.product_whisky_type}}</span></{{field.text_style.text_element_type|ru}}>
|