{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<f:if condition="{layout} == 'list'">
    <f:then>
        <ul class="tb-results-list__list">
            <f:for each="{articles}" as="article">
                <vh:render partial="PointOfInterests/List/Article" arguments="{_all}" />
            </f:for>
        </ul>
    </f:then>
    <f:else>
        <div class="tb-teaser-list o-grid o-grid--fourths">
            <f:for each="{articles}" as="article">
                <figure class="o-grid__item">
                    <vh:render partial="PointOfInterests/Teaser" arguments="{article: article, node: node}"/>
                </figure>
            </f:for>
        </div>
    </f:else>
</f:if>

<vh:render partial="Pagination" arguments="{_all}"/>
