templates/front/inc/header.html.twig line 1

Open in your IDE?
  1. {% set categories = twig_service.getCategoriesMenu() %}
  2. <header class="bg-black-dark">
  3.     <div class="container-header">
  4.         <div class="menu">
  5.             <a href="{{ path('front_home') }}">
  6.                 <img src="{{ asset('img/mauroservice-logo.svg') }}" alt="Mauroservice">
  7.             </a>
  8.             <ul>
  9.                 <li class="position-relative"><a href="{{ path('front_home') }}">About Us</a></li>
  10.                 <li class="main-link position-relative">
  11.                     <a href="#">Products <br>& Services</a>
  12.                     <ul class="sub-menu position-fixed">
  13.                         {% for category in categories %}
  14.                             <li class="title" style="color:{{ category.color }};">{{ category.name }}</li>
  15.                             {% for subcategory in category.subCategories %}
  16.                                 <li><a href="{{ path('front_product_list', {'category_slug' : category.slug, 'subcategory_slug': subcategory.slug}) }}" class="sub-link">{{ subcategory.name }}</a></li>
  17.                             {% endfor %}
  18.                         {% endfor %}
  19.                     </ul>
  20.                 </li>
  21.                 <li class="position-relative"><a href="{{ path('front_about') }}">About Us</a></li>
  22.                 <li class="position-relative"><a href="#">Environmental <br>Concerned</a></li>
  23.                 <li class="position-relative"><a href="{{ path('front_post_list') }}">News</a></li>
  24.                 <li class="position-relative"><a href="{{ path('front_contact') }}">Contact <br>Us</a></li>
  25.             </ul>
  26.         </div>
  27.         <div class="social">
  28.             <ul>
  29.                 <li><a href=""><img src="{{ asset('img/social/instagram.svg') }}" alt="Instagram"></a></li>
  30.                 <li><a href=""><img src="{{ asset('img/social/facebook.svg') }}" alt="Facebook"></a></li>
  31.                 <li><a href=""><img src="{{ asset('img/social/youtube.svg') }}" alt="Youtube"></a></li>
  32.                 <li><a href=""><img src="{{ asset('img/social/linkedin.svg') }}" alt="Linkedin"></a></li>
  33.             </ul>
  34.         </div>
  35.     </div>
  36. </header>