diff --git a/Theme/Backend/Components/InlinePreview/BaseView.php b/Theme/Backend/Components/InlinePreview/BaseView.php index edc0957..05ab21a 100755 --- a/Theme/Backend/Components/InlinePreview/BaseView.php +++ b/Theme/Backend/Components/InlinePreview/BaseView.php @@ -38,6 +38,14 @@ class BaseView extends View */ protected string $id = ''; + /** + * Form id + * + * @var string + * @since 1.0.0 + */ + protected string $form = ''; + /** * Virtual path of the media file * @@ -76,10 +84,11 @@ class BaseView extends View */ public function render(...$data) : string { - $this->id = $data[0]; - $this->name = $data[1]; - $this->virtualPath = $data[2] ?? '/'; - $this->isRequired = $data[3] ?? false; + $this->form = $data[0]; + $this->id = $data[1]; + $this->name = $data[2]; + $this->virtualPath = $data[3] ?? '/'; + $this->isRequired = $data[4] ?? false; return parent::render(); } diff --git a/Theme/Backend/Components/InlinePreview/inline-preview.tpl.php b/Theme/Backend/Components/InlinePreview/inline-preview.tpl.php index d27a4c7..de16e03 100755 --- a/Theme/Backend/Components/InlinePreview/inline-preview.tpl.php +++ b/Theme/Backend/Components/InlinePreview/inline-preview.tpl.php @@ -1,10 +1,10 @@
| Name | Extension | ||||||||||||||||||||||||
| @@ -40,8 +40,8 @@ - | = $this->printHtml($value->name); ?> | = $this->printHtml($value->extension); ?> - | = $this->printHtml($value->size); ?> + | = $value->size; ?> | = $this->printHtml($value->createdBy->name1); ?> | = $this->printHtml($value->createdAt->format('Y-m-d H:i:s')); ?>
diff --git a/Theme/Backend/media-single.tpl.php b/Theme/Backend/media-single.tpl.php
index d2b21f0..1cc33aa 100755
--- a/Theme/Backend/media-single.tpl.php
+++ b/Theme/Backend/media-single.tpl.php
@@ -44,7 +44,7 @@ echo $this->getData('nav')->render();
|