templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.         <title>{% block title %}{% endblock %} | VEEKING</title>
  8.         <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>">
  9.         <link href="/assets/style.css" rel="stylesheet">
  10.         <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
  11.         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer" /> 
  12.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  13.         {% block stylesheets %}
  14.             {{ encore_entry_link_tags('app') }}
  15.         {% endblock %}
  16.         {% block javascripts %}
  17.             {{ encore_entry_script_tags('app') }}
  18.         {% endblock %}
  19.     </head>
  20.     <body id="top {% block body_id %}{% endblock %}" class="{% block body_class %}{% endblock %}">
  21.         <div id="svg-sprite" style="display: none;"></div>
  22.         <div id="svg-solid" style="display: none;"></div>
  23.         <div id="svg-brands" style="display: none;"></div>
  24.         {% if is_granted('ROLE_ADMIN') and 'admin' not in app.request.pathinfo %}
  25.             <div class="admin-bar bg-dark p-2">
  26.                 <div class="container d-flex justify-content-between">
  27.                     <a class="text-decoration-none" href="{{ path('app_admin_index') }}">
  28.                         <span class="fas fa-fw fa-user"></span>
  29.                         Retourner sur l'admin
  30.                     </a>
  31.                     <a class="text-decoration-none" href="{{ path('app_logout') }}">Déconnexion</a>
  32.                 </div>
  33.             </div>
  34.         {% endif %}
  35.         {% block header %}
  36.             {% include "front/include/_header.html.twig" %}
  37.         {% endblock %}
  38.         {% block body %}
  39.         
  40.             {{ include('default/_flash_messages.html.twig') }}
  41.             {# {% include "front/include/_breadcrumb.html.twig" with {'request': app.request} %} #}
  42.             {% block main %}{% endblock %}
  43.         {% endblock %}
  44.         {% block footer %}
  45.             {% if 'admin' not in app.request.pathinfo %}
  46.                 {% include "front/include/_footer.html.twig" %}
  47.             {% else %}
  48.                 <div class="mb-4"></div>
  49.             {% endif %}
  50.         {% endblock %}
  51.     </body>
  52. </html>