container_guid) { set_page_owner($entity->container_guid); } else { set_page_owner($entity->owner_guid); } // Set the body to be the full view of the entity, and the title to be its title $area2 = elgg_view_entity($entity,true); if ($shell) { $body = elgg_view_layout('two_column_left_sidebar', '', $area1 . $area2); } else { $body = $area2; } // Otherwise? } else { $body = elgg_echo('notfound'); } // Display the page if ($shell) { page_draw("", $body); } else { header("Content-type: text/html; charset=UTF-8"); echo $body; } ?>