From 13acdbd444b0ae26e83ab8cf62d60a7f59268545 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 4 Dec 2018 13:55:04 +0100 Subject: admin panel --- app/view/templates/admin.php | 78 +++++++++++++++++++++++++++++++++++++++ app/view/templates/backtopbar.php | 45 ++++++++++++++++++++++ app/view/templates/font.php | 6 ++- app/view/templates/home.php | 5 ++- app/view/templates/hometopbar.php | 36 ------------------ 5 files changed, 131 insertions(+), 39 deletions(-) create mode 100644 app/view/templates/admin.php create mode 100644 app/view/templates/backtopbar.php delete mode 100644 app/view/templates/hometopbar.php (limited to 'app/view') diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php new file mode 100644 index 0000000..54bbedd --- /dev/null +++ b/app/view/templates/admin.php @@ -0,0 +1,78 @@ +layout('layout', ['title' => 'admin', 'css' => $css . 'home.css']) ?> + + +start('page') ?> + + + + insert('backtopbar', ['user' => $user]) ?> + + +
+ +
+ +

Passwords

+ + + + + +

Page creation

+ + + + + + + + + +

Editing

+ + + + + + > + + + + + + + + +
+ + + + +
+ + +stop('page') ?> \ No newline at end of file diff --git a/app/view/templates/backtopbar.php b/app/view/templates/backtopbar.php new file mode 100644 index 0000000..1f4a246 --- /dev/null +++ b/app/view/templates/backtopbar.php @@ -0,0 +1,45 @@ +
+ +isvisitor()) { ?> + + +
+ + +
+ + + + +
+ +
+ + +User level : level() ?> + + + + +iseditor()) { ?> + + + +home +isadmin()) { +?> +font +admin + + + + + + + + + +
\ No newline at end of file diff --git a/app/view/templates/font.php b/app/view/templates/font.php index e294031..1bd64a2 100644 --- a/app/view/templates/font.php +++ b/app/view/templates/font.php @@ -1,9 +1,13 @@ -layout('layout', ['title' => 'font', 'css' => $css . 'font.css']) ?> +layout('layout', ['title' => 'font', 'css' => $css . 'home.css']) ?> start('page') ?> + + insert('backtopbar', ['user' => $user]) ?> + +
diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 0d09238..24e378b 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -8,7 +8,7 @@ - insert('hometopbar', ['user' => $user]) ?> + insert('backtopbar', ['user' => $user]) ?> iseditor()) { ?> @@ -28,7 +28,7 @@

Articles

-
+
@@ -40,6 +40,7 @@ + diff --git a/app/view/templates/hometopbar.php b/app/view/templates/hometopbar.php deleted file mode 100644 index ff0b5f8..0000000 --- a/app/view/templates/hometopbar.php +++ /dev/null @@ -1,36 +0,0 @@ -
- -isvisitor()) { ?> - - - - - - - - - - -
- -
- - -User level : level() ?> - - - - -iseditor()) { ?> - - - -| media -| admin - - - - - - -
\ No newline at end of file -- cgit v1.2.3