diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 20:39:48 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 20:39:48 +0100 |
commit | 42e89ac398bdf2a98167b0b71123c98e297b2130 (patch) | |
tree | 623c5e42d9b40a7372f17c070e2b39f52dc44ed1 /app/view/templates/editrightbar.php | |
parent | dd14929505e3fd0bc1710ed757b501d3ec1f6ca1 (diff) | |
download | wcms-42e89ac398bdf2a98167b0b71123c98e297b2130.tar.gz wcms-42e89ac398bdf2a98167b0b71123c98e297b2130.zip |
editor right bar
Diffstat (limited to 'app/view/templates/editrightbar.php')
-rw-r--r-- | app/view/templates/editrightbar.php | 60 |
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> |