custom/plugins/TcinnThemeWareModern/src/Resources/views/storefront/layout/header/logo.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/logo.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 twtHeaderLogoType = theme_config('twt-header-logo-type') %}
  7. {% set twtShoppingExperiencesHeaderLogoImage = theme_config('twt-shopping-experiences-header-logo-image') %}
  8. {% set twtShoppingExperiencesHeaderPosition = theme_config('twt-shopping-experiences-header-position') %}
  9. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  10. {# TODO: HC-Architecture... #}
  11. {# ThemeWare: Adjustments on the header logo #}
  12. {% block layout_header_logo_image %}
  13.     {# Default logo #}
  14.     {% if twtHeaderLogoType != 2 %}
  15.         {{ parent() }}
  16.     {% endif %}
  17.     {# ThemeWare Text-Logo #}
  18.     {% block twt_layout_header_textlogo %}
  19.         {% if twtHeaderLogoType == 2 %}
  20.             {% sw_include '@Storefront/storefront/themeware/includes/twt-textlogo-include.html.twig' ignore missing %}
  21.         {% endif %}
  22.     {% endblock %}
  23.     {# ThemeWare: Add shopping-experiences logo 'header-logo-shopping-experiences-link' (not with "Header 10"   #customHeader) #}
  24.     {% if twtShoppingExperiencesHeaderPosition == 2 and twtHeaderType != 10 %}
  25.         {% if twtShoppingExperiencesHeaderLogoImage %}
  26.             <a class="header-logo-shopping-experiences-link" href="{{ path('frontend.home.page') }}" title="{{ "header.logoLink"|trans|striptags }}">
  27.                 <img src="{{ twtShoppingExperiencesHeaderLogoImage|sw_encode_url }}" alt="{{ "header.logoLink"|trans|striptags }}" class="img-fluid header-logo-shopping-experiences-img"/>
  28.             </a>
  29.         {% endif %}
  30.     {% endif %}
  31. {% endblock %}