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

21 lines
428 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
use MicroHTML\HTMLElement;
use function MicroHTML\{INPUT};
class PostTitlesTheme extends Themelet
{
public function get_title_set_html(string $title, bool $can_set): HTMLElement
{
return SHM_POST_INFO(
"Title",
$title,
$can_set ? INPUT(["type" => "text", "name" => "title", "value" => $title]) : null
);
}
}