custom/plugins/theme/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.             <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.                                 {% if context.customer and context.customer.groupId == doncarneConfig.beefClubCustomerGroup %}
  12.                                     {% if theme_config('sw-logo-tablet-beefclub') %}
  13.                                         <source srcset="{{ theme_config('sw-logo-tablet-beefclub') |sw_encode_url }}"
  14.                                                 media="(min-width: {{ theme_config('breakpoint.md') }}px) and (max-width: {{ theme_config('breakpoint.lg') - 1 }}px)">
  15.                                     {% else %}
  16.                                         <source srcset="{{ theme_config('sw-logo-tablet') |sw_encode_url }}"
  17.                                                 media="(min-width: {{ theme_config('breakpoint.md') }}px) and (max-width: {{ theme_config('breakpoint.lg') - 1 }}px)">
  18.                                     {% endif %}
  19.                                 {% else %}
  20.                                     <source srcset="{{ theme_config('sw-logo-tablet') |sw_encode_url }}"
  21.                                             media="(min-width: {{ theme_config('breakpoint.md') }}px) and (max-width: {{ theme_config('breakpoint.lg') - 1 }}px)">
  22.                                 {% endif %}
  23.                             {% endif %}
  24.                         {% endblock %}
  25.                         {% block layout_header_logo_image_mobile %}
  26.                             {% if theme_config('sw-logo-mobile') and theme_config('sw-logo-mobile') != theme_config('sw-logo-desktop') %}
  27.                                 {% if context.customer and context.customer.groupId == doncarneConfig.beefClubCustomerGroup %}
  28.                                     {% if theme_config('sw-logo-mobile-beefclub') %}
  29.                                         <source srcset="{{ theme_config('sw-logo-mobile-beefclub') |sw_encode_url }}"
  30.                                                 media="(max-width: {{ theme_config('breakpoint.md') - 1 }}px)">
  31.                                     {% else %}
  32.                                         <source srcset="{{ theme_config('sw-logo-mobile') |sw_encode_url }}"
  33.                                                 media="(max-width: {{ theme_config('breakpoint.md') - 1 }}px)">
  34.                                     {% endif %}
  35.                                 {% else %}
  36.                                     <source srcset="{{ theme_config('sw-logo-mobile') |sw_encode_url }}"
  37.                                             media="(max-width: {{ theme_config('breakpoint.md') - 1 }}px)">
  38.                                 {% endif %}
  39.                             {% endif %}
  40.                         {% endblock %}
  41.                         {% block layout_header_logo_image_default %}
  42.                             {% if theme_config('sw-logo-desktop') %}
  43.                                 {% if context.customer and context.customer.groupId == doncarneConfig.beefClubCustomerGroup %}
  44.                                     {% if theme_config('sw-logo-desktop-beefclub') %}
  45.                                         <img src="{{ theme_config('sw-logo-desktop-beefclub') |sw_encode_url }}"
  46.                                              alt="{{ "header.logoLink"|trans|striptags }}"
  47.                                              class="img-fluid header-logo-main-img"/>
  48.                                     {% else %}
  49.                                         <img src="{{ theme_config('sw-logo-desktop') |sw_encode_url }}"
  50.                                              alt="{{ "header.logoLink"|trans|striptags }}"
  51.                                              class="img-fluid header-logo-main-img"/>
  52.                                     {% endif %}
  53.                                 {% else %}
  54.                                     <img src="{{ theme_config('sw-logo-desktop') |sw_encode_url }}"
  55.                                          alt="{{ "header.logoLink"|trans|striptags }}"
  56.                                          class="img-fluid header-logo-main-img"/>
  57.                                 {% endif %}
  58.                             {% endif %}
  59.                         {% endblock %}
  60.                     </picture>
  61.                 {% endblock %}
  62.             </a>
  63.         {% endblock %}
  64.     </div>
  65. {% endblock %}