diff --git a/themes/danbooru/page.class.php b/themes/danbooru/page.class.php index 99009405b..3eee4ac05 100644 --- a/themes/danbooru/page.class.php +++ b/themes/danbooru/page.class.php @@ -4,6 +4,8 @@ namespace Shimmie2; +use MicroHTML\HTMLElement; + /** * Name: Danbooru Theme * Author: Bzchan @@ -158,7 +160,7 @@ public function render() EOD; } - public function navlinks(Link $link, string $desc, bool $active): ?string + public function navlinks(Link $link, HTMLElement|string $desc, bool $active): ?string { $html = null; if ($active) { diff --git a/themes/danbooru2/page.class.php b/themes/danbooru2/page.class.php index d96d84fd7..d4575d37f 100644 --- a/themes/danbooru2/page.class.php +++ b/themes/danbooru2/page.class.php @@ -4,6 +4,8 @@ namespace Shimmie2; +use MicroHTML\HTMLElement; + /** * Name: Danbooru 2 Theme * Author: Bzchan , updated by Daniel Oaks @@ -158,7 +160,7 @@ public function render() EOD; } - public function navlinks(Link $link, string $desc, bool $active): ?string + public function navlinks(Link $link, HTMLElement|string $desc, bool $active): ?string { $html = null; if ($active) { diff --git a/themes/lite/page.class.php b/themes/lite/page.class.php index 7abecb7c1..212c89646 100644 --- a/themes/lite/page.class.php +++ b/themes/lite/page.class.php @@ -4,6 +4,8 @@ namespace Shimmie2; +use MicroHTML\HTMLElement; + /** * Name: Lite Theme * Author: Zach Hall @@ -129,7 +131,7 @@ public function block_to_html(Block $block, bool $hidable=false): string return $html; } - public function navlinks(Link $link, string $desc, bool $active): ?string + public function navlinks(Link $link, HTMLElement|string $desc, bool $active): ?string { $html = null; if ($active) {