2013-05-24 10:14:49 -04:00
|
|
|
<?php
|
2015-07-09 12:47:20 +03:00
|
|
|
|
|
|
|
/* @var $this \yii\web\View */
|
|
|
|
/* @var $content string */
|
|
|
|
|
2013-05-24 10:14:49 -04:00
|
|
|
use yii\helpers\Html;
|
2013-08-12 07:17:43 -04:00
|
|
|
use yii\bootstrap\Nav;
|
|
|
|
use yii\bootstrap\NavBar;
|
2013-05-24 10:14:49 -04:00
|
|
|
use yii\widgets\Breadcrumbs;
|
2013-11-13 18:17:05 +02:00
|
|
|
use app\assets\AppAsset;
|
2013-05-24 10:14:49 -04:00
|
|
|
|
2013-11-12 06:24:07 +02:00
|
|
|
AppAsset::register($this);
|
2013-05-24 10:14:49 -04:00
|
|
|
?>
|
2013-11-28 01:19:43 +04:00
|
|
|
<?php $this->beginPage() ?>
|
2013-05-24 10:14:49 -04:00
|
|
|
<!DOCTYPE html>
|
2013-11-19 16:33:52 -05:00
|
|
|
<html lang="<?= Yii::$app->language ?>">
|
2013-05-24 10:14:49 -04:00
|
|
|
<head>
|
2015-01-24 20:45:04 +02:00
|
|
|
<meta charset="<?= Yii::$app->charset ?>">
|
2014-03-16 10:46:16 +06:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2014-06-13 10:04:48 -04:00
|
|
|
<?= Html::csrfMetaTags() ?>
|
2014-03-16 10:46:16 +06:00
|
|
|
<title><?= Html::encode($this->title) ?></title>
|
|
|
|
<?php $this->head() ?>
|
2013-05-24 10:14:49 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
2013-11-28 01:19:43 +04:00
|
|
|
<?php $this->beginBody() ?>
|
2015-07-09 12:47:20 +03:00
|
|
|
|
|
|
|
<div class="wrap">
|
|
|
|
<?php
|
|
|
|
NavBar::begin([
|
|
|
|
'brandLabel' => 'My Company',
|
|
|
|
'brandUrl' => Yii::$app->homeUrl,
|
|
|
|
'options' => [
|
|
|
|
'class' => 'navbar-inverse navbar-fixed-top',
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
echo Nav::widget([
|
|
|
|
'options' => ['class' => 'navbar-nav navbar-right'],
|
|
|
|
'items' => [
|
|
|
|
['label' => 'Home', 'url' => ['/site/index']],
|
|
|
|
['label' => 'About', 'url' => ['/site/about']],
|
|
|
|
['label' => 'Contact', 'url' => ['/site/contact']],
|
2015-10-21 01:05:51 +03:00
|
|
|
Yii::$app->user->isGuest ? (
|
|
|
|
['label' => 'Login', 'url' => ['/site/login']]
|
|
|
|
) : (
|
|
|
|
'<li>'
|
2016-03-23 19:55:38 +08:00
|
|
|
. Html::beginForm(['/site/logout'], 'post', ['class' => 'navbar-form'])
|
2015-10-21 01:05:51 +03:00
|
|
|
. Html::submitButton(
|
|
|
|
'Logout (' . Yii::$app->user->identity->username . ')',
|
|
|
|
['class' => 'btn btn-link']
|
|
|
|
)
|
|
|
|
. Html::endForm()
|
|
|
|
. '</li>'
|
|
|
|
)
|
2015-07-09 12:47:20 +03:00
|
|
|
],
|
|
|
|
]);
|
|
|
|
NavBar::end();
|
|
|
|
?>
|
2013-05-24 10:14:49 -04:00
|
|
|
|
2015-07-09 12:47:20 +03:00
|
|
|
<div class="container">
|
|
|
|
<?= Breadcrumbs::widget([
|
|
|
|
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
|
|
|
|
]) ?>
|
|
|
|
<?= $content ?>
|
2014-03-16 10:46:16 +06:00
|
|
|
</div>
|
2015-07-09 12:47:20 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="container">
|
|
|
|
<p class="pull-left">© My Company <?= date('Y') ?></p>
|
2013-05-24 10:14:49 -04:00
|
|
|
|
2015-07-09 12:47:20 +03:00
|
|
|
<p class="pull-right"><?= Yii::powered() ?></p>
|
|
|
|
</div>
|
|
|
|
</footer>
|
2013-05-24 10:14:49 -04:00
|
|
|
|
2013-11-28 01:19:43 +04:00
|
|
|
<?php $this->endBody() ?>
|
2013-05-24 10:14:49 -04:00
|
|
|
</body>
|
|
|
|
</html>
|
2013-11-28 01:19:43 +04:00
|
|
|
<?php $this->endPage() ?>
|