fix themes with navlinks

This commit is contained in:
Shish 2023-08-18 21:56:42 +01:00 committed by Shish
parent 01edf7c08b
commit 1cef09f39e
3 changed files with 9 additions and 3 deletions

View file

@ -4,6 +4,8 @@ declare(strict_types=1);
namespace Shimmie2;
use MicroHTML\HTMLElement;
/**
* Name: Danbooru Theme
* Author: Bzchan <bzchan@animemahou.com>
@ -158,7 +160,7 @@ class Page extends BasePage
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) {

View file

@ -4,6 +4,8 @@ declare(strict_types=1);
namespace Shimmie2;
use MicroHTML\HTMLElement;
/**
* Name: Danbooru 2 Theme
* Author: Bzchan <bzchan@animemahou.com>, updated by Daniel Oaks <daniel@danieloaks.net>
@ -158,7 +160,7 @@ class Page extends BasePage
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) {

View file

@ -4,6 +4,8 @@ declare(strict_types=1);
namespace Shimmie2;
use MicroHTML\HTMLElement;
/**
* Name: Lite Theme
* Author: Zach Hall <zach@sosguy.net>
@ -129,7 +131,7 @@ EOD;
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) {