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/ext/handle_ico/theme.php

20 lines
461 B
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?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 = "
2016-09-02 03:08:28 +00:00
<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));
}
}