summaryrefslogtreecommitdiff
path: root/src/web/_views/template/posts.php
blob: 5fec6985b9db6693a177628e9c2ba1c5e4285870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div id="post-container">
<?php
	$pdata = $this->posts();

	$loaded = $pdata['loaded'];
	$page_size = $pdata['page_size'];
	$total = $pdata['total'];
	$max = $pdata['max'];
	$filterUid = $pdata['filter_uid'];

	if ($loaded >= $page_size && $page_size < $total) {
		ilang('action_load_posts',
			id: 'action-load-posts',
			class: 'btn btn-line btn-wide mb mt',
			attrs: array(
				'loaded' => $loaded,
				'pageSize' => $page_size,
				'postCount' => $total,
				'postMax' => $max,
				'userId' => $filterUid
			)
		);
	}
?>
</div>