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

31 lines
695 B
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?php
declare(strict_types=1);
namespace Shimmie2;
2020-01-26 13:19:35 +00:00
use function MicroHTML\INPUT;
class TrashTheme extends Themelet
{
public function get_image_admin_html(int $image_id): string
2019-09-29 13:30:55 +00:00
{
2020-01-26 13:19:35 +00:00
return (string)SHM_SIMPLE_FORM(
2020-01-30 10:31:11 +00:00
'trash_restore/'.$image_id,
2020-01-26 13:19:35 +00:00
INPUT(["type"=>'hidden', "name"=>'image_id', "value"=>$image_id]),
INPUT(["type"=>'submit', "value"=>'Restore From Trash']),
);
2019-09-29 13:30:55 +00:00
}
public function get_help_html(): string
{
2020-10-26 15:20:29 +00:00
return '<p>Search for posts in the trash.</p>
<div class="command_example">
<pre>in:trash</pre>
2020-10-26 15:20:29 +00:00
<p>Returns posts that are in the trash.</p>
2020-01-26 13:19:35 +00:00
</div>
';
}
}