aboutsummaryrefslogtreecommitdiff
path: root/views/default
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
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')
-rw-r--r--views/default/admin/main.php20
-rw-r--r--views/default/editmenu.php2
-rw-r--r--views/default/navigation/topmenu.php19
3 files changed, 37 insertions, 4 deletions
diff --git a/views/default/admin/main.php b/views/default/admin/main.php
new file mode 100644
index 000000000..7a1358f03
--- /dev/null
+++ b/views/default/admin/main.php
@@ -0,0 +1,20 @@
+<?php
+
+ /**
+ * Elgg administration main screen
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ **/
+
+ // Description of what's going on
+ echo "<p>" . nl2br(elgg_echo("admin:description")) . "</p>";
+
+ // Main menu items
+ echo elgg_view("admin/mainmenu");
+
+?> \ No newline at end of file
diff --git a/views/default/editmenu.php b/views/default/editmenu.php
index e08a512d1..5d05e7a14 100644
--- a/views/default/editmenu.php
+++ b/views/default/editmenu.php
@@ -9,5 +9,5 @@
* @author Curverider Ltd
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
-
+ **/
?> \ No newline at end of file
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>