diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-10-25 20:25:05 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-10-25 20:25:05 +0200 |
commit | a91c916248f967da2d4218b575e665242b7c975b (patch) | |
tree | 3c767e9b7b62161253aef2d93030f4b38fd47d49 /w/view | |
parent | 7b2e48276b2a3ceff83c906d38077f8d0479c3df (diff) | |
download | wcms-a91c916248f967da2d4218b575e665242b7c975b.tar.gz wcms-a91c916248f967da2d4218b575e665242b7c975b.zip |
phoenixreborn\'NWY
Diffstat (limited to 'w/view')
-rw-r--r-- | w/view/templates/base.php | 10 | ||||
-rw-r--r-- | w/view/templates/media.php | 4 | ||||
-rw-r--r-- | w/view/templates/nav.php | 42 | ||||
-rw-r--r-- | w/view/templates/read.php | 20 | ||||
-rw-r--r-- | w/view/templates/reader.php | 38 |
5 files changed, 114 insertions, 0 deletions
diff --git a/w/view/templates/base.php b/w/view/templates/base.php new file mode 100644 index 0000000..aaca8e1 --- /dev/null +++ b/w/view/templates/base.php @@ -0,0 +1,10 @@ +<html> +<head> + <title><?=$this->e($title)?></title> +</head> +<body> + +<?=$this->section('content')?> + +</body> +</html>
\ No newline at end of file diff --git a/w/view/templates/media.php b/w/view/templates/media.php new file mode 100644 index 0000000..8b189d5 --- /dev/null +++ b/w/view/templates/media.php @@ -0,0 +1,4 @@ +<?php $this->layout('base', ['title' => 'Media']) ?> + +<h1>Media</h1> +<p>Hello, <?=$this->e($interface)?></p>
\ No newline at end of file diff --git a/w/view/templates/nav.php b/w/view/templates/nav.php new file mode 100644 index 0000000..e731673 --- /dev/null +++ b/w/view/templates/nav.php @@ -0,0 +1,42 @@ +<div class="menu"> + <?= $this->e($level) ?> + <div id="dropmenu"> + + <a class="button" href="?">home</a> + + <!-- id if level == 0 --> + <form action="./?action=login<?= isset($this->e($id)) ? '&id=' . $this->e($id) : '' ?>" method="post"> + <input type="password" name="pass" id="loginpass" placeholder="password"> + <input type="submit" value="login"> + </form> + + + <!-- id if level > 0 --> + <form action="./?action=logout<?= isset($this->e($id)) ? '&id=' . $this->e($id) : '' ?>" method="post"> + <input type="submit" value="logout"> + </form> + + + <!-- display / edit --> + + + if ($app->session() >= $app::EDITOR && isset($_GET['id']) && $app->exist($_GET['id'])) { + if (isset($_GET['edit']) && $_GET['edit'] == 1) { + echo '<a class="button" href="?id=' . $_GET['id'] . '" target="_blank">display</a>'; + } else { + echo '<a class="button" href="?id=' . $_GET['id'] . '&edit=1" >edit</a>'; + } + } + if ($app->session() >= $app::EDITOR) { + echo '<a class="button" href="?aff=media" >Media</a>'; + echo '<a class="button" href="?aff=record" >Record</a>'; + if ($app->session() >= $app::ADMIN) { + echo '<a class="button" href="?aff=admin" >Admin</a>'; + } + } + + + + +</div> +</dav>
\ No newline at end of file diff --git a/w/view/templates/read.php b/w/view/templates/read.php new file mode 100644 index 0000000..4d9a58f --- /dev/null +++ b/w/view/templates/read.php @@ -0,0 +1,20 @@ +<html> + + + +<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 diff --git a/w/view/templates/reader.php b/w/view/templates/reader.php new file mode 100644 index 0000000..7561ae3 --- /dev/null +++ b/w/view/templates/reader.php @@ -0,0 +1,38 @@ +<html> +<head> + <meta charset="utf8" /> + <meta name="description" content="<?=$this->e($description)?>" /> + <link href="<?=$this->e($id)?>quickcss" rel="stylesheet" /> + <link href="<?=$this->e($id)?>" rel="stylesheet" /> + <title><?=$this->e($title)?></title> + +</head> + +<script> +<?=$this->e($javascript)?> +</script> + +<body> + +<header> +<?=$this->e($header)?> +</header> + +<nav> +<?=$this->e($nav)?> +</nav> + +<aside> +<?=$this->e($aside)?> +</aside> + +<section> +<?=$this->e($section)?> +</section> + +<footer> +<?=$this->e($footer)?> +</footer> + +</body> +</html>
\ No newline at end of file |