templates/base_front.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>{% block title %}{{ config.refTitle }}{% endblock %}</title>
  5.         {% include "_referencement.html.twig" %}
  6.         <link rel="stylesheet" href="https://bootswatch.com/5/lux/bootstrap.min.css">
  7.         <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  8.         <link rel="stylesheet" href="{{ asset('css/style.css') }}">
  9.         <link rel="stylesheet" href="{{ asset('css/front.css') }}">
  10.         <link rel="stylesheet" href="{{ path('css_route') }}">
  11.         <link rel="stylesheet" href="{{ asset('css/notification.css') }}">
  12.         {% block stylesheets %}
  13.             {{ encore_entry_link_tags('app') }}
  14.         {% endblock %}
  15.     </head>
  16.     <body>
  17.         <div id="contenu">
  18.             {% include "_nav.html.twig" %}
  19.             <main>
  20.             {% block MoteurRecherche %}
  21.             
  22.                 {# <div class="input-group mb-3 col-md-10 mx-auto mt-3">
  23.                     <input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="button-addon2">
  24.                     <button class="btn btn-outline-secondary" type="button" id="button-addon2">Button</button>
  25.                 </div> #}
  26.             
  27.             {% endblock %}
  28.             {% block navFront %}
  29.                     <nav id="navFront">
  30.                         <ul>
  31.                             {% for item in rubrique.order %}   
  32.                                 {% if app.request.get('_route') == "rubriques" and app.request.attributes.get('_route_params')['slug'] == item.slug or  app.request.attributes.get('_route_params')['slug'] is defined and app.request.attributes.get('_route_params')['slug'] == item.slug %}
  33.                                 
  34.                                     <a class="text-primary fs14" href="{{ path('rubriques', {slug:item.slug })}}">
  35.                                         <li class="borderBottomBlue px-4 mt-1">
  36.                                             {{ item.nom }}
  37.                                         </li>
  38.                                     </a>
  39.                                 {% else %}
  40.                                     <a class="navHover fs14" href="{{ path('rubriques', {slug:item.slug })}}">
  41.                                         <li class="px-4 mt-1">
  42.                                             {{ item.nom }}
  43.                                         </li>
  44.                                     </a>
  45.                                 {% endif %}
  46.                             {% endfor %}
  47.                         </ul>
  48.                     </nav>
  49.                     
  50.             {% endblock %}
  51.             {# <br>
  52.             {{ dump(app.request.get('_route')) }}
  53.             {{ dump(app.request.attributes.get('_route_params')) }} #}
  54.             
  55.                 <div class="col-md-10 mx-auto" id="mainZone">
  56.             
  57.                     {% block ariane %}{% endblock %}
  58.                     <h1 class="text-center my-4 mx-12 rounded">{% block h1 %}{% endblock %}</h1>
  59.                     {% include "_flashes.html.twig" %}
  60.                     {% block body %}{% endblock %}
  61.                 </div>
  62.             </main>
  63.         </div>
  64.         {% include "_footer.html.twig" %}
  65.         <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
  66.         <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
  67.         crossorigin="anonymous"></script>
  68.         <script src="https://cdnjs.cloudflare.com/ajax/libs/htmx/1.8.5/htmx.min.js" integrity="sha512-B5IkMjoTFeR6sB/Mbd6eNnF0pwvfG5ZgSGdH4pL2uWnadND4pWTFXxXi3TBBKCZWGaWx83AujfrzFQuqfau11Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  69.         <script src="https://unpkg.com/feather-icons"></script>
  70.         <script>
  71.             feather.replace();
  72.         </script>
  73.         <script src="{{ asset('js/firstscript.js') }}"></script>
  74.         
  75.         {% block javascripts %}
  76.             {{ encore_entry_script_tags('app') }}
  77.         {% endblock %}
  78.         <script>
  79.             {% if app.user %}
  80.                 let user = true;
  81.             {% else %}
  82.                 let user = false;
  83.             {% endif %}
  84.         </script>
  85.         <script src="{{ asset('js/secondscript.js') }}"></script>
  86.         <script src="{{ asset('js/notification.js') }}"></script>
  87.         <script src="{{ asset('js/password.js') }}"></script>
  88.     </body>
  89. </html>