diff options
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r-- | modules/gallery/libraries/Theme_View.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index 15baaeef..ebf0792c 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -124,6 +124,23 @@ class Theme_View_Core extends View { print $menu; } + public function tag_menu() { + $menu = Menu::factory("root"); + gallery_menu::tag($menu, $this); + + foreach (module::active() as $module) { + if ($module->name == "gallery") { + continue; + } + $class = "{$module->name}_menu"; + if (method_exists($class, "tag")) { + call_user_func_array(array($class, "tag"), array(&$menu, $this)); + } + } + + print $menu; + } + public function photo_menu() { $menu = Menu::factory("root"); gallery_menu::photo($menu, $this); |