aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/topmenu.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-15 13:35:37 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-15 13:35:37 +0000
commit1a08a1f4a273737afb508c781d5f39cef021a273 (patch)
tree7b4c1766c7b6d0f1e492e467dccb19869f39445a /views/default/navigation/topmenu.php
parentef3e87ebcf82fbf172aa719e23ef1a6cfca7a948 (diff)
downloadelgg-1a08a1f4a273737afb508c781d5f39cef021a273.tar.gz
elgg-1a08a1f4a273737afb508c781d5f39cef021a273.tar.bz2
Moving some stuff into the plugins repo, where it belongs.
git-svn-id: https://code.elgg.org/elgg/trunk@646 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation/topmenu.php')
-rw-r--r--views/default/navigation/topmenu.php19
1 files changed, 16 insertions, 3 deletions
diff --git a/views/default/navigation/topmenu.php b/views/default/navigation/topmenu.php
index fe289a7ba..a8211f67a 100644
--- a/views/default/navigation/topmenu.php
+++ b/views/default/navigation/topmenu.php
@@ -27,9 +27,22 @@
?>
</div>
<ul>
- <li><a href="<?php echo $vars['url']; ?>mod/dashboard/"><?php echo elgg_echo('dashboard'); ?></a></li>
- <li><a href=""><?php echo elgg_echo('profile'); ?></a></li>
- <li><a href=""><?php echo elgg_echo('account'); ?></a></li>
+ <li><a href="<?php echo $vars['url']; ?>pg/dashboard/"><?php echo elgg_echo('dashboard'); ?></a></li>
+ <li><a href="<?php echo $vars['url']; ?>pg/settings/"><?php echo elgg_echo('settings'); ?></a></li>
+<?php
+
+ // The administration link is for admin or site admin users only
+ if ($vars['user']->admin || $vars['user']->siteadmin) {
+
+?>
+
+ <li><a href="<?php echo $vars['url']; ?>pg/admin/"><?php echo elgg_echo("admin"); ?></a></li>
+
+<?php
+
+ }
+
+?>
<li><a href="<?php echo $vars['url']; ?>action/logout"><?php echo elgg_echo('logout'); ?></a></li>
</ul>
</div>