diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-06-15 13:27:26 +0800 |
|---|---|---|
| committer | <unostar@danalan.info> | 2009-06-15 17:31:24 +0800 |
| commit | 2a5ffaae7e656636bf8c9411358bf4f33c31dde8 (patch) | |
| tree | d175e8f30bdfa9cec87f42aa8d7de15d84f71097 /modules/gallery/libraries | |
| parent | 0051c2c89b71128ff0aefaaa4a77df91dd078016 (diff) | |
Create a sidebar for tag pages
Move the <link> for the container feed (either gallery/album/<id> or
tag/tag/<id>) back into gallery_theme
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/gallery/libraries')
| -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); |
