From 33a3ed6ba5cf9b6c491a0955fcff5120cf661405 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Thu, 9 Dec 2021 22:09:02 +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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/lib/CPagination.class.php b/inc/lib/CPagination.class.php index 8b58f44..6e77f82 100644 --- a/inc/lib/CPagination.class.php +++ b/inc/lib/CPagination.class.php @@ -78,13 +78,18 @@ class CPagination { if (self::$page != self::$total_pages) { $nextpage = '
  • Next
  • '; } - + if(self::$page - 3 > 0) { + $page3left = '
  • '.(self::$page - 3).'
  • '; + } if(self::$page - 2 > 0) { $page2left = '
  • '.(self::$page - 2).'
  • '; } if(self::$page - 1 > 0) { $page1left = '
  • '.(self::$page - 1).'
  • '; } + if(self::$page + 3 <= self::$total_pages) { + $page3right = '
  • '.(self::$page + 3).'
  • '; + } if(self::$page + 2 <= self::$total_pages) { $page2right = '
  • '.(self::$page + 2).'
  • '; } @@ -92,7 +97,8 @@ class CPagination { $page1right = '
  • '.(self::$page + 1).'
  • '; } - echo ''; + + echo ''; return; } } \ No newline at end of file