templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr"> 
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.         <title>{% block title %}{% endblock %} | Mail Boxes ETC.!</title>
  7.         <link rel="apple-touch-icon" sizes="57x57" href="/images/FAVICONS/apple-icon-57x57.png">
  8.         <link rel="apple-touch-icon" sizes="60x60" href="/images/FAVICONS/apple-icon-60x60.png">
  9.         <link rel="apple-touch-icon" sizes="72x72" href="/images/FAVICONS/apple-icon-72x72.png">
  10.         <link rel="apple-touch-icon" sizes="76x76" href="/images/FAVICONS/apple-icon-76x76.png">
  11.         <link rel="apple-touch-icon" sizes="114x114" href="/images/FAVICONS/apple-icon-114x114.png">
  12.         <link rel="apple-touch-icon" sizes="120x120" href="/images/FAVICONS/apple-icon-120x120.png">
  13.         <link rel="apple-touch-icon" sizes="144x144" href="/images/FAVICONS/apple-icon-144x144.png">
  14.         <link rel="apple-touch-icon" sizes="152x152" href="/images/FAVICONS/apple-icon-152x152.png">
  15.         <link rel="apple-touch-icon" sizes="180x180" href="/images/FAVICONS/apple-icon-180x180.png">
  16.         <link rel="icon" type="image/png" sizes="192x192"  href="/images/FAVICONS/android-icon-192x192.png">
  17.         <link rel="icon" type="image/png" sizes="32x32" href="/images/FAVICONS/favicon-32x32.png">
  18.         <link rel="icon" type="image/png" sizes="96x96" href="/images/FAVICONS/favicon-96x96.png">
  19.         <link rel="icon" type="image/png" sizes="16x16" href="/images/FAVICONS/favicon-16x16.png">
  20.         <link rel="manifest" href="/images/FAVICONS/manifest.json">
  21.         <meta name="msapplication-TileColor" content="#ffffff">
  22.         <meta name="msapplication-TileImage" content="/images/FAVICONS/ms-icon-144x144.png">
  23.         <meta name="theme-color" content="#ffffff">
  24.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  25.         {% block stylesheets %}
  26.             {{ encore_entry_link_tags('app') }}
  27.             <link rel="stylesheet" href="{{ asset('css/foundation/foundation.min.css') }}">
  28.             <link rel="stylesheet" href="{{ asset('css/main.css') }}">
  29.             <link rel="stylesheet" href="{{ asset('css/responsive.css') }}">
  30.             <link rel="preconnect" href="https://fonts.googleapis.com">
  31.             <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  32.             <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.css">
  33.             <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&display=swap" rel="stylesheet">
  34.             <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />     
  35.             <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">       
  36.         {% endblock %}
  37.         {% block javascripts %}
  38.             {{ encore_entry_script_tags('app') }}
  39.             <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
  40.             <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  41.         {% endblock %}
  42.     </head>
  43.     <body>
  44.         {% include 'header.html.twig' %}
  45.         <div id="body_content" {% if isFirstConnexion is defined and isFirstConnexion %}class="overlay_show"{% endif %}>
  46.         
  47.         {% include '_notyf.html.twig' %}
  48.         {% block body %}{% endblock %}
  49.         {% include 'footer.html.twig' %}
  50.         </div>
  51.         
  52.         <script src="{{ asset('js/what-input.js') }}"></script>            
  53.         <script src="{{ asset('js/foundation.js') }}"></script>            
  54.         <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
  55.         <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
  56.         <script src="{{ asset('js/main.js') }}"></script>      
  57.         <script>
  58.             $(document).foundation();
  59.         </script>    
  60.         <script src="https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.js"></script>
  61.         <script src="{{ asset('js/notyf.js') }}"></script>        
  62.         <script src="{{ asset('ckeditor/ckeditor.js') }}"></script>
  63.         <script>
  64.             $(document).ready(function () {
  65.                 // Détruire toutes les instances existantes pour éviter les conflits
  66.                 for (var instance in CKEDITOR.instances) {
  67.                     CKEDITOR.instances[instance].destroy(true);
  68.                 }
  69.                 // Initialiser CKEditor sur tous les textareas avec la classe 'ckeditor'
  70.                 $('textarea.ckeditor').each(function () {
  71.                     var editorId = $(this).attr('id');
  72.                     // Initialiser CKEditor sans supprimer le plugin notification
  73.                     CKEDITOR.replace(editorId, {
  74.                         toolbar: 'basic', // Configuration de la barre d'outils
  75.                         on: {
  76.                             instanceReady: function () {
  77.                                 // Supprime le message de version à l'initialisation
  78.                                 if (this.plugins.notification) {
  79.                                     
  80.                                     this.plugins.notification.instances.forEach(function (notification) {
  81.                                         notification.hide();
  82.                                     });
  83.                                 }
  84.                             },
  85.                         },
  86.                     });
  87.                 });
  88.             });
  89.         </script>
  90.     </body>
  91. </html>