templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="app.request.locale">
  3.   <head>
  4.     <meta charset="UTF-8">
  5.     <title>{% block title %}ImagingPro{% endblock %}</title>
  6.     <link rel="icon" type="image/png" href="{{ asset('images/favicon-32-2.png') }}">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1">
  8.      
  9.     {% block stylesheets %}
  10.       {{ encore_entry_link_tags('app') }}
  11.       <!-- Icons -->
  12.       <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  13.       <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
  14.     {% endblock %}
  15.     {% block javascripts %}
  16.       <!-- SweetAlert2 primero -->
  17.       <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  18.       {{ encore_entry_script_tags('app') }}
  19.       <script src="{{ asset('js/toggle-password.js') }}"></script>
  20.       <script src="{{ asset('js/sidebar-toggle.js') }}"></script>
  21.       <script src="{{ asset('js/flash.js') }}" defer></script>
  22.     {% endblock %}
  23.   </head>
  24.   <body class="{% block body_class %}bg-light text-dark{% endblock %}">
  25.     {# Header modular #}
  26.     {% block header %}
  27.       {% if app.request.attributes.get('_route') not in ['app_login', 'app_register', 'app_forgot_password'] %}
  28.         {% include 'header.html.twig' %}
  29.       {% endif %}
  30.     {% endblock %}
  31.     {# Contenido dinámico #}
  32.     {% block body %}
  33.         {% include 'content.html.twig' %}
  34.     {% endblock %}
  35.     {# Footer modular #}
  36.     {% block footer %}
  37.       {% if app.request.attributes.get('_route') not in ['app_login', 'app_register', 'app_forgot_password'] %}
  38.         {% include 'footer.html.twig' %}
  39.       {% endif %}
  40.     {% endblock %}
  41.     {# Notificaciones globales - se convierten automáticamente a SweetAlert2 #}
  42.     {% include 'partials/_flashes.html.twig' %}
  43.   </body>
  44. </html>