{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<f:if condition="{article.mediaSorted -> f:count()} < 3 && !{insertGalleryAfterLinks}">
    <components:gallery
        wrapperClass="mb-10"
        images="{article.mediaSorted}"
        videoUri="{article.flatAttributes.video}"
        flight3dUri="{article.flatAttributes.flight3d}"
        panoramaUri="{article.flatAttributes.panorama}"
    />
</f:if>

<f:if condition="{article.isAttraction}">
    <vh:render partial="PointOfInterests/Show/Attributes/Thermal" arguments="{_all}" />

    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Content" arguments="{_all}" />
    </div>
    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Attributes/Attraction" arguments="{_all}" />
    </div>
    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Content/Map" arguments="{_all}" />
    </div>
</f:if>

<f:if condition="{article.isGastronomy}">
    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Attributes/Gastronomy" arguments="{_all}" />
    </div>
    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Content" arguments="{_all}" />
    </div>
    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Content/Map" arguments="{_all}" />
    </div>
</f:if>

<f:if condition="{article.isDirectMarketer}">
    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Content" arguments="{_all}" />
    </div>
    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Attributes/DirectMarketer" arguments="{_all}" />
    </div>
    <div class="mb-8">
        <vh:render partial="PointOfInterests/Show/Content/Map" arguments="{_all}" />
    </div>
</f:if>

<f:if condition="{article.isTour}">
    <vh:render partial="PointOfInterests/Show/Attributes/Tour" arguments="{_all}" />
</f:if>

<f:if condition="{article.isCity}">
    <f:if condition="{vh:collection.includesValue(collection: configuration.displayOptions.show.hide, value: 'spaTownAttributes')} == false">
        <vh:render partial="PointOfInterests/Show/Attributes/SpaTown" arguments="{_all}" />
    </f:if>

    <vh:render partial="PointOfInterests/Show/Content" arguments="{_all}" />
</f:if>
