From fc56b60be55b4340d647d2017fdeb24b81eb84b6 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 4 Dec 2018 22:12:34 +0100 Subject: showeditmenu --- app/class/controllerart.php | 2 +- app/view/templates/edit.php | 2 +- app/view/templates/editrightbar.php | 4 ++-- app/view/templates/edittopbar.php | 25 ++++++++++++++++++++++++- app/view/templates/navart.php | 4 ++-- 5 files changed, 30 insertions(+), 7 deletions(-) (limited to 'app') diff --git a/app/class/controllerart.php b/app/class/controllerart.php index f64cda8..be82e6f 100644 --- a/app/class/controllerart.php +++ b/app/class/controllerart.php @@ -102,7 +102,7 @@ class Controllerart extends Controller $this->art->addaffcount(); $this->artmanager->update($this->art); } - $data = array_merge($alerts, $page, ['art' => $this->art, 'artexist' => $artexist, 'canread' => $canread, 'readernav' => true]); + $data = array_merge($alerts, $page, ['art' => $this->art, 'artexist' => $artexist, 'canread' => $canread, 'readernav' => Config::showeditmenu()]); $this->showtemplate('read', $data); diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 346d5bb..18940ff 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -14,7 +14,7 @@ - insert('edittopbar', ['art' => $art]) ?> + insert('edittopbar', ['art' => $art, 'user' => $user]) ?>
diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php index 9572678..26976e8 100644 --- a/app/view/templates/editrightbar.php +++ b/app/view/templates/editrightbar.php @@ -10,7 +10,7 @@ -
  • id() ? '★' : '✎' ?>
  • +
  • id() ? '➤' : '✎' ?>
  • '; foreach ($idlist as $id) { if($id === $art->id()) { - echo '
  • ★ '.$id.'
  • '; + echo '
  • ➤ '.$id.'
  • '; } else { ?>
  • diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php index 6d90932..a1aba01 100644 --- a/app/view/templates/edittopbar.php +++ b/app/view/templates/edittopbar.php @@ -1,9 +1,12 @@
    +
    + + - + @@ -27,4 +30,24 @@ + + + + + iseditor()) { ?> + + isadmin()) { + ?> + font + admin + + + + + +
    \ No newline at end of file diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index 8e7c40b..9d9f3ed 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -107,7 +107,7 @@ iseditor()) { ?>
  • - Media + Media
  • @@ -115,7 +115,7 @@ isadmin()) { ?>
  • - Admin + Admin
  • -- cgit v1.2.3