diff options
Diffstat (limited to 'src/web/_views/template/posts.php')
-rw-r--r-- | src/web/_views/template/posts.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/web/_views/template/posts.php b/src/web/_views/template/posts.php new file mode 100644 index 0000000..5e9156c --- /dev/null +++ b/src/web/_views/template/posts.php @@ -0,0 +1,23 @@ +<div id="post-container"> +<?php + $pdata = $this->posts(); + + $loaded = $pdata['loaded']; + $page_size = $pdata['page_size']; + $total = $pdata['total']; + $max = $pdata['max']; + + if ($loaded >= $page_size && $page_size < $total) { + ilang('action_load_posts', + id: 'action-load-posts', + class: 'btn btn-line btn-wide mb', + attrs: array( + 'loaded' => $loaded, + 'pageSize' => $page_size, + 'postCount' => $total, + 'postMax' => $max, + ) + ); + } +?> +</div> |