main.php 1.27 KB
Newer Older
Qiang Xue committed
1 2 3 4 5 6
<?php
use yii\bootstrap\NavBar;
use yii\bootstrap\Nav;
use yii\helpers\Html;

/**
slavcodev committed
7 8
 * @var \yii\web\View $this
 * @var string $content
Qiang Xue committed
9 10 11
 */
$asset = yii\gii\GiiAsset::register($this);
?>
12
<?php $this->beginPage() ?>
Qiang Xue committed
13 14 15 16
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
17
	<meta name="viewport" content="width=device-width, initial-scale=1">
Alexander Makarov committed
18
	<title><?= Html::encode($this->title) ?></title>
19
	<?php $this->head() ?>
Qiang Xue committed
20 21
</head>
<body>
22
<?php $this->beginBody() ?>
Qiang Xue committed
23
<?php
Alexander Makarov committed
24
NavBar::begin([
Qiang Xue committed
25
	'brandLabel' => Html::img($asset->baseUrl . '/logo.png'),
Alexander Makarov committed
26 27 28 29
	'brandUrl' => ['default/index'],
	'options' => ['class' => 'navbar-inverse navbar-fixed-top'],
]);
echo Nav::widget([
Qiang Xue committed
30
	'options' => ['class' => 'nav navbar-nav navbar-right'],
Alexander Makarov committed
31 32
	'items' => [
		['label' => 'Home', 'url' => ['default/index']],
Carsten Brandt committed
33
		['label' => 'Help', 'url' => 'https://github.com/yiisoft/yii2/blob/master/docs/guide/gii.md'],
Alexander Makarov committed
34 35 36
		['label' => 'Application', 'url' => Yii::$app->homeUrl],
	],
]);
Qiang Xue committed
37 38 39 40
NavBar::end();
?>

<div class="container">
Alexander Makarov committed
41
	<?= $content ?>
Qiang Xue committed
42 43 44 45 46
</div>

<footer class="footer">
	<div class="container">
		<p class="pull-left">A Product of <a href="http://www.yiisoft.com/">Yii Software LLC</a></p>
Alexander Makarov committed
47
		<p class="pull-right"><?= Yii::powered() ?></p>
Qiang Xue committed
48 49 50
	</div>
</footer>

51
<?php $this->endBody() ?>
Qiang Xue committed
52 53
</body>
</html>
54
<?php $this->endPage() ?>