mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 19:20:52 -04:00
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:
@@ -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")
|
||||
|
||||
@@ -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 ?>
|
||||
|
||||
Reference in New Issue
Block a user