[view] ViewImage -> ViewPost
This commit is contained in:
parent
a00b522f34
commit
b67fca51f5
9 changed files with 10 additions and 10 deletions
|
@ -4,7 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Shimmie2;
|
||||
|
||||
class ViewImageInfo extends ExtensionInfo
|
||||
class ViewPostInfo extends ExtensionInfo
|
||||
{
|
||||
public const KEY = "view";
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -4,7 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Shimmie2;
|
||||
|
||||
class ViewImageTest extends ShimmiePHPUnitTestCase
|
||||
class ViewPostTest extends ShimmiePHPUnitTestCase
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue