From 713ef05b0fb0d68e9856d306fbfd2f9960043d02 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 11 Jan 2009 21:35:17 +0000 Subject: 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. --- core/helpers/core_menu.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'core/helpers') 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 @@ -20,23 +20,17 @@ 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") { -- cgit v1.2.3