diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-10-28 19:56:27 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-10-28 19:56:27 +0100 |
commit | e17392e46259e6f2e012017987cf7c31c171488f (patch) | |
tree | 72b61b63e32819e81433e8df6f14dc92b0e3a604 /w/view/templates/read.php | |
parent | a91c916248f967da2d4218b575e665242b7c975b (diff) | |
download | wcms-e17392e46259e6f2e012017987cf7c31c171488f.tar.gz wcms-e17392e46259e6f2e012017987cf7c31c171488f.zip |
abstract config NWY
Diffstat (limited to 'w/view/templates/read.php')
-rw-r--r-- | w/view/templates/read.php | 55 |
1 files changed, 41 insertions, 14 deletions
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 @@ -<html> +<?php $this->layout('layout', ['title' => $art->title()]) ?> -<head> - <meta charset="utf8" /> - <meta name="description" content="<?= $art->description() ?>" /> - <meta name="viewport" content="width=device-width" /> - <link rel="shortcut icon" href="./media/logo.png" type="image/x-icon"> - <link href="<?= $globalcss ?>" rel="stylesheet" /> - <?= $edit == 0 ? '<link href="' . $globalcss . '" rel="stylesheet" />' : '<link href="./rsc/css/styleedit.css" rel="stylesheet" />' ?> - <title><?= $edit == 1 ? '✏' : '' ?> <?= $art->title() ?></title> - <script src="./rsc/js/app.js"></script> -</head> - -<?= $html ?> -</html>
\ No newline at end of file + + + + + +<?php $this->start('page') ?> + + <body> + + + + <?php $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> + + + + <?php + + if($artexist) { + + if($display) { + $this->insert('readart', ['art' => $art]); + } else { + echo '<h1>You dont have enought rights to see this article</h1>'; + } + + } else { + echo '<h1>This article does not exist yet</h1>'; + if ($cancreate) { + $this->insert('readcreate', ['id' => $art->id()]); + } + } + + + + ?> + + + </body> + +<?php $this->stop() ?>
\ No newline at end of file |