container_guid) set_page_owner($album->container_guid); else set_page_owner($album->owner_guid); $owner = page_owner_entity(); // setup group menu if ($owner instanceof ElggGroup) { add_submenu_item( elgg_echo('album:create'), $CONFIG->wwwroot . 'pg/photos/new/' . $owner->username, 'tidypics'); add_submenu_item( elgg_echo('album:addpix'), $CONFIG->wwwroot . 'pg/photos/upload/' . $album_guid, 'tidypics'); add_submenu_item( elgg_echo('album:edit'), $CONFIG->wwwroot . 'pg/photos/edit/' . $album_guid, 'tidypics'); add_submenu_item( elgg_echo('album:delete'), $CONFIG->wwwroot . 'pg/photos/delete/' . $album_guid, 'tidypics', true); } // set title and body $title = $album->title; $area2 = elgg_view_title($title); $area2 .= elgg_view_entity($album, true); $body = elgg_view_layout('two_column_left_sidebar', '', $area2); page_draw($title, $body); ?>