theme.liquid

Created Diff never expires
0 removals
247 lines
4 additions
251 lines
<!doctype html>
<!doctype html>
<html class="no-js no-touch" lang="{{ shop.locale }}">
<html class="no-js no-touch" lang="{{ shop.locale }}">
<head>
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta http-equiv="x-ua-compatible" content="IE=edge">


<link rel="preconnect" href="https://cdn.shopify.com" crossorigin>
<link rel="preconnect" href="https://cdn.shopify.com" crossorigin>


{% if settings.preconnect_facebook %}
{% if settings.preconnect_facebook %}
<link rel="preconnect" href="https://connect.facebook.net" crossorigin>
<link rel="preconnect" href="https://connect.facebook.net" crossorigin>
{% endif %}
{% endif %}
{% if settings.preconnect_google %}
{% if settings.preconnect_google %}
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin>
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin>
{% endif %}
{% endif %}


<title>
<title>
{{- page_title -}}
{{- page_title -}}


{%- if current_tags -%}
{%- if current_tags -%}
{%- include 'advanced-tag-loop' -%}
{%- include 'advanced-tag-loop' -%}
{% assign title_tags = '' %}
{% assign title_tags = '' %}
{% assign meta_tags = current_tags | join: ', ' %}
{% assign meta_tags = current_tags | join: ', ' %}
{%- for tag in current_tags -%}
{%- for tag in current_tags -%}
{% assign is_advanced_tag = false %}
{% assign is_advanced_tag = false %}
{% assign cat = tag | split: '_' | first %}
{% assign cat = tag | split: '_' | first %}


{%- unless cat == tag -%}
{%- unless cat == tag -%}
{%- if cat_array contains cat -%}
{%- if cat_array contains cat -%}
{% assign is_advanced_tag = true %}
{% assign is_advanced_tag = true %}
{% assign title_tags = title_tags | append: ', ' | append: tag | replace_first: '_', ': ' %}
{% assign title_tags = title_tags | append: ', ' | append: tag | replace_first: '_', ': ' %}
{%- endif -%}
{%- endif -%}
{%- endunless -%}
{%- endunless -%}


{%- unless is_advanced_tag -%}
{%- unless is_advanced_tag -%}
{% assign title_tags = title_tags | append: ', ' | append: tag %}
{% assign title_tags = title_tags | append: ', ' | append: tag %}
{%- endunless -%}
{%- endunless -%}
{%- endfor -%}
{%- endfor -%}
{{ 'general.title.tags' | t: tags: title_tags | remove_first: ', ' }}
{{ 'general.title.tags' | t: tags: title_tags | remove_first: ', ' }}
{%- endif -%}
{%- endif -%}


{%- if current_page != 1 -%}
{%- if current_page != 1 -%}
{{- 'general.title.page' | t: page: current_page -}}
{{- 'general.title.page' | t: page: current_page -}}
{%- endif -%}
{%- endif -%}


{%- unless page_title contains shop.name -%}
{%- unless page_title contains shop.name -%}
{{- 'general.title.shop' | t: shop: shop.name -}}
{{- 'general.title.shop' | t: shop: shop.name -}}
{%- endunless -%}
{%- endunless -%}
</title>
</title>


{% if page_description != blank %}
{% if page_description != blank %}
<meta name="description" content="{{ page_description | escape }}">
<meta name="description" content="{{ page_description | escape }}">
{% endif %}
{% endif %}


{% include 'favicon' %}
{% include 'favicon' %}


{% if template contains 'collection' and current_tags %}
{% if template contains 'collection' and current_tags %}
<meta name="robots" content="noindex" />
<meta name="robots" content="noindex" />
<link rel="canonical" href="{{ shop.url }}{{ collection.url }}" />
<link rel="canonical" href="{{ shop.url }}{{ collection.url }}" />
{% else %}
{% else %}
<link rel="canonical" href="{{ canonical_url }}" />
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}
{% endif %}


<meta name="viewport" content="width=device-width">
<meta name="viewport" content="width=device-width">


{% assign twitter_handle = settings.social_twitter | split: 'twitter.com/' | last %}
{% assign twitter_handle = settings.social_twitter | split: 'twitter.com/' | last %}
{%
{%
include 'social-meta-tags',
include 'social-meta-tags',
twitter_handle: twitter_handle
twitter_handle: twitter_handle
%}
%}


