From 2401727a203c8b9ff77d6825bff5ac087a34c20c Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 12 Jul 2025 13:21:32 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Ajout=20d'une=20pagination=20avec?= =?UTF-8?q?=20nombres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #8 --- bl-kernel/helpers/paginator.class.php | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/bl-kernel/helpers/paginator.class.php b/bl-kernel/helpers/paginator.class.php index 18f901bb..7a533f6e 100644 --- a/bl-kernel/helpers/paginator.class.php +++ b/bl-kernel/helpers/paginator.class.php @@ -141,6 +141,55 @@ class Paginator { return $html; } + public static function numberedPageHTML() { + global $L; + $maxDistance = 2; + + if (self::get('numberOfPages') <= 1) { + return ""; + } + + $html = '
'; + $html .= ''; + $html .= '
'; + + return $html; + } + /* * Bootstrap Pagination */