summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-14 22:27:26 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-14 22:27:26 -0700
commit1b656be7135efe51ba0eb34d6ac76c2632ec193a (patch)
tree5c66209a366d5df80eca693cbc7c43a18338324e /modules/gallery/libraries/Theme_View.php
parent32ea4406c87049b25d3d82351097e69f13168311 (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
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r--modules/gallery/libraries/Theme_View.php17
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);