2014-11-13 15:54:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Icinga\Application\Icinga;
|
|
|
|
use Icinga\Web\Controller;
|
2014-11-17 10:39:25 +01:00
|
|
|
use Icinga\Web\Widget;
|
2014-11-13 15:54:31 +01:00
|
|
|
|
|
|
|
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');
|
2014-11-13 15:54:31 +01:00
|
|
|
$confFile = Icinga::app()->getApplicationDir('fonts/fontanello-ifont/config.json');
|
|
|
|
$this->view->font = json_decode(file_get_contents($confFile));
|
|
|
|
}
|
|
|
|
}
|