mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
doc/styles: add tabs, more to come
This commit is contained in:
parent
fc4b0cf40c
commit
56b00d3d58
@ -2,11 +2,19 @@
|
|||||||
|
|
||||||
use Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
use Icinga\Web\Controller;
|
use Icinga\Web\Controller;
|
||||||
|
use Icinga\Web\Widget;
|
||||||
|
|
||||||
class Doc_StyleController extends Controller
|
class Doc_StyleController extends Controller
|
||||||
{
|
{
|
||||||
public function fontAction()
|
public function fontAction()
|
||||||
{
|
{
|
||||||
|
$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');
|
$confFile = Icinga::app()->getApplicationDir('fonts/fontanello-ifont/config.json');
|
||||||
$this->view->font = json_decode(file_get_contents($confFile));
|
$this->view->font = json_decode(file_get_contents($confFile));
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
<div class="chapter">
|
||||||
|
<?= $sectionRenderer->render($this, $this->getHelper('Url')); ?>
|
||||||
|
</div>
|
6
modules/doc/application/views/scripts/module/toc.phtml
Normal file
6
modules/doc/application/views/scripts/module/toc.phtml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<div class="controls">
|
||||||
|
<h1><?= $title ?></h1>
|
||||||
|
</div>
|
||||||
|
<div class="content toc">
|
||||||
|
<?= $tocRenderer->render($this, $this->getHelper('Url')); ?>
|
||||||
|
</div>
|
@ -1,4 +1,5 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
<?= $this->tabs ?>
|
||||||
<h1>Icinga Web 2 Icons</h1>
|
<h1>Icinga Web 2 Icons</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ $section->add('Icinga Web 2', array(
|
|||||||
$section->add('Module documentations', array(
|
$section->add('Module documentations', array(
|
||||||
'url' => 'doc/module',
|
'url' => 'doc/module',
|
||||||
));
|
));
|
||||||
$section->add($this->translate('Fonts'), array(
|
$section->add($this->translate('Developer - Style'), array(
|
||||||
'url' => 'doc/style/font',
|
'url' => 'doc/style/font',
|
||||||
'priority' => 200,
|
'priority' => 200,
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user