From ecfeaf08fffd1e9f347543d8d88799a4efb50827 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 1 Jan 2011 22:58:44 +0000 Subject: updating the sidebar boxes to use the new module classes git-svn-id: http://code.elgg.org/elgg/trunk@7809 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/forms/groups/search.php | 13 ++++++++ mod/groups/views/default/groups/featured.php | 38 +++++++++++++----------- mod/groups/views/default/groups/find.php | 24 +++++++-------- mod/groups/views/default/groups/members.php | 33 ++++++++++---------- 4 files changed, 60 insertions(+), 48 deletions(-) create mode 100644 mod/groups/views/default/forms/groups/search.php (limited to 'mod/groups/views/default') diff --git a/mod/groups/views/default/forms/groups/search.php b/mod/groups/views/default/forms/groups/search.php new file mode 100644 index 000000000..fbb01513d --- /dev/null +++ b/mod/groups/views/default/forms/groups/search.php @@ -0,0 +1,13 @@ + 'tag', + 'class' => 'search-input', + 'value' => $tag_string, + 'onclick' => "if (this.value=='$tag_string') { this.value='' }", +); +echo elgg_view('input/text', $params); + +echo elgg_view('input/submit', array('value' => elgg_echo('search:go'))); diff --git a/mod/groups/views/default/groups/featured.php b/mod/groups/views/default/groups/featured.php index 0f9a3bedf..50e473d1c 100644 --- a/mod/groups/views/default/groups/featured.php +++ b/mod/groups/views/default/groups/featured.php @@ -1,25 +1,27 @@ -

- - $group, 'size' => 'tiny', )); - - echo ""; - } + $body .= ""; } -?> + + echo elgg_view('layout/objects/module', array( + 'title' => elgg_echo("groups:featured"), + 'body' => $body, + 'class' => 'elgg-aside-module', + )); +} diff --git a/mod/groups/views/default/groups/find.php b/mod/groups/views/default/groups/find.php index 0ad9f2018..c0c135be2 100644 --- a/mod/groups/views/default/groups/find.php +++ b/mod/groups/views/default/groups/find.php @@ -1,14 +1,14 @@ $url, 'method' => 'get')); - /** - * A simple group search by tag view - **/ - -$tag_string = elgg_echo('groups:search:tags'); - -?> -

-
- - -
+echo elgg_view('layout/objects/module', array( + 'title' => elgg_echo('groups:searchtag'), + 'body' => $body, + 'class' => 'elgg-aside-module', +)); diff --git a/mod/groups/views/default/groups/members.php b/mod/groups/views/default/groups/members.php index 4738edf28..b4e9199af 100644 --- a/mod/groups/views/default/groups/members.php +++ b/mod/groups/views/default/groups/members.php @@ -1,21 +1,18 @@ +/** + * Group members sidebar + * + * @package ElggGroups + */ -
-

+$body = ''; +$members = $vars['entity']->getMembers(10); +foreach ($members as $mem) { + $body .= ""; +} -getMembers(10); - foreach($members as $mem){ - echo ""; - } -?> -
\ No newline at end of file +echo elgg_view('layout/objects/module', array( + 'title' => elgg_echo("groups:members"), + 'body' => $body, + 'class' => 'elgg-aside-module', +)); -- cgit v1.2.3