modules/doc: Add partial for displaying doc and toc

refs #4820
This commit is contained in:
Eric Lippmann 2014-05-23 09:35:02 +02:00
parent a91961284d
commit 83c12cfb2e
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?php if ($docHtml === null): ?>
<p>No documentation available.</p>
<?php else: ?>
<div class="toc">
<?= $this->partial(
'layout/menu.phtml',
'default',
array(
'items' => $docToc->getChildren(),
'sub' => false,
'url' => ''
)
);
?>
</div>
<div class="doc">
<?= $docHtml ?>
</div>
<?php endif ?>