summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/digibug/helpers/digibug_menu.php13
-rw-r--r--modules/gallery/helpers/gallery_menu.php3
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) {