From e17392e46259e6f2e012017987cf7c31c171488f Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 28 Oct 2018 19:56:27 +0100 Subject: abstract config NWY --- w/view/templates/read.php | 55 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 14 deletions(-) (limited to 'w/view/templates/read.php') diff --git a/w/view/templates/read.php b/w/view/templates/read.php index 4d9a58f..5c544b3 100644 --- a/w/view/templates/read.php +++ b/w/view/templates/read.php @@ -1,20 +1,47 @@ - +layout('layout', ['title' => $art->title()]) ?> - - - - - - - ' : '' ?> - <?= $edit == 1 ? '✏' : '' ?> <?= $art->title() ?> - - - - - \ No newline at end of file + + + + + +start('page') ?> + + + + + + insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> + + + + insert('readart', ['art' => $art]); + } else { + echo '

You dont have enought rights to see this article

'; + } + + } else { + echo '

This article does not exist yet

'; + if ($cancreate) { + $this->insert('readcreate', ['id' => $art->id()]); + } + } + + + + ?> + + + + +stop() ?> \ No newline at end of file -- cgit v1.2.3