templates/base.html.twig line 1

Open in your IDE?
  1. {% set page = getPage(app.request.attributes.get("_controller")) %}
  2. <!DOCTYPE html>
  3. <html lang="{{ app.request.locale }}">
  4.     <head>
  5.         <!-- Google Tag Manager -->
  6.         <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  7.         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  8.         j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  9.         'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  10.         })(window,document,'script','dataLayer','GTM-W4SVDHD2');</script>
  11.         <!-- End Google Tag Manager -->
  12.         <meta charset="UTF-8">
  13.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  14.         {# <link rel="icon"
  15.                href="{{ asset('assets/img/appletouch.png') }}">#}
  16.         <meta property="og:type" content="website">
  17.         <meta property="og:site_name" content="DMD INOX">
  18.         <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('assets/img/appletouch.png') }}">
  19.         <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('assets/img/favicon-32x32.png') }}">
  20.         <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('assets/img/favicon-16x16.png') }}">
  21.         <link rel="manifest" href="{{ asset('assets/img/site.webmanifest') }}">
  22.         <link rel="mask-icon" href="{{ asset('assets/img/safari-pinned-tab.svg') }}" color="#3991AF">
  23.         <meta name="msapplication-TileColor" content="#3991AF">
  24.         {% block metaTags %}
  25.             {#            <meta property="og:title" content="DMD INOX - Raccords, vannes & accessoires de tuyauterie inox">#}
  26.             {#            <meta property="og:description" content="">#}
  27.             <meta property="og:url" content="{{ app.request.uri }}">
  28.             <meta name="description" content="{{ page ? page.metaDescription : siteTitle }}">
  29.             <title>{{ page ? page.metaTitle : siteTitle }}</title>
  30.             <meta property="og:image" content="{{ asset('assets/img/logo.svg') }}">
  31.             <meta property="og:title" content="{{ page ? page.metaTitle : "DMD INOX - Raccords, vannes & accessoires de tuyauterie inox" }}">
  32.             <meta property="og:description" content="{{ page ? page.metaDescription : "Nous sommes à la fois concepteurs, fabricants, négociants et vendeurs d’accessoires de tuyauterie inox des plus basiques aux plus complexes." }}">
  33.         {% endblock %}
  34.         {% set metaColor = getMetaColor() %}
  35.         {% if metaColor %}
  36.             <meta name="theme-color" content="{{ getMetaColor() }}">
  37.         {% endif %}
  38.         {{ encore_entry_link_tags('app') }}
  39.         {% block stylesheets %}
  40.         {% endblock %}
  41.         {% set gtag_id = '' %}
  42.         {% if gtag_id != '' %}
  43.         <!-- Google tag (gtag.js) -->
  44.         <script async src="https://www.googletagmanager.com/gtag/js?id={{ gtag_id }}" data-cookie-consent="tracking" type="text/plain"></script>
  45.         <script data-cookie-consent="tracking" type="text/plain">
  46.             window.dataLayer = window.dataLayer || [];
  47.             function gtag() {
  48.                 dataLayer.push(arguments);
  49.             }
  50.             gtag('js',
  51.                 new Date()
  52.             );
  53.             gtag('config', '{{ gtag_id }}');
  54.         </script>
  55.         {% endif %}
  56.         {% set googleSearchConsole = getGoogleSearchConsole() %}
  57.         {% if googleSearchConsole %}
  58.             <meta name="google-site-verification" content="{{ googleSearchConsole }}"/>
  59.         {% endif %}
  60.         <link rel="stylesheet" href="{{ asset('assets/libs/openlayers/ol.css') }}">
  61.         <script type="text/javascript" src="{{ asset('assets/libs/openlayers/ol.js') }}"></script>
  62.         <link rel="stylesheet" href="{{ asset('assets/libs/aos/aos.css') }}">
  63.     </head>
  64.     <body data-navbar-search-url="{{ path('front_navbar_search') }}" {% block body_tag %}{% endblock %}>
  65.         <!-- Google Tag Manager (noscript) -->
  66.         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W4SVDHD2"
  67.         height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  68.         <!-- End Google Tag Manager (noscript) -->
  69.         <div class="wrapper">
  70.             {% block flash %}
  71.                 {% for label, messages in app.flashes %}
  72.                     {% for key, message in messages %}
  73.                         <div class="modal fade mat-200" id="flashMessageModal" tabindex="-1" role="dialog"
  74.                              aria-labelledby="flashMessageModalLabel" aria-hidden="true">
  75.                             <div class="modal-dialog" role="document">
  76.                                 <div class="modal-content">
  77.                                     <div class="modal-body">
  78.                                         <div class="text-right">
  79.                                             <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  80.                                                 <span aria-hidden="true">&times;</span>
  81.                                             </button>
  82.                                         </div>
  83.                                         <div>
  84.                                             {% if label == "success" %}
  85.                                                 <i class="fa fa-check text-success"></i>
  86.                                             {% else %}
  87.                                                 <i class="fa fa-warning text-danger"></i>
  88.                                             {% endif %}
  89.                                             {{ message|trans|raw }}
  90.                                         </div>
  91.                                     </div>
  92.                                 </div>
  93.                             </div>
  94.                         </div>
  95.                     {% endfor %}
  96.                 {% endfor %}
  97.             {% endblock %}
  98.             {% block navbar %}
  99.                 {#     <div class="fixed-top zi-999 bgc-white c-black pay-10">
  100.                          <div class="container">
  101.                              <div class="row align-items-center fs-14 fw-300">
  102.                                  <div class="font-italic col">
  103.                                      {{ page ? page.title : siteTitle }}
  104.                                  </div>
  105.                              </div>
  106.                          </div>
  107.                      </div>#}
  108.                 <div class="d-none d-lg-block">
  109.                     {% include "commons/navbar.html.twig" %}
  110.                 </div>
  111.                 <div class="d-block d-lg-none">
  112.                     {% include "commons/navbarMobile.html.twig" %}
  113.                 </div>
  114.                 {# {% for key, category in getCategories() %}
  115.                      <div>
  116.                          <a href="{{ getProductUrl(null, true, category) }}">
  117.                              {{ category.title }}
  118.                          </a>
  119.                      </div>
  120.                      <div>
  121.                          <img src="{{ getCategoryImage(category)|imagine_filter('medium') }}" alt="{{ category.title }}"
  122.                               class="wi-200"/>
  123.                      </div>
  124.                      {% for key, subCategory in getSubCategories(category) %}
  125.                          <div>
  126.                              <a href="{{ getProductUrl(null, true, null, subCategory) }}">
  127.                                  {{ subCategory.title }}
  128.                              </a>
  129.                          </div>
  130.                          {% for key, subSubCategory in getSubSubCategories(subCategory) %}
  131.                              <div>
  132.                                  <a href="{{ getProductUrl(null, true, null, null, subSubCategory) }}">
  133.                                      {{ subSubCategory.title }}
  134.                                  </a>
  135.                              </div>
  136.                              {% for key, subSubSubCategory in getSubSubSubCategories(subSubCategory) %}
  137.                                  <div>
  138.                                      <a href="{{ getProductUrl(null, true, null, null, null, subSubSubCategory) }}">
  139.                                          {{ subSubSubCategory.title }}
  140.                                      </a>
  141.                                  </div>
  142.                              {% endfor %}
  143.                          {% endfor %}
  144.                      {% endfor %}
  145.                  {% endfor %}#}
  146.             {% endblock %}
  147.         {% block body %}{% endblock %}
  148.         {% block footer %}
  149.             {% include "front/footer.html.twig" %}
  150.         {% endblock %}
  151.         <div class="position-fixed b-20 r-20 scrollToTopDiv">
  152.             <i class="fa fa-arrow-circle-up pointer scrollToTop fw-600 fs-40 c-65B3CD"></i>
  153.         </div>
  154.     </div>
  155.     {{ encore_entry_script_tags('app') }}
  156.     <script type="text/javascript" src="{{ asset('assets/libs/aos/aos.js') }}"></script>
  157.     <script>
  158.         AOS.init({
  159.             once: true,
  160.         });
  161.     </script>
  162.     <script type="text/javascript" src="https://www.freeprivacypolicy.com/public/cookie-consent/4.1.0/cookie-consent.js"></script>
  163.     <script type="text/javascript">
  164.         document.addEventListener('DOMContentLoaded', function () {
  165.             cookieconsent.run({
  166.                 "notice_banner_type": "simple",
  167.                 "consent_type": "explicit",
  168.                 "palette": "light",
  169.                 "language": "fr",
  170.                 "website_name": "{{ siteTitle }}",
  171.                 "change_preferences_selector": "#changePreferences",
  172.             });
  173.         });
  174.     </script>
  175.     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  176.     {% block javascripts %}
  177.     {% endblock %}
  178. </body>
  179. </html>