diff --git a/themes/danbooru/page.class.php b/themes/danbooru/page.class.php index 0f5c338b2..1de502d7e 100644 --- a/themes/danbooru/page.class.php +++ b/themes/danbooru/page.class.php @@ -52,7 +52,7 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ class DanbooruPage extends Page { - public function body_html(): HTMLElement + protected function body_html(): HTMLElement { global $config; @@ -127,7 +127,7 @@ public function body_html(): HTMLElement ); } - public function navlinks(Link $link, HTMLElement|string $desc, bool $active): HTMLElement + private function navlinks(Link $link, HTMLElement|string $desc, bool $active): HTMLElement { return A([ "class" => $active ? "current-page" : "tab", diff --git a/themes/danbooru2/page.class.php b/themes/danbooru2/page.class.php index 33b4bc269..fbdf94d91 100644 --- a/themes/danbooru2/page.class.php +++ b/themes/danbooru2/page.class.php @@ -53,7 +53,7 @@ class Danbooru2Page extends Page { - public function body_html(): HTMLElement + protected function body_html(): HTMLElement { global $config; @@ -135,7 +135,7 @@ public function body_html(): HTMLElement ); } - public function navlinks(Link $link, HTMLElement|string $desc, bool $active): HTMLElement + private function navlinks(Link $link, HTMLElement|string $desc, bool $active): HTMLElement { return A([ "class" => $active ? "current-page" : "tab", diff --git a/themes/futaba/page.class.php b/themes/futaba/page.class.php index 4b389de08..9c348e93f 100644 --- a/themes/futaba/page.class.php +++ b/themes/futaba/page.class.php @@ -10,7 +10,7 @@ class FutabaPage extends Page { - public function body_html(): HTMLElement + protected function body_html(): HTMLElement { $left_block_html = []; $main_block_html = []; diff --git a/themes/lite/page.class.php b/themes/lite/page.class.php index 87af33030..4522aff9d 100644 --- a/themes/lite/page.class.php +++ b/themes/lite/page.class.php @@ -19,7 +19,7 @@ class LitePage extends Page { - public function body_html(): HTMLElement + protected function body_html(): HTMLElement { global $config; @@ -116,7 +116,7 @@ protected function block_html(Block $block, bool $hidable = false): HTMLElement return $html; } - public function navlinks(Link $link, HTMLElement|string $desc, bool $active): HTMLElement + private function navlinks(Link $link, HTMLElement|string $desc, bool $active): HTMLElement { return A([ "class" => $active ? "tab-selected" : "tab", diff --git a/themes/warm/page.class.php b/themes/warm/page.class.php index 9a5a70e6e..12066c45d 100644 --- a/themes/warm/page.class.php +++ b/themes/warm/page.class.php @@ -10,7 +10,7 @@ class WarmPage extends Page { - public function body_html(): HTMLElement + protected function body_html(): HTMLElement { global $config;