aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/item
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/river/item')
-rw-r--r--views/default/river/item/list.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/views/default/river/item/list.php b/views/default/river/item/list.php
index 8b7d37bd0..127d1cdd9 100644
--- a/views/default/river/item/list.php
+++ b/views/default/river/item/list.php
@@ -21,25 +21,26 @@
$nav = '';
+ if (sizeof($vars['items']) > $vars['limit']) {
+ $newoffset = $vars['offset'] + $vars['limit'];
+ $urladdition = 'offset='.$newoffset;
+ if (substr_count($baseurl,'?')) $nexturl=$baseurl . '&' . $urladdition; else $nexturl=$baseurl . '?' . $urladdition;
+
+ $nav .= '<a class="back" href="'.$nexturl.'">' . elgg_echo('previous') . '</a> ';
+ }
+
if ($vars['offset'] > 0) {
$newoffset = $vars['offset'] - $vars['limit'];
if ($newoffset < 0) $newoffset = 0;
$urladdition = 'offset='.$newoffset;
if (substr_count($baseurl,'?')) $prevurl=$baseurl . '&' . $urladdition; else $prevurl=$baseurl . '?' . $urladdition;
- $nav .= '<a href="'.$prevurl.'">' . elgg_echo('previous') . '</a> ';
- }
-
- if (sizeof($vars['items']) > $vars['limit']) {
- $newoffset = $vars['offset'] + $vars['limit'];
- $urladdition = 'offset='.$newoffset;
- if (substr_count($baseurl,'?')) $nexturl=$baseurl . '&' . $urladdition; else $nexturl=$baseurl . '?' . $urladdition;
-
- $nav .= '<a href="'.$nexturl.'">' . elgg_echo('next') . '</a> ';
- }
+ $nav .= '<a class="forward" href="'.$prevurl.'">' . elgg_echo('next') . '</a> ';
+ }
+
if (!empty($nav)) {
- echo '<div class="river_pagination>"<p>'.$nav.'</p></div>';
+ echo '<div class="river_pagination"><p>'.$nav.'</p><div class="clearfloat"></div></div>';
}
?>