From f67c4d29bdd4796482f6bb0835abf6dfbc2e6d80 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 4 Aug 2018 18:17:12 +0530 Subject: [PATCH] add bootstrap pagination code with gap+numbers xD created bootstrap pagination --- bl-kernel/helpers/paginator.class.php | 54 +++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/bl-kernel/helpers/paginator.class.php b/bl-kernel/helpers/paginator.class.php index 3591afc5..f24c28fe 100644 --- a/bl-kernel/helpers/paginator.class.php +++ b/bl-kernel/helpers/paginator.class.php @@ -140,5 +140,59 @@ class Paginator { return $html; } + + /* + * Bootstrap Pagination + */ + public static function bootstrap_html($textPrevPage=false, $textNextPage=false, $showPageNumber=false){ + + global $Language; + + $total_pages = self::amountOfPages(); + $howMany = 2; + $currentPage = self::currentPage(); + $first_page = self::firstPage(); + $last_page = self::lastPageUrl(); + $show_next = (self::showNext()) ? "" : "disabled"; + $show_previois = (self::showPrev()) ? "" : "disabled"; + + $html = ''; + + return $html; + + } }