{% assign preload_styles = settings.preload_styles %}
{% assign preload_styles = settings.preload_styles %}


<link rel="preload" href="{{ settings.type_menu | font_url }}" as="font" crossorigin="anonymous">
<link rel="preload" href="{{ settings.type_menu | font_url }}" as="font" crossorigin="anonymous">


{% if preload_styles == 'await_critical_styles' %}
{% if preload_styles == 'await_critical_styles' %}
<link rel="preload" as="style" href="{{ 'theme-critical.scss.css' | asset_url }}">
<link rel="preload" as="style" href="{{ 'theme-critical.scss.css' | asset_url }}">
{% else %}
{% else %}
<link rel="preload" as="style" href="{{ 'theme.scss.css' | asset_url }}">
<link rel="preload" as="style" href="{{ 'theme.scss.css' | asset_url }}">
<link rel="preload" as="style" href="{{ 'theme-more.scss.css' | asset_url }}">
{% endif %}
{% endif %}


{{ content_for_header }}
{{ content_for_header }}


<script>
<script>
document.documentElement.className=document.documentElement.className.replace(/\bno-js\b/,'js');
document.documentElement.className=document.documentElement.className.replace(/\bno-js\b/,'js');
if(window.Shopify&&window.Shopify.designMode)document.documentElement.className+=' in-theme-editor';
if(window.Shopify&&window.Shopify.designMode)document.documentElement.className+=' in-theme-editor';
if(('ontouchstart' in window)||window.DocumentTouch&&document instanceof DocumentTouch)document.documentElement.className=document.documentElement.className.replace(/\bno-touch\b/,'has-touch');
if(('ontouchstart' in window)||window.DocumentTouch&&document instanceof DocumentTouch)document.documentElement.className=document.documentElement.className.replace(/\bno-touch\b/,'has-touch');
</script>
</script>


<script src="{{ 'api.js' | asset_url }}"></script>
<script src="{{ 'api.js' | asset_url }}"></script>


{% if preload_styles == 'await_all_styles' %}
{% if preload_styles == 'await_all_styles' %}
<link href="{{ 'theme.scss.css' | asset_url }}" rel="stylesheet" type="text/css" media="all" />
<link href="{{ 'theme.scss.css' | asset_url }}" rel="stylesheet" type="text/css" media="all" />
<link href="{{ 'theme-more.scss.css' | asset_url }}" rel="stylesheet" type="text/css" media="all" />
{% elsif preload_styles == 'await_critical_styles' %}
{% elsif preload_styles == 'await_critical_styles' %}
<link href="{{ 'theme-critical.scss.css' | asset_url }}" rel="stylesheet" type="text/css" media="all" data-styles-above-fold />
<link href="{{ 'theme-critical.scss.css' | asset_url }}" rel="stylesheet" type="text/css" media="all" data-styles-above-fold />
<link rel="preload" as="style" href="{{ 'theme.scss.css' | asset_url }}">
<link rel="preload" as="style" href="{{ 'theme.scss.css' | asset_url }}">
<link rel="preload" as="style" href="{{ 'theme-more.scss.css' | asset_url }}">
{% endif %}
{% endif %}


{% if settings.custom_scripts_head != blank %}
{% if settings.custom_scripts_head != blank %}
{% unless settings.custom_scripts_head contains '<script' %}<script>{% endunless %}
{% unless settings.custom_scripts_head contains '<script' %}<script>{% endunless %}
{{ settings.custom_scripts_head }}
{{ settings.custom_scripts_head }}
{% unless settings.custom_scripts_head contains '<script' %}</script>{% endunless %}
{% unless settings.custom_scripts_head contains '<script' %}</script>{% endunless %}
{% endif %}
{% endif %}
</head>
</head>


