{%
render ‘announcement-bar’,
section: section,
block: block
%}
{%- liquid
if settings.cart_type == ‘drawer’
assign cart_classes = ‘js-slideout-open’
assign cart_settings = ‘data-wau-slideout-target=“ajax-cart” data-slideout-direction=“right”’
elsif settings.cart_type == ‘modal_cart’
assign cart_classes = ‘js-modal-open’
assign cart_settings = ‘data-wau-modal-target=“ajax-cart”’
endif
-%}
{% capture search %}
{%- if settings.predictive_search_enabled -%}
<predictive-search
data-routes=“{{ routes.predictive_search_url | default: ‘/search/suggest’ }}”
data-input-selector=‘input[name=“q”]’
data-results-selector=“#predictive-search-header”
{%- endif -%}
{% if settings.search_show_products_only %}
{% endif %}
{%- if settings.predictive_search_enabled -%}
{%- endif -%} {%- if settings.predictive_search_enabled -%} {%- endif -%} {% endcapture %}-
{% render 'snip-icons',
wrapper: '.slideout__trigger-search',
type: 'apollo',
icon: 'search',
classes: 'vib-center',
size: '16px',
fill: 'var(--cart-links)',
hover: 'var(--cart-links)' %}
{% if section.settings.search_layout == 'modal' %}
{{ search }}{% endif %}
- {{ 'general.customer.my_account' | t }} {% render 'snip-icons', wrapper: '.cart-links__link-account', type: 'apollo', icon: 'user', classes: 'cart-links__link-account--icon vib-center', size: '16px', fill: 'var(--cart-links)', hover: 'var(--cart-links)' %}
- {{ 'general.customer.log_out' | t }} {% render 'snip-icons', wrapper: '.cart-links__link-account', type: 'apollo', icon: 'user-logout', classes: 'cart-links__link-account--icon vib-center', size: '16px', fill: 'var(--cart-links)', hover: 'var(--cart-links)' %} {% else %}
- {{ 'general.customer.my_account' | t }} {% render 'snip-icons', wrapper: '.cart-links__link-account', type: 'apollo', icon: 'user', classes: 'cart-links__link-account--icon vib-center', size: '16px', fill: 'var(--cart-links)', hover: 'var(--cart-links)' %} {% endif %} {% endif %}
- {{ 'cart.general.title' | t }} {% render 'snip-icons', wrapper: '.cart-links__link-cart', type: 'apollo', icon: 'cart', classes: 'cart-links__link-cart--icon vib-center', size: '16px', fill: 'var(--cart-links)', hover: 'var(--cart-links)' %} {{ cart.item_count }} {% else %}
- {% endif %}
{% if shop.customer_accounts_enabled %}
{% if customer %}
{% if settings.cart_type == ‘page_only’ %}
{% if section.settings.search_layout == ‘visible’ and section.settings.header_layout == ‘center’ %}
{% if section.settings.search_layout == ‘visible’ and section.settings.header_layout == ‘left’ %}
{% if section.settings.header_layout == ‘inline’ %}
-
{% render 'navigation' %}
-
{% render 'snip-icons',
wrapper: '.slideout__trigger-search',
type: 'apollo',
icon: 'search',
classes: 'vib-center',
size: '16px',
fill: 'var(--cart-links)',
hover: 'var(--cart-links)' %}
{% if section.settings.search_layout == 'modal' %}
{{ search }}{% endif %}
- {{ 'general.customer.my_account' | t }} {% render 'snip-icons', wrapper: '.cart-links__link-account', type: 'apollo', icon: 'user', classes: 'cart-links__link-account--icon vib-center', size: '16px', fill: 'var(--cart-links)', hover: 'var(--cart-links)' %}
- {{ 'general.customer.log_out' | t }} {% render 'snip-icons', wrapper: '.cart-links__link-account', type: 'apollo', icon: 'user-logout', classes: 'cart-links__link-account--icon vib-center', size: '16px', fill: 'var(--cart-links)', hover: 'var(--cart-links)' %} {% else %}
- {{ 'general.customer.my_account' | t }} {% render 'snip-icons', wrapper: '.cart-links__link-account', type: 'apollo', icon: 'user', classes: 'cart-links__link-account--icon vib-center', size: '16px', fill: 'var(--cart-links)', hover: 'var(--cart-links)' %} {% endif %} {% endif %}
- {{ 'cart.general.title' | t }} {% render 'snip-icons', wrapper: '.cart-links__link-cart', type: 'apollo', icon: 'cart', classes: 'cart-links__link-cart--icon vib-center', size: '16px', fill: 'var(--cart-links)', hover: 'var(--cart-links)' %} {{ cart.item_count }} {% else %}
- {% endif %}
{% if shop.customer_accounts_enabled %}
{% if customer %}
{% if settings.cart_type == ‘page_only’ %}
{% if section.settings.full_width_announcement_bar %}
{% if section.settings.header_layout != ‘inline’ %}
{% if section.settings.full_width_announcement_bar %}-
{% render 'navigation' %}
{% schema %}
{
“name”: “Header”,
“class”: “js-site-header”,
“settings”: [
{
“type”: “checkbox”,
“id”: “full_width_announcement_bar”,
“label”: “Full width”,
“default”: true
},
{
“type”: “header”,
“content”: “Announcement bar”
},
{
“type”: “checkbox”,
“id”: “show_social_icons”,
“label”: “Show social icons”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_locale_selector”,
“label”: “Show language selector”,
“default”: false,
“info”: “To add a language, go to your language settings.”
},
{
“type”: “checkbox”,
“id”: “show_country_selector”,
“label”: “Enable country/region selector”,
“default”: true,
“info”: “To add a country/region, go to your payment settings.”
},
{
“type”: “checkbox”,
“id”: “show_flag”,
“label”: “Show country flags”,
“default”: true
},
{
“type”: “header”,
“content”: “Header”
},
{
“type”: “select”,
“id”: “header_layout”,
“label”: “Header layout”,
“options”: [{
“value”: “left”,
“label”: “Logo left, navigation below”
},
{
“value”: “center”,
“label”: “Logo center, navigation below”
},
{
“value”: “inline”,
“label”: “Logo left, navigation inline”
},
{
“value”: “inline_center”,
“label”: “Logo center, navigation inline”
}
]
},
{
“type”: “checkbox”,
“id”: “floating_header”,
“label”: “Overlay on image sections”,
“info”:“Puts header on top of the first section if slideshow or image with text overlay has been selected”,
“default”: false
},
{
“type”: “header”,
“content”: “Logo”
},
{
“type”: “image_picker”,
“id”: “logo”,
“label”: “Logo image”
},
{
“type”: “range”,
“id”: “logo_max_width”,
“min”: 80,
“max”: 300,
“step”: 5,
“unit”: “px”,
“label”: “Logo max width”,
“default”: 200
},
{
“type”: “range”,
“id”: “logo_max_width_mobile”,
“min”: 80,
“max”: 200,
“step”: 5,
“unit”: “px”,
“label”: “Mobile logo max width”,
“default”: 200
},
{
“type”: “header”,
“content”: “Cart and account links”
},
{
“type”: “checkbox”,
“id”: “icons_only”,
“label”: “Show icons only”,
“default”: false
},
{
“type”: “select”,
“id”: “search_layout”,
“label”: “Search”,
“default”: “modal”,
“options”: [{
“value”: “visible”,
“label”: “Always visible (excl inline layout)”
},
{
“value”: “modal”,
“label”: “Modal”
},
{
“value”: “none”,
“label”: “None”
}
]
},
{
“type”: “header”,
“content”: “Navigation”
},
{
“type”: “link_list”,
“id”: “main_nav”,
“label”: “Menu”,
“default”: “main-menu”,
“info”: “It is best practice to select the same menu used in the Mobile Nav. Learn More”
},
{
“type”: “range”,
“id”: “nav_height”,
“min”: 30,
“max”: 100,
“step”: 2,
“unit”: “px”,
“label”: “Height”,
“default”: 40
},
{
“type”: “range”,
“id”: “linklist_breakpoint”,
“min”: 4,
“max”: 20,
“step”: 1,
“label”: “Links per column”,
“info”: “Break long drop downs into multiple columns”,
“default”: 10
}
],
“blocks”: [
{
“type”: “mega_menu”,
“name”: “Mega dropdown”,
“settings”: [{
“type”: “text”,
“id”: “menu_item”,
“label”: “Menu item”,
“info”: “Enter a link title from your main navigation”
},
{
“type”: “image_picker”,
“id”: “nav_image”,
“label”: “Featured image”
},
{
“type”: “url”,
“id”: “nav_promo_link”,
“label”: “Featured image link”
},
{
“type”: “select”,
“id”: “image_position”,
“label”: “Image position”,
“default”: “left”,
“options”: [
{
“value”: “left”,
“label”: “Left”
},
{
“value”: “right”,
“label”: “Right”
}
]
}
]
},
{
“type”: “links_with_images”,
“name”: “Links with images”,
“settings”: [
{
“type”: “text”,
“id”: “menu_item”,
“label”: “Menu item”,
“info”: “Enter a link title from your main navigation”
},
{
“type”: “select”,
“id”: “image_ratio”,
“label”: “Image ratio”,
“default”: “natural”,
“options”: [
{
“value”: “natural”,
“label”: “Natural”
},
{
“value”: “square”,
“label”: “Square (1:1)”
},
{
“value”: “landscape”,
“label”: “Landscape (4:3)”
},
{
“value”: “portrait”,
“label”: “Portrait (2:3)”
}
]
},
{
“type”: “header”,
“content”:“Image 1”
},
{
“type”: “image_picker”,
“id”: “image_1”,
“label”: “Image”
},
{
“type”: “url”,
“id”: “link_1”,
“label”: “Image link”
},
{
“type”: “header”,
“content”:“Image 2”
},
{
“type”: “image_picker”,
“id”: “image_2”,
“label”: “Image”
},
{
“type”: “url”,
“id”: “link_2”,
“label”: “Image link”
},
{
“type”: “header”,
“content”:“Image 3”
},
{
“type”: “image_picker”,
“id”: “image_3”,
“label”: “Image”
},
{
“type”: “url”,
“id”: “link_3”,
“label”: “Image link”
}
]
},
{
“type”:“announcement_text”,
“name”:“Announcement text”,
“settings”: [
{
“type”: “richtext”,
“id”: “announcement_text”,
“label”: “Announcement text”,
“default”: “
Share a shop announcement or message
”}
]
}
]
}
{% endschema %}