<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<f:layout name="Default"/>

<f:section name="main">

    <div class="contacts contacts-{settings.displayMode}">
        <f:render section="displayMode_{settings.displayMode}" arguments="{_all}" />
    </div>
</f:section>

<f:section name="displayMode_list">
    <!--TYPO3SEARCH_end-->
    <f:if condition="{settings.hidePagination}">
        <f:then>
            <f:for each="{addresses}" as="address" iteration="iterator">
                <f:render partial="ListItem" arguments="{_all}"/>
            </f:for>
        </f:then>
        <f:else>
            <f:widget.paginate objects="{addresses}" as="paginatedAdresses" configuration="{settings.paginate}">
                <f:for each="{paginatedAdresses}" as="address" iteration="iterator">
                    <f:render partial="ListItem" arguments="{_all}"/>
                </f:for>
            </f:widget.paginate>
        </f:else>
    </f:if>
    <!--TYPO3SEARCH_begin-->
</f:section>

<f:section name="displayMode_single">
    <f:for each="{addresses}" as="address">
        <f:render partial="Full" arguments="{_all}"/>
    </f:for>
</f:section>


<f:section name="displayMode_map">
    <f:for each="{addresses}" as="address">
        <f:render partial="Maps" section="{settings.map.rendering}" arguments="{_all}"/>
    </f:for>
</f:section>
