aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/class/controllerart.php2
-rw-r--r--app/view/templates/edit.php2
-rw-r--r--app/view/templates/editrightbar.php4
-rw-r--r--app/view/templates/edittopbar.php25
-rw-r--r--app/view/templates/navart.php4
-rw-r--r--assets/css/edit.css10
-rw-r--r--assets/global/global.css4
7 files changed, 44 insertions, 7 deletions
diff --git a/app/class/controllerart.php b/app/class/controllerart.php
index f64cda8..be82e6f 100644
--- a/app/class/controllerart.php
+++ b/app/class/controllerart.php
@@ -102,7 +102,7 @@ class Controllerart extends Controller
$this->art->addaffcount();
$this->artmanager->update($this->art);
}
- $data = array_merge($alerts, $page, ['art' => $this->art, 'artexist' => $artexist, 'canread' => $canread, 'readernav' => true]);
+ $data = array_merge($alerts, $page, ['art' => $this->art, 'artexist' => $artexist, 'canread' => $canread, 'readernav' => Config::showeditmenu()]);
$this->showtemplate('read', $data);
diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php
index 346d5bb..18940ff 100644
--- a/app/view/templates/edit.php
+++ b/app/view/templates/edit.php
@@ -14,7 +14,7 @@
- <?php $this->insert('edittopbar', ['art' => $art]) ?>
+ <?php $this->insert('edittopbar', ['art' => $art, 'user' => $user]) ?>
<div id="workspace">
diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php
index 9572678..26976e8 100644
--- a/app/view/templates/editrightbar.php
+++ b/app/view/templates/editrightbar.php
@@ -10,7 +10,7 @@
<?php
foreach ($lasteditedartlist as $id) {
?>
- <li><a href="<?= $this->uart('artedit', $id) ?>"><?= $id === $art->id() ? '★' : '✎' ?> <?= $id ?></a></li>
+ <li><a href="<?= $this->uart('artedit', $id) ?>"><?= $id === $art->id() ? '➤' : '✎' ?> <?= $id ?></a></li>
<?php
}
@@ -32,7 +32,7 @@
echo '<ul>';
foreach ($idlist as $id) {
if($id === $art->id()) {
- echo '<li>★ '.$id.'</li>';
+ echo '<li>➤ '.$id.'</li>';
} else {
?>
<li><a href="<?= $this->uart('artedit', $id) ?>">✎ <?= $id ?></a></li>
diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php
index 6d90932..a1aba01 100644
--- a/app/view/templates/edittopbar.php
+++ b/app/view/templates/edittopbar.php
@@ -1,9 +1,12 @@
<div id="topbar">
+
<form action="<?= $this->uart('artupdate', $art->id()) ?>" method="post" id="update">
+
+
<span>
- <a href="<?= $this->url('home') ?>" class="icon" >⏏</a>
+ <a href="<?= $this->url('home') ?>" class="icon" >⍇</a>
</span>
<span>
<input type="submit" value="update" accesskey="x" form="update">
@@ -27,4 +30,24 @@
<label for="fontsize">Font-size</label>
<input type="number" name="fontsize" value="<?= Config::fontsize() ?>" id="fontsize">
</span>
+
+
+
+<span id="test">
+ <?php if($user->iseditor()) { ?>
+
+ <?php
+ if($user->isadmin()) {
+ ?>
+ <a href="<?= $this->url('font') ?>">font</a>
+ <a href="<?= $this->url('admin') ?>">admin</a>
+ <?php
+ }
+ }
+ ?>
+</span>
+
+
+
+
</div> \ No newline at end of file
diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php
index 8e7c40b..9d9f3ed 100644
--- a/app/view/templates/navart.php
+++ b/app/view/templates/navart.php
@@ -107,7 +107,7 @@
<?php if ($user->iseditor()) { ?>
<li class="drop">
- <a class="button" href="?aff=media" >Media</a>
+ <a class="button" href="<?= $this->url('media') ?>" >Media</a>
</li>
<?php } ?>
@@ -115,7 +115,7 @@
<?php if($user->isadmin()) { ?>
<li class="drop">
- <a class="button" href="?aff=admin" >Admin</a>
+ <a class="button" href="<?= $this->url('admin') ?>" >Admin</a>
</li>
<?php } ?>
diff --git a/assets/css/edit.css b/assets/css/edit.css
index 38800f1..cb7b067 100644
--- a/assets/css/edit.css
+++ b/assets/css/edit.css
@@ -175,6 +175,7 @@ html {
.editor ul {
list-style: none;
padding: 0;
+ margin: 0;
}
.editor .bar select {
@@ -236,4 +237,13 @@ form#update {
.panel .subtemplate {
margin-left: 20px;
+}
+
+.editor fieldset {
+ border: none;
+}
+
+.panel summary {
+ background-color: grey;
+ color: lightgrey;
} \ No newline at end of file
diff --git a/assets/global/global.css b/assets/global/global.css
index 4a601f3..e96050d 100644
--- a/assets/global/global.css
+++ b/assets/global/global.css
@@ -1,4 +1,8 @@
body {
background-color: white;
margin: 0;
+}
+
+a.external::before {
+ content: "⧉ ";
} \ No newline at end of file