templates/bundles/SyliusShopBundle/layout.html.twig line 175

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|slice(0, 2) }}">
  3. <head>
  4.     <style>
  5.         a {
  6.             color: #111111;
  7.             text-decoration: none;
  8.             outline: none;
  9.             transition: all 0.3s ease;
  10.         }
  11.         header .part-bottom>.wrap:nth-of-type(2)>ul>li>a {
  12.             padding: 1.1428571429rem 1.4285714286rem;
  13.             padding-left: clamp(0.5714285714rem, 1.5vw, 1.4285714286rem);
  14.             padding-right: clamp(0.5714285714rem, 1.5vw, 1.4285714286rem);
  15.             position: relative;
  16.         }
  17.         /* --- critical layout (pre-stylesheet first paint) --- */
  18.         *, *::before, *::after { box-sizing: border-box; }
  19.         html { margin: 0; padding: 0; font: normal 400 14px/1.429em "Karla", Arial, sans-serif; font-size: 14px; color: #111111; }
  20.         body { margin: 0; padding: 0; background-color: white; }
  21.         img { max-width: 100%; }
  22.         ul { margin: 0; padding: 0; list-style: none; }
  23.         #window header > div, #window > div:not(.wrap), #window > div > div:not(.wrap), #window footer {
  24.             display: flex; flex-direction: column; align-items: center;
  25.         }
  26.         #window header > div > .wrap, #window > div:not(.wrap) > .wrap, #window > div > div:not(.wrap) > .wrap, #window footer > .wrap {
  27.             width: 100%; padding: 0 32px; min-width: 1088px; max-width: 1464px;
  28.         }
  29.         header .special-top-line { padding: 0.5714285714rem 4.2857142857rem; background-color: #78abab; color: white; font-size: 0.8571428571rem; font-weight: 700; text-align: center; }
  30.         header .special-top-line p { margin: 0; }
  31.         header .part-top, header .part-bottom { background-color: whitesmoke; }
  32.         header .part-bottom { background-color: white; }
  33.         header .part-bottom > .wrap > div { padding: 1.7142857143rem 0; display: flex; align-items: center; }
  34.         header .part-bottom > .wrap > div:nth-of-type(1) { flex-grow: 1; }
  35.         header .part-bottom .logo { width: 10rem; min-width: 10rem; height: 1.7142857143rem; }
  36.         header .part-top > div > ul, header .part-bottom > div > ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: stretch; }
  37.         header .part-top > div > ul > li, header .part-bottom > div > ul > li { margin: 0 3.2142857143rem 0 0; display: inline-flex; align-items: center; position: relative; }
  38.         header .part-top > div > ul > li:last-of-type, header .part-bottom > div > ul > li:last-of-type { margin-right: 0; }
  39.         header .part-bottom > .wrap:nth-of-type(2) > ul { width: 100%; border-top: 1px solid #d5d5d5; }
  40.         header .part-bottom > .wrap:nth-of-type(2) > ul > li > a { padding: 1.1428571429rem 1.4285714286rem; }
  41.         header .part-bottom .search form { padding: 0.4285714286rem 0.7857142857rem; border: 1px solid #d5d5d5; display: flex; align-items: center; }
  42.         .cont-block { margin: 1rem 0; }
  43.         .cont-block:first-child { margin-top: 0; }
  44.         .cb-product-cat-list .item-list, .cb-top-post-list .item-list, .cb-text-icon-list .item-list { margin: 1rem -1rem; display: flex; flex-wrap: wrap; }
  45.         .cb-product-cat-list .item-list > .item, .cb-top-post-list .item-list > .item, .cb-text-icon-list .item-list > .item { margin: 1rem; }
  46.         .cb-product-cat-list .item-list > .item, .cb-top-post-list .item-list > .item { width: calc(25% - 2rem); border-radius: 0.5714285714rem; overflow: hidden; }
  47.         .cb-product-cat-list .item::before, .cb-top-post-list .item::before { display: block; content: ""; padding-top: 102.1276595745%; }
  48.         .cb-text-icon-list .item-list > .item { width: calc(33.333% - 1.7142857143rem); }
  49.         .cb-text-icon-list .item .info { display: flex; }
  50.         .cb-contact-options.full-width .box { padding: 1.7142857143rem 4.5714285714rem; width: 100%; background-color: whitesmoke; }
  51.         .cb-newsletter-form { margin: 5rem 0 0; padding: 3rem 0; background-color: whitesmoke; }
  52.         .cb-newsletter-form .cols-wrap { display: flex; }
  53.         .cb-newsletter-form .cols-wrap > .left { margin: 0 9.2857142857rem 0 0; flex-grow: 1; }
  54.         .cb-newsletter-form .cols-wrap > .right { width: 48.92%; }
  55.         footer { background-color: #111111; color: white; }
  56.         footer a { color: white; }
  57.         footer .cols-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; }
  58.         footer .cols-wrap > div { padding: 2.8571428571rem 0 2.2857142857rem; width: calc(25% - 1.5rem); }
  59.         footer .block-title { margin: 0 0 1.1428571429rem; font-size: 1.1428571429rem; font-weight: 700; color: white; }
  60.         footer .part-bottom .cols-wrap > div { width: calc(50% - 1.5rem); }
  61.         footer .part-bottom .cols-wrap > div:nth-of-type(2) { text-align: right; }
  62.         footer ul.socials > li, footer ul.payments > li { display: inline-block; }
  63.         {% if hide_price() %}
  64.         .price, .price-old, .price-avg {
  65.             display: none !important;
  66.         }
  67.         .sub-total-sum .value {
  68.             display: none !important;
  69.         }
  70.         .sub-total-sum .value {
  71.             display: none !important;
  72.         }
  73.         .show-subtotal-value {
  74.             display: none !important;
  75.         }
  76.         .order-item .sum .color-grey, .order-item .sum font {
  77.             display: none !important;
  78.         }
  79.         .discount-subtotal .sum .value {
  80.             display: none !important;
  81.         }
  82.         .show-shipping-value, .show-total-value, .show-tax-value {
  83.             display: none !important;
  84.         }
  85.         .main-part .full-values-grey-wrap {
  86.             display: none !important;
  87.         }
  88.         .prod-info-wrap .full-values-grey-wrap {
  89.             display: none !important;
  90.         }
  91.         .sticker.sale {
  92.             display: none !important;
  93.         }
  94.         {% endif %}
  95.     </style>
  96.     <script>
  97.         function onceLoaded(cb) {
  98.             document.addEventListener("DOMContentLoaded", event => cb(event));
  99.         }
  100.         function onceJqLoaded(cb) {
  101.             const ncb = (event) => {
  102.                 if (typeof $ === 'undefined') {
  103.                     setTimeout(() => ncb(event), 10);
  104.                     return;
  105.                 }
  106.                 cb(event);
  107.             };
  108.             onceLoaded((event) => ncb(event));
  109.         }
  110.     </script>
  111.     <script>
  112.         var Tawk_API = Tawk_API || {},
  113.             Tawk_LoadStart = new Date();
  114.     </script>
  115.     <script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/ba2daf40009c2f83e8b44a30e/4baa522871f891b58006ad787.js");</script>
  116.     <script defer crossorigin="*" charset="UTF-8" src="https://embed.tawk.to/630735a554f06e12d890a94e/1gba2j3r9"></script>
  117.     <script>
  118.         onceJqLoaded(() => {
  119.             $.get('{{ url('homepage_status', {_locale: app.request.locale, _language: app.request.locale|slice(0, 2)}) }}', data => {
  120.                 if (data.status === 'OK') {
  121.                     if (data.hasCartItems) {
  122.                         $('header .icn-bag').addClass('active');
  123.                     }
  124.                     if (data.hasWishlistItems) {
  125.                         $('header .icn-fav').addClass('active');
  126.                     }
  127.                     if (data.isLoggedIn) {
  128.                         $('.user-login-btn').hide();
  129.                         $('.my-account-btn').show();
  130.                     } else {
  131.                         $('.my-account-btn').hide();
  132.                         $('.user-login-btn').show();
  133.                     }
  134.                     if (data.preferencesTop) {
  135.                         $('.pref-container .pointer').html($(data.preferencesTop).html());
  136.                     }
  137.                     if (data.preferencesMobile) {
  138.                         $('.mobile-pref').html($(data.preferencesMobile).html());
  139.                     }
  140.                     if (data.flagMobile) {
  141.                         let newflag = $(data.flagMobile);
  142.                         let oldflag = $('.mobile-pref-flag');
  143.                         oldflag.html(newflag.html());
  144.                         oldflag.prop('class', newflag.prop('class'));
  145.                     }
  146.                     // todo: currency, country (prefs)
  147.                 }
  148.             });
  149.             $.get('{{ url('cart_summary_html', {_locale: app.request.locale, _language: app.request.locale|slice(0, 2)}) }}', data => {
  150.                 $('#cart-modal').html($(data).html());
  151.             });
  152.         });
  153.     </script>
  154.     <meta charset="utf-8">
  155.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  156. {#    <title>{% block title %}{{ sylius.channel.name }}{% endblock %}</title>#}
  157.         {%- block title -%}
  158.         {{- sylius_template_event('dedi_sylius_seo_plugin.title', { resource: resource ?? product ?? taxon ?? sylius.channel }) -}}
  159.         {%- endblock -%}
  160.     <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
  161.     <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  162.     <link rel="canonical" href="{{ canonical_url(app.request) }}">
  163.     <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  164.     <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  165.     <link rel="manifest" href="/site.webmanifest">
  166.     <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  167.     <link rel="shortcut icon" href="/favicon.ico">
  168.     <meta name="msapplication-TileColor" content="#da532c">
  169.     <meta name="msapplication-config" content="/browserconfig.xml">
  170.     <meta name="theme-color" content="#ffffff">
  171.     {% block metatags %}
  172.         {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: resource ?? product ?? taxon ?? sylius.channel }) }}
  173.         {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  174.     {% endblock %}
  175.     {% block stylesheets %}
  176.         {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  177.     {% endblock %}
  178.     {% block linktags %}
  179.         {% set url = get_url_for_language('en') %}
  180.         {% if url ends with '.com/en' %}
  181.             {% set url = "https://" ~ sylius.channel.hostname %}
  182. {#        {% else %}#}
  183. {#            {% set url = app.request.uri %}#}
  184.         {% endif %}
  185.         <link rel="alternate" hreflang="x-default" href="{{ canonical_url_str(url) }}"/>
  186.         {% for language, url in get_urls_for_all_languages() %}
  187.             {% if url is not empty %}
  188.                 <link rel="alternate" hreflang="{{ language }}" href="{{ canonical_url_str(url) }}"/>
  189.             {% endif %}
  190.         {% endfor %}
  191.     {% endblock %}
  192.     {% block schema %}
  193.     {% endblock %}
  194.     {{ sylius_template_event('sylius.shop.layout.head') }}
  195.     <meta name="google-site-verification" content="6nZZELc6OaY2J1MrilI4H9cjvVkiNr0acnphnqK0WgM" />
  196.     <meta name="facebook-domain-verification" content="7lde28yi3who6jajfks49t8n4tqezm" />
  197.     <!-- TrustBox script -->
  198.     <script type="text/javascript" src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js" async></script>
  199.     <!-- End TrustBox script -->
  200. </head>
  201. <body class="{% block body_class %}{% endblock %}">
  202. <div id="window">
  203.     {% block header %}
  204.         <header>
  205.             {{ sylius_template_event('sylius.shop.layout.header') }}
  206.             {% block modals %}
  207.                 <div id="modal-general-inquiry" class="modal-window medium" style="display: none" data-url="{{ path('show_general_inquiry') }}">
  208.                     <div class="inner ui form loading"></div>
  209.                 </div>
  210. {#                {{ render(controller('App\\Controller\\InquiryController::showGeneralInquiry')) }}#}
  211.             {% endblock %}
  212.         </header>
  213.     {% endblock %}
  214. {#    {{ sylius_template_event('sylius.shop.layout.before_body') }}#}
  215.     <div id="main" class="{% block main_class %}{% endblock %}">
  216. {#        {{ sylius_template_event('sylius.shop.layout.before_top_menu') }}#}
  217. {#        {% block top %}#}
  218. {#            <div id="menu" class="ui large sticky inverted stackable menu">#}
  219. {#                {{ sylius_template_event('sylius.shop.layout.topbar') }}#}
  220. {#            </div>#}
  221. {#        {% endblock %}#}
  222. {#        <div class="ui container">#}
  223.             {% include '@SyliusShop/_flashes.html.twig' %}
  224.             {{ sylius_template_event('sylius.shop.layout.before_content') }}
  225.             {% block content %}
  226.             {% endblock %}
  227.             {{ sylius_template_event('sylius.shop.layout.after_content') }}
  228. {#        </div>#}
  229.     </div>
  230.     {% block footer %}
  231.         {{ render(controller('App\\Controller\\Homepage\\IndexController::renderFooter', {_locale: app.request.locale, _language: app.request.locale|slice(0, 2)}, {_locale: app.request.locale, _language: app.request.locale|slice(0, 2)})) }}
  232. {#        {% include '@SyliusShop/_footer.html.twig' %}#}
  233.     {% endblock %}
  234.     {% block withdrawal_modal %}
  235.         {% include '@SyliusShop/Layout/Modal/_withdrawal.html.twig' %}
  236.     {% endblock %}
  237.     {% block javascripts %}
  238.         {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  239.     {% endblock %}
  240.         {{ sylius_template_event('sylius.shop.layout.after_body') }}
  241. {#        <!--Start of Tawk.to Script-->#}
  242.         <script>
  243. {#            (function() {#}
  244. {#                var s1 = document.createElement("script"),#}
  245. {#                    s0 = document.getElementsByTagName("script")[0];#}
  246. {#                s1.async = true;#}
  247. {#                s1.src = 'https://embed.tawk.to/630735a554f06e12d890a94e/1gba2j3r9';#}
  248. {#                s1.charset = 'UTF-8';#}
  249. {#                s1.setAttribute('crossorigin', '*');#}
  250. {#                s0.parentNode.insertBefore(s1, s0);#}
  251. {#            })();#}
  252. {% if app.session.get('dataLayerActions') is not empty %}
  253. {% for action in app.session.remove('dataLayerActions') %}
  254. dataLayer.push({{ action|raw }})
  255. {% endfor %}
  256. {% endif %}
  257.         </script>
  258. {#        <!--End of Tawk.to Script-->#}
  259.         <script defer src=https://app.termshub.io/2994413a-3fdd-4930-83ba-cdbdac4b2d01/termshub-cookie-consent.js site="UAB_4LZ"></script>
  260.     </div>
  261. </body>
  262. </html>