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

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.             <title> {% block title %}{% include '@DediSyliusSEOPlugin/Shop/Header/_title.html.twig' with { 'resource': product ?? sylius.channel } %}{% endblock %}</title>
  11.         {% endif %}
  12.         {{ app_get_google_tag_manager_datalayer() }}
  13.         <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  14.     {% block metatags %}
  15.         {% set metaDescription = sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? sylius.channel }) %}
  16.         {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  17.         {% if metaDescription is empty %}
  18.             <meta name="description" content="{{ sylius.channel.description }}">
  19.         {% else %}
  20.             {{ metaDescription|raw }}
  21.         {% endif %}
  22.     {% endblock %}
  23.     {% set canonicalList = app_get_canonical_link(app.request) %}
  24.     {% if canonicalList is not null %}
  25.         <link rel="canonical" href="{{ canonicalList[sylius.localeCode] }}" />
  26.     {% endif %}
  27.     {% for key,value in canonicalList %}
  28.         <link rel="alternate" href="{{ value }}" hreflang="{{ key|replace({ '_': "-"}) }}" />
  29.     {% endfor %}
  30.         <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  31.         {% block stylesheets %}
  32.             <link rel="stylesheet" href="https://use.typekit.net/icm3oad.css">
  33.             {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  34.         {% endblock %}
  35.         {{ sylius_template_event('sylius.shop.layout.head') }}
  36.     </head>
  37.     <body class="body-{{app.request.attributes.get('_route')}}">
  38.         {{ sylius_template_event('sylius.shop.layout.before_body') }}
  39.         {% block top %}
  40. {#            a remettre si on veut gerer les switch de langue & de channel#}
  41. {#            <nav class="bg-dark navbar navbar-expand-lg">#}
  42. {#                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTop" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">#}
  43. {#                    <span class="navbar-toggler-icon"></span>#}
  44. {#                </button>#}
  45. {#                <div class="collapse navbar-collapse" id="navbarTop">#}
  46. {#                    {{ sylius_template_event('sylius.shop.layout.topbar') }}#}
  47. {#                </div>#}
  48. {#            </nav>#}
  49.         {% endblock %}
  50.         <main class="big-wrapper">
  51.             <div class="menu-mob-overlay"></div>
  52.             {% block header %}
  53.                 <header class="header-body">
  54.                 {{ sylius_template_event('sylius.shop.layout.header') }}
  55.                 </header>
  56.                 {#  --- BEGIN POPUP ADMINISTRABLE ---  #}
  57.                 {% set popups = app_get_current_page_popup(app.request.get('_route'), app.request.attributes.get('_route_params')) %}
  58.                 {% set existPopup = false %}
  59.                 {% for popup in popups %}
  60.                     {% set existPopup = true %}
  61.                     {% include '@SyliusShop/_popup.html.twig' with { popup: popup } %}
  62.                 {% endfor %}
  63.                 {% if existPopup %}
  64.                     {{ encore_entry_script_tags('popup', null, 'bootstrapTheme') }}
  65.                 {% endif %}
  66.                 {#  --- END POPUP ADMINISTRABLE  ---  #}
  67.                 {% include '@SyliusShop/Product/_popupAddToCart.html.twig'  %}
  68.             {% endblock %}
  69.             <div class="main-content page-content">
  70.                 <div class="container p-lg-0 my-0">{% include '@SyliusShop/_flashes.html.twig' %}</div>
  71.                 {{ sylius_template_event('sylius.shop.layout.before_content') }}
  72.                 {% block content %}
  73.                 {% endblock %}
  74.                 {{ sylius_template_event('sylius.shop.layout.after_content') }}
  75.             </div>
  76.             {% block footer %}
  77.                 {% include '@SyliusShop/_footer.html.twig' %}
  78.             {% endblock %}
  79.             {{ sylius_template_event('sylius.shop.layout.after_body') }}
  80.             <div class="bloc-help text-white d-block d-lg-none">
  81.                 <div class=" font-18  bg-sce">
  82.                     <div class="font-aller-bold font-18 font-18-mobile">Besoin d'aide?</div>
  83.                     <div>
  84.                         <a href="tel:0385338969" class="font-20-mobile font-20  p-nomargin color-pink-s font-weight-medium"><p>06 20 15 80 43 </p> </a>
  85.                     </div>  
  86.                 </div>  
  87.             </div>
  88.             <div class="loading-overlay" data-js-loading-overlay>
  89.                 <div class="spinner-border" role="status">
  90.                     <span class="sr-only">Loading...</span>
  91.                 </div>
  92.             </div>
  93.         </main>
  94.         
  95.         <div class="goToTop"><img src="{{ asset('images/top_go.png')}}" alt="" /></div>
  96.         {% include "@CHCookieConsent/cookie_consent_styling.html.twig" %}
  97.         {{ render_esi(path('ch_cookie_consent.show', { 'locale' : sylius.localeCode })) }}
  98.         {% block javascripts %}
  99.             {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  100.         {% endblock %}
  101.     </body>
  102. </html>