diff options
Diffstat (limited to 'app/view/templates')
-rw-r--r-- | app/view/templates/home.php | 2 | ||||
-rw-r--r-- | app/view/templates/hometopbar.php | 2 | ||||
-rw-r--r-- | app/view/templates/media.php | 5 | ||||
-rw-r--r-- | app/view/templates/navart.php | 4 | ||||
-rw-r--r-- | app/view/templates/navback.php | 2 | ||||
-rw-r--r-- | app/view/templates/read.php | 2 |
6 files changed, 7 insertions, 10 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php index b5b9f67..a11f9e3 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -10,7 +10,7 @@ <?php $this->insert('hometopbar', ['user' => $user]) ?> -<?php if($user->canedit()) { ?> +<?php if($user->iseditor()) { ?> <section> diff --git a/app/view/templates/hometopbar.php b/app/view/templates/hometopbar.php index 0640119..ff0b5f8 100644 --- a/app/view/templates/hometopbar.php +++ b/app/view/templates/hometopbar.php @@ -21,7 +21,7 @@ User level : <?= $user->level() ?> <?php } ?> -<?php if($user->canedit()) { ?> +<?php if($user->iseditor()) { ?> <span> diff --git a/app/view/templates/media.php b/app/view/templates/media.php index 8b189d5..31e3ad0 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -1,4 +1 @@ -<?php $this->layout('base', ['title' => 'Media']) ?> - -<h1>Media</h1> -<p>Hello, <?=$this->e($interface)?></p>
\ No newline at end of file +<?php $this->layout('layout', ['title' => 'Media']) ?> diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index a98eed6..d3baef5 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -89,7 +89,7 @@ <?php } ?> -<?php if($user->canedit() && $artexist) { ?> +<?php if($user->iseditor() && $artexist) { ?> <li class="drop"> <a class="button" href="<?= $this->uart('artread/', $art->id()) ?>" target="_blank">display</a> @@ -101,7 +101,7 @@ <?php } ?> -<?php if ($user->canedit()) { ?> +<?php if ($user->iseditor()) { ?> <li class="drop"> <a class="button" href="?aff=media" >Media</a> diff --git a/app/view/templates/navback.php b/app/view/templates/navback.php index c738ae2..8218897 100644 --- a/app/view/templates/navback.php +++ b/app/view/templates/navback.php @@ -31,7 +31,7 @@ -<?php if ($user->canedit()) { ?> +<?php if ($user->iseditor()) { ?> <li> <a class="button" href="?aff=media" >Media</a> diff --git a/app/view/templates/read.php b/app/view/templates/read.php index 1911cf6..4e18cb3 100644 --- a/app/view/templates/read.php +++ b/app/view/templates/read.php @@ -52,7 +52,7 @@ $this->stop(); } else { echo '<h1>' . $alertnotexist . '</h1>'; - if ($cancreate) { + if ($user->iseditor()) { ?> <a href="<?= $this->uart('artadd', $art->id()) ?>">⭐ Create</a> <?php |