templates/bundles/SyliusShopBundle/layout-large.html.twig line 93

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|slice(0, 2) }}">
  3. <head>
  4.     {% block head %}
  5.         <meta charset="utf-8">
  6.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.         <link rel="apple-touch-icon" sizes="180x180" href="/assets/shop/img/apple-touch-icon.png">
  8.         <link rel="icon" type="image/png" sizes="32x32" href="/assets/shop/img/favicon-32x32.png">
  9.         <link rel="icon" type="image/png" sizes="16x16" href="/assets/shop/img/favicon-16x16.png">
  10.         <title>{% block title %}{{ sylius.channel.name }}{% endblock %}</title>
  11.         <link rel="preconnect" href="https://fonts.gstatic.com">
  12.         <link href="https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap" rel="stylesheet">
  13.         <script src="/assets/fontawesome.min.js" crossorigin="anonymous"></script>
  14.         <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  15.         {% block metatags %}
  16.         {% endblock %}
  17.         {% block stylesheets %}
  18.             {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  19.             <!-- @TODO: Remove next line, set it into _styles.html.twig (not working at the moment) -->
  20.             {% include '@SyliusUi/_stylesheets.html.twig' with {'path': 'assets/shop/css/framework.css'} %}
  21.             <!-- Slick Slider -->
  22.             <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
  23.             <link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
  24.         {% endblock %}
  25.         <!-- Google Tag Manager -->
  26.         <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  27.         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  28.         j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  29.         'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  30.         })(window,document,'script','dataLayer','{{ gtm_code }}');</script>
  31.         <!-- End Google Tag Manager -->
  32.         {% include 'bundles/SyliusShopBundle/_chatbot.html.twig' %}
  33.         {{ sylius_template_event('sylius.shop.layout.head') }}
  34.     {% endblock %}
  35. </head>
  36. <body class="pushable">
  37.     <!-- Google Tag Manager (noscript) -->
  38.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_code }}"
  39.     height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  40.     <!-- End Google Tag Manager (noscript) -->
  41.     {{ sylius_template_event('sylius.shop.layout.before_body') }}
  42.     <div class="pusher">
  43.         {% block header %}
  44.             <header class="header" id="header">
  45.                 <div class="container container--large">
  46.                     {{ sylius_template_event('sylius.shop.layout.header') }}
  47.                 </div>
  48.             </header>
  49.         {% endblock %}
  50.         <!-- @TODO: load that on certain pages only -->
  51.         {% block banner %}
  52.         {% endblock %}
  53.         {% if (
  54.             sylius.channel.code == "collect"
  55.             and
  56.             (app.request.attributes.get('_route') ==   "app_shop_product_search"
  57.             or app.request.attributes.get('_route') ==   "sylius_shop_product_show"
  58.             or app.request.attributes.get('_route') ==   "sylius_shop_cart_summary"
  59.             or app.request.attributes.get('_route') ==   "sylius_shop_login"
  60.             or app.request.attributes.get('_route') ==   "sylius_shop_register"
  61.             or app.request.attributes.get('_route') ==   "sylius_shop_checkout_address"
  62.             or app.request.attributes.get('_route') ==   "sylius_shop_checkout_select_shipping"
  63.             or app.request.attributes.get('_route') ==   "sylius_shop_checkout_complete")
  64.         ) %}
  65.             <div class="env env-message">{{ 'sylius.ui.vousboutique'|trans }}  {{ sylius.channel.name }}</div>
  66.         {% endif %}
  67.         <div class="container container--large">
  68.             {% include '@SyliusShop/_flashes.html.twig' %}
  69.             {{ sylius_template_event('sylius.shop.layout.before_content') }}
  70.             {% block content %}
  71.             {% endblock %}
  72.             {{ sylius_template_event('sylius.shop.layout.after_content') }}
  73.         </div>
  74.         {% block footer %}
  75.             {% include '@SyliusShop/_footer.html.twig' %}
  76.         {% endblock %}
  77.         {% if app.request.attributes.get('_route') in click_and_collect_modal_routes and sylius.channel.code == "collect" %}
  78.             {% include 'modal/ClickAndCollectModal.html.twig' %}
  79.         {% endif %}
  80.     </div>
  81.     {% include '@SyliusUi/Modal/_confirmation.html.twig' %}
  82.     {% block javascripts %}
  83.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  84.         <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
  85.         <!-- @TODO: Find a better way to load that -->
  86.         {% include '@SyliusUi/_javascripts.html.twig' with {'path': 'assets/shop/js/header.js'} %}
  87.         {% include '@SyliusUi/_javascripts.html.twig' with {'path': 'assets/shop/js/carousels.js'} %}
  88.         {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  89.         <script src="https://unpkg.com/aos@next/dist/aos.js"></script>
  90.         <script>
  91.             AOS.init({
  92.                 once: true
  93.             });
  94.             {% if ( not sylius.channel.getEnableClickNCollect() ) %}
  95.                 {% if app.request.attributes.get('_route') in click_and_collect_modal_routes and sylius.channel.code == "collect" %}
  96.                 $(document).ready(() => {
  97.                     $('#click-and-collect-modal').modal('show');
  98.                 })
  99.                 {% endif %}
  100.             {% endif %}
  101.         </script>
  102.     {% endblock %}
  103.     {{ sylius_template_event('sylius.shop.layout.after_body') }}
  104. </body>
  105. </html>