templates/base.html.twig line 1

Open in your IDE?
  1. {% set _bottomActionBlock = block('bottom_action') %}
  2. <!DOCTYPE html>
  3. <html lang="{% block lang %}fr{% endblock %}">
  4. <head>
  5.     <meta charset="utf-8"/>
  6.     <title>{% block title %}Prestachef{% endblock %}</title>
  7.     <meta name="description" content="{% block description %}{% endblock %}"/>
  8.     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
  9.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. {#    <meta http-equiv="Content-Security-Policy" content="default-src 'self'">#}
  11. {#    <meta http-equiv="Content-Security-Policy" content="script-src http://*">#}
  12.     <meta name="apple-mobile-web-app-capable" content="yes">
  13.     <meta name="apple-mobile-web-app-status-barstyle" content="black-translucent">
  14.     <link rel="apple-touch-icon-precomposed" href="{{ asset('assets/front/images/appIcons/logo303.png') }}">
  15.     <link rel="apple-touch-icon-precomposed" sizes="120x120"
  16.           href="{{ asset('assets/front/images/appIcons/logo120.png') }}">
  17.     <meta name="apple-mobile-web-app-title" content="Prestachef">
  18.     <meta name="theme-color" content="#ffffff">
  19.     <meta name="msapplication-navbutton-color" content="#ffffff">
  20.     <meta name="apple-mobile-web-app-status-bar-style" content="#ffffff">
  21.     <!-- for Chrome on Android, multi-resolution icon of 196x196 -->
  22.     <meta name="mobile-web-app-capable" content="yes">
  23.     {% block favicon %}
  24.         <link rel="icon" type="image/png" href="{{ asset('assets/front/images/favicon.png') }}">
  25.     {% endblock %}
  26.     <link rel="manifest" href="{{ asset('/manifest.json') }}">
  27.     {% block stylesheets %}
  28.         {{ encore_entry_link_tags('frontstyles') }}
  29.     {% endblock %}
  30.     <script src="https://kit.fontawesome.com/dce6251235.js" crossorigin="anonymous"></script>
  31.     <!-- Analytics FTW -->
  32.     <script>
  33.         window.dataLayer = window.dataLayer || [];
  34.     </script>
  35.     <!-- Google Tag Manager -->
  36.     {% if not is_granted(ga_disabled_roles) %}
  37.         <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  38.                     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  39.                 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  40.                 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  41.             })(window,document,'script','dataLayer', '{{ gtm_tracking }}');</script>
  42.     {% endif %}
  43.     <!-- End Google Tag Manager -->
  44. </head>
  45. <body
  46.         {% if user.entity is not empty and not user.isImpersonated %}
  47.         apphelper__userid="{{ user.entity.id }}"
  48.         {% endif %}
  49.         class="{% block bodyExtraClass %}{% endblock %} {% if _bottomActionBlock is not empty %}withBottomAction{% endif %} {% if is_granted('ROLE_PREVIOUS_ADMIN') %}withImpersonate{% endif %}"
  50.         {% if app.user is defined %}
  51.             {% set crispInfos = user.getCurrentUserCrispInfos %}
  52.             {% if crispInfos is defined %}
  53.                 {% if crispInfos.username is defined %}
  54.                     data-username="{{ crispInfos.username }}"
  55.                 {% endif %}
  56.                 {% if crispInfos.useremail is defined %}
  57.                     data-useremail="{{ crispInfos.useremail }}"
  58.                 {% endif %}
  59.                 {% if crispInfos.shopname is defined %}
  60.                     data-shopname="{{ crispInfos.shopname }}"
  61.                 {% endif %}
  62.                 {% if crispInfos.shopid is defined %}
  63.                     data-shopurl="{{ url('malys_admin_customer_show', {'id': crispInfos.shopid}) }}"
  64.                 {% endif %}
  65.             {% endif %}
  66.             data-gae_crisp-trigger="click"
  67.             data-gae_crisp-category="{{ gae.refs.assistanceCategory }}"
  68.             data-gae_crisp-action="{{ gae.refs.closeSupportAction }}"
  69.             data-gae_crisp-label="{{ app.request.uri }}"
  70.         {% endif %}
  71. >
  72. {% include "front/svg.html" %}
  73. <div class="fullScreenLoader fullScreenLoader--hidden align-items-center justify-content-center ">
  74.     <div class="spinner spinner-primary"></div>
  75. </div>
  76. {% block body %}{% endblock %}
  77. {% if _bottomActionBlock is not empty %}
  78.     <div class="bottomActionShell {% block bottom_action_class %}{% endblock %}">
  79.         <div class="container">
  80.             {{ _bottomActionBlock|raw }}
  81.         </div>
  82.     </div>
  83. {% endif %}
  84. {% block javascripts %}
  85.     {% include "front/common/js.html.twig" %}
  86.     <script type="text/javascript" id="zsiqchat">var $zoho=$zoho || {};$zoho.salesiq = $zoho.salesiq || {widgetcode: "{{ zoho_sales_iq_widget_code }}", values:{},ready:function(){}};var d=document;s=d.createElement("script");s.type="text/javascript";s.id="zsiqscript";s.defer=true;s.src="https://salesiq.zoho.eu/widget";t=d.getElementsByTagName("script")[0];t.parentNode.insertBefore(s,t);</script>
  87.     
  88.     <script type="text/javascript">
  89.         {% if cart.modifyingOrder %}
  90.             window.modifyingOrder = true;
  91.             window.supplierId = {{cart.entity.orderToModify.supplier.id}};
  92.         {% else %}
  93.             window.modifyingOrder = false;
  94.         {% endif %}
  95.     </script>
  96. {% endblock %}
  97. {% block extra_javascripts %}{% endblock %}
  98. {% include "front/common/appModal.html.twig" %}
  99. {% include "front/common/appConfirm.html.twig" %}
  100. </body>
  101. <!-- Google Tag Manager (noscript) -->
  102. <noscript>
  103.     <iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_tracking }}"
  104.                   height="0" width="0" style="display:none;visibility:hidden"></iframe>
  105. </noscript>
  106. <!-- End Google Tag Manager (noscript) -->
  107. </html>