{% if estates.multimedia %} {% if estates.multimedia.main_image %}
{% set tourlinks = 0 %} {% for key, media in estates.multimedia %} {% if key == "360_links" and media|length > 0 %} {% set tourlinks = 1 %} {% endif %} {% endfor %} {% if estates.multimedia.pictures|length + estates.multimedia.videos|length + tourlinks + estates.multimedia.link_property_video|length + 1 > 1 %} {{ estates.multimedia.pictures|length + estates.multimedia.videos|length + tourlinks + estates.multimedia.link_property_video|length + 1}} Fotos und Anhänge ansehen {% else %} 1 Fotos und Anhänge ansehen {% endif %}
{% endif %} {% else %} {% if estates.mainImage %}
{% if estates.mainImage.mainImage.0.value %} {% else %} {% endif %}
{% if estates.mainImage.mainImage %} {% set mainImage = 1 %} {% endif %} {% if estates.mainImage.onlineImage %} {% set pictures = (estates.mainImage.onlineImage) %} {% endif %} {% if estates.linkTour %} {% set linkTour = estates.linkTour %} {% endif %} {% if estates.description.linkpropertyvideo %} {% set linkpropertyvideo = estates.description.linkpropertyvideo %} {% endif %} {% if pictures|length + linkTour|length + linkpropertyvideo|length > 1 %} {{ pictures|length + mainImage + linkTour|length + linkpropertyvideo|length }} Fotos und Anhänge ansehen {% else %} 1 Fotos und Anhänge ansehen {% endif %}
{% endif %} {% endif %} {% for key, media in estates.multimedia %} {% if key == "360_links" and media|length > 0 %} {% for field in media %}
> 360° Rundgang starten
{% endfor %} {% endif %} {% endfor %}