mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
parent
28c239c6fd
commit
3343599a63
13
modules/doc/application/controllers/StyleController.php
Normal file
13
modules/doc/application/controllers/StyleController.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Icinga\Application\Icinga;
|
||||||
|
use Icinga\Web\Controller;
|
||||||
|
|
||||||
|
class Doc_StyleController extends Controller
|
||||||
|
{
|
||||||
|
public function fontAction()
|
||||||
|
{
|
||||||
|
$confFile = Icinga::app()->getApplicationDir('fonts/fontanello-ifont/config.json');
|
||||||
|
$this->view->font = json_decode(file_get_contents($confFile));
|
||||||
|
}
|
||||||
|
}
|
14
modules/doc/application/views/scripts/style/font.phtml
Normal file
14
modules/doc/application/views/scripts/style/font.phtml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<div class="controls">
|
||||||
|
<h1>Icinga Web 2 Icons</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<?php foreach ($this->font->glyphs as $icon): ?>
|
||||||
|
<!-- TODO: move CSS away //-->
|
||||||
|
<div style="width: 33%; font-size: 1.5em; height: 2em; float: left;" class="<?=
|
||||||
|
$this->font->css_prefix_text . $icon->css
|
||||||
|
?>">
|
||||||
|
<?= $this->escape($icon->css) ?> <span style="font-size: 0.6em">(0x<?= dechex($icon->code) ?>)</span>
|
||||||
|
</div>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user