aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/site_nav.php
blob: 2f167a540a12fb8e8bf8cd2229ad91b51eb24994 (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
66
67
68
<?php
/**
 * Main site-wide navigation
 **/
 
echo "<div id='elgg_main_nav' class='clearfloat'>";
echo "<ul class='navigation'>";

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/everyone.php\" id='thewire'><span>" . elgg_echo('thewire:title') . "</span></a></li>";
}
if(is_plugin_enabled('conversations') && isloggedin()){
	if(get_context() == 'conversations')
		$selected = 'class="selected"';
	else
		$selected = "";
	echo "<li {$selected}><a href=\"{$vars['url']}mod/conversations/all.php\" id='conversations'><span>" . elgg_echo('conversations') . "</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']}pg/file/world/world/\" 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/world/\" id='groups'><span>". elgg_echo('groups') . "</span></a></li>";
}
echo "</ul>";
echo "</div>";

?>