diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-17 19:49:51 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-17 19:49:51 +0200 |
commit | 11233711f4e16957fbe6f5c4f4399e269e87f68f (patch) | |
tree | 74e55889f7deb08871eafcefac61cba0a230f65d | |
parent | 463f06ec02ecc02a70147b6494e23ec93ca74420 (diff) | |
download | wcms-11233711f4e16957fbe6f5c4f4399e269e87f68f.tar.gz wcms-11233711f4e16957fbe6f5c4f4399e269e87f68f.zip |
footer
-rw-r--r-- | app/class/controllerhome.php | 1 | ||||
-rw-r--r-- | app/view/templates/backtopbar.php | 4 | ||||
-rw-r--r-- | app/view/templates/footer.php | 5 | ||||
-rw-r--r-- | app/view/templates/home.php | 3 | ||||
-rw-r--r-- | app/view/templates/media.php | 2 | ||||
-rw-r--r-- | composer.json | 2 |
6 files changed, 13 insertions, 4 deletions
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 @@ -<div id="topbar"> +<header id="topbar"> <span id="search"> <form action="<?= $this->url('search') ?>" method="post"> @@ -66,4 +66,4 @@ if($user->isadmin()) { <?php } ?> -</div>
\ No newline at end of file +</header>
\ 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 @@ +<footer class="hidephone"> + Verson : <?= $footer['version'] ?> + | Database : <?= $footer['database'] ?> + | Pages : <?= $footer['total'] ?> +</footer>
\ 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 @@ <?php } ?> +<?php $this->insert('footer', ['footer' => $footer]) ?> + + </body> 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); <input type="hidden" name="path" value="<?= $dir ?>"> <label for="moveto">Selected medias :</label> <select name="dir" id="moveto" > - <option value="" selected>---select destination---</option> + <option selected>---select destination---</option> <option value="<?= Model::MEDIA_DIR ?>">/</option> <?php foreach ($pathlist as $path) { diff --git a/composer.json b/composer.json index f706a73..b9e0239 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "w-cms", "description": "point'n think", - "version": "1.4.3", + "version": "1.4.4", "require": { "michelf/php-markdown": "^1.8", "league/plates": "3.*", |