custom/plugins/Theme3S/src/Resources/views/storefront/layout/header/account-menu.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {% block utilities_offcanvas_content %}
  3.     <div class="account-menu">
  4.         {% block layout_header_actions_account_widget_dropdown_header %}
  5.             {% if not context.customer.guest %}
  6.                 <div class="dropdown-header account-menu-header">
  7.                     {{ "account.myAccount"|trans|sw_sanitize }}
  8.                 </div>
  9.             {% endif %}
  10.         {% endblock %}
  11.         {% block layout_header_actions_account_widget_dropdown_login %}
  12.             {% if not context.customer %}
  13.                 <div class="account-menu-login">
  14.                     <a href="{{ path('frontend.account.login.page') }}"
  15.                        title="{{ "account.loginSubmit"|trans|striptags }}"
  16.                        class="btn btn-primary account-menu-login-button">
  17.                         {{ "account.loginSubmit"|trans|sw_sanitize }}
  18.                     </a>
  19.                     <div class="account-menu-register">
  20.                         {{ "account.orRegister"|trans|sw_sanitize }} <a href="{{ path('frontend.account.login.page') }}"
  21.                                                                         title="{{ "account.orRegisterLink"|trans|striptags }}">{{ "account.orRegisterLink"|trans|striptags }}</a>
  22.                     </div>
  23.                     {% if page.header.activeLanguage.translationCode.code == 'en-GB' %}
  24.                         {% set linkname = "Dealer registration form" %}
  25.                         {% set link = "https://shop.schutzkleidung.de/en/Dealer-registration-form" %}
  26.                     {% elseif page.header.activeLanguage.translationCode.code == 'nl-NL'  %}
  27.                         {% set linkname = "Registreer u als dealer" %}
  28.                         {% set link = "https://shop.schutzkleidung.de/nl/Registratieformulier-voor-dealers" %}
  29.                     {% elseif page.header.activeLanguage.translationCode.code == 'es-ES'  %}
  30.                         {% set linkname = "RegĂ­strate como distribuidor" %}
  31.                         {% set link = "https://shop.schutzkleidung.de/es/Formulario-de-registro-de-distribuidor" %}
  32.                     {% elseif page.header.activeLanguage.translationCode.code == 'fr-FR'  %}
  33.                         {% set linkname = "S'inscrire en tant que revendeur" %}
  34.                         {% set link = "https://shop.schutzkleidung.de/fr/Formulaire-d-inscription-du-concessionnaire" %}
  35.                     {% elseif page.header.activeLanguage.translationCode.code == 'it-IT'  %}
  36.                         {% set linkname = "Registrati come rivenditore" %}
  37.                         {% set link = "https://shop.schutzkleidung.de/it/Modulo-di-registrazione-del-rivenditore" %}
  38.                     {% else %}
  39.                         {% set linkname = "Registrieren als Händler" %}
  40.                         {% set link = "https://shop.schutzkleidung.de/Registrierungsformular-fuer-Haendler" %}
  41.                     {% endif %}
  42.                     <div id="heandlerreg" >
  43.                         <a href="{{ link }}">{{ linkname }}</a>
  44.                     </div>
  45.                 </div>
  46.             {% endif %}
  47.         {% endblock %}
  48.         {% block layout_header_actions_account_widget_dropdown_links %}
  49.             <div class="account-menu-links">
  50.                 {% sw_include '@Storefront/storefront/page/account/sidebar.html.twig' with {'headerWidget': true} %}
  51.             </div>
  52.         {% endblock %}
  53.     </div>
  54. {% endblock %}