19 lines
461 B
PHP
19 lines
461 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shimmie2;
|
|
|
|
class IcoFileHandlerTheme extends Themelet
|
|
{
|
|
public function display_image(Image $image): void
|
|
{
|
|
global $page;
|
|
$ilink = $image->get_image_link();
|
|
$html = "
|
|
<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));
|
|
}
|
|
}
|