templates/front/main/header/top_menu_session_currencies.html.twig line 1

Open in your IDE?
  1. {% if currencySwitcher is defined and currencySwitcher and (app.user == null) %}
  2. {#    or app.user.customer == null#}
  3. <li>
  4.     {% set session_currency = app.session.get('userCurrency') %}
  5.     <div class="dropdown language-option">
  6.         <button class="dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  7.             {{ session_currency }}
  8.         </button>
  9.         <div class="dropdown-menu language-dropdown-menu" style="">
  10.             {% for currency in currencies %}
  11.                 {% if currency is not null %}
  12.                       <a class="dropdown-item {{ (currency == session_currency)?"selected":"" }}"
  13.                        href="{{ path('change_currency', {'currency': currency}) }}">{{ currency }}</a>
  14.                 {% endif %}
  15.             {% endfor %}
  16.         </div>
  17.     </div>
  18. </li>
  19. {% endif %}