<body
<body
{% unless settings.lazy_load %}
{% unless settings.lazy_load %}
data-lazy-loading-disabled
data-lazy-loading-disabled
{% endunless %}
{% endunless %}
class="template-{{ template.name }}"
class="template-{{ template.name }}"
{% if settings.enable_instantpage == true %}
{% if settings.enable_instantpage == true %}
data-instant-allow-query-string
data-instant-allow-query-string
{% endif %}
{% endif %}
>
>
<a class="skip-to-main" href="#site-main">{{ 'general.accessibility.skip_to_content' | t }}</a>
<a class="skip-to-main" href="#site-main">{{ 'general.accessibility.skip_to_content' | t }}</a>
{% section 'static-announcement' %}
{% section 'static-announcement' %}
{% section 'static-utility-bar' %}
{% section 'static-utility-bar' %}


{% case settings.header_layout %}
{% case settings.header_layout %}
{% when 'minimal' %}
{% when 'minimal' %}
{% section 'static-minimal-header' %}
{% section 'static-minimal-header' %}
{% when 'basic' %}
{% when 'basic' %}
{% section 'static-basic-header' %}
{% section 'static-basic-header' %}
{% else %}
{% else %}
{% section 'static-header' %}
{% section 'static-header' %}
{% endcase %}
{% endcase %}


{% comment %}
{% comment %}
This intersection-target is for the traditional header.
This intersection-target is for the traditional header.
It needs to sit outside of the sticky header, so it knows when to collapse
It needs to sit outside of the sticky header, so it knows when to collapse
{% endcomment %}
{% endcomment %}
{% if settings.header_layout == 'traditional' %}
{% if settings.header_layout == 'traditional' %}
<div class="intersection-target"></div>
<div class="intersection-target"></div>
{% endif %}
{% endif %}


<main id="site-main" class="site-main" aria-label="Main content" tabindex="-1">
<main id="site-main" class="site-main" aria-label="Main content" tabindex="-1">
{% if template == 'index' %}
{% if template == 'index' %}
{% section 'static-slideshow' %}
{% section 'static-slideshow' %}
{% endif %}
{% endif %}


{{ content_for_layout }}
{{ content_for_layout }}
</main>
</main>


{% section 'static-footer' %}
{% section 'static-footer' %}


{% comment %}
{% comment %}
Below are various templates used in JavaScript
Below are various templates used in JavaScript
{% endcomment %}
{% endcomment %}
<div style="display: none;" aria-hidden="true" data-templates>
<div style="display: none;" aria-hidden="true" data-templates>
{% include 'message-banner' %}
{% include 'message-banner' %}
{% include 'atc-banner' %}
{% include 'atc-banner' %}
</div>
</div>


{% comment %}
{% comment %}
Modal container, used on Collections, Password, and QuickShop
Modal container, used on Collections, Password, and QuickShop
{% endcomment %}
{% endcomment %}
{% include 'modal' %}
{% include 'modal' %}


{% comment %}
{% comment %}
This is the PhotoSwipe dialog for product galleries which needs to be in the base page
This is the PhotoSwipe dialog for product galleries which needs to be in the base page
{% endcomment %}
{% endcomment %}
{% include 'product-gallery-zoom' %}
{% include 'product-gallery-zoom' %}


{% if preload_styles != 'await_all_styles' %}
{% if preload_styles != 'await_all_styles' %}
{{ 'theme.scss.css' | asset_url | stylesheet_tag }}
{{ 'theme.scss.css' | asset_url | stylesheet_tag }}
{{ 'theme-more.scss.css' | asset_url | stylesheet_tag }}


{% if preload_styles == 'await_critical_styles' %}
{% if preload_styles == 'await_critical_styles' %}
<script>
<script>
(function(){
(function(){
// remove above the fold styles to make sure there are no style conflicts
// remove above the fold styles to make sure there are no style conflicts
var aboveFoldStyles = document.querySelector('[data-styles-above-fold]');
var aboveFoldStyles = document.querySelector('[data-styles-above-fold]');
aboveFoldStyles.parentNode.removeChild(aboveFoldStyles);
aboveFoldStyles.parentNode.removeChild(aboveFoldStyles);
})();
})();
</script>
</script>
{% endif %}
{% endif %}
{% endif %}
{% endif %}


{%- if template contains 'customer' -%}
{%- if template contains 'customer' -%}
{{ 'shopify_common.js' | shopify_asset_url | script_tag }}
{{ 'shopify_common.js' | shopify_asset_url | script_tag }}
{{ 'customer_area.js' | shopify_asset_url | script_tag }}
{{ 'customer_area.js' | shopify_asset_url | script_tag }}
{%- endif -%}
{%- endif -%}


