diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-11 21:35:17 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-11 21:35:17 +0000 |
commit | 713ef05b0fb0d68e9856d306fbfd2f9960043d02 (patch) | |
tree | b1ed480f845a1a7f9bf8fb58f8d4651db859f28a | |
parent | d387b31d186be7e919e2ca3c76166234efe9c9ab (diff) |
Site menu restructure:
* Add 'Scaffold' link to make it more obvious what's going on there
* 'Home' link now goes to albums/1
* 'Admin' is now pushed to the far right.
-rw-r--r-- | core/helpers/core_menu.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/core/helpers/core_menu.php b/core/helpers/core_menu.php index cf90ea0c..30c8e419 100644 --- a/core/helpers/core_menu.php +++ b/core/helpers/core_menu.php @@ -21,22 +21,16 @@ class core_menu_Core { public static function site($menu, $theme) { $menu ->append(Menu::factory("link") + ->id("browse") + ->label("Scaffold") + ->url(url::site("welcome"))) + ->append(Menu::factory("link") ->id("home") ->label(t("Home")) - ->url(url::base())) - ->append(Menu::factory("link") - ->id("browse") - ->label(t("Browse")) ->url(url::site("albums/1"))); $item = $theme->item(); - if (!user::active()->guest) { - $menu->append($admin_menu = Menu::factory("submenu") - ->id("admin_menu") - ->label(t("Admin"))); - } - if ($item && access::can("edit", $item)) { $menu->append($options_menu = Menu::factory("submenu") ->id("options_menu") @@ -64,6 +58,9 @@ class core_menu_Core { } if (user::active()->admin) { + $menu->append($admin_menu = Menu::factory("submenu") + ->id("admin_menu") + ->label(t("Admin"))); self::admin($admin_menu, $theme); foreach (module::installed() as $module) { if ($module->name == "core") { |