canEdit()) forward(); $subtype = $file->getSubtype(); if ($subtype == 'album') { if($container = $file->container_guid) set_page_owner($container); $title = elgg_echo('album:edit'); } else if ($subtype == 'image') { if ($container = get_entity($file->container_guid)->container_guid) set_page_owner($container); $title = elgg_echo('image:edit'); } else { forward(); } $area2 .= elgg_view_title($title); $area2 .= elgg_view('tidypics/forms/edit', array('entity' => $file, 'subtype' => $subtype)); $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2); page_draw($title, $body); ?>