fix themes with navlinks
This commit is contained in:
parent
01edf7c08b
commit
1cef09f39e
3 changed files with 9 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Reference in a new issue