From 7b2e48276b2a3ceff83c906d38077f8d0479c3df Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 18 Oct 2018 01:08:46 +0200 Subject: 2.92 new architecture + quickcss class --- w/controller/w.article.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 w/controller/w.article.php (limited to 'w/controller/w.article.php') diff --git a/w/controller/w.article.php b/w/controller/w.article.php new file mode 100644 index 0000000..307caa4 --- /dev/null +++ b/w/controller/w.article.php @@ -0,0 +1,33 @@ +exist($_GET['id'])) { + + $art = $app->get($_GET['id']); + + if (isset($_GET['edit']) and $_GET['edit'] == 1 and $app->session() >= $app::EDITOR) { + echo '
'; + $aff->edit($art, $app, $app->getlister(['id', 'titre']), $config->fontsize(), $app->getlistermedia($app::MEDIA_DIR, 'image')); + //$aff->copy($art, $app->getlister(['id', 'titre'])); + $aff->aside($app); + echo '
'; + } else { + echo '
'; + + + $art->autotaglistupdate($app->taglist($app->getlister(['id', 'titre', 'intro', 'tag']), $art->autotaglist())); + + + $aff->lecture($art, $app); + echo '
'; + + } +} else { + echo 'This article does not exist yet'; + + if ($app->session() >= $app::EDITOR) { + echo '
'; + } + +} + +?> \ No newline at end of file -- cgit v1.2.3