21 lines
428 B
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
|
|
);
|
|
}
|
|
}
|