Yii2 framework backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

<?php
use yii\apidoc\templates\bootstrap\SideNavWidget;
/* @var $this yii\web\View */
/* @var $content string */
/* @var $chapters array */
$this->beginContent('@yii/apidoc/templates/bootstrap/layouts/main.php'); ?>
<div class="row">
<div class="col-md-2">
<?php
$nav = [];
foreach ($chapters as $chapter) {
$items = [];
foreach($chapter['content'] as $chContent) {
$items[] = [
'label' => $chContent['headline'],
'url' => $this->context->generateGuideUrl($chContent['file']),
'active' => isset($currentFile) && ($chContent['file'] == basename($currentFile)),
];
}
$nav[] = [
'label' => $chapter['headline'],
// 'url' => $this->context->generateGuideUrl($file),
'items' => $items,
];
} ?>
<?= SideNavWidget::widget([
'id' => 'navigation',
'items' => $nav,
'view' => $this,
]) ?>
</div>
<div class="col-md-9 guide-content" role="main">
<?= $content ?>
<div class="toplink"><a href="#" class="h1" title="go to top"><span class="glyphicon glyphicon-arrow-up"></a></div>
</div>
</div>
<?php $this->endContent(); ?>