From ca9a2ca2593903c7fc2b569e4338408143c71609 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 23 Aug 2009 22:56:26 +0000 Subject: cleaned up the all site albums page --- pages/world.php | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'pages') 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 -- cgit v1.2.3