aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/hometopbar.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-12 16:18:09 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-12 16:18:09 +0100
commite1eb55024b67793e62e93696cffbd22ead855729 (patch)
tree701e3c90befa65aa0d36910dcfa32b673254faea /app/view/templates/hometopbar.php
parente4768cd0647d934eff424f73bfd9f5c8f6223c94 (diff)
downloadwcms-e1eb55024b67793e62e93696cffbd22ead855729.tar.gz
wcms-e1eb55024b67793e62e93696cffbd22ead855729.zip
corner-menu
Diffstat (limited to 'app/view/templates/hometopbar.php')
-rw-r--r--app/view/templates/hometopbar.php36
1 files changed, 36 insertions, 0 deletions
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 @@
+<div id="topbar">
+
+<?php if($user->isvisitor()) { ?>
+
+
+<form action="<?= $this->url('log') ?>" method="post">
+<input type="password" name="pass" id="loginpass" placeholder="password">
+<input type="submit" name="log" value="login">
+</form>
+
+
+<?php } else { ?>
+
+<form action="<?= $this->url('log') ?>" method="post">
+<input type="submit" name="log" value="logout">
+</form>
+
+<span>
+User level : <?= $user->level() ?>
+</span>
+
+<?php } ?>
+
+<?php if($user->canedit()) { ?>
+
+
+<span>
+| <a href="">media</a>
+| <a href="">admin</a>
+</span>
+
+
+
+<?php } ?>
+
+</div> \ No newline at end of file