{namespace vh=Newland\NeosViewHelpers\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="{article: article}" />
    </f:case>

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

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

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

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

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

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