-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBC-Products.html
185 lines (185 loc) · 10.1 KB
/
BC-Products.html
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
<div class="products__page">
<div class="products__header artist-category-nav artist-category-nav-header">
<h1 class="products__title">Products</h1>
<nav class="products__category--nav">
<!--<div class="products__categories--title">Viewing</div>-->
<ul class="products__categories--list">
<li class="{% if page.full_url contains '/products' %}selected{% endif %}"><a href="/products">Everything</a></li>
{% for category in categories.active %}
<li style="{% if category.name contains 'Limited' %}display:none;{% endif %}" data-cat="{{ category.name }}" class="{% if page.full_url contains category.url %}selected{% endif %}">{{ category | link_to }}</li>
{% endfor %}
</ul>
</nav>
{% if artists.active != blank %}
<nav class="artist-nav">
<div class="nav-title">Artists</div>
<ul>
{% for artist in artists.active %}
<li class="{% if page.full_url contains artist.url %}selected{% endif %}">{{ artist | link_to }}</li>
{% endfor %}
</ul>
</nav>
{% endif %}
</div>
{% paginate products from products.current by theme.products_per_page %}
{% if products != blank %}
<!-- Shirts -->
<div class="products__list">
{% if page.full_url contains '/products' or page.full_url contains '/pre-order' %}
<!-- Above checks if the page is either all or shirts -->
{% for product in categories.pre-order.products %}
{% assign product_status = '' %}
{% case product.status %}
{% when 'active' %}
{% if product.on_sale %}{% assign product_status = 'On sale' %}{% endif %}
{% when 'sold-out' %}
{% assign product_status = 'Sold out' %}
{% when 'coming-soon' %}
{% assign product_status = 'Coming soon' %}
{% endcase %}
<a class="products__item {{ theme.show_overlay }}" href="{{ product.url }}" title="View {{ product.name | escape }}">
<!--<div class="product-list-item-container">-->
<figure class="products__item--image">
<img alt="Image of {{ product.name | escape }}" class="fade-in product-list-image {% if product.image.height > product.image.width %}image-tall{% elsif product.image.height < product.image.width %}image-wide{% else %}image-square{% endif %}" src="{{ product.image | product_image_url | constrain: 1000, 1000 }}">
</figure>
<!--</div>-->
<div class="products__item--info">
<!--<div class="product-list-item-background"></div>-->
<div class="products__item--headers">
<div class="products__item--status pre-order">Pre-Order</div>
<h3 class="products__item--name">{{ product.name }}</h3>
<div class="products__item--price">{{ product.default_price | money: theme.money_format }}</div>
</div>
</div>
</a>
{% endfor %}
<!-- -->
{% endif %}
<!-- END PRE-ORDER SECTION -->
{% if page.full_url contains '/products' or page.full_url contains '/tanks' %}
<!-- Above checks if the page is either all or shirts -->
{% for product in categories.tanks.products %}
{% assign product_status = '' %}
{% case product.status %}
{% when 'active' %}
{% if product.on_sale %}{% assign product_status = 'On sale' %}{% endif %}
{% when 'sold-out' %}
{% assign product_status = 'Sold out' %}
{% when 'coming-soon' %}
{% assign product_status = 'Coming soon' %}
{% endcase %}
<a style="{% for category in product.categories %}{% if category.name contains 'Pre-Order' %}display:none;{% endif %}{% endfor %}" class="products__item {{ theme.show_overlay }}" href="{{ product.url }}" title="View {{ product.name | escape }}">
<!--<div class="product-list-item-container">-->
<figure class="products__item--image">
<img alt="Image of {{ product.name | escape }}" class="fade-in product-list-image {% if product.image.height > product.image.width %}image-tall{% elsif product.image.height < product.image.width %}image-wide{% else %}image-square{% endif %}" src="{{ product.image | product_image_url | constrain: 1000, 1000 }}">
</figure>
<!--</div>-->
<div class="products__item--info">
<!--<div class="product-list-item-background"></div>-->
<div class="products__item--headers">
{% if product_status != blank %}<div class="products__item--status {{ product_status }}">{{ product_status }}</div>{% endif %}
<h3 class="products__item--name">{{ product.name }}</h3>
<div class="products__item--price">{{ product.default_price | money: theme.money_format }}</div>
</div>
</div>
</a>
{% endfor %}
<!-- -->
{% endif %}
<!-- -->
{% if page.full_url contains '/products' or page.full_url contains '/shirts' %}
<!-- Above checks if the page is either all or shirts -->
{% for product in categories.shirts.products %}
{% assign product_status = '' %}
{% case product.status %}
{% when 'active' %}
{% if product.on_sale %}{% assign product_status = 'On sale' %}{% endif %}
{% when 'sold-out' %}
{% assign product_status = 'Sold out' %}
{% when 'coming-soon' %}
{% assign product_status = 'Coming soon' %}
{% endcase %}
<!-- GET THE CATEGORIES -->
<a style="{% for category in product.categories %}{% if category.name contains 'Pre-Order' %}display:none;{% endif %}{% endfor %}" class="products__item {{ theme.show_overlay }}" href="{{ product.url }}" title="View {{ product.name | escape }}">
<!--<div class="product-list-item-container">-->
<figure class="products__item--image">
<img alt="Image of {{ product.name | escape }}" class="fade-in product-list-image {% if product.image.height > product.image.width %}image-tall{% elsif product.image.height < product.image.width %}image-wide{% else %}image-square{% endif %}" src="{{ product.image | product_image_url | constrain: 1000, 1000 }}">
</figure>
<!--</div>-->
<div class="products__item--info">
<!--<div class="product-list-item-background"></div>-->
<div class="products__item--headers">
{% if product_status != blank %}<div class="products__item--status {{ product_status }}">{{ product_status }}</div>{% endif %}
<h3 class="products__item--name">{{ product.name }}</h3>
<div class="products__item--price">{{ product.default_price | money: theme.money_format }}</div>
</div>
</div>
</a>
{% endfor %}
<!-- -->
{% endif %}
<!-- -->
{% if page.full_url contains '/products' or page.full_url contains '/stickers' %}
<!-- Above checks if the page is either all or stickers -->
<!-- Stickers -->
{% for product in categories.stickers.products %}
{% assign product_status = '' %}
{% case product.status %}
{% when 'active' %}
{% if product.on_sale %}{% assign product_status = 'On sale' %}{% endif %}
{% when 'sold-out' %}
{% assign product_status = 'Sold out' %}
{% when 'coming-soon' %}
{% assign product_status = 'Coming soon' %}
{% endcase %}
<a style="{% for category in product.categories %}{% if category.name contains 'Pre-Order' %}display:none;{% endif %}{% endfor %}" class="products__item {{ theme.show_overlay }}" href="{{ product.url }}" title="View {{ product.name | escape }}">
<!--<div class="product-list-item-container">-->
<figure class="products__item--image">
<img alt="Image of {{ product.name | escape }}" class="fade-in product-list-image {% if product.image.height > product.image.width %}image-tall{% elsif product.image.height < product.image.width %}image-wide{% else %}image-square{% endif %}" src="{{ product.image | product_image_url | constrain: 1000, 1000 }}">
</figure>
<!--</div>-->
<div class="products__item--info">
<!--<div class="product-list-item-background"></div>-->
<div class="products__item--headers">
{% if product_status != blank %}<div class="products__item--status {{ product_status }}">{{ product_status }}</div>{% endif %}
<h3 class="products__item--name">{{ product.name }}</h3>
<div class="products__item--price">{{ product.default_price | money: theme.money_format }}</div>
</div>
</div>
</a>
{% endfor %}
<!-- -->
{% endif %}
<!-- -->
</div>
<!--
{% if paginate.pages > 1 %}
{{ paginate | default_pagination }}
{% endif %}
-->
<!--<div class="artist-category-nav artist-category-nav-footer">
<nav class="category-nav">
<div class="nav-title">Products</div>
<ul>
<li class="{% if page.full_url contains '/products' %}selected{% endif %}"><a href="/products">All</a></li>
{% for category in categories.active %}
<li class="{% if page.full_url contains category.url %}selected{% endif %}">{{ category | link_to }}</li>
{% endfor %}
</ul>
</nav>
{% if artists.active != blank %}
<nav class="artist-nav">
<div class="nav-title">Artists</div>
<ul>
{% for artist in artists.active %}
<li class="{% if page.full_url contains artist.url %}selected{% endif %}">{{ artist | link_to }}</li>
{% endfor %}
</ul>
</nav>
{% endif %}
</div>-->
{% else %}
<div class="empty-products centered-message">No products found.</div>
{% endif %}
{% endpaginate %}
</div>