app/Resources/views/includes/navigation-icons.html.twig line 1

Open in your IDE?
  1. <ul class="navbar-nav menu-icons flex-row justify-content-center">
  2.     <li class="search-button nav-item dropdown">
  3.         <a class="search-toggle dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4" href="#"  data-selector="#navbarCollapse">
  4.         </a>
  5.     </li>
  6.     <li class="nav-item dropdown">
  7.         <a class="dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4" data-toggle="dropdown" href="#">
  8.             <img src="/static/images/icons/profile.svg" /></a>
  9.         <ul class="dropdown-menu">
  10.             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  11.                 <span class="dropdown-menu-arrow search arrow"></span>
  12.                 <div class="dropdown-item">{{ 'general.logged-in-as' | trans([app.user.username]) }}</div>
  13.                 <div class="dropdown-divider"></div>
  14.                 <a href="{{ path('account-index') }}" class="dropdown-item">{{ 'general.profile' | trans }}</a>
  15.                 <div class="dropdown-divider"></div>
  16.                 <a href="{{ path('account-logout') }}"class="dropdown-item">{{ 'general.logout' | trans }}</a>
  17.             {%  else %}
  18.                 <span class="dropdown-menu-arrow search arrow"></span>
  19.                 <a href="{{ path('account-login') }}"class="dropdown-item">{{ 'general.login' | trans }}</a>
  20.             {% endif %}
  21.         </ul>
  22.     </li>
  23.     <li class="nav-item">
  24.         <a class="py-2 d-none d-md-inline-block menu-icon ml-4" href="{{ path('shop-cart-detail') }}">
  25.             <img src="/static/images/icons/cart.svg" /></a>
  26.     </li>
  27.     {{ include('includes/language.html.twig') }}
  28. </ul>
  29. <form action="{{ path('search') }}" class="search-box mx-auto">
  30.     <input id="autoComplete" name="term" value="{{ app.request.get("term") }}" type="text" class="text search-input" placeholder="Type here to search..." autocomplete="off" />
  31. </form>