aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/site_nav.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/site_nav.php')
-rw-r--r--views/default/navigation/site_nav.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/views/default/navigation/site_nav.php b/views/default/navigation/site_nav.php
new file mode 100644
index 000000000..de37038cf
--- /dev/null
+++ b/views/default/navigation/site_nav.php
@@ -0,0 +1,61 @@
+<?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('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/world/\" id='groups'><span>". elgg_echo('groups') . "</span></a></li>";
+}
+echo "</ul>";
+echo "</div>";
+
+?> \ No newline at end of file