icingaweb2/modules/doc/application/controllers/StyleController.php

22 lines
583 B
PHP
Raw Normal View History

<?php
use Icinga\Application\Icinga;
use Icinga\Web\Controller;
2014-11-17 10:39:25 +01:00
use Icinga\Web\Widget;
class Doc_StyleController extends Controller
{
public function fontAction()
{
2014-11-17 10:39:25 +01:00
$this->view->tabs = Widget::create('tabs')->add(
'fonts',
array(
'title' => $this->translate('Icons'),
'url' => 'doc/style/font'
)
)->activate('fonts');
$confFile = Icinga::app()->getApplicationDir('fonts/fontanello-ifont/config.json');
$this->view->font = json_decode(file_get_contents($confFile));
}
}