Skip to content
Snippets Groups Projects
Commit 53389c7e authored by Seth Meranda's avatar Seth Meranda
Browse files

remove the members tab from the navigation.

parent 1b4a4c46
No related branches found
No related tags found
No related merge requests found
......@@ -68,18 +68,20 @@
foreach($alphamenu as $item) {
$requestURI = explode($vars['url'], $item->value);
$selectedTab = setSelectedTab($requestURI[1]);
echo "<li" . setSelectedTab($requestURI[1]) . "><a href=\"{$item->value}\"><span>" . $item->name . "";
if ($item->name == "Friends") {
$user = get_loggedin_user();
$options = array('relationship'=>'friendrequest', 'relationship_guid'=>$user->guid, 'inverse_relationship'=>true, 'count'=>true);
$count = elgg_get_entities_from_relationship($options);
if(!empty($count)){
echo " <sup>" . $count . "</sup>";
if ($item->name != "Members") {
echo "<li" . setSelectedTab($requestURI[1]) . "><a href=\"{$item->value}\"><span>" . $item->name . "";
if ($item->name == "Friends") {
$user = get_loggedin_user();
$options = array('relationship'=>'friendrequest', 'relationship_guid'=>$user->guid, 'inverse_relationship'=>true, 'count'=>true);
$count = elgg_get_entities_from_relationship($options);
if(!empty($count)){
echo " <sup>" . $count . "</sup>";
}
}
echo"</span></a></li>";
}
echo"</span></a></li>";
}
}
?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment