mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-30 17:54:01 +01:00
24 lines
762 B
PHTML
24 lines
762 B
PHTML
<div class="controls">
|
|
<h1><?= $docName ?> documentation</h1>
|
|
</div>
|
|
<div class="content" data-base-target="_next">
|
|
<?php
|
|
$urlHelper = $this->getHelper('Url');
|
|
$view = $this;
|
|
?>
|
|
<?= $tocRenderer->render(function ($node) use ($urlHelper, $view) {
|
|
$section = $node->getValue();
|
|
$path = $urlHelper->url(array('chapterName' => $section->chapterName), 'doc/icingaweb/chapter', false, false);
|
|
$url = $view->url($path);
|
|
if ($section->id) {
|
|
$url->setAnchor($section->id);
|
|
}
|
|
return sprintf(
|
|
'<li><a %shref="%s">%s</a></li>',
|
|
$section->nofollow ? 'rel="nofollow" ' : '',
|
|
$url->getAbsoluteUrl(),
|
|
$section->title
|
|
);
|
|
}); ?>
|
|
</div>
|