blob: 6c5302342acc1d33f1c2261745333f35cb4a00bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
<?php $this->layout('layout', ['title' => 'font', 'css' => $css . 'home.css']) ?>
<?php $this->start('page') ?>
<body>
<?php $this->insert('backtopbar', ['user' => $user, 'tab' => 'font']) ?>
<main class="font">
<section>
<article>
<h1>Fonts manager</h1>
<div>
<a href="<?= $this->url('fontrender') ?>">⚡ Render</a>
</div>
<div>
<a href="<?= $fontfile ?>" target="_blank">👓 View font CSS file</a>
</div>
</article>
<article>
<h2>Add Font</h2>
<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>
</article>
<article>
<h2>Font stock</h2>
<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>
</article>
</section>
</main>
</body>
<?php $this->stop('page') ?>
|