aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/font.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates/font.php')
-rw-r--r--app/view/templates/font.php47
1 files changed, 47 insertions, 0 deletions
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