templates/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Accueil{% endblock %} - SymfonyShop</title>
  6.         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  7.         {# Penser à rajouter la balise meta pour le responsive #}
  8.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9.          <!-- Feuilles de styles -->
  10.         {# La fonction asset() est une fonction twig qui permet de préciser le chemin relatif du dossier public #}
  11.         <link rel="stylesheet" href="{{ asset('assets/css/bootstrap.min.css') }}">
  12.         {% block stylesheets %}{% endblock %}
  13.         <link rel="stylesheet" href="{{ asset('assets/css/styles.css') }}">
  14.         <!-- Fichiers JS -->
  15.         {# Ne pas oublier de mettre l'attribut defer pour ne pas que le js de Bootstrap démarre avant d'avoir charger le dom #}
  16.         <script src="{{ asset('assets/js/bootstrap.bundle.min.js') }}"defer></script>
  17.         {% block javascripts %}{% endblock %}
  18.         <script src="{{ asset('assets/js/scripts.js') }}"defer></script>
  19.     </head>
  20.     <body>
  21.     
  22.         <header>
  23.             {% block header %}   
  24.                 {% include "_partials/_navbar.html.twig" %}
  25.             {% endblock %}
  26.         </header>
  27.         <main class="container">
  28.             {#Vérification d'adresse email sans bundle#}
  29.             {# {% if app.user and app.user.isVerified == false %}
  30.                 <div class="alert alert-warning alert-dismissible" role="alert">
  31.                     <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  32.                     <div class="alert-message">
  33.                         <strong>Votre compte n'est pas activé</strong>, 
  34.                         <a href="{{ path('resend_verif') }}">renvoyer le lien d'activation</a>
  35.                     </div>
  36.                 </div>
  37.             {% endif %} #}
  38.             
  39.             {% include "_partials/_flash.html.twig" %}
  40.             {% block body %}{% endblock %}
  41.         </main> 
  42.         
  43.         {% block footer %}
  44.             {% include "_partials/_footer.html.twig" %}  
  45.         {% endblock %}
  46.         
  47.     </body>
  48. </html>