2016-05-04 02:15:20 +02:00
|
|
|
<?php
|
|
|
|
$params = array();
|
|
|
|
if (isset($order)) {
|
|
|
|
$params[] = 'order=' . $order;
|
|
|
|
}
|
|
|
|
if (isset($direction)) {
|
|
|
|
$params[] = 'direction=' . $direction;
|
|
|
|
}
|
|
|
|
if (isset($feed_id)) {
|
|
|
|
$params[] = 'feed_id=' . $feed_id;
|
|
|
|
}
|
|
|
|
if (isset($group_id)) {
|
|
|
|
$params[] = 'group_id=' . $group_id;
|
|
|
|
}
|
|
|
|
if (isset($text)) {
|
|
|
|
$params[] = 'text=' . $text;
|
|
|
|
}
|
|
|
|
$optionals = '';
|
|
|
|
if ($params) {
|
|
|
|
$optionals = '&' . implode('&', $params);
|
|
|
|
}
|
|
|
|
?>
|
2013-10-15 04:38:07 +02:00
|
|
|
<div id="items-paging">
|
|
|
|
<?php if ($offset > 0): ?>
|
2016-10-02 04:24:33 +02:00
|
|
|
<a id="previous-page" href="?action=<?php echo $menu ?>&offset=<?php echo ($offset - $items_per_page) ?><?php echo $optionals; ?>">« <?php echo t('Previous page') ?></a>
|
2013-10-15 04:38:07 +02:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (($nb_items - $offset) > $items_per_page): ?>
|
2016-10-02 04:24:33 +02:00
|
|
|
<a id="next-page" href="?action=<?php echo $menu ?>&offset=<?php echo ($offset + $items_per_page) ?><?php echo $optionals; ?>"><?php echo t('Next page') ?> »</a>
|
2013-10-15 04:38:07 +02:00
|
|
|
<?php endif ?>
|
2016-05-04 02:15:20 +02:00
|
|
|
</div>
|