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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %}
  2. {# ThemeWare® HC-Architecture® via configuration #}
  3. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  4. {# ThemeWare: Set theme variables #}
  5. {% set twtHeaderAccountBtnCompatibility = theme_config('twt-header-account-btn-compatibility') %}
  6. {% set twtHeaderActionsAccountMenuBtnBadgeShow = theme_config('twt-header-actions-account-menu-btn-badge-show') %}
  7. {% set twtIconSet = theme_config('twt-iconset') %}
  8. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  9. {# ThemeWare: Adjustments on the account button #}
  10. {# HC-Architecture @Doku #}
  11. {% block layout_header_actions_account_widget_dropdown_button %}
  12.     {% if twtHeaderAccountBtnCompatibility == 2 %}
  13.         {# ThemeWare: Add title-attribute #}
  14.         <button class="btn account-menu-btn header-actions-btn" title="{{ "twt.header.accountText"|trans }}"
  15.                 type="button"
  16.                 id="accountWidget"
  17.                 data-offcanvas-account-menu="true"
  18.                 data-toggle="dropdown"
  19.                 aria-haspopup="true"
  20.                 aria-expanded="false"
  21.                 aria-label="{{ "account.myAccount"|trans|striptags }}"
  22.                 title="{{ "account.myAccount"|trans|striptags }}">
  23.             {# ThemeWare: Icon austauschen & Wrapper um Icon ergänzen. #}
  24.             <span class="header-account-icon">
  25.                 {% if twtIconSet is not same as ('default') %}
  26.                     {% sw_icon 'avatar' style {'pack':'themeware'} %}
  27.                 {% else %}
  28.                     {% sw_icon 'avatar' %}
  29.                 {% endif %}
  30.             </span>
  31.             {# ThemeWare: Label "Mein Konto" ergänzen. #}
  32.             <span class="header-account-name">
  33.                 {{ "twt.header.accountText"|trans }}
  34.             </span>
  35.             {# ThemeWare: "Angemeldet-Badge" ergänzen. #}
  36.             {% if twtHeaderActionsAccountMenuBtnBadgeShow == 2 and context.customer is not empty %}
  37.                 <span class="badge badge-primary twt-header-logged-in-badge">&#10003;</span>
  38.             {% endif %}
  39.         </button>
  40.     {% else %}
  41.         {# Default block #}
  42.         {{ parent() }}
  43.     {% endif %}
  44. {% endblock %}