aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/editrightbar.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-04 20:39:48 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-04 20:39:48 +0100
commit42e89ac398bdf2a98167b0b71123c98e297b2130 (patch)
tree623c5e42d9b40a7372f17c070e2b39f52dc44ed1 /app/view/templates/editrightbar.php
parentdd14929505e3fd0bc1710ed757b501d3ec1f6ca1 (diff)
downloadwcms-42e89ac398bdf2a98167b0b71123c98e297b2130.tar.gz
wcms-42e89ac398bdf2a98167b0b71123c98e297b2130.zip
editor right bar
Diffstat (limited to 'app/view/templates/editrightbar.php')
-rw-r--r--app/view/templates/editrightbar.php60
1 files changed, 50 insertions, 10 deletions
diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php
index fa249ef..9572678 100644
--- a/app/view/templates/editrightbar.php
+++ b/app/view/templates/editrightbar.php
@@ -2,26 +2,66 @@
<input id="showrightpanel" name="workspace[showrightpanel]" value="1" class="toggle" type="checkbox" <?= $showrightpanel == true ? 'checked' : '' ?>>
<label for="showrightpanel" class="toogle">◧</label>
<div id="rightbarpanel" class="panel">
- <details id="linkassist" open>
- <summary>Links</summary>
+
+
+ <details id="lastedited" open>
+ <summary>Last edited</summary>
+ <ul>
+ <?php
+ foreach ($lasteditedartlist as $id) {
+ ?>
+ <li><a href="<?= $this->uart('artedit', $id) ?>"><?= $id === $art->id() ? '★' : '✎' ?> <?= $id ?></a></li>
<?php
- foreach ($artlist as $item ) {
+ }
+
+ ?>
+ </ul>
+
+ </details>
+
+
+ <details id="tags" open>
+ <summary>Tags</summary>
+ <?php
+ foreach ($tagartlist as $tag => $idlist) {
+ if(count($idlist) > 1) {
?>
- <a href="<?= $this->uart('artedit', $item) ?>" target="_blank"><?= $item ?></a>
+ <strong><?= $tag ?></strong>
<?php
+
+ echo '<ul>';
+ foreach ($idlist as $id) {
+ if($id === $art->id()) {
+ echo '<li>★ '.$id.'</li>';
+ } else {
+ ?>
+ <li><a href="<?= $this->uart('artedit', $id) ?>">✎ <?= $id ?></a></li>
+ <?php
+ }
+ }
+ }
+ echo '</ul>';
}
?>
+
</details>
- <details id="fonts" open>
- <summary>Fonts</summary>
- <select multiple>
+
+ <details id="tempaltes" open>
+ <summary>Templates</summary>
+ <ul>
<?php
- foreach ($fonts as $font ) {
- echo '<option value="'.$font.'">'.$font.'</option>';
+ foreach ($templates as $template => $id) {
+ if(!empty($id)) {
+ ?>
+ <li><?= $template ?> : <?= $id ?> <a href="<?= $this->uart('artedit', $id) ?>">✎</a></li>
+ <?php
+ }
}
+
?>
- </select>
+ </ul>
+
</details>
</div>