templates/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.         <title>{% block title %}Welcome!{% endblock %}</title>
  7.         <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>">
  8.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  9.         {% block stylesheets %}
  10.             {{ encore_entry_link_tags('app') }}
  11.         {% endblock %}
  12.         {% block javascripts %}
  13.             {{ encore_entry_script_tags('app') }}
  14.         {% endblock %}
  15.     </head>
  16.     <body class="{% if is_granted('ROLE_ADMIN') and ('admin_' in app.request.attributes.get('_route')) %}pagetype-admin{% elseif is_granted('IS_AUTHENTICATED_FULLY') and ('authenticated_' in app.request.attributes.get('_route')) %}pagetype-authenticated{% else %}pagetype-front{% endif %} page-{{ app.request.attributes.get('_route') }}">
  17.         {% block body %}
  18.         <div class="cover-container d-flex h-100 mx-auto flex-column">
  19.             {% include '_menu.html.twig' %}
  20.             {% block container %}
  21.             <main class="container">
  22.                 <div class="bg-body p-5 rounded shadow">
  23.                     {% block content %}
  24.                     {% endblock %}
  25.                 </div>
  26.             </main>
  27.             {% endblock %}
  28.             {% include '/_footer.html.twig' %}
  29.         {% endblock %}
  30.         </div>
  31.     </body>
  32. </html>