From b1f340a7041a92541b4e4220fa6c780f596dcc39 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 13 Dec 2009 00:49:02 +0000 Subject: improved the plugin hooks --- views/default/object/image.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'views') diff --git a/views/default/object/image.php b/views/default/object/image.php index 02444eaad..ee81d800f 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -69,7 +69,7 @@ $image), $image_html); + $image_html = trigger_plugin_hook('tp_thumbnail_link', 'album', array('image' => $image), $image_html); if ($image_html) { echo $image_html; @@ -161,20 +161,17 @@
\"{$title}\""; + $image_html = ""; + $image_html .= "\"{$title}\""; + $image_html .= ""; } else { - // no link for this image - echo "\"{$title}\""; + $image_html = "\"{$title}\""; } + // does any plugin want to override the link + $image_html = trigger_plugin_hook('tp_thumbnail_link', 'image', array('image' => $image), $image_html); + echo $image_html; ?>
-- cgit v1.2.3