blob: 42796ef9a9157345f4c2b5d346a6d22eec84e555 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<?php
/**
* Main navigation bar
**/
echo "<div id='elgg_main_nav' class='clearfloat'>";
echo "<ul class='navigation'>";
//if(get_context() == 'home')
// $selected = "class=selected";
//else
// $selected = "";
//echo "<li {$selected}><a href=\"{$vars['url']}\" id='home'><span>Home</span></a></li>";
if(is_plugin_enabled('riverdashboard')){
if(get_context() == 'riverdashboard')
$selected = 'class="selected"';
else
$selected = "";
echo "<li {$selected}><a href=\"{$vars['url']}mod/riverdashboard/\" id='activity'><span>Activity</span></a></li>";
}
if(is_plugin_enabled('thewire') && isloggedin()){
if(get_context() == 'thewire')
$selected = 'class="selected"';
else
$selected = "";
echo "<li {$selected}><a href=\"{$vars['url']}mod/thewire/all.php\" id='thewire'><span>" . elgg_echo('thewire') . "</span></a></li>";
}
if(is_plugin_enabled('blog')){
if(get_context() == 'blog')
$selected = 'class="selected"';
else
$selected = "";
echo "<li {$selected}><a href=\"{$vars['url']}mod/blog/all.php\" id='blogs'><span>Blogs</span></a></li>";
}
if(is_plugin_enabled('pages')){
if(get_context() == 'pages')
$selected = 'class="selected"';
else
$selected = "";
echo "<li {$selected}><a href=\"{$vars['url']}mod/pages/all.php\" id='pages'><span>Pages</span></a></li>";
}
if(is_plugin_enabled('file')){
if(get_context() == 'file')
$selected = 'class="selected"';
else
$selected = "";
echo "<li {$selected}><a href=\"{$vars['url']}mod/file/all.php\" id='files'><span>Files</span></a></li>";
}
if(is_plugin_enabled('bookmarks')){
if(get_context() == 'bookmarks')
$selected = 'class="selected"';
else
$selected = "";
echo "<li {$selected}><a href=\"{$vars['url']}mod/bookmarks/all.php\" id='bookmarks'><span>Bookmarks</span></a></li>";
}
if(is_plugin_enabled('groups')){
if(get_context() == 'groups')
$selected = 'class="selected"';
else
$selected = "";
echo "<li {$selected}><a href=\"{$vars['url']}pg/groups/all/\" id='groups'><span>". elgg_echo('groups') . "</span></a></li>";
}
echo "</ul>";
echo "</div>";
?>
|