From a57d0d93a8c741e64ac18bbb36aad4164569f266 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Tue, 31 Mar 2009 05:14:40 +0000 Subject: Add quick edit pane to resize images, ticket #189 --- core/helpers/core_theme.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'core/helpers/core_theme.php') diff --git a/core/helpers/core_theme.php b/core/helpers/core_theme.php index fbb8aef3..03018d48 100644 --- a/core/helpers/core_theme.php +++ b/core/helpers/core_theme.php @@ -25,7 +25,8 @@ class core_theme_Core { $buf .= ""; } - if ($theme->page_type == "album" && access::can("edit", $theme->item())) { + if (($theme->page_type == "album" || $theme->page_type == "photo") + && access::can("edit", $theme->item())) { $buf .= ""; $buf .= html::script("core/js/quick.js"); @@ -51,6 +52,19 @@ class core_theme_Core { return $buf; } + static function resize_top($theme, $item) { + if (access::can("edit", $item)) { + $edit_link = url::site("quick/pane/$item->id"); + return "
"; + } + } + + static function resize_bottom($theme, $item) { + if (access::can("edit", $item)) { + return "
"; + } + } + static function thumb_top($theme, $child) { if (access::can("edit", $child)) { $edit_link = url::site("quick/pane/$child->id"); -- cgit v1.2.3