diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-07 16:05:17 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-07 16:05:17 +0000 |
commit | f2c274eeba80146dfecd6ddc0e1b28b3c6cb3f9d (patch) | |
tree | 8a59b1a27acfd5afb90674c267f69add638b8a92 /mod/activity/views/default | |
parent | 53f56ed753a65b2134e9ef90b57cc384e5b14b51 (diff) | |
download | elgg-f2c274eeba80146dfecd6ddc0e1b28b3c6cb3f9d.tar.gz elgg-f2c274eeba80146dfecd6ddc0e1b28b3c6cb3f9d.tar.bz2 |
small additions to the activity view
git-svn-id: https://code.elgg.org/elgg/trunk@2676 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/activity/views/default')
-rw-r--r-- | mod/activity/views/default/activity/offset.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mod/activity/views/default/activity/offset.php b/mod/activity/views/default/activity/offset.php new file mode 100644 index 000000000..638cf9150 --- /dev/null +++ b/mod/activity/views/default/activity/offset.php @@ -0,0 +1,27 @@ +<?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 style=\"margin:10px 0 0 0;font-size:16px;\">";
+
+ if($backset != '-1')
+ echo "<a href=\"{$vars['url']}{$url}?offset={$backset}\">". elgg_echo('activity:forward') . "</a> ";
+
+ echo "<a href=\"{$vars['url']}{$url}?offset={$offset}\">" . elgg_echo('activity:back') . "</a></div>";
+
+?>
\ No newline at end of file |