Commit 57a01574 authored by Corentin Bettiol's avatar Corentin Bettiol 💻

add pagination below blog posts

parent 636b37f0
......@@ -123,13 +123,18 @@ function writeBlogPage($pageName)
// normalement via le rewriterule on envoie forcément un int, mais un cast ça coûte pas grand chose donc bon
$page = (int)$_GET['page'];
// liste des pages
// liste des pages au dessus des articles
$paging = $blog->pagingList($page);
require('site/view/public/blogPagingView.php');
// liste des articles de la page
$blogposts = $blog->getPage($page);
require('site/view/public/blogView.php');
// liste des pages au dessous des articles
$paging = $blog->pagingList($page);
require('site/view/public/blogPagingView.php');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment