templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Tableau de bord - Publigo{% endblock %}</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.         <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  8.         <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  9.         <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" crossorigin="anonymous">
  10.         <link rel="stylesheet" href="assets/css/jquery.tablesorter/themes/blue/style.css" type="text/css" media="print, projection, screen">
  11.         <link rel="stylesheet" href="assets/css/custom.css" crossorigin="anonymous">
  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.             <script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
  18.             <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
  19.             <script type="text/javascript" src="assets/js/jquery.tablesorter.min.js"></script> 
  20.             <script type="text/javascript" src="assets/js/custom.js"></script> 
  21.             {# {{ encore_entry_script_tags('app') }} #}
  22.         {% endblock %}
  23.     </head>
  24.     <body>
  25.         <div id="page" class="{{ pageClass }}"> 
  26.             {% block header %}
  27.                 <div class="container-fluid">
  28.                     {# {{ dump() }} #}
  29.                     <header class="d-flex flex-wrap justify-content-between pt-3 mb-4 border-bottom">
  30.                       <a href="/" class="d-flex align-items-center mb-3 mb-md-0 mr-md-auto text-dark text-decoration-none" title="ERP Publigo">
  31.                         {# <img src="{{ asset('assets/img/logo-80x80.png') }}" alt="1055"> #}
  32.                         <span class="h3 d-flex flex-column pl-3">Tools - Publigo</span>
  33.                       </a>
  34.                       <ul class="nav nav-tabs d-print-none mt-auto" style="margin-bottom: -1px;">
  35.                         <li class="nav-item"><a href="/" class="nav-link {% if app.request.pathInfo == "/" %}active{% endif %}" aria-current="page" title="Tableau de bord"><i class="fas fa-home"></i></a></li>
  36.                         <li class="nav-item ml-2"><a href="/website" class="nav-link {% if app.request.pathInfo == "/website" %}active{% endif %}" aria-current="page" title="Site web">Site web</a></li>
  37.                         <li class="nav-item ml-2"><a href="/archive-website" class="nav-link {% if app.request.pathInfo == "/archive-website" %}active{% endif %}" aria-current="page" title="Site web (archivé)">Site web (archivé)</a></li>
  38.                         <li class="nav-item ml-2"><a href="/domain" class="nav-link {% if app.request.pathInfo == "/domain" %}active{% endif %}" aria-current="page" title="Site web">Domaines (OVH)</a></li>
  39.                         {# <li class="nav-item ml-2"><a class="nav-link bg-danger text-white" href="{{ path('app_logout') }}" title="Déconnexion"><i class="fas fa-sign-out-alt"></i></a></li> #}
  40.                         {#% if is_granted('ROLE_ADMIN') %}
  41.                         <li class="nav-item"><a class="nav-link" href="{{ path('admin') }}">Gestion</a></li>
  42.                         <li class="nav-item pt-2">|</li>
  43.                         <li class="nav-item"><a class="nav-link" href="{{ path('app_logout') }}">Déconnexion</a></li>
  44.                         {% elseif is_granted('ROLE_CUSTOMER') %}
  45.                         <li class="nav-item"><a class="nav-link" href="{{ path('home') }}">Mon compte</a></li>
  46.                         <li class="nav-item pt-2">|</li>
  47.                         {% else %}
  48.                         <li class="nav-item"><a href="{{ path('customer_login') }}" class="nav-link">Connexion</a></li>
  49.                         <li class="nav-item pt-2">|</li>
  50.                         <li class="nav-item"><a href="{{ path('app_register') }}" class="nav-link">Inscription</a></li>
  51.                         {% endif %#}
  52.                       </ul>
  53.                     </header>
  54.                     {# {% if is_granted('ROLE_ADMIN') %}
  55.                       <div class="alert alert-danger" role="alert">
  56.                         Vous êtes connecté en tant qu'administrateur
  57.                       </div>
  58.                     {% endif %} #}
  59.                 </div>
  60.             {% endblock %}
  61.             {% block body %}{% endblock %}
  62.             {% block footer %}
  63.             <div class="container-fluid">
  64.                 <footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
  65.                     <div class="col-md-8 justify-content-end menu-mentions">
  66.                         {# 
  67.                         {{ knp_menu_render('mentions') }}
  68.                         #}
  69.                     </div>
  70.                     
  71.                     <p class="col-md-4 mb-0 text-muted text-right">© 2022-{{ "now"|date("Y") }} &nbsp;|&nbsp; Publigo</p>
  72.                 </footer>
  73.             </div>
  74.             {% endblock %}
  75.         </div>
  76.     </body>
  77. </html>