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; namespace Shimmie2;
use MicroHTML\HTMLElement;
/** /**
* Name: Danbooru Theme * Name: Danbooru Theme
* Author: Bzchan <bzchan@animemahou.com> * Author: Bzchan <bzchan@animemahou.com>
@@ -158,7 +160,7 @@ class Page extends BasePage
EOD; EOD;
} }
public function navlinks(Link $link, string $desc, bool $active): ?string public function navlinks(Link $link, HTMLElement|string $desc, bool $active): ?string
{ {
$html = null; $html = null;
if ($active) { if ($active) {

View File

@@ -4,6 +4,8 @@ declare(strict_types=1);
namespace Shimmie2; namespace Shimmie2;
use MicroHTML\HTMLElement;
/** /**
* Name: Danbooru 2 Theme * Name: Danbooru 2 Theme
* Author: Bzchan <bzchan@animemahou.com>, updated by Daniel Oaks <daniel@danieloaks.net> * Author: Bzchan <bzchan@animemahou.com>, updated by Daniel Oaks <daniel@danieloaks.net>
@@ -158,7 +160,7 @@ class Page extends BasePage
EOD; EOD;
} }
public function navlinks(Link $link, string $desc, bool $active): ?string public function navlinks(Link $link, HTMLElement|string $desc, bool $active): ?string
{ {
$html = null; $html = null;
if ($active) { if ($active) {

View File

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