* License: GPLv2 * Description: Adds a link to piclensify the gallery */ class PicLens extends Extension { public function receive_event($event) { if(is_a($event, 'PageRequestEvent')) { $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()); ?>