From 11233711f4e16957fbe6f5c4f4399e269e87f68f Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sat, 17 Aug 2019 19:49:51 +0200 Subject: footer --- app/class/controllerhome.php | 1 + app/view/templates/backtopbar.php | 4 ++-- app/view/templates/footer.php | 5 +++++ app/view/templates/home.php | 3 +++ app/view/templates/media.php | 2 +- composer.json | 2 +- 6 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 app/view/templates/footer.php diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php index 166ada9..e177272 100644 --- a/app/class/controllerhome.php +++ b/app/class/controllerhome.php @@ -33,6 +33,7 @@ class Controllerhome extends Controller $columns = $this->modelhome->setcolumns($this->user->columns()); $vars = ['user' => $this->user, 'table2' => $table2, 'opt' => $this->opt, 'columns' => $columns]; + $vars['footer'] = ['version' => getversion(), 'total' => count($table), 'database' => Config::arttable()]; if(isset($_POST['query']) && $this->user->iseditor()) { $datas = array_merge($_POST, $_SESSION['opt']); diff --git a/app/view/templates/backtopbar.php b/app/view/templates/backtopbar.php index 06ec1fe..91ccd89 100644 --- a/app/view/templates/backtopbar.php +++ b/app/view/templates/backtopbar.php @@ -1,4 +1,4 @@ -
+
@@ -66,4 +66,4 @@ if($user->isadmin()) { -
\ No newline at end of file + \ No newline at end of file diff --git a/app/view/templates/footer.php b/app/view/templates/footer.php new file mode 100644 index 0000000..2960f6a --- /dev/null +++ b/app/view/templates/footer.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/app/view/templates/home.php b/app/view/templates/home.php index c226a9d..bf00301 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -199,6 +199,9 @@ +insert('footer', ['footer' => $footer]) ?> + + diff --git a/app/view/templates/media.php b/app/view/templates/media.php index cea51fb..b13c58a 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -99,7 +99,7 @@ treecount($dirlist, 'media', 0, 'media', $dir, $opt);