summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-06 12:44:39 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-06 12:44:39 -0700
commitc09e2ef7af5411f239ba7f1adb01be39b2950b84 (patch)
tree33c7bfb5c16b5cfc40b92704e23b1e932618628f /modules/gallery/libraries/Theme_View.php
parentb826182b7a7b2d630b478d3e2bcf0628989a92d9 (diff)
parentad19e29c469295189a2d13772706e39e3bd3dfc7 (diff)
Merge branch 'master' of git@github.com:bharat/gallery3 into bharat_branch
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r--modules/gallery/libraries/Theme_View.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index 360e5e46..24dea729 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -111,14 +111,16 @@ class Theme_View_Core extends Gallery_View {
return $menu->compact();
}
- public function thumb_menu($item) {
+ public function context_menu($item) {
$menu = Menu::factory("root")
->append(Menu::factory("submenu")
- ->id("options_menu")
+ ->id("context_menu")
->label(t("Options")))
- ->css_class("gThumbMenu");
+ ->css_class("gContextMenu");
- module::event("thumb_menu", $menu, $this, $item);
+ $page_type = Input::instance()->get("page_type");
+ gallery::context_menu($menu, $this, $item, $page_type);
+ module::event("context_menu", $menu, $this, $item, $page_type);
return $menu->compact();
}