{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace common=Newland\Toubiz\Common\Neos\ViewHelpers}

<f:if condition="{article.mediaSorted -> f:count()} < 3 && !{insertGalleryAfterLinks}">
    <common:slot.render slot="aboveDetailGallery" context="{ article: article }" />
    <components:gallery
        wrapperClass="mb-10"
        images="{article.imagesSorted}"
        videos="{article.videosSorted}"
        flight3dUri="{article.flatAttributes.flight3d}"
        panoramaUri="{article.flatAttributes.panorama}"
    />
    <common:slot.render slot="belowDetailGallery" context="{ article: article }" />
</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>

    <f:if condition="{article.flatAttributes}">
        <div class="mb-8">
            <vh:render partial="PointOfInterests/Show/Attributes/Attraction" arguments="{_all}" />
        </div>
    </f:if>
</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>
</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>
</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>

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

<f:if condition="!{article.isCity}">
    <vh:render partial="PointOfInterests/Show/Content/Map" arguments="{_all}" />
</f:if>
