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/link_scan/theme.php
2024-01-16 10:56:53 +00:00

25 lines
572 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
use function MicroHTML\{TEXTAREA,BR,TABLE,TR,TD};
class LinkScanTheme extends Themelet
{
public function display_form(): void
{
global $page;
$html = SHM_SIMPLE_FORM(
"admin/link_scan",
TABLE(
["class" => "form"],
TR(TD(TEXTAREA(["name" => 'text', "placeholder" => 'Paste text']))),
TR(TD(SHM_SUBMIT('Find Posts'))),
),
);
$page->add_block(new Block("Find Referenced Posts", $html));
}
}