diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-08-23 22:56:26 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-08-23 22:56:26 +0000 |
commit | ca9a2ca2593903c7fc2b569e4338408143c71609 (patch) | |
tree | 958d2084e13a60c663db3f2b8407ed97538b6f08 | |
parent | 602b37578a3a373f15b2f1d1641b3606c3f0d43b (diff) | |
download | elgg-ca9a2ca2593903c7fc2b569e4338408143c71609.tar.gz elgg-ca9a2ca2593903c7fc2b569e4338408143c71609.tar.bz2 |
cleaned up the all site albums page
-rw-r--r-- | pages/world.php | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/pages/world.php b/pages/world.php index 1ed712ac9..d88ab1969 100644 --- a/pages/world.php +++ b/pages/world.php @@ -6,28 +6,21 @@ include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php";
- $limit = get_input("limit", 10);
- $offset = get_input("offset", 0);
- $tag = get_input("tag");
+ $num_albums = 16;
- // Get the current page's owner
- $page_owner = page_owner_entity();
- if ($page_owner === false || is_null($page_owner)) {
- $page_owner = $_SESSION['user'];
- set_page_owner($_SESSION['guid']);
- }
+ $title = elgg_echo('album:all');
- // Get objects
- $area2 = elgg_view_title($title = elgg_echo('album:all'));
+ set_context('photos');
+ $area2 = elgg_view_title($title);
set_context('search');
set_input('search_viewtype', 'gallery');
- $area2 .= list_entities('object','album', 0, 28);
+ $albums_html .= list_entities('object','album', 0, $num_albums);
- set_context('photos');
+
+ $area2 .= $albums_html;
$body = elgg_view_layout('two_column_left_sidebar', '', $area2);
- // Finally draw the page
- page_draw(sprintf(elgg_echo("album:all"),$_SESSION['user']->name), $body);
+ page_draw($title, $body);
?>
\ No newline at end of file |