{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace components=Newland\NeosCommon\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>

<components:pagination
    currentPage="{pagination.page}"
    totalPageCount="{pagination.count.pages}"
/>
