diff options
author | Sem <sembrestels@riseup.net> | 2012-10-30 02:32:04 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-10-30 02:32:04 +0100 |
commit | b4ad2436f397f5f9f155a723f4a07bb3cc7eb32a (patch) | |
tree | bd348ce6d564188a6de8cd0bbbb55a8a26c77b65 /start.php | |
parent | d2162850441b37eba7b83b47c2afa2b4184274d3 (diff) | |
download | saravea_theme-b4ad2436f397f5f9f155a723f4a07bb3cc7eb32a.tar.gz saravea_theme-b4ad2436f397f5f9f155a723f4a07bb3cc7eb32a.tar.bz2 |
Added groups icon in topbar.
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -29,7 +29,17 @@ function n1_theme_init() { function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){
$user = elgg_get_logged_in_user_entity();
-
+
+ if (elgg_is_active_plugin('groups')) {
+ $returnvalue[] = ElggMenuItem::factory(array(
+ 'name' => 'groups',
+ 'href' => $user ? "groups/member/$user->username" : "groups/all",
+ 'text' => elgg_view_icon('groups'),
+ 'title' => elgg_echo('groups'),
+ 'priority' => 500,
+ ));
+ }
+
if (elgg_is_admin_logged_in()) {
$returnvalue[] = ElggMenuItem::factory(array(
'name' => 'administration',
|