aboutsummaryrefslogtreecommitdiff
path: root/app/view
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-29 01:53:17 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-29 01:53:17 +0100
commitd0ef17169701f90a9dab5f50e3eb61954653cae2 (patch)
tree03efa5a4e6eb1d2727b4c075b16a3627b1ad4591 /app/view
parent6e3ad2f1355e5f474cc02ab3b9eebe881dbb04ee (diff)
downloadwcms-d0ef17169701f90a9dab5f50e3eb61954653cae2.tar.gz
wcms-d0ef17169701f90a9dab5f50e3eb61954653cae2.zip
font upload
Diffstat (limited to 'app/view')
-rw-r--r--app/view/templates/edittopbar.php2
-rw-r--r--app/view/templates/font.php47
-rw-r--r--app/view/templates/navart.php2
3 files changed, 49 insertions, 2 deletions
diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php
index 5090081..6d90932 100644
--- a/app/view/templates/edittopbar.php
+++ b/app/view/templates/edittopbar.php
@@ -3,7 +3,7 @@
<form action="<?= $this->uart('artupdate', $art->id()) ?>" method="post" id="update">
<span>
- <a href="<?= $this->url('backrouter') ?>" class="icon" >⏏</a>
+ <a href="<?= $this->url('home') ?>" class="icon" >⏏</a>
</span>
<span>
<input type="submit" value="update" accesskey="x" form="update">
diff --git a/app/view/templates/font.php b/app/view/templates/font.php
new file mode 100644
index 0000000..e294031
--- /dev/null
+++ b/app/view/templates/font.php
@@ -0,0 +1,47 @@
+<?php $this->layout('layout', ['title' => 'font', 'css' => $css . 'font.css']) ?>
+
+
+<?php $this->start('page') ?>
+
+<body>
+<section class="font">
+
+
+<a href="<?= $this->url('fontrender') ?>">⚡ Render</a>
+<a href="<?= $fontfile ?>" target="_blank">👓 View font CSS file</a>
+
+
+<form action="<?= $this->url('fontadd') ?>" method="post" enctype="multipart/form-data">
+<label for="font">Font file <i>(<?= $fonttypes ?>)</i></label>
+<input type="file" name="font" id="font" accept="<?= $fonttypes ?>">
+<label for="fontname">Rename font <i>(optionnal)</i></label>
+<input type="text" name="fontname" id="fontname">
+<input type="submit" value="upload font(s)">
+</form>
+
+
+<table id="fontlist">
+<tr>
+<th>font</th>
+<th>type</th>
+<th>size</th>
+</tr>
+<?php
+
+foreach ($fontlist as $font ) {
+ ?>
+ <tr>
+ <td><?= $font['id'] ?></td>
+ <td><?= $font['ext'] ?></td>
+ <td><?= readablesize($font['size']) ?></td>
+ </tr>
+ <?php
+}
+
+?>
+</table>
+
+</section>
+</body>
+
+<?php $this->stop('page') ?> \ No newline at end of file
diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php
index 45e9cda..8e7c40b 100644
--- a/app/view/templates/navart.php
+++ b/app/view/templates/navart.php
@@ -63,7 +63,7 @@
<span class="button" style="font-family: monospace; background-color: #7b97b9;" >User lvl : <?= $user->level() ?></span>
</li>
<li class="drop">
- <a class="button" href="<?= $this->url('backrouter') ?>">home</a>
+ <a class="button" href="<?= $this->url('home') ?>">home</a>
</li>