themes/BootstrapTheme/templates/bundles/SyliusShopBundle/layout.html.twig line 94

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|slice(0, 2) }}">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     {% set _title_no_tag = block('title_no_tag') ?? '' %}
  7.     {% if _title_no_tag is not empty %}
  8.         {{ _title_no_tag|raw }}
  9.     {% else %}
  10.         {% set title = null %}
  11.             {% if app.request.attributes.get('_route') == "bitbag_sylius_cms_plugin_shop_frequently_asked_question_index" %}
  12.                 {% set title = 'faq' %}
  13.             {% endif %}
  14.         <title> {% block title %}{% include '@DediSyliusSEOPlugin/Shop/Header/_title.html.twig' with { 'resource': product ?? sylius.channel, 'title': title } %}{% endblock %}</title>
  15.     {% endif %}
  16.     <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  17.     {% block metatags %}
  18.         {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? sylius.channel }) }}
  19.         {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  20.     {% endblock %}
  21.     {% set canonicalList = app_get_canonical_link(app.request) %}
  22.     {% if canonicalList is not null %}
  23.         <link rel="canonical" href="https://{{ canonicalList[sylius.localeCode] }}" />
  24.     {% endif %}
  25.     {% for key,value in canonicalList %}
  26.         {% if canonicalList|length > 1 %}
  27.             <link rel="alternate" href="https://{{ value }}" hreflang="{{ key }}" />
  28.         {% else %}
  29.             <link rel="alternate" href="https://{{ value }}" hreflang=x-default />
  30.         {% endif %}
  31.     {% endfor %}
  32.     <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  33.     <link rel="stylesheet" href="https://use.typekit.net/icm3oad.css">
  34.     {% block stylesheets %}
  35.         {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  36.     {% endblock %}
  37.     {{ sylius_template_event('sylius.shop.layout.head') }}
  38.     <!-- Smartsupp Live Chat script -->
  39.     <script type="text/javascript" async>
  40.         var _smartsupp = _smartsupp || {};
  41.         _smartsupp.key = '2c8017a094c8272e5cafa90db2ff93c453d94864';
  42.         window.smartsupp||(function(d) {
  43.             var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  44.             s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  45.             c.type='text/javascript';c.charset='utf-8';c.async=true;
  46.             c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  47.         })(document);
  48.     </script>
  49.     <!-- Matomo -->
  50.     <script>
  51.         var _paq = window._paq = window._paq || [];
  52.         /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  53.         _paq.push(['trackPageView']);
  54.         _paq.push(['enableLinkTracking']);
  55.         (function() {
  56.             var u="//mat.kikas.fr/";
  57.             _paq.push(['setTrackerUrl', u+'matomo.php']);
  58.             _paq.push(['setSiteId', '2']);
  59.             var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  60.             g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  61.         })();
  62.     </script>
  63.     <!-- End Matomo Code -->
  64.     {% if app.environment == "prod" %}
  65.     <!-- HOTJAR -->
  66.     <script>
  67.         (function(h,o,t,j,a,r){
  68.             h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
  69.             h._hjSettings={hjid:5129410,hjsv:6};
  70.             a=o.getElementsByTagName('head')[0];
  71.             r=o.createElement('script');r.async=1;
  72.             r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
  73.             a.appendChild(r);
  74.         })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
  75.     </script>
  76.     <!-- END HOTJAR -->
  77.     {% endif %}
  78. </head>
  79. <body class="body-{{app.request.attributes.get('_route')}}">
  80. {% set block_txt = app_get_blocks('texteperso_header', sylius.channel.code )  %}
  81. {{ sylius_template_event('sylius.shop.layout.before_body') }}
  82. <main class="big-wrapper">
  83.     <div class="menu-mob-overlay"></div>
  84.     {% block top %}
  85.     {% endblock %}
  86.     {% block header %}
  87.         <header class="header-body">
  88.             <div class="header-sticky  px-0">
  89.                 {{ sylius_template_event('sylius.shop.layout.header') }}
  90.             </div>
  91.         </header>
  92.         {#  --- BEGIN POPUP ADMINISTRABLE ---  #}
  93.         {% set popups = app_get_current_page_popup(app.request.get('_route'), app.request.attributes.get('_route_params')) %}
  94.         {% set existPopup = false %}
  95.         {% for popup in popups %}
  96.             {% set existPopup = true %}
  97.             {% include '@SyliusShop/_popup.html.twig' with { popup: popup } %}
  98.         {% endfor %}
  99.         {% if existPopup %}
  100.             {{ encore_entry_script_tags('popup', null, 'bootstrapTheme') }}
  101.         {% endif %}
  102.         {#  --- END POPUP ADMINISTRABLE  ---  #}
  103.         {% include '@SyliusShop/Product/_popupAddToCart.html.twig'  %}
  104.     {% endblock %}
  105.     <div class="phrase-admin text-center font-pro-bold">
  106.         {%  if block_txt.content is defined and block_txt.enabled %}
  107.             {{ block_txt.content|raw }}
  108.         {%  endif  %}
  109.     </div>
  110.     <section class="main-content page-content">
  111. {#        <div class="fixed-devis">#}
  112. {#            <a href="{{ path('sylius_shop_contact_request') }}" class="transition-bgcolor" title="{{'app.common.a_question'|trans}}">#}
  113. {#                <strong class="bg-ico-fixed">{{'app.common.a_question'|trans}}</strong>#}
  114. {#                <span class="color-pink-s d-block">{{'app.common.we_are_online'|trans}}</span>#}
  115. {#            </a>#}
  116. {#        </div>#}
  117.         <div class="container p-lg-0 my-0">{% include '@SyliusShop/_flashes.html.twig' %}</div>
  118.         {{ sylius_template_event('sylius.shop.layout.before_content') }}
  119.         {% block content %}
  120.         {% endblock %}
  121.         {{ sylius_template_event('sylius.shop.layout.after_content') }}
  122.     </section>
  123.     {% block footer %}
  124.         {% include '@SyliusShop/_footer.html.twig' %}
  125.     {% endblock %}
  126.     {{ sylius_template_event('sylius.shop.layout.after_body') }}
  127.     <div class="loading-overlay" data-js-loading-overlay>
  128.         <div class="spinner-border" role="status">
  129.             <span class="sr-only">Loading...</span>
  130.         </div>
  131.     </div>
  132. </main>
  133. <div class="goToTop transition-bgcolor"><img src="{{ asset('images/top_go.png')}}" alt="" /></div>
  134. {% include "@CHCookieConsent/cookie_consent_styling.html.twig" %}
  135. {{ render_esi(path('ch_cookie_consent.show', { 'locale' : sylius.localeCode })) }}
  136. {% block javascripts %}
  137.     {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  138. {% endblock %}
  139. </body>
  140. </html>