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

Open in your IDE?
  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>
  9.                         {% block layout_header_logo_image_tablet %}
  10.                             {% if shopware.theme['sw-logo-tablet'] and shopware.theme['sw-logo-tablet'] != shopware.theme['sw-logo-desktop'] %}
  11.                                 <source srcset="{{ shopware.theme['sw-logo-tablet'] |sw_encode_url }}"
  12.                                         media="(min-width: {{ shopware.theme.breakpoint.md }}px) and (max-width: {{ shopware.theme.breakpoint.lg - 1 }}px)">
  13.                             {% endif %}
  14.                         {% endblock %}
  15.                         {% block layout_header_logo_image_mobile %}
  16.                             {% if shopware.theme['sw-logo-mobile'] and shopware.theme['sw-logo-mobile'] != shopware.theme['sw-logo-desktop'] %}
  17.                                 <source srcset="{{ shopware.theme['sw-logo-mobile'] |sw_encode_url }}"
  18.                                         media="(max-width: {{ shopware.theme.breakpoint.md - 1 }}px)">
  19.                             {% endif %}
  20.                         {% endblock %}
  21.                         {% block layout_header_logo_image_default %}
  22.                             {% if shopware.theme['sw-logo-desktop'] %}
  23.                                 <img src="{{ shopware.theme['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 %}