2021-04-17 00:26:33 +02:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
|
|
|
|
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
|
2021-04-17 21:20:54 +02:00
|
|
|
xmlns:s="http://typo3.org/ns/WapplerSystems/Meilisearch/ViewHelpers/"
|
2021-04-17 00:26:33 +02:00
|
|
|
data-namespace-typo3-fluid="true">
|
|
|
|
<f:if condition="{configuration.insertAbove}">
|
|
|
|
<f:render section="paginator" arguments="{pagination: contentArguments.pagination, configuration:configuration, resultSet:resultSet, groupItem:groupItem}" />
|
|
|
|
</f:if>
|
|
|
|
|
|
|
|
<f:renderChildren arguments="{contentArguments}" />
|
|
|
|
|
|
|
|
<f:if condition="{configuration.insertBelow}">
|
|
|
|
<f:render section="paginator" arguments="{pagination: contentArguments.pagination, configuration:configuration, resultSet:resultSet, groupItem:groupItem}" />
|
|
|
|
</f:if>
|
|
|
|
|
|
|
|
<f:section name="paginator">
|
|
|
|
<f:if condition="{pagination.numberOfPages} > 1">
|
2021-04-17 21:20:54 +02:00
|
|
|
<div id="meilisearch-pagination">
|
2021-04-17 00:26:33 +02:00
|
|
|
<ul class="pagination">
|
|
|
|
<f:if condition="{pagination.previousPage}">
|
|
|
|
<li class="previous">
|
|
|
|
<f:if condition="{pagination.previousPage} > 1">
|
|
|
|
<f:then>
|
2021-04-17 21:20:54 +02:00
|
|
|
<a href="{s:uri.paginate.groupItemPage(page: pagination.previousPage, groupItem: groupItem)}" class="meilisearch-ajaxified">
|
2021-04-17 00:26:33 +02:00
|
|
|
<f:if condition="{s:translate(key: 'paginate_previous')}">
|
|
|
|
<f:then><s:translate key="paginate_previous" /></f:then>
|
|
|
|
<f:else>«</f:else>
|
|
|
|
</f:if>
|
|
|
|
</a>
|
|
|
|
</f:then>
|
|
|
|
<f:else>
|
2021-04-17 21:20:54 +02:00
|
|
|
<a href="{s:uri.paginate.groupItemPage(groupItem: groupItem)}" class="meilisearch-ajaxified">
|
2021-04-17 00:26:33 +02:00
|
|
|
<f:if condition="{s:translate(key: 'paginate_previous')}">
|
|
|
|
<f:then><s:translate key="paginate_previous" /></f:then>
|
|
|
|
<f:else>«</f:else>
|
|
|
|
</f:if>
|
|
|
|
</a>
|
|
|
|
</f:else>
|
|
|
|
</f:if>
|
|
|
|
</li>
|
|
|
|
</f:if>
|
|
|
|
<f:if condition="{pagination.hasLessPages}">
|
|
|
|
<li><a>....</a></li>
|
|
|
|
</f:if>
|
|
|
|
<f:for each="{pagination.pages}" as="page">
|
|
|
|
<f:if condition="{page.isCurrent}">
|
|
|
|
<f:then>
|
|
|
|
<li class="active">
|
2021-04-17 21:20:54 +02:00
|
|
|
<a href="{s:uri.paginate.groupItemPage(groupItem: groupItem)}" class="meilisearch-ajaxified">{page.number}</a>
|
2021-04-17 00:26:33 +02:00
|
|
|
</li>
|
|
|
|
</f:then>
|
|
|
|
<f:else>
|
|
|
|
<li>
|
|
|
|
<f:if condition="{page.number} > 1">
|
|
|
|
<f:then>
|
2021-04-17 21:20:54 +02:00
|
|
|
<a href="{s:uri.paginate.groupItemPage(page: page.number, groupItem: groupItem)}" class="meilisearch-ajaxified">{page.number}</a>
|
2021-04-17 00:26:33 +02:00
|
|
|
</f:then>
|
|
|
|
<f:else>
|
2021-04-17 21:20:54 +02:00
|
|
|
<a href="{s:uri.paginate.groupItemPage(groupItem: groupItem)}" class="meilisearch-ajaxified">{page.number}</a>
|
2021-04-17 00:26:33 +02:00
|
|
|
</f:else>
|
|
|
|
</f:if>
|
|
|
|
</li>
|
|
|
|
</f:else>
|
|
|
|
</f:if>
|
|
|
|
</f:for>
|
|
|
|
<f:if condition="{pagination.hasMorePages}">
|
|
|
|
<li><a>....</a></li>
|
|
|
|
</f:if>
|
|
|
|
<f:if condition="{pagination.nextPage}">
|
|
|
|
<li class="last next">
|
2021-04-17 21:20:54 +02:00
|
|
|
<a href="{s:uri.paginate.groupItemPage(page: pagination.nextPage, groupItem: groupItem)}" class="meilisearch-ajaxified">
|
2021-04-17 00:26:33 +02:00
|
|
|
<f:if condition="{s:translate(key: 'paginate_next')}">
|
|
|
|
<f:then><s:translate key="paginate_next" /></f:then>
|
|
|
|
<f:else>»</f:else>
|
|
|
|
</f:if>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</f:if>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</f:if>
|
|
|
|
</f:section>
|