This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/contrib/handle_ico/theme.php
shish 09f768afdd 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
2008-04-11 01:49:18 +00:00

16 lines
447 B
PHP

<?php
class IcoFileHandlerTheme extends Themelet {
public function display_image($page, $image) {
$ilink = $image->get_image_link();
$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));
}
}
?>