{# gallery \Notimeo\GalleriesBundle\Entity\Gallery #} {# images \Notimeo\GalleriesBundle\Entity\GalleryImage[] #} {% import 'macros.twig' as macros %} {% if gallery|default(false) and gallery.images is iterable %} {% for image in images %}
{% spaceless %} {% set imgPath = vich_uploader_asset(image, 'imageFile')|default(macros.img_placeholder_path()) %} {{- macros.image(imgPath, 'galleries_wysiwyg', 'img-responsive galleries_wysiwyg', image.locale.alt) -}} {% endspaceless %}
{% endfor %} {% endif %}