62916fa6fb5763d0ab7d393472e7b46e7503430e
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Resources / Private / Templates / ViewHelpers / Widget / Paginate / Index.html
1 <f:if condition="{configuration.insertAbove}">
2 <f:render section="paginator" arguments="{pagination: pagination, configuration: configuration}" />
3 </f:if>
4
5 <f:renderChildren arguments="{contentArguments}" />
6
7 <f:if condition="{configuration.insertBelow}">
8 <f:render section="paginator" arguments="{pagination: pagination, configuration: configuration}" />
9 </f:if>
10
11 <f:section name="paginator">
12 <ul class="f3-widget-paginator">
13 <f:if condition="{pagination.previousPage}">
14 <li class="previous">
15 <f:if condition="{pagination.previousPage} > 1">
16 <f:then>
17 <f:widget.link rel="prev" arguments="{currentPage: pagination.previousPage}" addQueryStringMethod="{configuration.addQueryStringMethod}" section="{configuration.section}" ><f:translate key="widget.pagination.previous" /></f:widget.link>
18 </f:then>
19 <f:else>
20 <f:widget.link rel="prev" addQueryStringMethod="{configuration.addQueryStringMethod}" section="{configuration.section}"><f:translate key="widget.pagination.previous" /></f:widget.link>
21 </f:else>
22 </f:if>
23 </li>
24 </f:if>
25 <f:if condition="{pagination.displayRangeStart} > 1">
26 <li class="first">
27 <f:widget.link addQueryStringMethod="{configuration.addQueryStringMethod}" section="{configuration.section}">1</f:widget.link>
28 </li>
29 </f:if>
30 <f:if condition="{pagination.hasLessPages}">
31 <li>...</li>
32 </f:if>
33 <f:for each="{pagination.pages}" as="page">
34 <f:if condition="{page.isCurrent}">
35 <f:then>
36 <li class="current">
37 {page.number}
38 </li>
39 </f:then>
40 <f:else>
41 <li>
42 <f:if condition="{page.number} > 1">
43 <f:then>
44 <f:widget.link arguments="{currentPage: page.number}" addQueryStringMethod="{configuration.addQueryStringMethod}" section="{configuration.section}">{page.number}</f:widget.link>
45 </f:then>
46 <f:else>
47 <f:widget.link addQueryStringMethod="{configuration.addQueryStringMethod}" section="{configuration.section}">{page.number}</f:widget.link>
48 </f:else>
49 </f:if>
50 </li>
51 </f:else>
52 </f:if>
53 </f:for>
54 <f:if condition="{pagination.hasMorePages}">
55 <li>...</li>
56 </f:if>
57 <f:if condition="{pagination.displayRangeEnd} < {pagination.numberOfPages}">
58 <li class="last">
59 <f:widget.link arguments="{currentPage: pagination.numberOfPages}" addQueryStringMethod="{configuration.addQueryStringMethod}" section="{configuration.section}">{pagination.numberOfPages}</f:widget.link>
60 </li>
61 </f:if>
62 <f:if condition="{pagination.nextPage}">
63 <li class="next">
64 <f:widget.link rel="next" arguments="{currentPage: pagination.nextPage}" addQueryStringMethod="{configuration.addQueryStringMethod}" section="{configuration.section}"><f:translate key="widget.pagination.next" /></f:widget.link>
65 </li>
66 </f:if>
67 </ul>
68 </f:section>