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