diff --git a/Theme/Backend/editor.tpl.php b/Theme/Backend/editor.tpl.php index a303fa7..2e50262 100644 --- a/Theme/Backend/editor.tpl.php +++ b/Theme/Backend/editor.tpl.php @@ -17,12 +17,11 @@ * @var \phpOMS\Views\View $this */ -$doc = $this->getData('doc'); - -echo $this->getData('nav')->render(); ?> -
+$doc = $this->getData('doc') ?? null; +?> +
- +
@@ -47,19 +46,19 @@ echo $this->getData('nav')->render(); ?>
- +
- getContent(); ?> + getContent() : ''; ?>
diff --git a/Theme/backend/Lang/en.lang.php b/Theme/backend/Lang/en.lang.php index 4059600..44837dd 100644 --- a/Theme/backend/Lang/en.lang.php +++ b/Theme/backend/Lang/en.lang.php @@ -26,4 +26,5 @@ return ['Editor' => [ 'Preview' => 'Preview', 'Start' => 'Start', 'Text' => 'Text', + 'Title' => 'Title', ]];