Skip to content

Commit

Permalink
fix themes with navlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Aug 18, 2023
1 parent 01edf7c commit 1cef09f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion themes/danbooru/page.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace Shimmie2;

use MicroHTML\HTMLElement;

/**
* Name: Danbooru Theme
* Author: Bzchan <[email protected]>
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion themes/danbooru2/page.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace Shimmie2;

use MicroHTML\HTMLElement;

/**
* Name: Danbooru 2 Theme
* Author: Bzchan <[email protected]>, updated by Daniel Oaks <[email protected]>
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion themes/lite/page.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace Shimmie2;

use MicroHTML\HTMLElement;

/**
* Name: Lite Theme
* Author: Zach Hall <[email protected]>
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1cef09f

Please sign in to comment.