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

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));
}
}