diff options
Diffstat (limited to 'app/view/templates/read.php')
-rw-r--r-- | app/view/templates/read.php | 56 |
1 files changed, 9 insertions, 47 deletions
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 @@ <?php $this->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(); ?> - - - - - - <?php $this->start('page') ?> - <body> - - +<body> - <?php - if ($readernav) { - $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist, 'canedit' => $canedit]); - } - ?> - - <?php - - if ($artexist) { + <?php + if ($readernav) { + $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist, 'canedit' => $canedit]); + } - if ($canread) { - echo $body; - } else { - echo '<h1>'.$alertprivate.'</h1>'; - } - } else { - if(!empty(Config::existnot())) { - echo '<h1>' . Config::existnot() . '</h1>'; - } - if ($user->iseditor()) { - ?> - <a href="<?= $this->uart('artadd', $art->id()) ?>">⭐ Create</a> - <?php - } - } + echo $body; + ?> - ?> - - </body> +</body> <?php $this->stop() ?>
\ No newline at end of file |