diff --git a/includes/functions.php b/includes/functions.php index 936c2a3..ddc5ee7 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -204,29 +204,48 @@ function paginate($totalItems, $currentPage, $perPage = ITEMS_PER_PAGE) { */ function renderPagination($pagination, $baseUrl) { if ($pagination['total_pages'] <= 1) return ''; - - $html = ''; + + // Next + $html .= $btn($url($cur + 1), 'Next →', false, !$pagination['has_next']); + + $html .= ''; return $html; } diff --git a/shop.php b/shop.php index 2afee2c..326ab87 100644 --- a/shop.php +++ b/shop.php @@ -144,7 +144,7 @@ $productTypesList = db()->fetchAll("SELECT type_id, name, slug FROM product_type - @@ -154,14 +154,7 @@ $productTypesList = db()->fetchAll("SELECT type_id, name, slug FROM product_type 1): ?> -
- - - - - -
+ $category, 'sort' => $sort]))) ?>