templates/layout-no-menu.html.twig line 7

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html dir="ltr" lang="{{ app.request.locale }}">
  3. <head>
  4.     
  5.     {% include "head/metas.html.twig" %}
  6.     {# 
  7.     Enregistre la liste des fichiers CSS et JS
  8.     
  9.     Attention:
  10.     Veillez à mettre à jour les adresses ci-dessous en remplacant la version par la dernière version disponible (jQuery,
  11.     Uikit, FontAwesome,...), et ce pour tous les fichiers layout[...].html.twig !
  12.     #}
  13.     {% apply spaceless %}
  14.         {# add global stylesheets and scripts outside of any blocsk to add them to the helpers before any others assets are added #}
  15.         {# we use the view helper to have cache buster functionality #}
  16.         
  17.         {% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/uikit/3.5.7/css/uikit.min.css') %}
  18.         {% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.css') %}
  19.         {% do pimcore_head_link().appendStylesheet(asset('/static/vendor/outdatedbrowser/outdatedbrowser.min.css')) %}
  20.         {% do pimcore_head_link().appendStylesheet(asset('/static/css/application.min.css')) %}
  21.         {#% do pimcore_head_link().appendStylesheet(asset('/static/css/custom.css')) %#}
  22.         
  23.         {# Adobe Font #}
  24.         {#% do pimcore_head_link().appendStylesheet('https://use.typekit.net/cdw7sie.css') %#}
  25.        {# {% do pimcore_head_link().appendStylesheet('https://use.typekit.net/rjz1kgr.css') %}#}
  26.         {% do pimcore_head_link().appendStylesheet('https://use.typekit.net/lal0zga.css') %}
  27.         {# A rendre dynamique #}
  28.         {% if not document.property('new-website') %}
  29.             {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=6LcMEv0eAAAAAGqziCU59GigxzVk5-ao1zof4wAJ') %}
  30.         {% endif %}
  31.         
  32.         {% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/uikit/3.5.7/js/uikit.min.js') %}
  33.         {% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js') %}
  34.         {% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.js') %}
  35.         {% do pimcore_head_script().appendFile('/static/vendor/outdatedbrowser/outdatedbrowser.min.js') %}
  36.         {% do pimcore_head_script().appendFile(asset('/static/js/apik.js')) %}
  37.         {% do pimcore_head_script().appendFile(asset('/static/js/main.js')) %}
  38.     {% endapply %}
  39.     {# Affiche les styles CSS personnalisés pour toutes les pages #}
  40.     {% block head_stylesheets deferred %}
  41.         {{ pimcore_head_link() }}
  42.     {% endblock %}
  43.     {# Affiche les styles CSS personnalisés propres au footer #}
  44.     {% block head_stylesheets_footer deferred %}
  45.         
  46.     {% endblock %}
  47.     {% if not document is defined or not document %}
  48.         {% set document = pimcore_document(1) %}
  49.     {% endif %}
  50.     {# Favicons (utilisez RealFaviconGenerator) #}
  51.     
  52.     
  53.     <link rel="apple-touch-icon" sizes="180x180" href="/static/img/favicon/apple-touch-icon.png">
  54.     <link rel="icon" type="image/png" sizes="32x32" href="/static/img/favicon/favicon-32x32.png">
  55.     <link rel="icon" type="image/png" sizes="16x16" href="/static/img/favicon/favicon-16x16.png">
  56.     <link rel="manifest" href="/static/img/favicon/site.webmanifest">
  57.     <link rel="mask-icon" href="/static/img/favicon/safari-pinned-tab.svg" color="#5bbad5">
  58.     <link rel="shortcut icon" href="/static/img/favicon/favicon.ico">
  59.     <meta name="msapplication-TileColor" content="#da532c">
  60.     <meta name="msapplication-config" content="/static/img/favicon/browserconfig.xml">
  61.     <meta name="theme-color" content="#ffffff">
  62.     
  63.     
  64.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css"
  65.           integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
  66. </head>
  67. <body class="{{ document.property('universe') }} {{ editmode ? "apk-cms-pimcore" : "" }} {{ document.property('new-website') ? "new-website" : "" }}">
  68. <!-- ============== Outdated Browser =========== -->
  69. <div id="outdated"></div>
  70. {# Vérifie si "Your website name" a bien été traduit. Si non, on affiche un message d'erreur #}
  71. {# Attention, il ne faut pas renommer le nom du site ici... Il faut le renommer dans les Shared Translations! #}
  72. {% block content %}{% endblock %}
  73. {% if editmode %}
  74.     <div class="uk-container apk-container-1400 uk-margin-medium-bottom">
  75.         <div class="uk-alert-danger" uk-alert>
  76.             <h1 class="uk-h1">Texte dans le footer</h1>
  77.             {{ pimcore_wysiwyg('bottom-footerlink') }}
  78.         </div>
  79.     </div>
  80. {% endif %}
  81. {% set showFooterText = false %}
  82. {% set footerBackgroundColor = false %}
  83. {% if not pimcore_wysiwyg('bottom-footerlink').isEmpty %}
  84.     {% set showFooterText = pimcore_wysiwyg('bottom-footerlink') %}
  85. {% endif %}
  86. {% if document.getProperty('footerBackgroundColor') %}
  87.     {% set footerBackgroundColor = document.getProperty('footerBackgroundColor') %}
  88. {% endif %}
  89. {# Affiche le footer + condition pour le nouveau site web #}
  90. {% if not editmode %}
  91.     {% if document.property('new-website') %}
  92.         {{ pimcore_inc("/" ~ app.request.locale ~ "/Snippets/footer",{
  93.             'showFooterText': showFooterText,
  94.             'footerBackgroundColor' : footerBackgroundColor
  95.             })
  96.         }}
  97.     {% elseif pimcore_inc("/happymagnecaps/" ~ app.request.locale ~ "/Snippets/footer") %}
  98.         {{ pimcore_inc("/happymagnecaps/" ~ app.request.locale ~ "/Snippets/footer") }}
  99.     {% else %}
  100.         {{ '<p class="uk-alert-danger" uk-alert>Vous avez oublié de mettre votre footer dans un snippet</p>' }}
  101.     {% endif %}
  102. {% endif %}
  103. {# output scripts added before #}
  104. {% block headscripts %}
  105.     {{ pimcore_head_script() }}
  106. {% endblock %}
  107. {% block inlinescripts  %}
  108. {% endblock %}
  109. {% block snippetscripts  %}
  110. {% endblock %}
  111. <script>
  112.     window.addEventListener("load", function () {
  113.         window.cookieconsent.initialise({
  114.             "palette": {
  115.                 "popup": {
  116.                     "text": "#ffffff",
  117.                     "background": "#E40233",
  118.                 },
  119.                 "button": {
  120.                     "text": "#E40233",
  121.                     "background": "#ffffff",
  122.                 }
  123.             },
  124.             "content": {
  125.                 "message": "{{ 'Nous utilisons des cookies et d\'autres technologies pour assurer à tous les utilisateurs de ce site internet la meilleure expérience possible.' |trans }} {{ 'En accédant à ce site, vous acceptez notre politique de cookies. '|trans }}",
  126.                 "dismiss": "{{ 'j\'accepte' |trans }}",
  127.                 "link": "{{ 'En savoir plus' |trans }}",
  128.                 "href": "{% if document.getProperty('politiqueDeConfidentialite') %} {{ document.getProperty('politiqueDeConfidentialite') }} {% endif %}"
  129.             }
  130.         })
  131.     });
  132.     // Plain Javascript
  133.     //event listener: DOM ready
  134.     function addLoadEvent(func) {
  135.         var oldonload = window.onload;
  136.         if (typeof window.onload != 'function') {
  137.             window.onload = func;
  138.         } else {
  139.             window.onload = function() {
  140.                 if (oldonload) {
  141.                     oldonload();
  142.                 }
  143.                 func();
  144.             }
  145.         }
  146.     }
  147.     //call plugin function after DOM ready
  148.     addLoadEvent(function(){
  149.         outdatedBrowser({
  150.             bgColor: '#f25648',
  151.             color: '#ffffff',
  152.             lowerThan: 'borderImage',
  153.             languagePath: '/static/vendor/outdatedbrowser/lang/{{ document.getProperty('language') }}.html'
  154.         })
  155.     });
  156.     // Using jQuery (version that supports IE < 9)
  157.     $( document ).ready(function() {
  158.         outdatedBrowser({
  159.             bgColor: '#f25648',
  160.             color: '#ffffff',
  161.             lowerThan: 'borderImage',
  162.             languagePath: '/static/vendor/outdatedbrowser/lang/{{ document.getProperty('language') }}.html'
  163.         })
  164.     })
  165. </script>
  166. </body>
  167. </html>