summaryrefslogtreecommitdiff
path: root/views/default/n1_theme/topbar/groups.php
blob: b71114d2c7146531c36802bd4377b5f298389399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>";