diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-01-24 14:57:13 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-24 14:57:13 -0800 |
| commit | cc912935731c216a57e4c291548ec503a0c1607e (patch) | |
| tree | 0ebfdf14a4f8cd183df31cde5be8e3226641d580 /modules/gallery/libraries/Admin_View.php | |
| parent | 5b84919d6e55a8c43f60cf8b695c3696340d001b (diff) | |
| parent | eb32e1052df4da268f01a84b809d756d9c9b85b7 (diff) | |
Merge branch 'bharat_dev' of git@github.com:gallery/gallery3 into bharat_dev
Diffstat (limited to 'modules/gallery/libraries/Admin_View.php')
| -rw-r--r-- | modules/gallery/libraries/Admin_View.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Admin_View.php b/modules/gallery/libraries/Admin_View.php index a990e4ca..e3f9dff0 100644 --- a/modules/gallery/libraries/Admin_View.php +++ b/modules/gallery/libraries/Admin_View.php @@ -36,6 +36,8 @@ class Admin_View_Core extends Gallery_View { $this->sidebar = ""; $this->set_global("theme", $this); $this->set_global("user", identity::active_user()); + $this->set_global("page_type", "admin"); + $this->set_global("page_subtype", $name); } public function admin_menu() { @@ -44,6 +46,14 @@ class Admin_View_Core extends Gallery_View { return $menu->render(); } + public function user_menu() { + $menu = Menu::factory("root") + ->css_id("g-login-menu") + ->css_class("g-inline ui-helper-clear-fix"); + module::event("user_menu", $menu, $this); + return $menu->render(); + } + /** * Print out any site wide status information. */ |
