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

<f:comment>
    <!--
        This partial is responsible for rendering teaser content for an article.
        Wrapping content around the contents come from the templates.
    -->
</f:comment>

<f:switch expression="{article.mainType}">
    <f:case value="0">
        <vh:render partial="PointOfInterests/Teaser/Attraction" arguments="{_all}" />
    </f:case>

    <f:case value="1">
        <vh:render partial="PointOfInterests/Teaser/Gastronomy" arguments="{_all}" />
    </f:case>

    <f:case value="2">
        <vh:render partial="PointOfInterests/Teaser/Tour" arguments="{_all}" />
    </f:case>

    <f:case value="3">
        <vh:render partial="PointOfInterests/Teaser/Lodging" arguments="{_all}" />
    </f:case>

    <f:case value="4">
        <vh:render partial="PointOfInterests/Teaser/DirectMarketer" arguments="{_all}" />
    </f:case>

    <f:case value="5">
        <vh:render partial="PointOfInterests/Teaser/CongressLocation" arguments="{_all}" />
    </f:case>

    <f:case value="6">
        <vh:render partial="PointOfInterests/Teaser/City" arguments="{_all}" />
    </f:case>
</f:switch>
