From fc8cdce2fdba5f0794298c80bd3bd279a08ae93b Mon Sep 17 00:00:00 2001 From: shish Date: Wed, 25 Jun 2008 00:18:26 +0000 Subject: [PATCH] piclenslite button git-svn-id: file:///home/shish/svn/shimmie2/trunk@908 7f39781d-f577-437e-ae19-be835c7a54ca --- contrib/piclens/main.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 contrib/piclens/main.php diff --git a/contrib/piclens/main.php b/contrib/piclens/main.php new file mode 100644 index 00000000..1b6ab2a5 --- /dev/null +++ b/contrib/piclens/main.php @@ -0,0 +1,28 @@ + + * License: GPLv2 + * Description: Adds a link to piclensify the gallery + */ +class PicLens extends Extension { + public function receive_event($event) { + if(is_a($event, 'PageRequestEvent')) { + global $config; + if(strlen($config->get_string("site_description")) > 0) { + $description = $config->get_string("site_description"); + $event->page->add_header(""); + } + } + if(is_a($event, 'PostListBuildingEvent')) { + $foo=' + Start Slideshow + PicLens'; + $event->page->add_block(new Block("PicLens", $foo, "left", 20)); + } + } +} +add_event_listener(new PicLens()); +?>