templates/areas/media-logos/view.html.twig line 1

Open in your IDE?
  1. <section class="content-block container {{ styleModifier | default(null) }} {{ anchorNavItem | default(null) ? 'js-anchor-nav__item' : '' }}"
  2.      {% if not pimcore_input('anchorTitle').empty %}data-anchor-nav-title="{{ pimcore_input('anchorTitle').frontend }}"{% endif %}>
  3.     {% embed 'Includes/editmode-settings.html.twig' %}
  4.         {% block additionalInfo %}
  5.         {% endblock %}
  6.     {% endembed %}
  7.     {{ include('Includes/title-block-editable.html.twig', {
  8.         styleModifier: 'js-fade-in',
  9.         isCentered: true
  10.     }) }}
  11.     <ul class="list-unstyled row justify-content-center vertical-gutter--3">
  12.         {% for i in pimcore_iterate_block(pimcore_block('logoBlock')) %}
  13.             <li class="col-md-auto col-12 vertical-gutter__item text-center">
  14.                 {% if editmode %}
  15.                     {{ pimcore_image('logo', {
  16.                         thumbnail: "logo-area",
  17.                         imgAttributes: {
  18.                             class: 'js-lazy-img img-fluid'
  19.                         },
  20.                         lowQualityPlaceholder: true,
  21.                     }) }}
  22.                     {{ pimcore_link('logo-link') }}
  23.                 {% elseif not pimcore_image('logo').empty %}
  24.                     {% if not pimcore_link('logo-link').href is empty %}
  25.                         <a href="{{ pimcore_link('logo-link').href }}" {% if not pimcore_link('logo-link').target is empty %}target="{{ pimcore_link('logo-link').target }}"{% endif %}>
  26.                     {% endif %}
  27.                     {% set description = getImageDescription(pimcore_image('logo').image, true) %}
  28.                     {{ pimcore_image('logo').image.thumbnail('logo-area').html({
  29.                         imgAttributes: {
  30.                             class: 'js-lazy-img img-fluid',
  31.                             title: description|default(''),
  32.                             alt: description|default(''),
  33.                         },
  34.                         lowQualityPlaceholder: false
  35.                     })|raw }}
  36.                     {% if not pimcore_link('logo-link').href is empty %}
  37.                         </a>
  38.                     {% endif %}
  39.                 {% endif %}
  40.             </li>
  41.         {% endfor %}
  42.     </ul>
  43. </section>