fix themes with navlinks
This commit is contained in:
@@ -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) {
|
||||||
|
@@ -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) {
|
||||||
|
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user