summaryrefslogtreecommitdiff
path: root/modules/watermark/helpers/watermark_menu.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-16 17:30:18 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-16 17:30:18 +0000
commit04441e11cccceea92454d3fcbc54e0e103fb8bd6 (patch)
tree06ce3eb18eb156b736cb3510ac92e1af3aa4bb94 /modules/watermark/helpers/watermark_menu.php
parent931d8c6bdce9fa4656d36c2f07ff6a38d0b47c5d (diff)
1) Remove the load watermark from the scaffolding... use the menu option
2) The set watermark dialog is now sizing properly. @todo is recenter in the window
Diffstat (limited to 'modules/watermark/helpers/watermark_menu.php')
-rw-r--r--modules/watermark/helpers/watermark_menu.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/modules/watermark/helpers/watermark_menu.php b/modules/watermark/helpers/watermark_menu.php
index 384ba9c4..71927da3 100644
--- a/modules/watermark/helpers/watermark_menu.php
+++ b/modules/watermark/helpers/watermark_menu.php
@@ -23,12 +23,20 @@ class watermark_menu_Core {
public static function site_navigation($menu, $theme) {
$user = user::active();
if ($user->admin) {
- Kohana::log("debug", print_r($menu, 1));
$menu->get("admin_menu")->append(
Menu::Factory("dialog")
- ->id("watermark_position")
- ->label(_("Set Watermark Position"))
- ->url(url::site("admin/watermark/get_form/$user->id")));
+ ->id("watermark_Load")
+ ->label(_("Load Watermark"))
+ ->url(url::site("admin/watermark/load")));
+
+ $path = module::get_var("watermark", "watermark_image_path");
+ if (!empty($path)) {
+ $menu->get("admin_menu")->append(
+ Menu::Factory("dialog")
+ ->id("watermark_position")
+ ->label(_("Set Watermark Position"))
+ ->url(url::site("admin/watermark/get_form/$user->id")));
+ }
}
}
}