diff --git a/contao/templates/content_element/gallery.html.twig b/contao/templates/content_element/gallery.html.twig index 17af935..1aa7bef 100644 --- a/contao/templates/content_element/gallery.html.twig +++ b/contao/templates/content_element/gallery.html.twig @@ -51,56 +51,3 @@ {{ parent() }} {% endif %} {% endblock %} -{% extends "@Contao/content_element/gallery.html.twig" %} - -{% set imageHeight = '0' %} - -{% block figure_component %} - {% if data.use_flex_gallery_image %} - {% if figure.image.img.width %} - {% if figure.image.img.height %} - {% set figure_attributes = attrs() - .set('data-w', figure.image.img.width) - .set('data-h', figure.image.img.height) - %} - {% set figure_attributes = attrs(figure_attributes|default).addClass('item') %} - {% endif %} - {% endif %} - {{ parent() }} - {% set imageHeight = figure.image.img.height %} - {{ app.session.set('imageHeight', imageHeight) }} - {% else %} - {{ parent() }} - {% endif %} -{% endblock %} - -{% block content %} - {% if data.use_flex_gallery_image %} -