diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-05 18:37:30 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-05 18:37:30 +0100 |
commit | 7fb607b48c181512b31f52a7ef7e302f331ec18d (patch) | |
tree | c4d89cba3c0d01679ed1455e0d7c39fa2fdb824c /app/view/templates/backtopbar.php | |
parent | ad3aed389f2e0d69802641f5a5b7c6add73f1ce5 (diff) | |
download | wcms-7fb607b48c181512b31f52a7ef7e302f331ec18d.tar.gz wcms-7fb607b48c181512b31f52a7ef7e302f331ec18d.zip |
mediastyle
Diffstat (limited to 'app/view/templates/backtopbar.php')
-rw-r--r-- | app/view/templates/backtopbar.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/app/view/templates/backtopbar.php b/app/view/templates/backtopbar.php index a06c304..d769993 100644 --- a/app/view/templates/backtopbar.php +++ b/app/view/templates/backtopbar.php @@ -1,5 +1,13 @@ <div id="topbar"> +<span id="search"> +<form action="<?= $this->url('search') ?>" method="post"> +<input type="text" name="id" id="id" placeholder="page id" required> +<input type="submit" value="go"> +</form> +</span> + + <span id="user"> <?php if($user->isvisitor()) { ?> @@ -14,7 +22,7 @@ <?php } else { ?> <span> -User level : <?= $user->level() ?> +<?= $user->level() ?> </span> @@ -33,17 +41,18 @@ User level : <?= $user->level() ?> <?php if($user->iseditor()) { ?> -<span> -<a href="<?= $this->url('home') ?>">home</a> +<span id="menu"> +<a href="<?= $this->url('home') ?>" <?= $tab == 'home' ? 'class="actualpage"' : '' ?>>home</a> +<a href="<?= $this->url('media') ?>" <?= $tab == 'media' ? 'class="actualpage"' : '' ?>>media</a> +<a href="<?= $this->url('font') ?>" <?= $tab == 'font' ? 'class="actualpage"' : '' ?>>font</a> <?php if($user->isadmin()) { ?> -<a href="<?= $this->url('font') ?>">font</a> -<a href="<?= $this->url('admin') ?>">admin</a> +<a href="<?= $this->url('admin') ?>" <?= $tab == 'admin' ? 'class="actualpage"' : '' ?>>admin</a> <?php } ?> -| <i><a href="https://github.com/vincent-peugnet/wcms" target="_blank">github↝</a></i> +<a href="<?= $this->url('info') ?>" <?= $tab == 'info' ? 'class="actualpage"' : '' ?>>info</a> </span> |