From 2a5ffaae7e656636bf8c9411358bf4f33c31dde8 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 15 Jun 2009 13:27:26 +0800 Subject: Create a sidebar for tag pages Move the for the container feed (either gallery/album/ or tag/tag/) back into gallery_theme Signed-off-by: --- modules/gallery/libraries/Theme_View.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'modules/gallery/libraries/Theme_View.php') 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); -- cgit v1.2.3