diff options
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/admin.php | 24 | ||||
-rw-r--r-- | app/view/templates/alert.php | 5 | ||||
-rw-r--r-- | app/view/templates/media.php | 16 | ||||
-rw-r--r-- | app/view/templates/read.php | 12 |
4 files changed, 2 insertions, 55 deletions
diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index 97442ac..c1f3b73 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -204,30 +204,6 @@ <i>(This modifications need re-rendering)</i> - <h4>Edit quick menu</h4> - - <div class="checkbox"> - <input type="hidden" name="showeditmenu" value="false"> - <input type="checkbox" name="showeditmenu" id="showeditmenu" value="true" <?= Config::showeditmenu() === true ? 'checked' : '' ?>> - <label for="showeditmenu">Show editor menu in top right corner of pages</label> - </div> - - <?php - if (Config::showeditmenu() === true) { - ?> - <label for="editsymbol">Symbol</label> - <select name="editsymbol" id="editsymbol"> - <?php - foreach (Model::EDIT_SYMBOLS as $symbol) { - ?> - <option value="<?= $symbol ?>" <?= Config::editsymbol() === $symbol ? 'selected' : '' ?>><?= $symbol ?></option> - <?php - } - ?> - </select> - <?php - } - ?> </article> diff --git a/app/view/templates/alert.php b/app/view/templates/alert.php index 0adfc9a..24f77ed 100644 --- a/app/view/templates/alert.php +++ b/app/view/templates/alert.php @@ -23,12 +23,7 @@ $this->stop(); <main class="alert"> - <?php - if ($readernav) { - $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist, 'canedit' => $canedit]); - } - ?> diff --git a/app/view/templates/media.php b/app/view/templates/media.php index 0f60368..ecd61b8 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -141,21 +141,7 @@ foreach ($medialist as $media) { <td><?= $media->width() ?></td> <td><?= $media->height() ?></td> <td><?= $media->length() ?></td> - <td class="code"><code> - <?php - if($media->type() == 'image') { - ?> -  ?>) - <?php - } elseif ($media->type() == 'other') { - ?> - [<?= $media->id() ?>](<?= $media->getincludepath() ?>) - <?php - } else { - echo $media->getincludepath(); - } - ?> - </code></td> + <td class="code"><code><?= $media->getcode() ?></code></td> </tr> <?php diff --git a/app/view/templates/read.php b/app/view/templates/read.php index 54b137e..27c3d87 100644 --- a/app/view/templates/read.php +++ b/app/view/templates/read.php @@ -15,17 +15,7 @@ $this->stop(); <body> - - <?php - if ($readernav) { - $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist, 'canedit' => $canedit]); - } - - - - echo $body; - - ?> +<?= $body ?> </body> |