diff options
Diffstat (limited to 'app/view/templates/read.php')
-rw-r--r-- | app/view/templates/read.php | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/app/view/templates/read.php b/app/view/templates/read.php new file mode 100644 index 0000000..35b1e7d --- /dev/null +++ b/app/view/templates/read.php @@ -0,0 +1,67 @@ +<?php $this->layout('readerlayout') ?> + +<?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]); +} + + + +$this->stop(); +?> + + + + + + + + + +<?php $this->start('page') ?> + + <body> + + + + <?php + if ($readernav) { + $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]); + } + ?> + + + + <?php + + if ($artexist) { + + if ($canread) { + echo $body; + } else { + echo '<h1>'.$alertprivate.'</h1>'; + } + + } else { + echo '<h1>' . $alertnotexist . '</h1>'; + if ($cancreate) { + $this->insert('readcreate', ['id' => $art->id()]); + } + } + + + + ?> + + + </body> + +<?php $this->stop() ?>
\ No newline at end of file |