have image admin controls block use microhtml consistently

This commit is contained in:
Shish
2024-01-19 18:57:02 +00:00
parent 2d6a318a3b
commit dbb8bb8280
20 changed files with 60 additions and 44 deletions

View File

@ -4,12 +4,14 @@ declare(strict_types=1);
namespace Shimmie2;
use function MicroHTML\{rawHTML};
class TranscodeImageTheme extends Themelet
{
/*
* Display a link to resize an image
*/
public function get_transcode_html(Image $image, array $options): string
public function get_transcode_html(Image $image, array $options): \MicroHTML\HTMLElement
{
$html = "
".make_form(
@ -26,7 +28,7 @@ class TranscodeImageTheme extends Themelet
</form>
";
return $html;
return rawHTML($html);
}
public function get_transcode_picker_html(array $options): string