{# Set variable to "true" to enable HMR (hot page reloading) mode #}
{% set isHMRMode = app.request.headers.get('hot-reload-mode') and app.environment == 'dev' %}
{% block base_doctype %}
<!DOCTYPE html>
{% endblock %}
{% block base_html %}
<html lang="{{ app.request.locale }}"
itemscope="itemscope"
itemtype="https://schema.org/WebPage">
{% endblock %}
{% block base_head %}
{% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
{% endblock %}
{% block base_body %}
<script type="text/javascript" src="{{ asset('assets/js/touch.js', "@AmMacTrade") }}"></script>
<body class="{% block base_body_classes %}is-ctl-{{ controllerName|lower }} is-act-{{ controllerAction|lower }}{% endblock %}">
{% block base_body_inner %}
{% block base_noscript %}
<noscript class="noscript-main">
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
type: 'info',
content: 'general.noscriptNotice'|trans|sw_sanitize
} %}
</noscript>
{% endblock %}
<div class="header-main-wrapper">
{% block base_header %}
{% block layout_top_bar %}
{% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
{% endblock %}
<header class="header-main">
{% block base_header_inner %}
<div class="container">
{% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
</div>
{% endblock %}
</header>
{% endblock %}
{% block base_navigation %}
<div class="nav-main">
{% block base_navigation_inner %}
{% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
{% endblock %}
</div>
{% endblock %}
{#
<div class="header-notice">
{{ 'header.notice'|trans|sw_sanitize }}
</div>
#}
<div id="header-notice-ticker">
<ul>
{% if context.salesChannel.id =='45be9f42765d42e8ae1137d1812040f4' || context.salesChannel.id =='4faca3b6a7f149cea7ade06ee340ce19' %}
{{ 'header.noticecob'|trans|raw }}
{% else %}
{{ 'header.notice'|trans|raw }}
{% endif %}
</ul>
</div>
</div>
{% block base_offcanvas_navigation %}
{% if page.header.navigation %}
<div class="d-none js-navigation-offcanvas-initial-content">
{% block base_offcanvas_navigation_inner %}
{% sw_include '@Storefront/storefront/layout/navigation/offcanvas/navigation.html.twig' with { navigation: page.header.navigation } %}
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% block base_main %}
<main class="content-main">
{% block base_flashbags %}
<div class="flashbags container">
{% for type, messages in app.flashes %}
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: type, list: messages } %}
{% endfor %}
</div>
{% endblock %}
{% block base_main_inner %}
{% block base_breadcrumb %}
{% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
context: context,
category: page.product.seoCategory
} only %}
{% endblock %}
<div class="container">
{% block base_main_container %}
<div class="container-main">
{% block base_content %}{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}
</main>
{% endblock %}
{% block base_footer %}
<footer class="footer-newsletter">
<div class="container">
<div class="row">
<div class="col-md-3 newsletter-logo">
<img src="{{ asset('assets/images/logo_footer-newsletter.svg', "@AmMacTrade") }}" alt="MacTrade" height="66">
</div>
{% if context.salesChannel.id !='45be9f42765d42e8ae1137d1812040f4' && context.salesChannel.id !='4faca3b6a7f149cea7ade06ee340ce19' %}
<div class="col-md-5 newsletter-text">
<div class="headline">Abonnieren Sie unseren Newsletter und sichern Sie sich einen € 10,- Gutschein.<span class="sup">2</span></div>
<div class="short-devider"></div>
<div class="notice">Verpassen Sie keine Neuigkeiten oder Aktionen mehr.</div>
</div>
<div class="col-md-4 newsletter-form">
<div class="cms-element-form">
<form action="/newsletter"
method="get"
data-form-csrf-handler="false"
data-form-validation="false">
<div class="form-content">
<div class="form-group input-group ">
<input name="email"
type="email"
id="footerNewsletterMail"
placeholder="{{ "account.personalMailPlaceholder"|trans }}{{ "general.required"|trans }}"
required="required"
value="{{ data.get('email') }}"
class="form-control{% if formViolations.getViolations('/email') %} is-invalid{% endif %}"/>
<button id="btnFooterNewsletterForm" type="button" class="btn">
<img src="{{ asset('assets/images/icon_mail.svg', "@AmMacTrade") }}" alt="MacTrade">
</button>
</div>
</div>
</form>
</div>
</div>
{% endif %}
</div>
</div>
</footer>
<footer class="footer-main">
{% block base_footer_inner %}
{% sw_include '@Storefront/storefront/layout/footer/footer.html.twig' %}
{% endblock %}
</footer>
{% endblock %}
{% endblock %}
{% block base_scroll_up %}
{% sw_include '@Storefront/storefront/layout/scroll-up.html.twig' %}
{% endblock %}
{% block base_pseudo_modal %}
{% sw_include '@Storefront/storefront/component/pseudo-modal.html.twig' %}
{% endblock %}
{% block base_body_script %}
{% if not feature('FEATURE_NEXT_15917') %}
{# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_token` instead #}
{% block base_script_token %}
{% endblock %}
{# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_router` instead #}
{% block base_script_router %}
{# Register all routes that will be needed in JavaScript to the window.router object #}
<script>
window.activeNavigationId = '{{ page.header.navigation.active.id }}';
window.router = {
'frontend.cart.offcanvas': '{{ path('frontend.cart.offcanvas') }}',
'frontend.cookie.offcanvas': '{{ path('frontend.cookie.offcanvas') }}',
'frontend.checkout.finish.page': '{{ path('frontend.checkout.finish.page') }}',
'frontend.checkout.info': '{{ path('frontend.checkout.info') }}',
'frontend.menu.offcanvas': '{{ path('frontend.menu.offcanvas') }}',
'frontend.cms.page': '{{ path('frontend.cms.page') }}',
'frontend.cms.navigation.page': '{{ path('frontend.cms.navigation.page') }}',
'frontend.account.addressbook': '{{ path('frontend.account.addressbook') }}',
'frontend.csrf.generateToken': '{{ path('frontend.csrf.generateToken') }}',
'frontend.country.country-data': '{{ path('frontend.country.country.data') }}',
'frontend.store-api.proxy': '{{ path('frontend.store-api.proxy') }}',
};
window.storeApiProxyToken = '{{ sw_csrf("frontend.store-api.proxy", {"mode": "token"}) }}';
window.salesChannelId = '{{ app.request.attributes.get('sw-sales-channel-id') }}';
</script>
{% endblock %}
{# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_breakpoints` instead #}
{% block base_script_breakpoints %}
{# Register the available viewport breakpoints the window.breakpoints object #}
<script>
{% set breakpoint = {
'xs': theme_config('breakpoint.sm'),
'sm': theme_config('breakpoint.md'),
'md': theme_config('breakpoint.lg'),
'lg': theme_config('breakpoint.xl')
} %}
window.breakpoints = {{ breakpoint|json_encode()|raw }};
</script>
{% endblock %}
{# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_csrf` instead #}
{% block base_script_csrf %}
<script>
window.csrf = {
'enabled': '{{ shopware.csrfEnabled }}',
'mode': '{{ shopware.csrfMode }}'
}
</script>
{% endblock %}
{% if config('core.cart.wishlistEnabled') %}
{% block base_script_wishlist_state %}
<script>
window.customerLoggedInState = {{ context.customer is not null and not context.customer.guest ? 1 : 0 }};
window.wishlistEnabled = {{ config('core.cart.wishlistEnabled') }};
</script>
{% endblock %}
{% endif %}
{# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_hmr_mode` instead #}
{% block base_script_hmr_mode %}
{% if isHMRMode %}
<script type="text/javascript" src="/_webpack_hot_proxy_/js/vendor-node.js"></script>
<script type="text/javascript" src="/_webpack_hot_proxy_/js/vendor-shared.js"></script>
<script type="text/javascript" src="/_webpack_hot_proxy_/js/runtime.js"></script>
<script type="text/javascript" src="/_webpack_hot_proxy_/js/app.js"></script>
{# The storefront entry is a combined entry point which contains all plugins & themes #}
<script type="text/javascript" src="/_webpack_hot_proxy_/js/storefront.js"></script>
{% else %}
{% for file in theme_config('assets.js') %}
<script type="text/javascript" src="{{ asset(file, 'theme') }}"></script>
{% endfor %}
{% endif %}
<script>
$(document).ready(function(){
$(".click-copy").click(function(){
$(".chkmark-icon").hide();
});
});
</script>
{% endblock %}
{% endif %}
{% endblock %}
</body>
{% endblock %}
</html>