{%- if editmode -%} {{ pimcore_relations('galleryImages', { title: 'Drag and drop the images you want', types: ['asset'], subtypes: ['image'] }) }} {%- else -%} {%- set images = pimcore_relations('galleryImages') -%} {%- if not images.empty -%}
{%- for image in images -%}
{{ image.thumbnail('brick-' ~ brick.id ~ '-main').html({ 'disableAutoAlt': true, 'alt': get_image_i18n_alt(image, ''), 'pictureAttributes': { 'class': 'w-100 h-100 d-block user-select-none pointer-events-none' }, 'imgAttributes': { 'class': 'w-100 h-100 object-fit-cover', 'width': '100%', 'height': '100%', 'loading': 'eager' } }) | raw }}
{%- endfor -%}
{%- for image in images -%}
{{ image.thumbnail('brick-' ~ brick.id ~ '-thumb').html({ 'disableAutoAlt': true, 'alt': get_image_i18n_alt(image, ''), 'pictureAttributes': { 'class': 'w-100 h-100 d-block user-select-none pointer-events-none' }, 'imgAttributes': { 'class': 'w-100 h-100 object-fit-cover', 'width': '100%', 'height': '100%', 'loading': 'eager' } }) | raw }}
{%- endfor -%}
{%- do pimcore_head_script().appendFile(asset('js/areas/' ~ brick.id ~ '.js'), 'text/javascript') -%} {%- endif -%} {%- endif -%}