From 93c827446737252c36d6d9daee7e2e7a55eb911b Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 9 Aug 2019 15:58:37 +0200 Subject: New Feature : Alert pages have more options --- app/view/templates/read.php | 56 ++++++++------------------------------------- 1 file changed, 9 insertions(+), 47 deletions(-) (limited to 'app/view/templates/read.php') diff --git a/app/view/templates/read.php b/app/view/templates/read.php index f8201cc..54b137e 100644 --- a/app/view/templates/read.php +++ b/app/view/templates/read.php @@ -3,69 +3,31 @@ start('head'); -if ($artexist) { - if ($canread) { - echo $head; - } else { - $this->insert('arthead', ['title' => $art->title(), 'description' => $art->description()]); - } -} else { - $this->insert('arthead', ['title' => $art->id(), 'description' => $alertnotexist]); -} - - +echo $head; $this->stop(); ?> - - - - - - start('page') ?> - - - + - insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist, 'canedit' => $canedit]); - } - ?> - - insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist, 'canedit' => $canedit]); + } - if ($canread) { - echo $body; - } else { - echo '

'.$alertprivate.'

'; - } - } else { - if(!empty(Config::existnot())) { - echo '

' . Config::existnot() . '

'; - } - if ($user->iseditor()) { - ?> - ⭐ Create - - ?> - - + stop() ?> \ No newline at end of file -- cgit v1.2.3