From d7f3313ff4514e38c9f53439cd1a1287e56e45f7 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 17:19:26 +0100 Subject: reboot folder --- app/view/templates/read.php | 67 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 app/view/templates/read.php (limited to 'app/view/templates/read.php') 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 @@ +layout('readerlayout') ?> + +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(); +?> + + + + + + + + + +start('page') ?> + + + + + + insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]); + } + ?> + + + + '.$alertprivate.''; + } + + } else { + echo '

' . $alertnotexist . '

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