From 4562cfbb1a630b14fd194271f99f1f8c098dc38d Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Nov 2011 12:10:46 -0500 Subject: basic pages for viewing all/mine/friends and viewing an album --- pages/ownedalbums.php | 67 --------------------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 pages/ownedalbums.php (limited to 'pages/ownedalbums.php') diff --git a/pages/ownedalbums.php b/pages/ownedalbums.php deleted file mode 100644 index 9483512c6..000000000 --- a/pages/ownedalbums.php +++ /dev/null @@ -1,67 +0,0 @@ -username) || empty($owner->username)) { - forward('pg/photos/world'); -} - - -// setup group menu for album index -if ($owner instanceof ElggGroup) { - add_submenu_item( sprintf(elgg_echo('album:group'),$owner->name), - $CONFIG->wwwroot . "pg/photos/owned/" . $owner->username); - if (can_write_to_container(0, $owner->guid)) { - add_submenu_item( elgg_echo('album:create'), - $CONFIG->wwwroot . 'pg/photos/new/' . $owner->username, - 'tidypics'); - } -} - -//set the title -$title = sprintf(elgg_echo('album:user'), $owner->name); -$area2 = elgg_view_title($title); - -// Get objects -set_context('search'); -set_input('search_viewtype', 'gallery'); -if ($owner instanceof ElggGroup) { - $content .= elgg_list_entities(array( - "type" => "object", - "subtype" => "album", - "container_guid" => $owner->guid, - "limit" => 12, - "full_view" => false, -)); -} else { - $content .= elgg_list_entities(array( - "type" => "object", - "subtype" => "album", - "container_guid" => $owner->guid, - "limit" => 12, - "full_view" => false, -)); -} - -$area2 = elgg_view('tidypics/content_wrapper', array('title' => $title, 'content' => $content,)); - -set_context('photos'); -$body = elgg_view_layout('two_column_left_sidebar', '', $area2); - -// Finally draw the page -page_draw($title, $body); \ No newline at end of file -- cgit v1.2.3