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 if ($entity instanceof ElggObject) { $title = $entity->title; } else if ($entity instanceof ElggEntity) { $title = $entity->name; } $area2 = elgg_view_title($title); $area2 .= elgg_view_entity($entity, true); // Otherwise? } else { } $body = elgg_view_layout('two_column_left_sidebar', '', $area2); // Display the page page_draw($title, $body); ?>