git-svn-id: file:///home/shish/svn/shimmie2/trunk@92 7f39781d-f577-437e-ae19-be835c7a54ca

This commit is contained in:
Artanis
2007-05-09 18:14:25 +00:00
parent ffbb867b58
commit fc4e906aba
3 changed files with 60 additions and 46 deletions

View File

@@ -1,4 +1,7 @@
<?php
/*
* This file may not be distributed without its readme.txt
**/
class LinkImage extends Extension {
//event handler
public function receive_event($event) {
@@ -6,7 +9,7 @@ class LinkImage extends Extension {
global $page;
global $config;
$data_href = $config->get_string("data_href");
$page->add_header("<link rel='stylesheet' href='$data_href/ext/link_image/style.css' type='text/css'>",0);
$page->add_header("<link rel='stylesheet' href='$data_href/ext/link_image/_style.css' type='text/css'>",0);
$page->add_main_block(new Block("Link to Image", $this->get_html($event->image)));
}
if(is_a($event, 'SetupBuildingEvent')) {