From e1eb55024b67793e62e93696cffbd22ead855729 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 12 Nov 2018 16:18:09 +0100 Subject: corner-menu --- app/class/controllerconnect.php | 2 +- app/view/templates/edittopbar.php | 10 +++--- app/view/templates/home.php | 21 +++--------- app/view/templates/hometopbar.php | 36 ++++++++++++++++++++ app/view/templates/navart.php | 71 +++++++++++++++++++++++++++++---------- assets/css/edit.css | 23 ++++++++++--- assets/css/home.css | 38 +++++++++++++++++++++ 7 files changed, 157 insertions(+), 44 deletions(-) create mode 100644 app/view/templates/hometopbar.php diff --git a/app/class/controllerconnect.php b/app/class/controllerconnect.php index da3c96f..b8dea88 100644 --- a/app/class/controllerconnect.php +++ b/app/class/controllerconnect.php @@ -37,7 +37,7 @@ class Controllerconnect extends Controller $this->usermanager->writesession($this->user); } if (!empty($id)) { - $this->routedirect('artedit', ['art' => $id]); + $this->routedirect('artread/', ['art' => $id]); } else { $this->routedirect('backrouter'); } diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php index b97db12..5090081 100644 --- a/app/view/templates/edittopbar.php +++ b/app/view/templates/edittopbar.php @@ -2,7 +2,9 @@
- + + ⏏ + @@ -13,10 +15,10 @@ + - 🏠 - πŸ‘ - ΒΆ + πŸ‘ + ⁋ id() ?> diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 5c3a007..b5b9f67 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -8,25 +8,12 @@ - insert('navback', ['user' => $user]) ?> + insert('hometopbar', ['user' => $user]) ?> canedit()) { ?>
-
- - - - - - - - - -
- -
@@ -82,9 +69,9 @@ ✏ πŸ‘ - πŸ—‘ - ΒΆ - tag('sort') ?> + βœ– + ⁋ + tag('sort') ?> description() ?> linkto('sort') ?> linkfrom('sort') ?> diff --git a/app/view/templates/hometopbar.php b/app/view/templates/hometopbar.php new file mode 100644 index 0000000..0640119 --- /dev/null +++ b/app/view/templates/hometopbar.php @@ -0,0 +1,36 @@ +
+ +isvisitor()) { ?> + + +
+ + +
+ + + + +
+ +
+ + +User level : level() ?> + + + + +canedit()) { ?> + + + +| media +| admin + + + + + + +
\ No newline at end of file diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index 9ce932d..a98eed6 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -1,6 +1,9 @@ -