[view] ViewImage -> ViewPost

This commit is contained in:
Shish 2023-12-31 01:20:36 +00:00
parent a00b522f34
commit b67fca51f5
9 changed files with 10 additions and 10 deletions

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Shimmie2; namespace Shimmie2;
class ViewImageInfo extends ExtensionInfo class ViewPostInfo extends ExtensionInfo
{ {
public const KEY = "view"; public const KEY = "view";

View file

@ -13,9 +13,9 @@ use function MicroHTML\TR;
use function MicroHTML\TH; use function MicroHTML\TH;
use function MicroHTML\TD; use function MicroHTML\TD;
class ViewImage extends Extension class ViewPost extends Extension
{ {
/** @var ViewImageTheme */ /** @var ViewPostTheme */
protected Themelet $theme; protected Themelet $theme;
public function onPageRequest(PageRequestEvent $event) public function onPageRequest(PageRequestEvent $event)

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Shimmie2; namespace Shimmie2;
class ViewImageTest extends ShimmiePHPUnitTestCase class ViewPostTest extends ShimmiePHPUnitTestCase
{ {
public function setUp(): void public function setUp(): void
{ {

View file

@ -8,7 +8,7 @@ use MicroHTML\HTMLElement;
use function MicroHTML\{A, joinHTML, TABLE, TR, TD, INPUT, emptyHTML}; 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) public function display_meta_headers(Image $image)
{ {

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Shimmie2; namespace Shimmie2;
class CustomViewImageTheme extends ViewImageTheme class CustomViewPostTheme extends ViewPostTheme
{ {
public function display_page(Image $image, $editor_parts) public function display_page(Image $image, $editor_parts)
{ {

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Shimmie2; namespace Shimmie2;
class CustomViewImageTheme extends ViewImageTheme class CustomViewPostTheme extends ViewPostTheme
{ {
public function display_page(Image $image, $editor_parts) public function display_page(Image $image, $editor_parts)
{ {

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Shimmie2; namespace Shimmie2;
class CustomViewImageTheme extends ViewImageTheme class CustomViewPostTheme extends ViewPostTheme
{ {
public function display_page(Image $image, $editor_parts) public function display_page(Image $image, $editor_parts)
{ {

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Shimmie2; namespace Shimmie2;
class CustomViewImageTheme extends ViewImageTheme class CustomViewPostTheme extends ViewPostTheme
{ {
public function display_page(Image $image, $editor_parts) public function display_page(Image $image, $editor_parts)
{ {

View file

@ -8,7 +8,7 @@ use MicroHTML\HTMLElement;
use function MicroHTML\{TR, TH, TD, emptyHTML, rawHTML, joinHTML, DIV, TABLE, INPUT, A}; 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 // override to make info box always in edit mode
protected function build_info(Image $image, $editor_parts): HTMLElement protected function build_info(Image $image, $editor_parts): HTMLElement