{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<f:if condition="{article.isTour} && {article.hasGeocoordinates}">
    <div class="tb-tourist-information mb-10">
        <div class="tb-tourist-information__map">
            <vh:render
                partial="PointOfInterests/Show/Content/Map"
                arguments="{ article: article, outdooractiveCredentials: outdooractiveCredentials }"
            />
        </div>
        <f:if condition="{article.flatAttributes.elevationProfile}">
            <div class="tb-tourist-information__aside tb-tourist-information__aside--elevation-profile">
                <h2 class="mt-0 mb-2 text-xl">
                    {vh:translate(id: 'elevationProfile.title', package: 'Newland.Toubiz.Poi.Neos', source: 'Views/Show')}
                </h2>
                <img
                    data-src="{article.flatAttributes.elevationProfile}"
                    alt="{article.name}"
                    class="tb-tourist-information__image lazyload"
                    itemprop="image url" />
            </div>
        </f:if>
    </div>

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

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

    <div class="tb-tourist-information mt-10">
        <div class="tb-tourist-information__map">
            <f:if condition="{settings.cityDetails.map.enabled} && {article.hasGeocoordinates}">
                <poi:staticMap
                        latitude="{article.latitude}"
                        longitude="{article.longitude}"
                />
            </f:if>
        </div>

        <div class="tb-tourist-information__aside tb-tourist-information__aside--contact">
            <vh:render partial="PointOfInterests/Show/Content/Address" arguments="{article: article, sectionHeadline: '{vh:translate(id: \'contact.header\', package: \'Newland.Toubiz.Poi.Neos\', source: \'Views/Cities\')}'}" />
            <vh:render partial="PointOfInterests/Show/Content/SocialIcons" arguments="{_all}" />
            <vh:render partial="PointOfInterests/Show/Content/RoutePlanner" arguments="{_all}" />
        </div>
    </div>
</f:if>
