2008-04-08 21:58:17 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class IcoFileHandlerTheme extends Themelet {
|
2009-01-04 11:54:16 -08:00
|
|
|
public function display_image(Page $page, Image $image) {
|
2016-09-25 15:25:12 -04:00
|
|
|
$ilink = $image->get_image_link();
|
2008-04-11 01:49:18 +00:00
|
|
|
$html = "
|
2016-09-01 23:08:28 -04:00
|
|
|
<img id='main_image' class='shm-main-image' alt='main image' src='$ilink'
|
|
|
|
data-width='{$image->width}' data-height='{$image->height}'>
|
2008-04-11 01:49:18 +00:00
|
|
|
";
|
2012-03-19 19:09:52 +00:00
|
|
|
$page->add_block(new Block("Image", $html, "main", 10));
|
2008-04-08 21:58:17 +00:00
|
|
|
}
|
|
|
|
}
|
2014-04-25 22:54:51 -04:00
|
|
|
|