-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.liquid
144 lines (125 loc) · 7.6 KB
/
theme.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
<!doctype html>
{%- liquid
if settings.list_iso_rtl != blank
assign locale_iso_code = request.locale.iso_code
assign arr_list_rtl = settings.list_iso_rtl | remove:' ' | split:','
if arr_list_rtl contains locale_iso_code
assign enable_iso_rtl = true
else
assign enable_iso_rtl = false
endif
endif
-%}
<html class="no-js" lang="{{ request.locale.iso_code }}"{% if settings.enable_layout_rtl and enable_iso_rtl %} dir="rtl"{% endif %}>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="">
<link rel="canonical" href="{{ canonical_url }}" canonical-shop-url="{{ shop.url }}/">
{%- if settings.favicon != blank -%}
<link rel="shortcut icon" href="{{ settings.favicon | img_url: '32x32' }}" type="image/png">
{%- endif -%}
<link rel="preconnect" href="https://cdn.shopify.com" crossorigin>
<title>{{ page_title }} {%- if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif -%} {%- if current_page != 1 %} – Page {{ current_page }}{% endif -%} {%- unless page_title contains shop.name %} – {{ shop.name }}{% endunless -%}</title>
{%- if page_description -%}
<meta name="description" content="{{ page_description | escape }}">
{%- endif -%}
{% render 'meta-tags' %}
{{ content_for_header }}
{% render 'variable' %}
{% render 'global-style' %}
{% render 'global-script' %}
<script>document.documentElement.className = document.documentElement.className.replace('no-js', 'js');</script>
{%- liquid
if settings.layout_body == 'full'
assign layout_body = 'body-full-width'
elsif settings.layout_body == 'boxed'
assign layout_body = 'body-boxed'
elsif settings.layout_body == 'custom_width'
assign layout_body = 'body-custom-width'
endif
if settings.style_dots == '02'
assign style_dots = 'style-dots-2'
endif
if settings.style_arrows == '02'
assign style_arrows = 'style-arrows-2'
elsif settings.style_arrows == '05'
assign style_arrows = 'style-arrows-5'
endif
if settings.product_card_layout == '02'
assign product_card_layout = 'product-card-layout-02'
elsif settings.product_card_layout == '03'
assign product_card_layout = 'product-card-layout-03'
elsif settings.product_card_layout == '04'
assign product_card_layout = 'product-card-layout-04'
elsif settings.product_card_layout == '05'
assign product_card_layout = 'product-card-layout-05'
elsif settings.product_card_layout == '06'
assign product_card_layout = 'product-card-layout-06'
elsif settings.product_card_layout == '07'
assign product_card_layout = 'product-card-layout-07'
elsif settings.product_card_layout == '08'
assign product_card_layout = 'product-card-layout-08'
else
assign product_card_layout = 'product-card-layout-01'
endif
if settings.quick_shop_type == '2'
assign quick_shop_type = 'quick_shop_option_2'
elsif settings.quick_shop_type == '3'
assign quick_shop_type = 'quick_shop_option_3'
endif
if settings.style_text_size_varriant == '02'
assign style_text_size_varriant = 'size_varriant_style_2'
endif
-%}
<style>
shopify-payment-terms {
display: none !important;
}
</style>
</head>
<body class="template-{{ request.page_type }} {{layout_body}} {{style_dots}} {{style_text_size_varriant}} {{style_arrows}} {{product_card_layout}} {% if settings.enable_button_disable_arrows %} enable_button_disable_arrows{% endif %}{% if settings.display_text_color_title %} enable_text_color_title{% if settings.style_text_color_varriant == '02' %} style_2_text_color_varriant{% endif %}{% endif %}{% if settings.hide_compare_homepage %} hide_compare_homepage{% endif %} {{ quick_shop_type }}{% if settings.show_image_loading %} show_image_loading{% endif %}{% if settings.show_effect_close %} show_effect_close{% endif %}{% if settings.enable_layout_rtl and enable_iso_rtl %} layout_rtl{% endif %}{% if request.design_mode %} shopify-design-mode{% endif %}{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}{% if settings.enable_following_cursor and settings.following_cursor_style == 'default' %} cursor-fixed__show{% endif %}{% unless settings.enable_currencies %} disable_currencies{% endunless %}{% if settings.enable_button_1_border_outside %} btn_1_br_outside{% endif %}{% if settings.enable_button_2_border_outside %} btn_2_br_outside{% endif %}{% if settings.enable_button_3_border_outside %} btn_3_br_outside{% endif %}{% if settings.show_price_percent %} show_price_percent{% endif %}{% if settings.show_wishlist_full_icon %} icon_wishlist_full{% endif %}">
<div class="body-content-wrapper">
<a class="skip-to-content-link button visually-hidden" href="#MainContent">{{ "accessibility.skip_to_text" | t }}</a>
{% render 'preload-screen' %}
{% sections 'header-group' %}
{% render 'wrapper-header' %}
{%- if settings.layout_body == 'boxed' -%}
<div class="wrapper-hasbanner-adv">
{%- endif -%}
{% render 'halo-banner-adv-left' %}
{% render 'halo-banner-adv-right' %}
<main id="MainContent" class="wrapper-body content-for-layout focus-none" role="main" tabindex="-1">
{{ content_for_layout }}
</main>
{%- if settings.layout_body == 'boxed' -%}
</div>
{%- endif -%}
<div class="wrapper-footer">{% sections 'footer-group' %}</div>
{% section 'halo-toolbar-mobile' %}
<ul hidden><li id="a11y-refresh-page-message">{{ 'accessibility.refresh_page' | t }}</li></ul>
{% render 'global-script-2' %}
</div>
{% render 'halo-popup' %}
{%- if settings.enable_view_documentation -%}
{% render 'theme-editor-notification' %}
{%- endif -%}
{%- if settings.use_custom_js -%}
{{ 'custom.js' | asset_url | script_tag }}
{%- endif -%}
<div class="background-overlay">
{%- if settings.show_effect_close -%}
<div class="background-cursor-wrapper">
<div class="background-cursor-wrapper_outer">
<div class="background-cursor-wrapper_inner"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="20" height="20"><g class="nc-icon-wrapper" fill="#ffffff" transform="translate(0.5, 0.5)"><line fill="none" stroke-width="6" x1="46" y1="2" x2="2" y2="46"/> <line fill="none" stroke-width="6" x1="46" y1="46" x2="2" y2="2"/></g></svg></div>
</div>
</div>
{%- endif -%}
</div>
{% render 'halo-sidebar' %}
{%- if settings.enable_following_cursor -%}
{% render 'cursor-fixed', style_cursor: settings.following_cursor_style %}
{%- endif -%}
</body>
</html>