diff --git a/ext/view/info.php b/ext/view/info.php index 27602aa0..e6cbd218 100644 --- a/ext/view/info.php +++ b/ext/view/info.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Shimmie2; -class ViewImageInfo extends ExtensionInfo +class ViewPostInfo extends ExtensionInfo { public const KEY = "view"; diff --git a/ext/view/main.php b/ext/view/main.php index fd9852d6..fbed253c 100644 --- a/ext/view/main.php +++ b/ext/view/main.php @@ -13,9 +13,9 @@ use function MicroHTML\TR; use function MicroHTML\TH; use function MicroHTML\TD; -class ViewImage extends Extension +class ViewPost extends Extension { - /** @var ViewImageTheme */ + /** @var ViewPostTheme */ protected Themelet $theme; public function onPageRequest(PageRequestEvent $event) diff --git a/ext/view/test.php b/ext/view/test.php index 32027052..fc6898a0 100644 --- a/ext/view/test.php +++ b/ext/view/test.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Shimmie2; -class ViewImageTest extends ShimmiePHPUnitTestCase +class ViewPostTest extends ShimmiePHPUnitTestCase { public function setUp(): void { diff --git a/ext/view/theme.php b/ext/view/theme.php index 655bc809..e14d52ba 100644 --- a/ext/view/theme.php +++ b/ext/view/theme.php @@ -8,7 +8,7 @@ use MicroHTML\HTMLElement; use function MicroHTML\{A, joinHTML, TABLE, TR, TD, INPUT, emptyHTML}; -class ViewImageTheme extends Themelet +class ViewPostTheme extends Themelet { public function display_meta_headers(Image $image) { diff --git a/themes/danbooru/view.theme.php b/themes/danbooru/view.theme.php index 28facb93..121a93dc 100644 --- a/themes/danbooru/view.theme.php +++ b/themes/danbooru/view.theme.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Shimmie2; -class CustomViewImageTheme extends ViewImageTheme +class CustomViewPostTheme extends ViewPostTheme { public function display_page(Image $image, $editor_parts) { diff --git a/themes/danbooru2/view.theme.php b/themes/danbooru2/view.theme.php index 99e3c860..febb71f4 100644 --- a/themes/danbooru2/view.theme.php +++ b/themes/danbooru2/view.theme.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Shimmie2; -class CustomViewImageTheme extends ViewImageTheme +class CustomViewPostTheme extends ViewPostTheme { public function display_page(Image $image, $editor_parts) { diff --git a/themes/futaba/view.theme.php b/themes/futaba/view.theme.php index eb40ad1e..7f4a9f19 100644 --- a/themes/futaba/view.theme.php +++ b/themes/futaba/view.theme.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Shimmie2; -class CustomViewImageTheme extends ViewImageTheme +class CustomViewPostTheme extends ViewPostTheme { public function display_page(Image $image, $editor_parts) { diff --git a/themes/lite/view.theme.php b/themes/lite/view.theme.php index 02d55c96..7b0f018b 100644 --- a/themes/lite/view.theme.php +++ b/themes/lite/view.theme.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace Shimmie2; -class CustomViewImageTheme extends ViewImageTheme +class CustomViewPostTheme extends ViewPostTheme { public function display_page(Image $image, $editor_parts) { diff --git a/themes/rule34v2/view.theme.php b/themes/rule34v2/view.theme.php index 85a48fb6..01482187 100644 --- a/themes/rule34v2/view.theme.php +++ b/themes/rule34v2/view.theme.php @@ -8,7 +8,7 @@ use MicroHTML\HTMLElement; use function MicroHTML\{TR, TH, TD, emptyHTML, rawHTML, joinHTML, DIV, TABLE, INPUT, A}; -class CustomViewImageTheme extends ViewImageTheme +class CustomViewPostTheme extends ViewPostTheme { // override to make info box always in edit mode protected function build_info(Image $image, $editor_parts): HTMLElement