From 4e0c1576475390faa2f1fb4c4dc2902a953f440e Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 25 Feb 2009 12:16:53 +0000 Subject: First commit --- index.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 index.php (limited to 'index.php') diff --git a/index.php b/index.php new file mode 100644 index 000000000..00b09d14b --- /dev/null +++ b/index.php @@ -0,0 +1,45 @@ +username) || empty($owner->username)) { + //if not logged in, see world pictures instead + if (!isloggedin()) forward('pg/photos/world'); + forward('pg/photos/owned/' . $_SESSION['user']->username); + } + + //set the title + $area2 = elgg_view_title($title = sprintf(elgg_echo('album:user'), "$owner->name")); + + //allow new album creation + if(can_write_to_container($_SESSION['guid'], page_owner())){ + $area2 .= 'username.'">'.elgg_echo('album:create').'

'; + } + + // Get objects + set_context('search'); + set_input('search_viewtype', 'gallery'); + $area2 .= list_entities("object","album",page_owner(),10); + + set_context('photos'); + $body = elgg_view_layout('two_column_left_sidebar', '', $area2); + + // Finally draw the page + page_draw(sprintf(elgg_echo("album:user"),page_owner_entity()->name), $body); +?> \ No newline at end of file -- cgit v1.2.3