diff options
Diffstat (limited to 'app/view/templates/edit.php')
-rw-r--r-- | app/view/templates/edit.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 22dda20..dfb4dec 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -1,4 +1,6 @@ -<?php $this->layout('layout', ['title' => '✏ '.$page->title(), 'stylesheets' => [$css . 'edit.css'], 'favicon' => $page->favicon()]) ?> +<?php + +$this->layout('layout', ['title' => '✏ '.$page->title(), 'stylesheets' => [$css . 'edit.css'], 'favicon' => $page->favicon()]) ?> @@ -26,10 +28,14 @@ </main> +<?php if(!Wcms\Config::disablejavascript()) { ?> + <script> const pageid = '<?= $page->id() ?>'; let pagetitle = '<?= $page->title() ?>'; </script> <script src="<?= Wcms\Model::jspath() ?>edit.bundle.js"></script> +<?php } ?> + <?php $this->stop('page') ?>
\ No newline at end of file |