Added zoom support to ico
This commit is contained in:
parent
eeb0c2b974
commit
f26fc5925b
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ class IcoFileHandlerTheme extends Themelet {
|
|||
public function display_image(Page $page, Image $image) {
|
||||
$ilink = make_link("get_ico/{$image->id}/{$image->id}.ico");
|
||||
$html = "
|
||||
<img id='main_image' src='$ilink'>
|
||||
<img id='main_image' class='shm-main-image' alt='main image' src='$ilink'
|
||||
data-width='{$image->width}' data-height='{$image->height}'>
|
||||
";
|
||||
$page->add_block(new Block("Image", $html, "main", 10));
|
||||
}
|
||||
|
|
Reference in a new issue