-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollection-list.liquid
266 lines (260 loc) · 7.52 KB
/
collection-list.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<div class="page-width">
{% if section.settings.title != blank %}
<div class="section-header text-center">
<h2>{{ section.settings.title | escape }}</h2>
</div>
{% endif %}
{% case section.settings.grid %}
{% when 2 %}
{%- assign grid_item_width = 'medium-up--one-half' -%}
{% when 3 %}
{%- assign grid_item_width = 'small--one-half medium-up--one-third' -%}
{% when 4 %}
{%- assign grid_item_width = 'small--one-half medium-up--one-quarter' -%}
{% when 5 %}
{%- assign grid_item_width = 'small--one-half medium-up--one-fifth' -%}
{% endcase %}
<div class="collection-grid">
<ul class="grid grid--uniform">
{% for block in section.blocks limit: section.blocks.size %}
<li class="grid__item {{ grid_item_width }}" {{ block.shopify_attributes }}>
{%- assign collection = collections[block.settings.collection] -%}
{% include 'collection-grid-item', collection: collection %}
</li>
{% endfor %}
</ul>
</div>
{% if section.blocks.size == 0 %}
{% include 'no-blocks' %}
{% endif %}
</div>
{% schema %}
{
"name": {
"cs": "Seznam kolekcí",
"da": "Kollektionsliste",
"de": "Kategorien-Liste",
"en": "Collection list",
"es": "Lista de colecciones",
"fi": "Kokoelmaluettelo",
"fr": "Liste des collections",
"it": "Elenco delle collezioni",
"ja": "コレクションリスト",
"ko": "컬렉션 목록",
"nb": "Samlingsliste",
"nl": "Collectielijst",
"pl": "Lista kolekcji",
"pt-BR": "Lista de coleções",
"pt-PT": "Lista de coleções",
"sv": "Kollektionslista",
"th": "รายการคอลเลกชัน",
"tr": "Koleksiyon listesi",
"vi": "Danh sách bộ sưu tập",
"zh-CN": "产品系列列表",
"zh-TW": "商品系列清單"
},
"class": "index-section",
"max_blocks": 12,
"settings": [
{
"type": "text",
"id": "title",
"label": {
"cs": "Nadpis",
"da": "Overskrift",
"de": "Titel",
"en": "Heading",
"es": "Título",
"fi": "Otsake",
"fr": "En-tête",
"it": "Heading",
"ja": "見出し",
"ko": "제목",
"nb": "Overskrift",
"nl": "Kop",
"pl": "Nagłówek",
"pt-BR": "Título",
"pt-PT": "Título",
"sv": "Rubrik",
"th": "ส่วนหัว",
"tr": "Başlık",
"vi": "Tiêu đề",
"zh-CN": "标题",
"zh-TW": "標題"
},
"default": {
"cs": "Seznam kolekcí",
"da": "Kollektionsliste",
"de": "Kategorien-Liste",
"en": "Collection list",
"es": "Lista de colecciones",
"fi": "Kokoelmaluettelo",
"fr": "Page de liste des collections",
"it": "Elenco delle collezioni",
"ja": "コレクションリスト",
"ko": "컬렉션 목록",
"nb": "Samlingsliste",
"nl": "Collectielijst",
"pl": "Lista kolekcji",
"pt-BR": "Lista de coleções",
"pt-PT": "Lista de coleções",
"sv": "Kollektionslista",
"th": "รายการคอลเลกชัน",
"tr": "Koleksiyon listesi",
"vi": "Danh sách bộ sưu tập",
"zh-CN": "产品系列列表",
"zh-TW": "商品系列清單"
}
},
{
"type": "range",
"id": "grid",
"label": {
"cs": "Počet kolekcí na řádek",
"da": "Kollektioner pr. række",
"de": "Kategorien per Reihe",
"en": "Collections per row",
"es": "Colecciones por fila",
"fi": "Kokoelmia per rivi",
"fr": "Collections par rangée",
"it": "Collezioni per riga",
"ja": "行あたりのコレクション数",
"ko": "열 별 컬렉션",
"nb": "Samlinger per rad",
"nl": "Collecties per rij",
"pl": "Liczba kolekcji na wiersz",
"pt-BR": "Coleções por linha",
"pt-PT": "Coleções por linha",
"sv": "Produktserier per rad",
"th": "คอลเลกชันต่อแถว",
"tr": "Satır başına koleksiyon",
"vi": "Số bộ sưu tập trên mỗi hàng",
"zh-CN": "每行产品系列数",
"zh-TW": "每列商品系列數"
},
"min": 2,
"max": 5,
"step": 1,
"default": 3
}
],
"blocks": [
{
"type": "featured_collection",
"name": {
"cs": "Kolekce",
"da": "Kollektion",
"de": "Kategorie",
"en": "Collection",
"es": "Colección",
"fi": "Kokoelma",
"fr": "Collection",
"it": "Collezione",
"ja": "コレクション",
"ko": "컬렉션",
"nb": "Samling",
"nl": "Collectie",
"pl": "Kolekcja",
"pt-BR": "Coleção",
"pt-PT": "Coleção",
"sv": "Produktserie",
"th": "คอลเลกชัน",
"tr": "Koleksiyon",
"vi": "Bộ sưu tập",
"zh-CN": "收藏",
"zh-TW": "商品系列"
},
"settings": [
{
"label": {
"cs": "Kolekce",
"da": "Kollektion",
"de": "Kategorie",
"en": "Collection",
"es": "Colección",
"fi": "Kokoelma",
"fr": "Collection",
"it": "Collezione",
"ja": "コレクション",
"ko": "컬렉션",
"nb": "Samling",
"nl": "Collectie",
"pl": "Kolekcja",
"pt-BR": "Coleção",
"pt-PT": "Coleção",
"sv": "Produktserie",
"th": "คอลเลกชัน",
"tr": "Koleksiyon",
"vi": "Bộ sưu tập",
"zh-CN": "收藏",
"zh-TW": "商品系列"
},
"id": "collection",
"type": "collection"
}
]
}
],
"presets": [
{
"name": {
"cs": "Seznam kolekcí",
"da": "Kollektionsliste",
"de": "Kategorien-Liste",
"en": "Collection list",
"es": "Lista de colecciones",
"fi": "Kokoelmaluettelo",
"fr": "Page de liste des collections",
"it": "Elenco delle collezioni",
"ja": "コレクションリスト",
"ko": "컬렉션 목록",
"nb": "Samlingsliste",
"nl": "Collectielijst",
"pl": "Lista kolekcji",
"pt-BR": "Lista de coleções",
"pt-PT": "Lista de coleções",
"sv": "Kollektionslista",
"th": "รายการคอลเลกชัน",
"tr": "Koleksiyon listesi",
"vi": "Danh sách bộ sưu tập",
"zh-CN": "产品系列列表",
"zh-TW": "商品系列清單"
},
"category": {
"cs": "Kolekce",
"da": "Kollektion",
"de": "Kategorie",
"en": "Collection",
"es": "Colección",
"fi": "Kokoelma",
"fr": "Collection",
"it": "Collezione",
"ja": "コレクション",
"ko": "컬렉션",
"nb": "Samling",
"nl": "Collectie",
"pl": "Kolekcja",
"pt-BR": "Coleção",
"pt-PT": "Coleção",
"sv": "Produktserie",
"th": "คอลเลกชัน",
"tr": "Koleksiyon",
"vi": "Bộ sưu tập",
"zh-CN": "收藏",
"zh-TW": "商品系列"
},
"blocks": [
{
"type": "featured_collection"
},
{
"type": "featured_collection"
},
{
"type": "featured_collection"
}
]
}
]
}
{% endschema %}