From: garvinhicking Date: Fri, 29 Apr 2005 14:37:34 +0000 (+0000) Subject: Image selector hook support X-Git-Tag: 0.9~488 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=886a24c20f322234fba27e32090251c008638a51;p=s9y.git Image selector hook support --- diff --git a/docs/NEWS b/docs/NEWS index 02e9b1d..46d7298 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 0.9 () ------------------------------------------------------------------------ + * Added hooks into the image selector admin popup for plugins to + support additional options. serendipity_event_imageselectorplus + accesses those hooks already. (garvinhicking) + * Categories plugin now offers to sort by category name, description or creation date. (garvinhicking) diff --git a/serendipity_admin_image_selector.php b/serendipity_admin_image_selector.php index 318c003..e045280 100644 --- a/serendipity_admin_image_selector.php +++ b/serendipity_admin_image_selector.php @@ -117,12 +117,15 @@ switch ($serendipity['GET']['step']) { $thumbHeight = $thumbsize[1]; $imgsrc = $file['imgsrc']; } + $file['finishJSFunction'] = 'serendipity_imageSelector_done(\'' . $serendipity['GET']['textarea'] . '\')'; + serendipity_plugin_api::hook_event('frontend_image_selector', $file); ?>

+ @@ -141,6 +144,7 @@ switch ($serendipity['GET']['step']) {


+
@@ -149,6 +153,7 @@ switch ($serendipity['GET']['step']) {


+
: @@ -156,20 +161,25 @@ switch ($serendipity['GET']['step']) {
-
+
-
+
+
:
+
+ + - + +

@@ -181,6 +191,7 @@ switch ($serendipity['GET']['step']) { if (!empty($serendipity['GET']['filename_only'])) { ?> @@ -189,6 +200,7 @@ switch ($serendipity['GET']['step']) { ?>