custom/plugins/AmMacTrade/src/Resources/views/storefront/base.html.twig line 17

Open in your IDE?
  1. {# Set variable to "true" to enable HMR (hot page reloading) mode #}
  2. {% set isHMRMode = app.request.headers.get('hot-reload-mode') and app.environment == 'dev' %}
  3. {% block base_doctype %}
  4. <!DOCTYPE html>
  5. {% endblock %} 
  6. {% block base_html %}
  7. <html lang="{{ app.request.locale }}"
  8.       itemscope="itemscope"
  9.       itemtype="https://schema.org/WebPage">
  10. {% endblock %}
  11. {% block base_head %}
  12.     {% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
  13. {% endblock %}
  14. {% block base_body %} 
  15. <script type="text/javascript" src="{{ asset('assets/js/touch.js', "@AmMacTrade") }}"></script>
  16.     <body class="{% block base_body_classes %}is-ctl-{{ controllerName|lower }} is-act-{{ controllerAction|lower }}{% endblock %}">
  17.     {% block base_body_inner %}
  18.         {% block base_noscript %}
  19.             <noscript class="noscript-main">
  20.                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  21.                     type: 'info',
  22.                     content: 'general.noscriptNotice'|trans|sw_sanitize
  23.                 } %}
  24.             </noscript>
  25.         {% endblock %}
  26.         <div class="header-main-wrapper">
  27.             {% block base_header %}
  28.                 {% block layout_top_bar %}
  29.                     {% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
  30.                 {% endblock %}
  31.                 <header class="header-main">
  32.                     {% block base_header_inner %}
  33.                         <div class="container">
  34.                             {% sw_include '@Storefront/storefront/layout/header/header.html.twig' %}
  35.                         </div>
  36.                     {% endblock %}
  37.                 </header>
  38.             {% endblock %}
  39.             {% block base_navigation %}
  40.                 <div class="nav-main">
  41.                     {% block base_navigation_inner %}
  42.                         {% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
  43.                     {% endblock %}
  44.                 </div>
  45.             {% endblock %}
  46.             {#
  47.             <div class="header-notice">
  48.                 {{ 'header.notice'|trans|sw_sanitize }}
  49.             </div>
  50.             #}
  51.             
  52.             <div id="header-notice-ticker">
  53.                 <ul>
  54.                 {% if context.salesChannel.id =='45be9f42765d42e8ae1137d1812040f4' || context.salesChannel.id =='4faca3b6a7f149cea7ade06ee340ce19' %}
  55.                     {{ 'header.noticecob'|trans|raw }}
  56.                 {% else %}
  57.                     {{ 'header.notice'|trans|raw }}
  58.                 {% endif %}
  59.                 </ul>
  60.             </div> 
  61.         </div>
  62.         {% block base_offcanvas_navigation %}
  63.             {% if page.header.navigation %}
  64.                 <div class="d-none js-navigation-offcanvas-initial-content">
  65.                     {% block base_offcanvas_navigation_inner %}
  66.                         {% sw_include '@Storefront/storefront/layout/navigation/offcanvas/navigation.html.twig' with { navigation: page.header.navigation } %}
  67.                     {% endblock %}
  68.                 </div>
  69.             {% endif %}
  70.         {% endblock %}
  71.         {% block base_main %}
  72.             <main class="content-main">
  73.                 {% block base_flashbags %}
  74.                     <div class="flashbags container">
  75.                         {% for type, messages in app.flashes %}
  76.                             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: type, list: messages } %}
  77.                         {% endfor %}
  78.                     </div>
  79.                 {% endblock %}
  80.                 {% block base_main_inner %}
  81.                     {% block base_breadcrumb %}
  82.                         {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  83.                             context: context,
  84.                             category: page.product.seoCategory
  85.                         } only %}
  86.                     {% endblock %}
  87.                     <div class="container">
  88.                         {% block base_main_container %}
  89.                             <div class="container-main">
  90.                                 {% block base_content %}{% endblock %}
  91.                             </div>
  92.                         {% endblock %}
  93.                     </div>
  94.                 {% endblock %}
  95.             </main>
  96.         {% endblock %}
  97.         {% block base_footer %}
  98.             <footer class="footer-newsletter">
  99.                 <div class="container">
  100.                     <div class="row">
  101.                         <div class="col-md-3 newsletter-logo">
  102.                             <img src="{{ asset('assets/images/logo_footer-newsletter.svg', "@AmMacTrade") }}" alt="MacTrade" height="66">
  103.                         </div>
  104.                         {% if context.salesChannel.id !='45be9f42765d42e8ae1137d1812040f4' && context.salesChannel.id !='4faca3b6a7f149cea7ade06ee340ce19' %}
  105.                         <div class="col-md-5 newsletter-text">
  106.                             <div class="headline">Abonnieren Sie unseren Newsletter und sichern Sie sich einen € 10,- Gutschein.<span class="sup">2</span></div>
  107.                             <div class="short-devider"></div>
  108.                             <div class="notice">Verpassen Sie keine Neuigkeiten oder Aktionen mehr.</div>
  109.                         </div>
  110.                         <div class="col-md-4 newsletter-form"> 
  111.                             <div class="cms-element-form">
  112.                                 <form action="/newsletter"
  113.                                       method="get"
  114.                                       data-form-csrf-handler="false"
  115.                                       data-form-validation="false">
  116.                                     <div class="form-content">
  117.                                         <div class="form-group input-group ">
  118.                                             <input name="email"
  119.                                                    type="email"
  120.                                                    id="footerNewsletterMail"
  121.                                                    placeholder="{{ "account.personalMailPlaceholder"|trans }}{{ "general.required"|trans }}"
  122.                                                    required="required"
  123.                                                    value="{{ data.get('email') }}"
  124.                                                    class="form-control{% if formViolations.getViolations('/email') %} is-invalid{% endif %}"/>
  125.                                             <button id="btnFooterNewsletterForm" type="button" class="btn">
  126.                                                 <img src="{{ asset('assets/images/icon_mail.svg', "@AmMacTrade") }}" alt="MacTrade">
  127.                                             </button>
  128.                                         </div>
  129.                                     </div>
  130.                                 </form>
  131.                             </div>
  132.                         </div>
  133.                         
  134.                         {% endif %}
  135.                     </div>
  136.                 </div>
  137.             </footer>
  138.             <footer class="footer-main">
  139.                 {% block base_footer_inner %}
  140.                     {% sw_include '@Storefront/storefront/layout/footer/footer.html.twig' %}
  141.                 {% endblock %}
  142.             </footer>
  143.         {% endblock %}
  144.     {% endblock %}
  145.     {% block base_scroll_up %}
  146.         {% sw_include '@Storefront/storefront/layout/scroll-up.html.twig' %}
  147.     {% endblock %}
  148.     {% block base_pseudo_modal %}
  149.         {% sw_include '@Storefront/storefront/component/pseudo-modal.html.twig' %}
  150.     {% endblock %}
  151.     {% block base_body_script %}
  152.         {% if not feature('FEATURE_NEXT_15917') %}
  153.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_token` instead #}
  154.             {% block base_script_token %}
  155.             {% endblock %}
  156.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_router` instead #}
  157.             {% block base_script_router %}
  158.                 {# Register all routes that will be needed in JavaScript to the window.router object #}
  159.                 <script>
  160.                     window.activeNavigationId = '{{ page.header.navigation.active.id }}';
  161.                     window.router = {
  162.                         'frontend.cart.offcanvas': '{{ path('frontend.cart.offcanvas') }}',
  163.                         'frontend.cookie.offcanvas': '{{ path('frontend.cookie.offcanvas') }}',
  164.                         'frontend.checkout.finish.page': '{{ path('frontend.checkout.finish.page') }}',
  165.                         'frontend.checkout.info': '{{ path('frontend.checkout.info') }}',
  166.                         'frontend.menu.offcanvas': '{{ path('frontend.menu.offcanvas') }}',
  167.                         'frontend.cms.page': '{{ path('frontend.cms.page') }}',
  168.                         'frontend.cms.navigation.page': '{{ path('frontend.cms.navigation.page') }}',
  169.                         'frontend.account.addressbook': '{{ path('frontend.account.addressbook') }}',
  170.                         'frontend.csrf.generateToken': '{{ path('frontend.csrf.generateToken') }}',
  171.                         'frontend.country.country-data': '{{ path('frontend.country.country.data') }}',
  172.                         'frontend.store-api.proxy': '{{ path('frontend.store-api.proxy') }}',
  173.                     };
  174.                     window.storeApiProxyToken = '{{ sw_csrf("frontend.store-api.proxy", {"mode": "token"}) }}';
  175.                     window.salesChannelId = '{{ app.request.attributes.get('sw-sales-channel-id') }}';
  176.                 </script>
  177.             {% endblock %}
  178.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_breakpoints` instead #}
  179.             {% block base_script_breakpoints %}
  180.                 {# Register the available viewport breakpoints the window.breakpoints object #}
  181.                 <script>
  182.                     {% set breakpoint = {
  183.                         'xs': theme_config('breakpoint.sm'),
  184.                         'sm': theme_config('breakpoint.md'),
  185.                         'md': theme_config('breakpoint.lg'),
  186.                         'lg': theme_config('breakpoint.xl')
  187.                     } %}
  188.                     window.breakpoints = {{ breakpoint|json_encode()|raw }};
  189.                 </script>
  190.             {% endblock %}
  191.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_csrf` instead #}
  192.             {% block base_script_csrf %}
  193.                 <script>
  194.                     window.csrf = {
  195.                         'enabled': '{{ shopware.csrfEnabled }}',
  196.                         'mode': '{{ shopware.csrfMode }}'
  197.                     }
  198.                 </script>
  199.             {% endblock %}
  200.             {% if config('core.cart.wishlistEnabled') %}
  201.                 {% block base_script_wishlist_state %}
  202.                     <script>
  203.                         window.customerLoggedInState = {{ context.customer is not null and not context.customer.guest ? 1 : 0 }};
  204.                         window.wishlistEnabled = {{ config('core.cart.wishlistEnabled') }};
  205.                     </script>
  206.                 {% endblock %}
  207.             {% endif %}
  208.             {# @deprecated tag:v6.5.0 - Will be moved to `layout/meta.html.twig` - Use block `layout_head_javascript_hmr_mode` instead #}
  209.             {% block base_script_hmr_mode %}
  210.                 {% if isHMRMode %}
  211.                     <script type="text/javascript" src="/_webpack_hot_proxy_/js/vendor-node.js"></script>
  212.                     <script type="text/javascript" src="/_webpack_hot_proxy_/js/vendor-shared.js"></script>
  213.                     <script type="text/javascript" src="/_webpack_hot_proxy_/js/runtime.js"></script>
  214.                     <script type="text/javascript" src="/_webpack_hot_proxy_/js/app.js"></script>
  215.                     {# The storefront entry is a combined entry point which contains all plugins & themes #}
  216.                     <script type="text/javascript" src="/_webpack_hot_proxy_/js/storefront.js"></script>
  217.                 {% else %}
  218.                     {% for file in theme_config('assets.js') %}
  219.                         <script type="text/javascript" src="{{ asset(file, 'theme') }}"></script>
  220.                     {% endfor %}
  221.                 {% endif %}
  222.                 
  223.                     
  224.     <script>
  225. $(document).ready(function(){
  226.     $(".click-copy").click(function(){
  227.       $(".chkmark-icon").hide();
  228.     });
  229.   });
  230. </script>
  231.             {% endblock %}
  232.         {% endif %}
  233.     {% endblock %}
  234.     </body>
  235. {% endblock %}
  236. </html>