diff options
Diffstat (limited to 'w/view/templates/edit.php')
-rw-r--r-- | w/view/templates/edit.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/w/view/templates/edit.php b/w/view/templates/edit.php new file mode 100644 index 0000000..39c2104 --- /dev/null +++ b/w/view/templates/edit.php @@ -0,0 +1,47 @@ +<?php $this->layout('layout', ['title' => '✏ '.$art->title()]) ?> + + + + + +<?php $this->start('customhead') ?> + <script src="./rsc/js/app.js"></script> +<?php $this->stop() ?> + + + + + + +<?php $this->start('page') ?> + +<body> + + <?php $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> + + +<form action="?id=<?= $art->id() ?>&action=update" method="post" id="artedit"> + + + + <?php $this->insert('edittopbar', ['config' => $config, 'art' => $art]) ?> + <?php $this->insert('editsidebar', ['config' => $config, 'art' => $art]) ?> + + +<style>textarea{font-size: <?= Config::fontsize() ?>px}</style> + + <?php + $tablist = ['section' => $art->md(), 'css' => $art->css(), 'header' => $art->header(), 'nav' => $art->nav(), 'aside' => $art->aside(), 'footer' => $art->footer(), 'html' => $art->html(), 'javascript' => $art->javascript()]; + $this->insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface()]) + ?> + + + + +<input type="hidden" name="id" value="<?= $art->id() ?>"> + +</form> + +</body> + +<?php $this->stop() ?>
\ No newline at end of file |