templates/vitrine/fr/layout.html.twig line 1

Open in your IDE?
  1. {% set connectUser = false %}
  2. {% set connectUser2 = false %}
  3. {% if app.user is not null %}
  4. {% set connectUser = true %}
  5. {% set connectUser2 = false %}
  6. {% endif %}
  7. {% set pathAbsolute = app.request.schemeAndHttpHost ~ app.request.requestUri %}
  8. {% set paramTool = getCoreToolsList("blog") %}
  9. {% set logo = paramTool['logo'] %}
  10. {% set logo_width = paramTool['logo_width'] %}
  11. {% set logo_height = paramTool['logo_height'] %}
  12. {% set logomobile = paramTool['logomobile'] %}
  13. {% set logomobile_width = paramTool['logomobile_width'] %}
  14. {% set logomobile_height = paramTool['logomobile_height'] %}
  15. {% set twitter = paramTool['twitter'] %}
  16. {% set facebook = paramTool['facebook'] %}
  17. {% set instagram = paramTool['instagram'] %}
  18. {% set youtube = paramTool['youtube'] %}
  19. {% set linkedin = paramTool['linkedin'] %}
  20. {% set favicon = paramTool['favicon'] %}
  21. {% set websitename = paramTool['websitename'] %}
  22. {% set htmlTrack = paramTool['htmltrack'] %}
  23. {% set htmlTrack2 = paramTool['htmltrack2'] %}
  24. {% set domain = paramTool['absolute_domain'] %}
  25. {% set menuHeader = getMenuWebsiteArray(app.request.locale,"header",connectUser) %}
  26. {% set menuHeaderRight = getMenuWebsiteArray(app.request.locale,"header-right",connectUser) %}
  27. {% set vlang = app.request.locale %}
  28. {% if app.user is not null %}
  29. {% set vlang = app.user.language %}
  30. {% else %}
  31. {% set vlang = app.session.get('lang') %}
  32. {% if vlang is empty %}
  33. {% set vlang = app.request.locale %}
  34. {% endif %}
  35. {% endif %}
  36. {% set arrayTranslate = getArrayTranslateLocale(vlang) %}
  37. {% set pathHomepage = path('homepage') %}
  38. {% if app.request.locale != "en" %}
  39. {% set pathHomepage = path('locale_homepage',{'_locale':app.request.locale}) %}
  40. {% endif %}
  41. <!DOCTYPE html>
  42. <html lang="{{ app.request.locale }}">
  43. <head>
  44. <meta charset="utf-8">
  45. <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->
  46. <title>{% block title %}{% endblock title %}</title>
  47. <meta http-equiv="Content-Language" content="{{ app.request.locale }}" />
  48. <meta name="language" content="{{ app.request.locale }}" />
  49. <meta name="copyright" content="{{ websitename }}" />
  50. <meta name="robots" content="{% block robots %}index,follow{% endblock robots %}" />
  51. <meta name="description" content="{% block description %}{% endblock description %}" />
  52. <meta name="viewport" content="initial-scale=1.0" />
  53. <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=6, minimum-scale=1, minimal-ui" />
  54. <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v3.0.1/dist/cookieconsent.css">
  55. {% block meta_social %}{% endblock meta_social %}
  56. {% block meta %}{% endblock meta %}
  57. {% block canonical %}{% endblock canonical %}
  58. {% include "components/dns-prefetch.html.twig" %}
  59. {% include "components/favicon.html.twig" with {'favicon':favicon} %}
  60. {% include "/vitrine/components/stylesheets.html.twig" %}
  61. {% block css %}{% endblock css %}
  62. {% include "/vitrine/components/scripts_header.html.twig" %}
  63. {% block js %}{% endblock js %}
  64. {{ htmlTrack|raw }}
  65. </head>
  66. <body class="dark-scheme section-dark">
  67. <div id="wrapper">
  68. <div class="float-text show-on-scroll">
  69. <span><a href="#">Scroll to top</a></span>
  70. </div>
  71. <div class="scrollbar-v show-on-scroll"></div>
  72. <div id="de-loader"></div>
  73. {% include "vitrine/fr/components/header.html.twig" %}
  74. {% block body %}{% endblock body %}
  75. </div>
  76. {% include "vitrine/fr/components/footer.html.twig" %}
  77. {% block footerbody %}{% endblock footerbody %}
  78. {% block footer_body %}{% endblock footer_body %}
  79. {% include "/vitrine/components/scripts_footer.html.twig" %}
  80. {% include "components/flashmessage.html.twig" %}
  81. {% block footer_js %}{% endblock footer_js %}
  82. {% block footerjs %}{% endblock footerjs %}
  83. {{ htmlTrack2|raw }}
  84. <script defer src="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v3.0.1/dist/cookieconsent.umd.js"></script>
  85. <script>
  86. window.addEventListener('load', function(){
  87. CookieConsent.run({
  88. guiOptions: {
  89. consentModal: {
  90. layout: "box",
  91. position: "bottom right"
  92. }
  93. },
  94. categories: {
  95. necessary: {
  96. enabled: true,
  97. readOnly: true
  98. },
  99. analytics: {}
  100. },
  101. language: {
  102. default: 'fr',
  103. translations: {
  104. fr: {
  105. consentModal: {
  106. title: 'đŸȘ Nous utilisons des cookies',
  107. description: 'Ce site utilise des cookies pour améliorer votre expérience. Vous pouvez choisir quels cookies accepter.',
  108. acceptAllBtn: 'Tout accepter',
  109. acceptNecessaryBtn: 'Refuser tout',
  110. showPreferencesBtn: 'Gérer les préférences'
  111. },
  112. preferencesModal: {
  113. title: 'Préférences de cookies',
  114. acceptAllBtn: 'Tout accepter',
  115. acceptNecessaryBtn: 'Refuser tout',
  116. savePreferencesBtn: 'Enregistrer',
  117. sections: [
  118. {
  119. title: 'Cookies nécessaires',
  120. description: 'Ces cookies sont essentiels au fonctionnement du site.',
  121. linkedCategory: 'necessary'
  122. },
  123. {
  124. title: 'Cookies analytiques',
  125. description: 'Ces cookies nous aident Ă  comprendre comment vous utilisez notre site.',
  126. linkedCategory: 'analytics'
  127. }
  128. ]
  129. }
  130. }
  131. }
  132. }
  133. });
  134. });
  135. </script>
  136. </body>
  137. </html>