From 41412179e762296be925285df1a66517f15b9884 Mon Sep 17 00:00:00 2001 From: Eric Rasmussen <erasmussen2@unl.edu> Date: Fri, 28 Aug 2009 22:50:41 +0000 Subject: [PATCH] --- plugins/globe/index.php | 23 ++++++++--------------- plugins/globe/start.php | 4 ++-- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/plugins/globe/index.php b/plugins/globe/index.php index e4e33959..44e632ba 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 4446a9ba..67d534a9 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; } } -- GitLab