handle icons as objects in the hope of making ie7 happy
git-svn-id: file:///home/shish/svn/shimmie2/trunk@797 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
4803c6f5d2
commit
09f768afdd
@ -3,7 +3,13 @@
|
|||||||
class IcoFileHandlerTheme extends Themelet {
|
class IcoFileHandlerTheme extends Themelet {
|
||||||
public function display_image($page, $image) {
|
public function display_image($page, $image) {
|
||||||
$ilink = $image->get_image_link();
|
$ilink = $image->get_image_link();
|
||||||
$html = "<img id='main_image' src='$ilink'>";
|
$width = $image->width;
|
||||||
|
$height = $image->height;
|
||||||
|
$html = "
|
||||||
|
<object data='$ilink' type='image/x-icon' width='$width' height='$height'>
|
||||||
|
<embed src='$ilink' type='image/x-icon' width='$width' height='$height' />
|
||||||
|
</object>
|
||||||
|
";
|
||||||
$page->add_block(new Block("Image", $html, "main", 0));
|
$page->add_block(new Block("Image", $html, "main", 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user