Unable to update the file
- Invalid preset “Lookbook Masonry”: cannot include blocks in preset because there are no blocks defined.
{%- assign item = section.settings -%}
{%- assign grid = 3 -%}
{%- capture info_image_size -%}
{%- case grid -%}
{%- when ‘2’ -%}{% if item.fullwidth %}1200x750px{% else %}800x500px{% endif %}
{%- when ‘3’ -%}{% if item.fullwidth %}800x750px{% else %}400x500px{% endif %}
{%- else -%}{% if item.fullwidth %}650x750px{% else %}300x500px{% endif %}
{%- endcase -%}
{%- endcapture -%}
{%- assign img_size = info_image_size | split: ‘x’ | first | append: ‘x’ -%}
{{ item.text1 }}
{% unless item.text2 == '' %}{{ item.text3 }}
{% endunless -%} {%- endunless %}{%- for i in (1..5) -%}
{%- assign topi = ‘positiontop_’ | append: i -%}
{%- assign topi = b_i[topi] -%}
{%- assign topl = ‘positionleft_’ | append: i -%}
{%- assign topl = b_i[topl] -%}
{%- assign pri = ‘product_’ | append: i -%}
{%- assign pri = b_i[pri] -%}
{%- unless pri == blank -%}
{% schema %}
{
“name”: “Lookbook Masonry”,
“class”: “index-section”,
“settings”: [
{
“type”: “select”,
“id”: “top_offset”,
“label”: “Top Offset”,
“default”: “normal”,
“options”: [
{
“value”: “none”,
“label”: “None”
},
{
“value”: “small”,
“label”: “Small”
},
{
“value”: “normal”,
“label”: “Normal”
}
]
},
{
“type”: “checkbox”,
“id”: “fullwidth”,
“label”: “Fullwidth size”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_title”,
“label”: “Show Title Block”,
“default”: true
},
{
“type”: “textarea”,
“id”: “text1”,
“label”: “Title”,
“default”: “OUR COLLECTIONS”
},
{
“type”: “textarea”,
“id”: “text2”,
“label”: “Small description”,
“default”: “SUMMER 2018”,
“info”: “If you want delete text from the screen clear field”
},
{
“type”: “textarea”,
“id”: “text3”,
“label”: “Big description”,
“info”: “If you want delete text from the screen clear field. Field not work with slider mode”
}
],
“blocks”: [
{
“type”: “item”,
“name”: “Image”,
“settings”: [
{
“type”: “image_picker”,
“id”: “image”,
“label”: “Image”
},
{
“type”: “header”,
“content”: “Product 1”
},
{
“type”: “text”,
“id”: “positiontop_1”,
“label”: “Position top”,
“default”: “9”,
“info”: “In percent”
},
{
“type”: “textarea”,
“id”: “positionleft_1”,
“label”: “Position left”,
“default”: “63”,
“info”: “In percent”
},
{
“type”: “product”,
“id”: “product_1”,
“label”: “Select product”
},
{
“type”: “header”,
“content”: “Product 2”
},
{
“type”: “text”,
“id”: “positiontop_2”,
“label”: “Position top”,
“default”: “26”,
“info”: “In percent”
},
{
“type”: “textarea”,
“id”: “positionleft_2”,
“label”: “Position left”,
“default”: “50”,
“info”: “In percent”
},
{
“type”: “product”,
“id”: “product_2”,
“label”: “Select product”
},
{
“type”: “header”,
“content”: “Product 3”
},
{
“type”: “text”,
“id”: “positiontop_3”,
“label”: “Position top”,
“default”: “61”,
“info”: “In percent”
},
{
“type”: “textarea”,
“id”: “positionleft_3”,
“label”: “Position left”,
“default”: “48”,
“info”: “In percent”
},
{
“type”: “product”,
“id”: “product_3”,
“label”: “Select product”
},
{
“type”: “header”,
“content”: “Product 4”
},
{
“type”: “text”,
“id”: “positiontop_4”,
“label”: “Position top”,
“default”: “0”,
“info”: “In percent”
},
{
“type”: “textarea”,
“id”: “positionleft_4”,
“label”: “Position left”,
“default”: “0”,
“info”: “In percent”
},
{
“type”: “product”,
“id”: “product_4”,
“label”: “Select product”
},
{
“type”: “header”,
“content”: “Product 5”
},
{
“type”: “text”,
“id”: “positiontop_5”,
“label”: “Position top”,
“default”: “20”,
“info”: “In percent”
},
{
“type”: “textarea”,
“id”: “positionleft_5”,
“label”: “Position left”,
“default”: “0”,
“info”: “In percent”
},
{
“type”: “product”,
“id”: “product_5”,
“label”: “Select product”
}
]
}
],
“presets”: [
{
“name”: “Lookbook Masonry”,
“category”: “Lookbook”,
“blocks”: [
{
“type”: “item”
},
{
“type”: “item”
},
{
“type”: “item”
}
]
}
]
}
{% endschema %}