diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-10 08:20:00 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-10 08:20:00 -0700 |
commit | 12796ec2ca386895a713583c683348e7d02bc66b (patch) | |
tree | 9bf9de19d0de9f4408e61d406f918eb5ebe619d6 | |
parent | b3785e176145b10c84b3b27850679b13ab54bc81 (diff) |
Create a new [options] submenu under the thumb menu, and move the
Digibug print button into it. Right now, it doesn't display properly.
-rw-r--r-- | modules/digibug/helpers/digibug_menu.php | 13 | ||||
-rw-r--r-- | modules/gallery/helpers/gallery_menu.php | 3 |
2 files changed, 10 insertions, 6 deletions
diff --git a/modules/digibug/helpers/digibug_menu.php b/modules/digibug/helpers/digibug_menu.php index f1d4fc1d..c95cada2 100644 --- a/modules/digibug/helpers/digibug_menu.php +++ b/modules/digibug/helpers/digibug_menu.php @@ -38,12 +38,13 @@ class digibug_menu { static function thumb($menu, $theme, $item) { if ($item->type == "photo" && access::can("view_full", $item)) { - $menu->append( - Menu::factory("link") - ->id("digibug") - ->label(t("Print with Digibug")) - ->url(url::site("digibug/print_photo/$item->id?csrf=$theme->csrf")) - ->css_id("gDigibugLink")); + $menu->get("options_menu") + ->append( + Menu::factory("link") + ->id("digibug") + ->label(t("Print with Digibug")) + ->url(url::site("digibug/print_photo/$item->id?csrf=$theme->csrf")) + ->css_id("gDigibugLink")); } } } diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php index 1f1e1ce2..bffb7696 100644 --- a/modules/gallery/helpers/gallery_menu.php +++ b/modules/gallery/helpers/gallery_menu.php @@ -95,6 +95,9 @@ class gallery_menu_Core { } static function thumb($menu, $theme, $item) { + $menu->append(Menu::factory("submenu") + ->id("options_menu") + ->label(t("Options"))); } static function photo($menu, $theme) { |