vendor/shopware/storefront/Resources/views/storefront/layout/header/logo.html.twig line 1

  1. {% block layout_header_logo_inner %}
  2.     <div class="header-logo-main">
  3.         {% block layout_header_logo_link %}
  4.             <a class="header-logo-main-link"
  5.                href="{{ path('frontend.home.page') }}"
  6.                title="{{ "header.logoLink"|trans|striptags }}">
  7.                 {% block layout_header_logo_image %}
  8.                     <picture class="header-logo-picture">
  9.                             {% block layout_header_logo_image_tablet %}
  10.                             {% if theme_config('sw-logo-tablet') and theme_config('sw-logo-tablet') != theme_config('sw-logo-desktop') %}
  11.                                 <source srcset="{{ theme_config('sw-logo-tablet') |sw_encode_url }}"
  12.                                         media="(min-width: {{ theme_config('breakpoint.md') }}px) and (max-width: {{ theme_config('breakpoint.lg') - 1 }}px)">
  13.                             {% endif %}
  14.                         {% endblock %}
  15.                         {% block layout_header_logo_image_mobile %}
  16.                             {% if theme_config('sw-logo-mobile') and theme_config('sw-logo-mobile') != theme_config('sw-logo-desktop') %}
  17.                                 <source srcset="{{ theme_config('sw-logo-mobile') |sw_encode_url }}"
  18.                                         media="(max-width: {{ theme_config('breakpoint.md') - 1 }}px)">
  19.                             {% endif %}
  20.                         {% endblock %}
  21.                         {% block layout_header_logo_image_default %}
  22.                             {% if theme_config('sw-logo-desktop') %}
  23.                                 <img src="{{ theme_config('sw-logo-desktop') |sw_encode_url }}"
  24.                                      alt="{{ "header.logoLink"|trans|striptags }}"
  25.                                      class="img-fluid header-logo-main-img"/>
  26.                             {% endif %}
  27.                         {% endblock %}
  28.                     </picture>
  29.                 {% endblock %}
  30.             </a>
  31.         {% endblock %}
  32.     </div>
  33. {% endblock %}