custom/plugins/TcinnThemeWareClean/src/Resources/views/storefront/layout/header/actions/currency-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/actions/currency-widget.html.twig' %}
  2. {# TODO: prüfen... #}
  3. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  4. {# ThemeWare: Set theme variables #}
  5. {% set twtHeaderType = theme_config('twt-header-type') %}
  6. {% set twtHeaderTopBarJustifyContent = theme_config('twt-header-top-bar-justify-content') %}
  7. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  8. {# TODO: HC-Architecture... #}
  9. {# ThemeWare: Changes on the currency-dropdown #}
  10. {# TODO:
  11.     - Default-Konfiguration ergänzen...
  12.     - Check if this can be solved with scss...
  13. #}
  14. {% block layout_header_actions_currency_widget_form_items %}
  15.     {% if twtHeaderType == 4 or twtHeaderTopBarJustifyContent == 'flex-start' %}
  16.         <div class="top-bar-list dropdown-menu dropdown-menu-left"
  17.              aria-labelledby="currenciesDropdown-{{ position }}">
  18.             {% for currency in page.header.currencies %}
  19.                 {% block layout_header_actions_currency_widget_form_items_element %}
  20.                     <div class="top-bar-list-item dropdown-item{% if currency.id is same as(page.header.activeCurrency.id) %} item-checked{% endif %}"
  21.                          title="{{ currency.translated.shortName }}">
  22.                         {% block layout_header_actions_currency_widget_form_items_element_label %}
  23.                             <label class="top-bar-list-label"
  24.                                    for="{{ position }}-{{ currency.id }}">
  25.                                 {% block layout_header_actions_currency_widget_form_items_element_input %}
  26.                                     <input class="top-bar-list-radio"
  27.                                            id="{{ position }}-{{ currency.id }}"
  28.                                            value="{{ currency.id }}"
  29.                                            name="currencyId"
  30.                                            type="radio"
  31.                                             {% if currency.id is same as(page.header.activeCurrency.id) %} checked{% endif %}>
  32.                                     {{ currency.symbol }} {{ currency.translated.shortName }}
  33.                                 {% endblock %}
  34.                             </label>
  35.                         {% endblock %}
  36.                     </div>
  37.                 {% endblock %}
  38.             {% endfor %}
  39.         </div>
  40.     {% else %}
  41.         {# Default block #}
  42.         {{ parent() }}
  43.     {% endif %}
  44. {% endblock %}