-
Notifications
You must be signed in to change notification settings - Fork 601
/
description-tabs.html
50 lines (50 loc) · 2.03 KB
/
description-tabs.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
<ul class="tabs" data-tab>
{{#if product.description}}
<li class="tab is-active">
<a class="tab-title" href="#tab-description">{{lang 'products.description'}}</a>
</li>
{{/if}}
{{#if product.warranty}}
<li class="tab {{#unless product.description}}is-active{{/unless}}">
<a class="tab-title" href="#tab-warranty">{{lang 'products.warranty'}}</a>
</li>
{{/if}}
{{#all product.custom_fields theme_settings.show_custom_fields_tabs}}
<li class="tab">
<a class="tab-title"
href="#tab-{{dashcase (lowercase (sanitize theme_settings.pdp-custom-fields-tab-label))}}"
>
{{sanitize theme_settings.pdp-custom-fields-tab-label}}
</a>
</li>
{{/all}}
{{#all settings.show_product_reviews theme_settings.show_product_reviews product.reviews.total}}
<li class="tab">
<a class="tab-title productView-reviewTabLink" href="#tab-reviews">{{lang 'products.reviews.header' total=product.reviews.total}}</a>
</li>
{{/all}}
</ul>
<div class="tabs-contents">
{{#if product.description}}
<div class="tab-content is-active" id="tab-description">
{{{product.description}}}
</div>
{{/if}}
{{#if product.warranty}}
<div class="tab-content {{#unless product.description}}is-active{{/unless}}" id="tab-warranty">
{{{product.warranty}}}
</div>
{{/if}}
{{#all product.custom_fields theme_settings.show_custom_fields_tabs}}
<div class="tab-content" id="tab-{{dashcase (lowercase (sanitize theme_settings.pdp-custom-fields-tab-label))}}">
<dl class="productView-info">
{{> components/products/custom-fields }}
</dl>
</div>
{{/all}}
{{#all settings.show_product_reviews theme_settings.show_product_reviews}}
<div class="tab-content" id="tab-reviews">
{{> components/products/reviews reviews=product.reviews product=product urls=urls}}
</div>
{{/all}}
</div>