{% unless section.settings.title == blank %}

{{ section.settings.title }}

{% endunless %} {% unless section.settings.description == blank %}
{{ section.settings.description }}
{% endunless %} {% unless section.settings.btn_primary_text == blank %}
{% unless section.settings.btn_primary_text == blank %} {{ section.settings.btn_primary_text }} {% endunless %} {% unless section.settings.btn_secondary_text == blank %} {{ section.settings.btn_secondary_text }} {% endunless %}
{% endunless %}
{% schema %} { "name": "Richtext", "tag": "section", "settings": [ { "type": "header", "content": "Styling" }, { "type": "select", "id": "bg_color", "label": "Background color", "default": "bg-body", "options": [ { "value": "bg-primary", "label": "Primary" }, { "value": "bg-secondary", "label": "Secondary" }, { "value": "bg-body", "label": "Body" }, { "value": "bg-white", "label": "White" } ] }, { "type": "range", "id": "bg_opacity", "label": "Background opacity", "min": 0, "max": 100, "step": 1, "default": 100, "unit": "%" }, { "type": "select", "id": "bg_gradient", "label": "Background gradient", "options": [ { "value": "bg-gradient", "label": "Yes" }, { "value": "", "label": "No" } ], "default": "" }, { "type": "select", "id": "text_color", "label": "Text color", "default": "text-body", "options": [ { "value": "text-primary", "label": "Primary" }, { "value": "text-secondary", "label": "Secondary" }, { "value": "text-body", "label": "Body" }, { "value": "text-white", "label": "White" } ] }, { "type": "range", "id": "border_top_width", "label": "Border top width", "default": 0, "min": 0, "max": 16, "step": 1, "unit": "px" }, { "type": "range", "id": "border_bottom_width", "label": "Border bottom width", "default": 0, "min": 0, "max": 16, "step": 1, "unit": "px" }, { "type": "select", "id": "border_color", "label": "Border color", "default": "border-body", "options": [ { "value": "border-primary", "label": "Primary" }, { "value": "border-secondary", "label": "Secondary" }, { "value": "border-body", "label": "Body" }, { "value": "border-white", "label": "White" } ] }, { "type": "range", "id": "border_opacity", "label": "Border opacity", "min": 0, "max": 100, "step": 1, "default": 100, "unit": "%" }, { "type": "text", "id": "container_max_width", "label": "Container max-width (px)", "info": "Leave empty to use the global container width", "default": "900" }, { "type": "select", "id": "text_align", "label": "Text align", "default": "text-center", "options": [ { "value": "text-start", "label": "Left" }, { "value": "text-center", "label": "Center" }, { "value": "text-end", "label": "Right" } ] }, { "type": "header", "content": "Text" }, { "type": "text", "id": "title", "label": "Title", "default": "Richtext" }, { "type": "select", "id": "title_font_size", "label": "Title font-size", "default": "h2", "options": [ { "value": "h1", "label": "H1" }, { "value": "h2", "label": "H2" }, { "value": "h3", "label": "H3" }, { "value": "h4", "label": "H4" }, { "value": "h5", "label": "H5" }, { "value": "h6", "label": "H6" } ] }, { "type": "richtext", "id": "description", "label": "Description (optional)", "default": "

Add on optional description for this section

" }, { "type": "select", "id": "description_font_size", "label": "Description font-size", "default": "fs-md", "options": [ { "value": "fs-sm", "label": "sm" }, { "value": "fs-md", "label": "md" }, { "value": "fs-lg", "label": "lg" }, { "value": "fs-xl", "label": "xl" }, { "value": "fs-xxl", "label": "xxl" } ] }, { "type": "header", "content": "Primary button" }, { "type": "text", "id": "btn_primary_text", "label": "Button text", "default": "Primary button", "info": "Leave empty to disable" }, { "type": "url", "id": "btn_primary_url", "label": "Button URL" }, { "type": "select", "id": "btn_primary_color", "label": "Button color", "default": "btn-primary", "options": [ { "group": "Solid", "value": "btn-primary", "label": "Primary" }, { "group": "Solid", "value": "btn-secondary", "label": "Secondary" }, { "group": "Solid", "value": "btn-white", "label": "White" }, { "group": "Light", "value": "btn-light-primary", "label": "Primary" }, { "group": "Light", "value": "btn-light-secondary", "label": "Secondary" }, { "group": "Light", "value": "btn-light-white", "label": "White" }, { "group": "Outline", "value": "btn-outline-primary", "label": "Primary" }, { "group": "Outline", "value": "btn-outline-secondary", "label": "Secondary" }, { "group": "Outline", "value": "btn-outline-white", "label": "White" } ] }, { "type": "header", "content": "Secondary button" }, { "type": "text", "id": "btn_secondary_text", "label": "Button text", "default": "Secondary button", "info": "Leave empty to disable" }, { "type": "url", "id": "btn_secondary_url", "label": "Button URL" }, { "type": "select", "id": "btn_secondary_color", "label": "Button color", "default": "btn-secondary", "options": [ { "group": "Solid", "value": "btn-primary", "label": "Primary" }, { "group": "Solid", "value": "btn-secondary", "label": "Secondary" }, { "group": "Solid", "value": "btn-white", "label": "White" }, { "group": "Light", "value": "btn-light-primary", "label": "Primary" }, { "group": "Light", "value": "btn-light-secondary", "label": "Secondary" }, { "group": "Light", "value": "btn-light-white", "label": "White" }, { "group": "Outline", "value": "btn-outline-primary", "label": "Primary" }, { "group": "Outline", "value": "btn-outline-secondary", "label": "Secondary" }, { "group": "Outline", "value": "btn-outline-white", "label": "White" } ] }, { "type": "header", "content": "Spacing" }, { "type": "range", "id": "pt", "label": "Top", "min": 0, "max": 20, "step": 1, "default": 9 }, { "type": "range", "id": "pb", "label": "Bottom", "min": 0, "max": 20, "step": 1, "default": 9 } ], "presets": [ { "name": "Richtext" } ] } {% endschema %}