This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
PaginationHTML.php
117 lines (101 loc) · 2.19 KB
/
PaginationHTML.php
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
32
33
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php namespace Landish\Pagination;
class PaginationHTML {
/**
* Pagination wrapper HTML.
*
* @var string
*/
protected $paginationWrapper = '<ul class="pagination">%s %s %s</ul>';
/**
* Available page wrapper HTML.
*
* @var string
*/
protected $availablePageWrapper = '<li><a href="%s">%s</a></li>';
/**
* Get active page wrapper HTML.
*
* @var string
*/
protected $activePageWrapper = '<li class="active"><span>%s</span></li>';
/**
* Get disabled page wrapper HTML.
*
* @var string
*/
protected $disabledPageWrapper = '<li class="disabled"><span>%s</span></li>';
/**
* Previous button text.
*
* @var string
*/
protected $previousButtonText = '«';
/**
* Next button text.
*
* @var string
*/
protected $nextButtonText = '»';
/***
* "Dots" text.
*
* @var string
*/
protected $dotsText = '...';
/**
* Get pagination wrapper HTML.
*
* @return string
*/
protected function getPaginationWrapperHTML() {
return $this->paginationWrapper;
}
/**
* Get available page wrapper HTML.
*
* @return string
*/
protected function getAvailablePageWrapperHTML() {
return $this->availablePageWrapper;
}
/**
* Get active page wrapper HTML.
*
* @return string
*/
protected function getActivePageWrapperHTML() {
return $this->activePageWrapper;
}
/**
* Get disabled page wrapper HTML.
*
* @return string
*/
protected function getDisabledPageWrapperHTML() {
return $this->disabledPageWrapper;
}
/**
* Get previous button text.
*
* @return string
*/
protected function getPreviousButtonText() {
return $this->previousButtonText;
}
/**
* Get next button text.
*
* @return string
*/
protected function getNextButtonText() {
return $this->nextButtonText;
}
/***
* Get "dots" text.
*
* @return string
*/
protected function getDotsText() {
return $this->dotsText;
}
}