From a2eae57a115320c86c16bffcde2663750014abb2 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Thu, 9 Dec 2021 22:11:04 +0300 Subject: [PATCH] =?UTF-8?q?[*]=20=D1=80=D0=B0=D1=81=D1=88=D0=B8=D1=80?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B4=D0=B8=D0=B0=D0=BF=D0=B0=D0=B7=D0=BE=D0=BD?= =?UTF-8?q?=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0=20=D0=BF=D0=B0=D0=B3?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/lib/CPagination.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/lib/CPagination.class.php b/inc/lib/CPagination.class.php index 6e77f82..2c5b6b1 100644 --- a/inc/lib/CPagination.class.php +++ b/inc/lib/CPagination.class.php @@ -78,6 +78,9 @@ class CPagination { if (self::$page != self::$total_pages) { $nextpage = '
  • Next
  • '; } + if(self::$page - 4 > 0) { + $page4left = '
  • '.(self::$page - 4).'
  • '; + } if(self::$page - 3 > 0) { $page3left = '
  • '.(self::$page - 3).'
  • '; } @@ -87,6 +90,9 @@ class CPagination { if(self::$page - 1 > 0) { $page1left = '
  • '.(self::$page - 1).'
  • '; } + if(self::$page + 4 <= self::$total_pages) { + $page4right = '
  • '.(self::$page + 4).'
  • '; + } if(self::$page + 3 <= self::$total_pages) { $page3right = '
  • '.(self::$page + 3).'
  • '; } @@ -98,7 +104,7 @@ class CPagination { } - echo ''; + echo ''; return; } } \ No newline at end of file