<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
      xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
      data-namespace-typo3-fluid="true">
<f:layout name="General"/>

<f:section name="content">
    <!--TYPO3SEARCH_end-->
    <f:if condition="{news}">
        <f:then>
            <f:if condition="{settings.hidePagination}">
                <f:then>
                    <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4 news-list-view" id="news-container-{contentObjectData.uid}">
                        <f:for each="{news}" as="newsItem" iteration="iterator">
                            <f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}"/>
                        </f:for>
                    </div>
                </f:then>
                <f:else>
                    <f:if condition="{settings.list.paginate.insertAbove}">
                        <f:render partial="List/Pagination" arguments="{pagination: pagination.pagination, paginator: pagination.paginator}"/>
                    </f:if>
                    <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4 news-list-view" id="news-container-{contentObjectData.uid}">
                        <f:for each="{pagination.paginator.paginatedItems}" as="newsItem" iteration="iterator">
                            <f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}"/>
                        </f:for>
                    </div>
                    <f:if condition="{settings.list.paginate.insertBelow}">
                        <div class="d-flex col-12 mt-5 justify-content-center">
                        <f:render partial="List/Pagination" arguments="{pagination: pagination.pagination, paginator: pagination.paginator}"/>
                        </div>
                    </f:if>
                </f:else>
            </f:if>
        </f:then>
        <f:else>
            <div class="no-news-found">
                <f:translate key="list_nonewsfound"/>
            </div>
        </f:else>
    </f:if>
    <!--TYPO3SEARCH_begin-->
</f:section>
</html>
