← back to Dw Theme Hamburger
sections/collection.liquid
22 lines
{%- comment -%} DW: render the collection description server-side (theme JS never did). Respects the existing show_description setting; reversible. {%- endcomment -%}
{%- if section.settings.show_description and collection.description != blank -%}
<div class="dw-collection-description rte" style="max-width:880px;margin:30px auto 4px;padding:0 26px;line-height:1.7;color:#3a342c;">
{{ collection.description }}
</div>
{%- endif -%}
<script type="application/json" data-section-id="{{ section.id }}" data-section-type="static-collection"></script>
{% schema %}
{
"name": "Collection pages",
"settings": [
{ "type": "checkbox", "id": "show_collection_image", "label": "Show collection image" },
{ "type": "checkbox", "id": "show_description", "label": "Show description" },
{ "type": "checkbox", "id": "sorting", "label": "Enable sorting" },
{ "type": "checkbox", "id": "show_filters", "label": "Enable filtering", "default": true },
{ "type": "select", "id": "layout", "label": "Layout", "options": [{"value":"default","label":"Default"},{"value":"masonry","label":"Masonry"}], "default": "default" },
{ "type": "range", "id": "products_per_row", "label": "Products per row", "min": 3, "max": 8, "step": 1, "default": 4 },
{ "type": "range", "id": "number_of_rows", "label": "Rows", "min": 1, "max": 20, "step": 1, "default": 12 }
]
}
{% endschema %}