aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-01-30 21:15:17 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-30 23:16:26 +0100
commit8ac5a09605992f1e434cb793ceca7497c6f46d23 (patch)
tree091f9879f8f94b849300fef2d1a1238f3881f78e /app/view/templates
parent396a5776cd043e899e4897ec50fc8edc52585512 (diff)
downloadwcms-8ac5a09605992f1e434cb793ceca7497c6f46d23.tar.gz
wcms-8ac5a09605992f1e434cb793ceca7497c6f46d23.zip
feat: editBy to store the current editor of an art
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/edit.php3
-rw-r--r--app/view/templates/layout.php6
2 files changed, 8 insertions, 1 deletions
diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php
index 7c6610a..8d79174 100644
--- a/app/view/templates/edit.php
+++ b/app/view/templates/edit.php
@@ -24,6 +24,9 @@
</main>
+<script>
+ const artid = '<?= $art->id() ?>';
+</script>
<script src="<?= Model::jspath() ?>edit.js"></script>
</body>
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php
index e0b2e1c..b054791 100644
--- a/app/view/templates/layout.php
+++ b/app/view/templates/layout.php
@@ -12,7 +12,11 @@
<?php } ?>
<title><?= $title ?></title>
<link rel="stylesheet" href="<?= $css ?>">
-
+ <script>
+ // global js vars
+ const basepath = '/<?= Config::basepath() ?>/';
+ const jspath = '<?= Model::jspath() ?>';
+ </script>
</head>