xssbook2/web/_views/template/posts.php

23 lines
458 B
PHP

<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 mb',
attrs: array(
'loaded' => $loaded,
'pageSize' => $page_size,
'postCount' => $total,
'postMax' => $max,
)
);
}
?>
</div>