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.
78 lines
1.8 KiB
78 lines
1.8 KiB
<?php |
|
use yii\apidoc\templates\bootstrap\SideNavWidget; |
|
use yii\bootstrap\Nav; |
|
use yii\bootstrap\NavBar; |
|
use yii\helpers\Html; |
|
use yii\helpers\StringHelper; |
|
use yii\widgets\Menu; |
|
|
|
/** |
|
* @var yii\web\View $this |
|
*/ |
|
|
|
\yii\apidoc\templates\bootstrap\assets\AssetBundle::register($this); |
|
|
|
$this->beginPage(); |
|
?> |
|
<!DOCTYPE html> |
|
<html lang="<?= Yii::$app->language ?>"> |
|
<head> |
|
<meta charset="<?= Yii::$app->charset ?>"/> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
<meta name="language" content="en" /> |
|
<?php $this->head() ?> |
|
<title><?= Html::encode($this->context->pageTitle) ?></title> |
|
</head> |
|
<body> |
|
|
|
<?php $this->beginBody() ?> |
|
<div class="wrap"> |
|
<?php |
|
NavBar::begin([ |
|
'brandLabel' => $this->context->pageTitle, |
|
'brandUrl' => './index.html', |
|
'options' => [ |
|
'class' => 'navbar-inverse navbar-fixed-top', |
|
], |
|
'padded' => false, |
|
'view' => $this, |
|
]); |
|
$extItems = []; |
|
foreach($this->context->extensions as $ext) { |
|
$extItems[] = [ |
|
'label' => $ext, |
|
'url' => "./ext_{$ext}_index.html", |
|
]; |
|
} |
|
$nav = [ |
|
['label' => 'Class reference', 'url' => './index.html'], |
|
// ['label' => 'Application API', 'url' => '/site/about'], |
|
['label' => 'Extensions', 'items' => $extItems], |
|
]; |
|
if ($this->context->guideUrl !== null) { |
|
$nav[] = ['label' => 'Guide', 'url' => $this->context->guideUrl . 'guide_index.html']; |
|
} |
|
|
|
echo Nav::widget([ |
|
'options' => ['class' => 'navbar-nav'], |
|
'items' => $nav, |
|
'view' => $this, |
|
'params' => [], |
|
]); |
|
NavBar::end(); |
|
?> |
|
|
|
<?= $content ?> |
|
|
|
</div> |
|
|
|
<footer class="footer"> |
|
<?php /* <p class="pull-left">© My Company <?= date('Y') ?></p> */ ?> |
|
<p class="pull-right"><small>Page generated on <?= date('r') ?></small></p> |
|
<?= Yii::powered() ?> |
|
</footer> |
|
|
|
<?php $this->endBody() ?> |
|
</body> |
|
</html> |
|
<?php $this->endPage() ?>
|