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