]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
cleaned up the all site albums page
authorCash Costello <cash.costello@gmail.com>
Sun, 23 Aug 2009 22:56:26 +0000 (22:56 +0000)
committerCash Costello <cash.costello@gmail.com>
Sun, 23 Aug 2009 22:56:26 +0000 (22:56 +0000)
pages/world.php

index 1ed712ac92e771ab9245a5b45b52361ca3856ce9..d88ab19696a9d159689bb3595d75efb5626856f0 100644 (file)
@@ -6,28 +6,21 @@
 \r
        include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php";\r
        \r
-       $limit = get_input("limit", 10);\r
-       $offset = get_input("offset", 0);\r
-       $tag = get_input("tag");\r
+       $num_albums = 16;\r
        \r
-       // Get the current page's owner\r
-       $page_owner = page_owner_entity();\r
-       if ($page_owner === false || is_null($page_owner)) {\r
-               $page_owner = $_SESSION['user'];\r
-               set_page_owner($_SESSION['guid']);\r
-       }\r
+       $title = elgg_echo('album:all');\r
        \r
-       // Get objects\r
-       $area2 = elgg_view_title($title = elgg_echo('album:all'));\r
+       set_context('photos');\r
+       $area2 = elgg_view_title($title);\r
        \r
        set_context('search');\r
        set_input('search_viewtype', 'gallery');\r
-       $area2 .= list_entities('object','album', 0, 28);               \r
+       $albums_html .= list_entities('object','album', 0, $num_albums);\r
 \r
-       set_context('photos');\r
+       \r
+       $area2 .= $albums_html;\r
        \r
        $body = elgg_view_layout('two_column_left_sidebar', '', $area2);\r
 \r
-       // Finally draw the page\r
-       page_draw(sprintf(elgg_echo("album:all"),$_SESSION['user']->name), $body);\r
+       page_draw($title, $body);\r
 ?>
\ No newline at end of file