{%- capture mobile_size -%}750x{% if section.settings.image.height >= 960 %}960{% else %}{{ section.settings.image.height }}{% endif %}{%- endcapture -%}
{% schema %} { "name": "Newsletter", "settings": [ { "type": "select", "id": "section_size", "label": "Section size", "options": [ { "value": "small", "label": "Small" }, { "value": "normal", "label": "Normal" }, { "value": "large", "label": "Large" } ], "default": "small" }, { "type": "image_picker", "id": "image", "label": "Image", "info": "1500 x 800px .jpg recommended" }, { "type": "color", "id": "text_color", "label": "Text", "default": "#ffffff" }, { "type": "color", "id": "button_color", "label": "Button text", "default": "#000000" }, { "type": "text", "id": "subheading", "label": "Sub-heading", "default": "Keep updated" }, { "type": "text", "id": "title", "label": "Heading", "default": "Newsletter" }, { "type": "richtext", "id": "content", "label": "Text", "default": "

A short sentence describing what someone will receive by subscribing

" } ], "presets": [ { "category": "Promotional", "name": "Newsletter", "settings": {} } ] } {% endschema %}