forked from ZwiiCMS-Team/ZwiiCMS
$suffix
This commit is contained in:
parent
de84e3471b
commit
1dba8f3eb8
@ -574,7 +574,7 @@ class helper
|
|||||||
* @param null|int $sufix Suffixe de l'url
|
* @param null|int $sufix Suffixe de l'url
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function pagination($array, $url, $item, $sufix = null)
|
public static function pagination($array, $url, $item, $suffix = null)
|
||||||
{
|
{
|
||||||
// Scinde l'url
|
// Scinde l'url
|
||||||
$url = explode('/', $url);
|
$url = explode('/', $url);
|
||||||
@ -598,7 +598,7 @@ class helper
|
|||||||
if ($nbPage > 1) {
|
if ($nbPage > 1) {
|
||||||
for ($i = 1; $i <= $nbPage; $i++) {
|
for ($i = 1; $i <= $nbPage; $i++) {
|
||||||
$disabled = ($i === $currentPage) ? ' class="disabled"' : false;
|
$disabled = ($i === $currentPage) ? ' class="disabled"' : false;
|
||||||
$pages .= '<a href="' . helper::baseUrl() . $urlCurrent . '/' . $i . $sufix . '"' . $disabled . '>' . $i . '</a>';
|
$pages .= '<a href="' . helper::baseUrl() . $urlCurrent . '/' . $i . $suffix . '"' . $disabled . '>' . $i . '</a>';
|
||||||
}
|
}
|
||||||
$pages = '<div class="pagination">' . $pages . '</div>';
|
$pages = '<div class="pagination">' . $pages . '</div>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user