Add a movie_menu() theme callback, and have the default theme call it

in the sidebar on movie page types.
This commit is contained in:
Bharat Mediratta
2009-09-16 20:34:42 -07:00
parent ffccfb9e63
commit 4e1e24ba1a
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -111,6 +111,12 @@ class Theme_View_Core extends Gallery_View {
return $menu->compact();
}
public function movie_menu() {
$menu = Menu::factory("root");
module::event("movie_menu", $menu, $this);
return $menu->compact();
}
public function context_menu($item, $thumbnail_css_selector) {
$menu = Menu::factory("root")
->append(Menu::factory("submenu")
+2
View File
@@ -6,6 +6,8 @@
<?= $theme->album_menu() ?>
<? elseif ($page_type == "photo") : ?>
<?= $theme->photo_menu() ?>
<? elseif ($page_type == "movie") : ?>
<?= $theme->movie_menu() ?>
<? elseif ($page_type == "tag") : ?>
<?= $theme->tag_menu() ?>
<? endif ?>