diff --git a/plugins/globe/index.php b/plugins/globe/index.php index e4e33959f36ef8bb62501d9b249d22e3eb9f15f5..44e632ba01a4addca165191d62fcafba16e55985 100644 --- a/plugins/globe/index.php +++ b/plugins/globe/index.php @@ -14,21 +14,14 @@ $x = 'afasf'; var_dump($x); - $limit = get_input("limit", 10); - $offset = get_input("offset", 0); - - $title = sprintf(elgg_echo("groups:owned"),page_owner_entity()->name); + // Get view + $area1 = elgg_view('globe/content', array()); - // Get objects - $area2 = elgg_view_title($title); - - set_context('search'); - $objects = list_entities("group", "", page_owner(), $limit, false); - set_context('groups'); - - $area2 .= $objects; - $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2); + // Format + $body = elgg_view_layout('one_column', $area1); - // Finally draw the page - page_draw($title, $body); + + + // Draw page + echo page_draw(elgg_echo(' Huskers Around The World'), $body); ?> \ No newline at end of file diff --git a/plugins/globe/start.php b/plugins/globe/start.php index 4446a9bae6063ae2eb1eeb163a6d1ae7a7f713ac..67d534a9d1a354e3bdf5ce98b2391d2b1e05c4d9 100644 --- a/plugins/globe/start.php +++ b/plugins/globe/start.php @@ -38,10 +38,10 @@ switch ($page[0]) { case 'friends': - include($CONFIG->pluginspath . "groups/new.php"); + include("globe.php"); break; default: - include($CONFIG->pluginspath . "groups/index.php"); + include("index.php"); break; } }