{% assign theme_script = 'superstore.js' %}
{% assign theme_script = 'superstore.js' %}
{% if settings.use_minified_js %}
{% if settings.use_minified_js %}
{% assign theme_script = 'superstore.min.js' %}
{% assign theme_script = 'superstore.min.js' %}
{% endif %}
{% endif %}


{% assign enable_currency_converter = false %}
{% assign enable_currency_converter = false %}
{% if settings.enable_currency_converter != 'disable' %}
{% if settings.enable_currency_converter != 'disable' %}
{% assign enable_currency_converter = true %}
{% assign enable_currency_converter = true %}
{% endif %}
{% endif %}
{%
{%
include 'currency-converter-settings',
include 'currency-converter-settings',
display_format: settings.currency_display_format,
display_format: settings.currency_display_format,
enable: enable_currency_converter,
enable: enable_currency_converter,
default_currency: settings.currency_converter_default,
default_currency: settings.currency_converter_default,
%}
%}
<script
<script
src="{{ theme_script | asset_url }}"
src="{{ theme_script | asset_url }}"
data-scripts
data-scripts
data-shopify-api-url="{{ 'api.jquery.js' | shopify_asset_url }}"
data-shopify-api-url="{{ 'api.jquery.js' | shopify_asset_url }}"
data-shopify-countries="/services/javascripts/countries.js"
data-shopify-countries="/services/javascripts/countries.js"
data-shopify-common="{{ 'shopify_common.js' | shopify_asset_url }}"
data-shopify-common="{{ 'shopify_common.js' | shopify_asset_url }}"
data-shopify-cart="{{ 'jquery.cart.js' | asset_url }}"
data-shopify-cart="{{ 'jquery.cart.js' | asset_url }}"
data-pxu-polyfills="{{ 'polyfills.js' | asset_url }}"
data-pxu-polyfills="{{ 'polyfills.js' | asset_url }}"
>
>
</script>
</script>


{% if settings.custom_styles != blank %}
{% if settings.custom_styles != blank %}
{% unless settings.custom_styles contains '<style' %}<style>{% endunless %}
{% unless settings.custom_styles contains '<style' %}<style>{% endunless %}
{{ settings.custom_styles }}
{{ settings.custom_styles }}
{% unless settings.custom_styles contains '<style' %}</style>{% endunless %}
{% unless settings.custom_styles contains '<style' %}</style>{% endunless %}
{% endif %}
{% endif %}


{% if settings.custom_scripts_footer != blank %}
{% if settings.custom_scripts_footer != blank %}
{% unless settings.custom_scripts_footer contains '<script' %}<script>{% endunless %}
{% unless settings.custom_scripts_footer contains '<script' %}<script>{% endunless %}
{{ settings.custom_scripts_footer }}
{{ settings.custom_scripts_footer }}
{% unless settings.custom_scripts_footer contains '<script' %}</script>{% endunless %}
{% unless settings.custom_scripts_footer contains '<script' %}</script>{% endunless %}
{% endif %}
{% endif %}


{% include 'structured-data' %}
{% include 'structured-data' %}


<script>
<script>
(function () {
(function () {
function handleFirstTab(e) {
function handleFirstTab(e) {
if (e.keyCode === 9) { // the "I am a keyboard user" key
if (e.keyCode === 9) { // the "I am a keyboard user" key
document.body.classList.add('user-is-tabbing');
document.body.classList.add('user-is-tabbing');
window.removeEventListener('keydown', handleFirstTab);
window.removeEventListener('keydown', handleFirstTab);
}
}
}
}
window.addEventListener('keydown', handleFirstTab);
window.addEventListener('keydown', handleFirstTab);
})();
})();
</script>
</script>


{% include 'api' with 'page:body' %}
{% include 'api' with 'page:body' %}
{{ page_body }}
{{ page_body }}


{% if settings.enable_instantpage == true %}
{% if settings.enable_instantpage == true %}
<script
<script
src="{{ 'instantPage.min.js' | asset_url }}"
src="{{ 'instantPage.min.js' | asset_url }}"
type="module"
type="module"
defer
defer
>
>
</script>
</script>
{% endif %}
{% endif %}
</body>
</body>
</html>
</html>