Index.html 4.29 KB
Newer Older
Dainis Abols's avatar
Dainis Abols committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
	  xmlns:lu="http://typo3.org/ns/Lu/LuStudyCatalogue/ViewHelpers"
	  data-namespace-typo3-fluid="true">

<f:if condition="{configuration.insertAbove}">
	<f:render section="paginator" arguments="{pagination: pagination,configuration:configuration}" />
</f:if>

<f:if condition="{configuration.insertBelow}">
	<f:render section="paginator" arguments="{pagination: pagination,configuration:configuration}" />
</f:if>

<f:section name="paginator">

	<f:if condition="{pagination.numberOfPages} > 1">
		<f:if condition="{settings.list.paginate.prevNextHeaderTags}">
			<f:if condition="{pagination.previousPage}">
				<f:if condition="{pagination.previousPage} > 1">
					<f:then>
						<lu:headerData><link class="pagination__page" rel="prev" href="{f:widget.uri(arguments: {currentPage: pagination.previousPage}) -> f:format.htmlentities()}" /></lu:headerData>
					</f:then>
					<f:else>
						<lu:headerData><link class="pagination__page" rel="prev" href="{f:widget.uri() -> f:format.htmlentities()}" /></lu:headerData>
					</f:else>
				</f:if>
			</f:if>
			<f:if condition="{pagination.nextPage}">
				<lu:headerData><link class="pagination__page" rel="next" href="{f:widget.uri(arguments: {currentPage: pagination.nextPage}) -> f:format.htmlentities()}" /></lu:headerData>
			</f:if>
		</f:if>

Dainis Abols's avatar
Dainis Abols committed
32
33
		<section class="pageLayout__section">
            <nav aria-label="Page navigation" class="pagination pagination-left pagination-mobileCenter">
Dainis Abols's avatar
Dainis Abols committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
				<f:if condition="{pagination.previousPage}">
                    <f:if condition="{pagination.previousPage} > 1">
                        <f:then>
                            <f:widget.link class="pagination__button pagination__button-left" addQueryStringMethod="GET" arguments="{currentPage: pagination.previousPage}">
                                <i class="icon-lu-bulta-20"></i><f:translate key="paginate_previous" />
                            </f:widget.link>

                        </f:then>
                        <f:else>
                            <f:widget.link class="pagination__button pagination__button-left" addQueryStringMethod="GET">
                                <i class="icon-lu-bulta-20"></i><f:translate key="paginate_previous" />
                            </f:widget.link>
                        </f:else>
                    </f:if>
				</f:if>
				<f:if condition="{pagination.displayRangeStart} > 1">
                    <f:widget.link class="pagination__page" addQueryStringMethod="GET">1</f:widget.link>
				</f:if>
				<f:if condition="{pagination.hasLessPages}">
                    <span class="pagination__separator">...</span>
				</f:if>
				<f:for each="{pagination.pages}" as="page">
					<f:if condition="{page.isCurrent}">
                        <f:then>
                            <f:widget.link class="pagination__page pagination__page-active" addQueryStringMethod="GET">{page.number}</f:widget.link>
						</f:then>
						<f:else>
                            <f:if condition="{page.number} > 1">
                                <f:then>
                                    <f:widget.link class="pagination__page" addQueryStringMethod="GET" arguments="{currentPage: page.number}">{page.number}</f:widget.link>
                                </f:then>
                                <f:else>
                                    <f:widget.link class="pagination__page" addQueryStringMethod="GET">{page.number}</f:widget.link>
                                </f:else>
                            </f:if>
						</f:else>
					</f:if>
				</f:for>
				<f:if condition="{pagination.hasMorePages}">
                    <span class="pagination__separator">...</span>
				</f:if>
				<f:if condition="{pagination.displayRangeEnd} < {pagination.numberOfPages}">
                    <f:widget.link class="pagination__page" addQueryStringMethod="GET" arguments="{currentPage: pagination.numberOfPages}">{pagination.numberOfPages}</f:widget.link>
				</f:if>
				<f:if condition="{pagination.nextPage}">
                    <f:widget.link class="pagination__button" addQueryStringMethod="GET" arguments="{currentPage: pagination.nextPage}">
                        <f:translate key="paginate_next" /><i class="icon-lu-bulta-20"></i>
                    </f:widget.link>
				</f:if>
			</nav>
Dainis Abols's avatar
Dainis Abols committed
84
		</section>
Dainis Abols's avatar
Dainis Abols committed
85
86
87
88
89
	</f:if>

</f:section>

</html>