aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-17 16:44:59 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-17 16:44:59 +0000
commit9f90c74d09510200022b979695b9649f60320c25 (patch)
treef18319338952006ffe6e3add3f14df2deac5efb9
parent5a6ecf982492cee7b01729295d1598caa921b95b (diff)
downloadelgg-9f90c74d09510200022b979695b9649f60320c25.tar.gz
elgg-9f90c74d09510200022b979695b9649f60320c25.tar.bz2
more more all groups tweak
git-svn-id: https://code.elgg.org/elgg/trunk@2789 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/groups/all.php3
-rw-r--r--mod/groups/views/default/groups/side_menu.php8
2 files changed, 11 insertions, 0 deletions
diff --git a/mod/groups/all.php b/mod/groups/all.php
index 87c079750..327e6f8e7 100644
--- a/mod/groups/all.php
+++ b/mod/groups/all.php
@@ -48,6 +48,9 @@
//find groups
$area1 = elgg_view("groups/find");
+ //menu options
+ $area1 .= elgg_view("groups/side_menu");
+
//featured groups
$area1 .= elgg_view("groups/featured");
diff --git a/mod/groups/views/default/groups/side_menu.php b/mod/groups/views/default/groups/side_menu.php
new file mode 100644
index 000000000..cf09f8b6a
--- /dev/null
+++ b/mod/groups/views/default/groups/side_menu.php
@@ -0,0 +1,8 @@
+<div class="user_groups_link">
+<?php
+ if(isloggedin()){
+ echo "<p><a href=\"{$vars['url']}pg/groups/member/{$_SESSION['user']->username}\">". elgg_echo('groups:yours') ."</a></p>";
+ echo "<p><a href=\"{$vars['url']}pg/groups/new/\">". elgg_echo('groups:new') ."</a></p>";
+ }
+?>
+</div> \ No newline at end of file