blob: ad741307a7f85bddb1c3baa5eec0d64daf11b97b (
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
26
27
28
29
|
<?php
/// Extract the offset value
$offset = $vars['offset'];
$backset = '-1'; //used to display the forward link
$add_to_url = $vars['add_to_url'];//used to determine which pane we are looking at - sitewide, friends, own
$url = "pg/activity/";//set the default url
if($add_to_url == "friends")
$url = "pg/activity/" . $_SESSION['user']->username . "/friends/";
if($add_to_url == "own")
$url = "pg/activity/" . $_SESSION['user']->username;
if($offset > 19)
$backset = $offset - 20;//set backset
$offset = $offset + 20;//set new offset
echo "<div class=\"pagination\">";
echo "<a class=\"back\" href=\"{$vars['url']}{$url}?offset={$offset}\"> « " . elgg_echo('activity:back') . "</a>";
if($backset != '-1')
echo "<a class=\"forward\" href=\"{$vars['url']}{$url}?offset={$backset}\">". elgg_echo('activity:forward') . " »</a> ";
echo "<div class=\"clearfloat\"></div></div>";
?>
|