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="Content-Type" content="text/html; charset=utf-8">
  6.             <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7.             <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
  8.             <meta name="format-detection" content="telephone=no"/>
  9.         <title>{% block title %}Welcome!{% endblock %}</title>
  10.         {# <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>"> #}
  11.         <link rel="shortcut icon" href="{{ asset('favicon.ico') }}">
  12.         {% block stylesheets %}
  13.             {{ encore_entry_link_tags('app') }}
  14.         {% endblock %}
  15.         {% block javascripts %}
  16.             {{ encore_entry_script_tags('app') }}
  17.         {% endblock %}
  18.     </head>
  19.     <body class="{% block body_class %}{% endblock %}">
  20.         {% block menu_lateral %}
  21.             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  22.                 {{ include('menu_lateral.html.twig') }}
  23.             {% endif %}
  24.         {% endblock %}
  25.         {% block header %}
  26.             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  27.                 {{ include('header.html.twig') }}
  28.             {% else %}
  29.                 {{ include('header_not_connected.html.twig') }}
  30.             {% endif %}
  31.         {% endblock %}
  32.         {# {% block flash_messages %}
  33.             {% for label, messages in app.flashes %}
  34.                 {% for message in messages %}
  35.                     {% set bootstrapLabel = 'info' %}
  36.                     {% if label == 'error' %}
  37.                        {% set bootstrapLabel = 'danger' %}
  38.                     {% elseif label == 'warning' %}
  39.                        {% set bootstrapLabel = 'warning'%}
  40.                     {% endif %}
  41.                     <div class="alert alert-{{ bootstrapLabel }} alert-dismissible fade show" role="alert">
  42.                         <div>{{ message }}</div>
  43.                         <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  44.                     </div>
  45.                 {% endfor %}
  46.             {% endfor %}
  47.         {% endblock %} #}
  48.         {% block body %}{% endblock %}
  49.         {% block toast_messages %}
  50.             {{ include('toasters.html.twig') }}
  51.         {% endblock %}
  52.     </body>
  53. </html>