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/themes/futaba/view.theme.php

21 lines
462 B
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?php
declare(strict_types=1);
namespace Shimmie2;
use MicroHTML\HTMLElement;
2023-12-31 01:20:36 +00:00
class CustomViewPostTheme extends ViewPostTheme
{
/**
* @param HTMLElement[] $editor_parts
*/
public function display_page(Image $image, array $editor_parts): void
{
global $page;
$page->set_heading(html_escape($image->get_tag_list()));
$page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 10));
}
}