diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-29 01:53:17 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-29 01:53:17 +0100 |
commit | d0ef17169701f90a9dab5f50e3eb61954653cae2 (patch) | |
tree | 03efa5a4e6eb1d2727b4c075b16a3627b1ad4591 /app/view/templates/font.php | |
parent | 6e3ad2f1355e5f474cc02ab3b9eebe881dbb04ee (diff) | |
download | wcms-d0ef17169701f90a9dab5f50e3eb61954653cae2.tar.gz wcms-d0ef17169701f90a9dab5f50e3eb61954653cae2.zip |
font upload
Diffstat (limited to 'app/view/templates/font.php')
-rw-r--r-- | app/view/templates/font.php | 47 |
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 |