aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-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