diff --git a/Theme/Backend/Components/Compound/BaseView.php b/Theme/Backend/Components/Compound/BaseView.php new file mode 100644 index 0000000..ca01c93 --- /dev/null +++ b/Theme/Backend/Components/Compound/BaseView.php @@ -0,0 +1,82 @@ +setTemplate('/Modules/Editor/Theme/Backend/Components/Compound/compound'); + + $this->data['editor'] = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($l11n, $request, $response); + } + + /** + * {@inheritdoc} + */ + public function render(mixed ...$data) : string + { + /** @var array{0:string, 1?:string, 2?:string} $data */ + $this->form = $data[0]; + $this->virtualPath = $data[1] ?? $this->virtualPath; + $this->files = $data[2] ?? $this->files; + + return parent::render(); + } +} diff --git a/Theme/Backend/Components/Compound/compound.tpl.php b/Theme/Backend/Components/Compound/compound.tpl.php new file mode 100644 index 0000000..36db618 --- /dev/null +++ b/Theme/Backend/Components/Compound/compound.tpl.php @@ -0,0 +1,50 @@ +