templates/front-office/_base.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="fr">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport"
  6.           content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8.     <meta name="description" content="{% block metaDescription %}{% endblock %}">
  9.     <title>{% block title %}{% endblock %}</title>
  10.     <link rel="stylesheet" href="{{ asset('assets/meli/meli-styles.css') }}">
  11.     <link rel="stylesheet" href="{{ asset('assets/css/front-office/styles.css') }}">
  12.     {% block link %}{% endblock %}
  13. </head>
  14. <body>
  15.     <header class="base-header meli-header meli-section-90">
  16.         <div class="meli-header-logo">
  17.             <a href="{{ path('home') }}">
  18.                 <img src="{{ asset('assets/img/logo/studio-p.png') }}" alt="Logo Studio-P">
  19.             </a>
  20.         </div>
  21.         {# Check if there is really products in basket #}
  22.         {% set check = false %}
  23.         {% for key, c in app.request.cookies.all %}
  24.             {% if key|split("-")|length > 1 %}
  25.                 {% set check = true %}
  26.             {% endif %}
  27.         {% endfor %}
  28.         <nav class="meli-header-nav meli-width-70">
  29.             <ul>
  30.                 <li><a href="{{ path('studio_list') }}">STUDIOS</a></li>
  31.                 <li><a href="{{ path('material_list') }}">MATERIELS</a></li>
  32.                 <li><a href="{{ path('contact') }}">CONTACT</a></li>
  33.                 <li class="basket">
  34.                     <a href="{{ path('booking_form') }}">
  35.                         Panier de Réservation
  36.                         <span id="js-menu-basket">
  37.                             {% if check %} <span class="circle-red"></span> {% endif %}
  38.                             <img  src="{{ asset('assets/img/picto/basket.png') }}" alt="panier">
  39.                         </span>
  40.                     </a>
  41.                 </li>
  42.             </ul>
  43.         </nav>
  44.     </header>
  45.     {# RESPONSIVE MENU #}
  46.     <nav class="base-responsive-menu meli-width-100">
  47.         <ul class="base-responsive-menu-content meli-around-center meli-section-80">
  48.             <li class="txt-center img-box meli-width-10 meli-center-center">
  49.                 <a href="{{ path('home') }}">
  50.                     <img src="{{ asset('assets/img/menu/studio-p.png') }}" alt="Accueil">
  51.                     accueil
  52.                 </a>
  53.             </li>
  54.             <li class="txt-center img-box meli-width-10 meli-center-center">
  55.                 <a href="{{ path('studio_list') }}">
  56.                     <img src="{{ asset('assets/img/menu/materiel.png') }}" alt="Materiel">
  57.                     matériels
  58.                 </a>
  59.             </li>
  60.             <li class="txt-center img-box meli-width-10 meli-center-center">
  61.                 <a href="{{ path('material_list') }}">
  62.                     <img src="{{ asset('assets/img/menu/studio.png') }}" alt="Studio">
  63.                     studios
  64.                 </a>
  65.             </li>
  66.             <li class="txt-center img-box meli-width-10 meli-center-center">
  67.                 <a href="{{ path('booking_form') }}">
  68.                     <img src="{{ asset('assets/img/menu/panier.png') }}" alt="Panier">
  69.                     panier
  70.                 </a>
  71.             </li>
  72.         </ul>
  73.     </nav>
  74.     {# END - RESPONSIVE MENU #}
  75.     <main>
  76.         {% block content %}{% endblock %}
  77.     </main>
  78.     <footer class="base-footer meli-flex-col meli-around-center">
  79.         <div class="meli-center-center">
  80.             <div class="img-box">
  81.                 <img src="{{ asset('assets/img/logo/studio-p-white.png') }}" alt="Logo Studio-p">
  82.             </div>
  83.         </div>
  84.         <ul class="meli-around-center meli-section-90">
  85.            <li>
  86.                <a href="{{ path('explanation') }}">Comment louer ?</a>
  87.            </li>
  88.             <li>
  89.                 <a href="{{ path('legal') }}">Mentions légales</a>
  90.             </li>
  91.             <li>
  92.                 <a href="{{ path('contact') }}">Contact</a>
  93.             </li>
  94.         </ul>
  95.         <div class="copyrights">
  96.             <p>Créé par <a href="https://meliway.fr">MELIWAY</a>, designé par Wanda SOBCZAK
  97.             et développement par Hery DOMENICHINI</p>
  98.             <p>© Copyright - Tous droits réservés</p>
  99.         </div>
  100.     </footer>
  101.     <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
  102.     <script src="{{ asset('assets/meli/meli-script.js') }}"></script>
  103.     {% block script %}{% endblock %}
  104. </body>
  105. </html>