custom/plugins/b2bsellerscore/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_link %}
  3.       <a class="header-logo-main-link"
  4.               {% if context.extensions.b2bPlatformContext %}
  5.                   href="{{ path('frontend.b2b_platform.index') }}"
  6.               {% else %}
  7.                   href="{{ path('frontend.home.page') }}"
  8.               {% endif %}
  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.   {% endblock %}