templates/areas/content-logo/view.html.twig line 1

Open in your IDE?
  1. <section class="logo-area container mt-5 mb-5 {{ not pimcore_input('anchorTitle').isEmpty() ? 'js-anchor-nav__item' }}"
  2.     {% if not pimcore_input('anchorTitle').isEmpty() %} data-anchor-nav-title="{{ pimcore_input('anchorTitle').getData() }}" {% endif %}
  3. >
  4.     {{ include('includes/editmode-settings.html.twig') }}
  5.     {% if editmode or not pimcore_input('titleBoldtitle-block').isEmpty() or not pimcore_input('subtitletitle-block').isEmpty() or not pimcore_input('titletitle-block').isEmpty() or not pimcore_wysiwyg('introtitle-block').isEmpty() %}
  6.         <div class="row">
  7.             <div class="col-md-8">
  8.                 {{ include('includes/title-blocks/title-block.html.twig', {
  9.                     titleStyle: 'h1',
  10.                 }) }}
  11.             </div>
  12.         </div>
  13.     {% endif %}
  14.     <div class="logo-area__row">
  15.         {% set block = pimcore_block('logos', {limit: 10, default: 1, manual: true}).start() %}
  16.         {% if editmode %}
  17.             <div class="row d-flex {{ not editmode ? 'justify-content-center' }}">
  18.         {% endif %}
  19.         {% for i in pimcore_iterate_block(block) %}
  20.             {% do block.blockConstruct() %}
  21.                 <div class="logo-area__item {{ editmode ? 'col-md-3' }}">
  22.                     {% do block.blockStart() %}
  23.                     {% if editmode %}
  24.                         {{ pimcore_link('link') }}
  25.                     {% endif %}
  26.                     {% if not pimcore_link('link').isEmpty() %}
  27.                         <a href="{{ pimcore_link('link').href }}" target="{{ pimcore_link('link').target }}">
  28.                     {% endif %}
  29.                             {{ pimcore_image('image', {
  30.                                 thumbnail: 'logo-area-img',
  31.                                 imgAttributes:{
  32.                                     class: 'js-lazy-img logo-area__img',
  33.                                 },
  34.                                 lowQualityPlaceholder: true,
  35.                             })|raw }}
  36.                     {% if not pimcore_link('link').isEmpty() %}
  37.                         </a>
  38.                     {% endif %}
  39.                     {% do block.blockEnd() %}
  40.                 </div>
  41.             {% do block.blockDestruct() %}
  42.         {% endfor %}
  43.         {% if editmode %}
  44.             </div>
  45.         {% endif %}
  46.         {% do block.end() %}
  47.     </div>
  48. </section>