{% sw_extends '@parent/storefront/layout/meta.html.twig' %}
{% block layout_head_inner %}{% apply spaceless %}
{% set metaInformation = page.metaInformation %}
{% set basicConfig = config("core").basicInformation %}
{% set items = page.header.navigation.tree %}
{% set activecategory = null %}
{% for item in items %}
{% if activecategory == null and item.category.id == page.header.navigation.active.id %}
{% set activecategory = item %}
{% else %}
{% if activecategory == null %}
{% set children = item.children %}
{% for child in children %}
{% if activecategory == null and child.category.id == page.header.navigation.active.id %}
{% set activecategory = child %}
{% else %}
{% if activecategory == null %}
{% set subchildren = child.children %}
{% for subchild in subchildren %}
{% if activecategory == null and subchild.category.id == page.header.navigation.active.id %}
{% set activecategory = subchild %}
{% else %}
{% set subsubchildren = subchild.children %}
{% for subsubchild in subsubchildren %}
{% if activecategory == null and subsubchild.category.id == page.header.navigation.active.id %}
{% set activecategory = subsubchild %}
{% else %}
{% set subsubsubchildren = subsubchild.children %}
{% for subsubsubchild in subsubsubchildren %}
{% if activecategory == null and subsubsubchild.category.id == page.header.navigation.active.id %}
{% set activecategory = subsubsubchild %}
{% else %}
{% set lastlevelchildren = subsubsubchild.children %}
{% for lastlevelchild in lastlevelchildren %}
{% if activecategory == null and lastlevelchild.category.id == page.header.navigation.active.id %}
{% set activecategory = lastlevelchild %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% if page.product.translated.name|length > 0 %}
{% set metaDescription = page.product.translated.name %}
{% set metaDescriptionComma = false %}
{% if page.product.customFields.custom_produkt_produkt_jahrgang %}
{% set metaDescription = metaDescription ~ ' ' ~ page.product.customFields.custom_produkt_produkt_jahrgang %}
{% set metaDescriptionComma = true %}
{% endif %}
{% if page.product.customFields.custom_produkt_produkt_lage %}
{% if metaDescriptionComma == true %}
{% set metaDescription = metaDescription ~ ', ' %}
{% endif %}
{% set metaDescription = metaDescription ~ ' ' ~ page.product.customFields.custom_produkt_produkt_lage %}
{% set metaDescriptionComma = true %}
{% endif %}
{% if page.product.customFields.custom_produkt_produkt_typ %}
{% if metaDescriptionComma == true %}
{% set metaDescription = metaDescription ~ ', ' %}
{% endif %}
{% set metaDescription = metaDescription ~ ' ' ~ page.product.customFields.custom_produkt_produkt_typ %}
{% set metaDescriptionComma = true %}
{% endif %}
{% if page.product.customFields.custom_produkt_produkt_flaschengroesse %}
{% if metaDescriptionComma == true %}
{% set metaDescription = metaDescription ~ ', ' %}
{% endif %}
{% set metaDescription = metaDescription ~ ' ' ~ page.product.customFields.custom_produkt_produkt_flaschengroesse %}
{% set metaDescriptionComma = true %}
{% endif %}
{% if page.product.customFields.custom_produzent_produzent_name %}
{% if metaDescriptionComma == true %}
{% set metaDescription = metaDescription ~ ', ' %}
{% endif %}
{% set metaDescription = metaDescription ~ ' ' ~ page.product.customFields.custom_produzent_produzent_name %}
{% set metaDescriptionComma = true %}
{% endif %}
{% if page.product.customFields.custom_weingut_produzent_region %}
{% if metaDescriptionComma == true %}
{% set metaDescription = metaDescription ~ ', ' %}
{% endif %}
{% set metaDescription = metaDescription ~ ' ' ~ page.product.customFields.custom_weingut_produzent_region %}
{% endif %}
{% set metaDescription = metaDescription ~ '. ' %}
{% if page.product.customFields.custom_produkt_produkt_traubenbeschreibung %}
{% set metaDescription = metaDescription ~ 'product.metaDescriptionTraubensorten'|trans ~ ' ' ~ page.product.customFields.custom_produkt_produkt_traubenbeschreibung %}
{% endif %}
{% set metaDescription = metaDescription ~ ' ' ~ 'product.metaDescriptionSuffix'|trans %}
{% elseif (context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_producers in activecategory.category.path or context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_producers == activecategory.category.id) %}
{# Winzerportraits #}
{% if (activecategory.category.customFields.custom_category_attributes_land == true) %}
{% set metaDescription = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.name ~ ' | ' ~ 'product.metaDescriptionSuffixAlt'|trans ~ ' | ' ~ 'product.metaTitleMartelOnline'|trans %}
{% elseif (activecategory.category.customFields.custom_category_attributes_region == true) %}
{% set metaDescription = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name ~ ' / ' ~ activecategory.category.translated.name ~ ' | ' ~ 'product.metaDescriptionSuffixAlt'|trans ~ ' | ' ~ 'product.metaTitleMartelOnline'|trans %}
{% elseif (activecategory.category.customFields.custom_category_attributes_subregion == true) %}
{% set metaDescription = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_region_name ~ ' / ' ~ activecategory.category.translated.name ~ ' | ' ~ 'product.metaDescriptionSuffixAlt'|trans ~ ' | ' ~ 'product.metaTitleMartelOnline'|trans %}
{% elseif (activecategory.category.customFields.custom_category_attributes_weingut == true) %}
{% set metaDescription = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name %}
{% if activecategory.category.translated.customFields.custom_category_attributes_region_name %}
{% set metaDescription = metaDescription ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_region_name %}
{% endif %}
{% if activecategory.category.translated.customFields.custom_category_attributes_subregion_name %}
{% set metaDescription = metaDescription ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_subregion_name %}
{% endif %}
{% set metaDescription = metaDescription ~ ' / ' ~ activecategory.category.translated.name ~ ' | ' ~ 'product.metaDescriptionSuffixAlt'|trans ~ ' | ' ~ 'product.metaTitleMartelOnline'|trans %}
{% else %}
{% set metaDescription = metaInformation.metaDescription|striptags|trim|u.truncate(config("seo").seo.descriptionMaxLength ?? 160, '…') %}
{% endif %}
{% elseif (context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_regions in activecategory.category.path or context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_regions == activecategory.category.id) %}
{# Weinregionen #}
{% if (activecategory.category.customFields.custom_category_attributes_land == true) %}
{% set metaDescription = 'producer.metaTitleProducerRegionAffix'|trans ~ ' ' ~ activecategory.category.translated.name ~ ' | ' ~ 'product.metaDescriptionSuffixAlt'|trans ~ ' | ' ~ 'product.metaTitleMartelOnline'|trans %}
{% elseif (activecategory.category.customFields.custom_category_attributes_region == true) %}
{% set metaDescription = 'producer.metaTitleProducerRegionAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name ~ ' / ' ~ activecategory.category.translated.name ~ ' | ' ~ 'product.metaDescriptionSuffixAlt'|trans ~ ' | ' ~ 'product.metaTitleMartelOnline'|trans %}
{% elseif (activecategory.category.customFields.custom_category_attributes_subregion == true) %}
{% set metaDescription = 'producer.metaTitleProducerRegionAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_region_name ~ ' / ' ~ activecategory.category.translated.name ~ ' | ' ~ 'product.metaDescriptionSuffixAlt'|trans ~ ' | ' ~ 'product.metaTitleMartelOnline'|trans %}
{% elseif (activecategory.category.customFields.custom_category_attributes_weingut == true) %}
{% set metaDescription = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name %}
{% if activecategory.category.translated.customFields.custom_category_attributes_region_name %}
{% set metaDescription = metaDescription ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_region_name %}
{% endif %}
{% if activecategory.category.translated.customFields.custom_category_attributes_subregion_name %}
{% set metaDescription = metaDescription ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_subregion_name %}
{% endif %}
{% set metaDescription = metaDescription ~ ' / ' ~ activecategory.category.translated.name ~ ' | ' ~ 'product.metaDescriptionSuffixAlt'|trans ~ ' | ' ~ 'product.metaTitleMartelOnline'|trans %}
{% else %}
{% set metaDescription = metaInformation.metaDescription|striptags|trim|u.truncate(config("seo").seo.descriptionMaxLength ?? 160, '…') %}
{% endif %}
{% else %}
{% set metaDescription = metaInformation.metaDescription|striptags|trim|u.truncate(config("seo").seo.descriptionMaxLength ?? 160, '…') %}
{% endif %}
{% if page.product.translated.name|length > 0 %}
{% set metaTitleComma = false %}
{% set metaTitle = page.product.translated.name %}
{% if page.product.customFields.custom_produkt_produkt_jahrgang %}
{% set metaTitle = metaTitle ~ ' ' ~ page.product.customFields.custom_produkt_produkt_jahrgang %}
{% set metaTitleComma = true %}
{% endif %}
{% if page.product.customFields.custom_produkt_produkt_flaschengroesse %}
{% if metaTitleComma == true %}
{% set metaTitle = metaTitle ~ ', ' %}
{% endif %}
{% set metaTitle = metaTitle ~ ' ' ~ page.product.customFields.custom_produkt_produkt_flaschengroesse %}
{% set metaTitleComma = true %}
{% endif %}
{% if page.product.customFields.custom_produzent_produzent_name %}
{% if metaTitleComma == true %}
{% set metaTitle = metaTitle ~ ' - ' %}
{% set metaTitle = metaTitle ~ ' ' ~ page.product.customFields.custom_produzent_produzent_name %}
{% set metaTitleComma = true %}
{% endif %}
{% endif %}
{% set metaTitle = metaTitle ~ ' | ' ~ 'product.metaTitleSuffix'|trans %}
{% elseif (context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_producers in activecategory.category.path or context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_producers == activecategory.category.id) %}
{# Winzerportraits #}
{% if (activecategory.category.customFields.custom_category_attributes_land == true) %}
{% set metaTitle = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.name %}
{% elseif (activecategory.category.customFields.custom_category_attributes_region == true) %}
{% set metaTitle = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name ~ ' / ' ~ activecategory.category.translated.name %}
{% elseif (activecategory.category.customFields.custom_category_attributes_subregion == true) %}
{% set metaTitle = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_region_name ~ ' / ' ~ activecategory.category.translated.name %}
{% elseif (activecategory.category.customFields.custom_category_attributes_weingut == true) %}
{% set metaTitle = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name %}
{% if activecategory.category.translated.customFields.custom_category_attributes_region_name %}
{% set metaTitle = metaTitle ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_region_name %}
{% endif %}
{% if activecategory.category.translated.customFields.custom_category_attributes_subregion_name %}
{% set metaTitle = metaTitle ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_subregion_name %}
{% endif %}
{% set metaTitle = metaTitle ~ ' / ' ~ activecategory.category.translated.name %}
{% else %}
{% set metaTitle = metaInformation.metaTitle|striptags|trim %}
{% endif %}
{% elseif (context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_regions in activecategory.category.path or context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_regions == activecategory.category.id) %}
{# Weinregionen #}
{% if (activecategory.category.customFields.custom_category_attributes_land == true) %}
{% set metaTitle = 'producer.metaTitleProducerRegionAffix'|trans ~ ' ' ~ activecategory.category.translated.name %}
{% elseif (activecategory.category.customFields.custom_category_attributes_region == true) %}
{% set metaTitle = 'producer.metaTitleProducerRegionAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name ~ ' / ' ~ activecategory.category.translated.name %}
{% elseif (activecategory.category.customFields.custom_category_attributes_subregion == true) %}
{% set metaTitle = 'producer.metaTitleProducerRegionAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_region_name ~ ' / ' ~ activecategory.category.translated.name %}
{% elseif (activecategory.category.customFields.custom_category_attributes_weingut == true) %}
{% set metaTitle = 'producer.metaTitleProducerAffix'|trans ~ ' ' ~ activecategory.category.translated.customFields.custom_category_attributes_land_name %}
{% if activecategory.category.translated.customFields.custom_category_attributes_region_name %}
{% set metaTitle = metaTitle ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_region_name %}
{% endif %}
{% if activecategory.category.translated.customFields.custom_category_attributes_subregion_name %}
{% set metaTitle = metaTitle ~ ' / ' ~ activecategory.category.translated.customFields.custom_category_attributes_subregion_name %}
{% endif %}
{% set metaTitle = metaTitle ~ ' / ' ~ activecategory.category.translated.name %}
{% else %}
{% set metaTitle = metaInformation.metaTitle|striptags|trim %}
{% endif %}
{% else %}
{% set metaTitle = metaInformation.metaTitle|striptags|trim %}
{% if metaTitle == "Martel AG" %}
{% set metaTitle = "general.weinhandlungMartel"|trans %}
{% endif %}
{% endif %}
{% if page.product.translated.name|length > 0 %}
{% set metaKeywords = page.product.translated.name %}
{% else %}
{% set metaKeywords = metaInformation.metaKeywords|striptags|trim %}
{% endif %}
{% endapply %}<head>
{% block layout_head_meta_tags %}
{% block layout_head_meta_tags_charset %}
<meta charset="utf-8">
<link rel="preconnect" href="//app.usercentrics.eu">
<link rel="preconnect" href="//api.usercentrics.eu">
<link rel="preconnect" href="//privacy-proxy.usercentrics.eu">
<link rel="preload" href="//app.usercentrics.eu/browser-ui/latest/loader.js" as="script">
<link rel="preload" href="//privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js" as="script">
<script id="usercentrics-cmp" src="https://app.usercentrics.eu/browser-ui/latest/loader.js" data-settings-id="rt7Kk_f6fzLC7Y" async></script>
<script type="application/javascript" src="https://privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js"></script>
{% block wbm_layout_head_tag_manager_data_layer_push %}
<script>
let gtmIsTrackingProductClicks = Boolean({{ wbmTagManagerConfig.isTrackingProductClicks|raw }}), gtmContainerId = '{{ wbmTagManagerConfig.gtmContainerId|raw }}', hasSWConsentSupport = Boolean(Number({{ wbmTagManagerConfig.hasSWConsentSupport }}));
window.wbmScriptIsSet = false;
</script>
{% if dataLayer %}<script {{ wbmTagManagerConfig.dataLayerScriptTagAttributes|raw }}>{% verbatim %}
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({% endverbatim %}{{ dataLayer|raw }}{% verbatim %});
{% endverbatim %}{% if onEvent %}{% verbatim %}
var onEventDataLayer = JSON.parse('{% endverbatim %}{{ onEvent|raw }}{% verbatim %}');
{% endverbatim %}{% endif %}
</script>{% endif %}
{% endblock %}
{% block wbm_layout_head_tag_manager_snippet %}
{% if wbmTagManagerConfig.gtmContainerId %}<!-- WbmTagManagerEcomm Head Snippet Start -->
<script id="wbmTagManger" {{ wbmTagManagerConfig.scriptTagAttributes|raw }}>{% verbatim %}
function getCookie(name) {
var cookieMatch = document.cookie.match(name + '=(.*?)(;|$)');
return cookieMatch && decodeURI(cookieMatch[1]);
}
var gtmCookieSet = getCookie('{% endverbatim %}{{ wbmTagManagerConfig.wbmCookieEnabledName }}{% verbatim %}');
{% endverbatim %}{% if wbmTagManagerConfig.gtmFunctionOverwrite is empty %}{% verbatim %}
var googleTag = function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl +
'{% endverbatim %}{{ wbmTagManagerConfig.extendedUrlParameter|trim|raw }}{% verbatim %}';
j.setAttribute('data-usercentrics', 'Google Tag Manager'); // Set data-usercentrics attribute
j.setAttribute('type', 'text/plain'); // Set type attribute
f.parentNode.insertBefore(j, f);
};
{% endverbatim %}{% else %}{% verbatim %}
var googleTag = {% endverbatim %}{{ wbmTagManagerConfig.gtmFunctionOverwrite }}{% verbatim %}
{% endverbatim %}{% endif %}{% verbatim %}
if (hasSWConsentSupport && gtmCookieSet === null) {
window.wbmGoogleTagmanagerId = gtmContainerId;
window.wbmScriptIsSet = false;
window.googleTag = googleTag;
} else {
window.wbmScriptIsSet = true;
googleTag(window, document, 'script', 'dataLayer', gtmContainerId);
googleTag = null;
}{% endverbatim %}
</script><!-- WbmTagManagerEcomm Head Snippet End -->{% endif %}
{% endblock %}
{# {% block nextag_martel_ga4_snippet %}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Q50RHQ2K9D"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Q50RHQ2K9D');
</script>
{% endblock %} #}
{% block nextag_hotjar_snippet %}
{% if "martel.ch" in app.request.uri %}
<!-- Hotjar Tracking Code for https://www.martel.ch -->
<script type="text/plain" data-usercentrics="Hotjar">
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:3046135,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<meta name="p:domain_verify" content="df71b587b62c0e263841589e5a864963"/>
<!-- Meta Pixel Code -->
<script type="text/plain" data-usercentrics="Facebook Pixel">
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1387008084961365');
fbq('track', 'PageView');
</script>
<!-- End Meta Pixel Code -->
{% endif %}
{% endblock %}
{% endblock %}
{% block layout_head_meta_tags_viewport %}
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% endblock %}
{% block layout_head_meta_tags_general %}
<meta name="author"
content="{{ "general.martelWeinwelt"|trans }}"/>
<meta name="publisher"
content="{{ "general.martelWeinwelt"|trans }}"/>
{% if "LP-Vorlage MEX" in page.cmsPage.translated.name or "LP-Vorlage B2B-Aktion" in page.cmsPage.translated.name %}
<meta name="robots" id="meta-robots"
content="noindex,nofollow"/>
{% elseif page.cmsPage.translated.name == "Martel-Kategorie" %}
<meta name="robots" id="meta-robots"
content="index,follow"/>
{% else %}
<meta name="robots" id="meta-robots"
content="{% block layout_head_meta_tags_robots %}{{ metaInformation.robots }}{% endblock %}"/>
{% endif %}
<meta name="revisit-after"
content="{{ metaInformation.revisit|striptags }}"/>
<meta name="keywords"
content="{% block layout_head_meta_tags_keywords %}{{ metaKeywords }}{% endblock %}"/>
<meta name="description"
content="{% block layout_head_meta_tags_description %}{{ metaDescription }}{% endblock %}"/>
<meta name="format-detection" content="telephone=no">
{% endblock %}
{% block layout_head_meta_tags_opengraph %}
<meta property="og:type"
content="website"/>
<meta property="og:site_name"
content="{{ basicConfig.shopName }}"/>
<meta property="og:title"
content="{{ metaTitle }}"/>
<meta property="og:description"
content="{% block layout_head_meta_tags_description_og %}{{ metaDescription }}{% endblock %}"/>
<meta property="og:image"
content="{{ theme_config('sw-logo-share') }}"/>
<meta name="twitter:card"
content="summary"/>
<meta name="twitter:site"
content="{{ basicConfig.shopName }}"/>
<meta name="twitter:title"
content="{{ metaTitle }}"/>
<meta name="twitter:description"
content="{% block layout_head_meta_tags_description_twitter %}{{ metaDescription }}{% endblock %}"/>
<meta name="twitter:image"
content="{{ theme_config('sw-logo-share') }}"/>
{% endblock %}
{% block layout_head_meta_tags_schema_webpage %}
<meta itemprop="copyrightHolder"
content="{{ basicConfig.shopName }}"/>
<meta itemprop="copyrightYear"
content="{{ metaInformation.copyrightYear|striptags }}"/>
<meta itemprop="isFamilyFriendly"
content="{% if basicConfig.familyFriendly %}true{% else %}false{% endif %}"/>
<meta itemprop="image"
content="{{ theme_config('sw-logo-desktop') }}"/>
{% endblock %}
{% block layout_head_meta_tags_hreflangs %}
{% for link in hrefLang %}
<link rel="alternate" hreflang="{{ link.locale }}" href="{{ link.url }}" />
{% endfor %}
{% endblock %}
{% endblock %}
{% block layout_head_favicon %}
<link rel="apple-touch-icon" sizes="180x180" href="/bundles/nextagtheme/assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/bundles/nextagtheme/assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/bundles/nextagtheme/assets/favicons/favicon-16x16.png">
<link rel="manifest" href="/bundles/nextagtheme/assets/favicons/site.webmanifest">
<link rel="shortcut icon" href="/bundles/nextagtheme/assets/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#000000">
<meta name="msapplication-config" content="/bundles/nextagtheme/assets/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
{% endblock %}
{% block layout_head_apple %}
{% endblock %}
{% block layout_head_android %}
{% endblock %}
{% block layout_head_canonical %}
{% if page.metaInformation.canonical %}
{% if page.cmsPage.translated.name == "Martel-Kategorie" %}
{% if (app.request.locale == "en-GB") %}
<link rel="canonical" href="{{app.request.get('sw-sales-channel-absolute-base-url')}}/en/wine/"/>
{% elseif(app.request.locale == "fr-FR") %}
<link rel="canonical" href="{{app.request.get('sw-sales-channel-absolute-base-url')}}/fr/vin/"/>
{% else %}
<link rel="canonical" href="{{app.request.get('sw-sales-channel-absolute-base-url')}}/wein/"/>
{% endif %}
{% else %}
<link rel="canonical" href="{{ page.metaInformation.canonical }}" />
{% endif %}
{% endif %}
{% endblock %}
{% block layout_head_title %}
<title itemprop="name" id="itempropname">
{% block layout_head_title_inner %}{% apply spaceless %}
{{ metaTitle }}
{% endapply %}{% endblock %}
</title>
{% endblock %}
{% block layout_head_stylesheet %}
{% if context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_regions in activecategory.category.path or
context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_regions == activecategory.category.id or
context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_producers in activecategory.category.path or
context.salesChannel.translated.customFields.custom_winzerportraits_weinregionen_cat_producers == activecategory.category.id
%}
<link rel="stylesheet" href="/cms/wp-content/themes/next-theme/assets/lib/swiper-6.4.14/swiper-bundle.min.css">
{% endif %}
{% if isHMRMode %}
{# CSS will be loaded from the JS automatically #}
{% else %}
{% set assets = theme_config('assets.css') %}
{% for file in assets %}
{# <link rel="preload" href="{{ asset(file, 'theme') }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="{{ asset(file, 'theme') }}"></noscript> #}
<link rel="stylesheet" href="{{ asset(file, 'theme') }}">
{% endfor %}
{% endif %}
{% endblock %}
{% block layout_head_javascript_feature %}
{% sw_include "@Storefront/storefront/component/feature.html.twig" %}
{% endblock %}
{# Block for tracking scripts which are required to include in the `head` section of the document #}
{% block layout_head_javascript_tracking %}
{% sw_include "@Storefront/storefront/component/analytics.html.twig" %}
{# Google Tag Manager #}
{% if "martel.dev7" not in app.request.uri %}
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MQ8CCQC');</script>
{% endif %}
{% endblock %}
{% block layout_head_preconnect %}
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin>
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin>
{% endblock %}
{% block layout_header_google_maps %}
{% endblock %}
</head>
{% endblock %}