diff options
Diffstat (limited to 'views/default/n1_theme/topbar')
-rw-r--r-- | views/default/n1_theme/topbar/groups.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/default/n1_theme/topbar/groups.php b/views/default/n1_theme/topbar/groups.php new file mode 100644 index 0000000..b71114d --- /dev/null +++ b/views/default/n1_theme/topbar/groups.php @@ -0,0 +1,20 @@ +<?php + +$content = elgg_list_entities_from_relationship_count(array( + 'type' => 'group', + 'relationship' => 'member', + 'relationship_guid' => elgg_get_logged_in_user_guid(), + 'list_type' => 'gallery', + 'inverse_relationship' => false, + 'full_view' => false, +)); +if (!$content) { + $content = elgg_echo('groups:none'); +} + +$content .= elgg_view('output/url', array( + 'text' => elgg_echo('groups:all'), + 'href' => 'groups/all', +)); + +echo "<div class='elgg-module elgg-module-popup hidden clearfix' id='topbar-groups'>$content</div>"; |