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.
58 lines
1.4 KiB
58 lines
1.4 KiB
12 years ago
|
<?php
|
||
|
/**
|
||
|
* @var $this \yii\base\View
|
||
|
* @var $content string
|
||
|
*/
|
||
|
use yii\helpers\Html;
|
||
12 years ago
|
$this->registerAssetBundle('app');
|
||
12 years ago
|
?>
|
||
12 years ago
|
<?php $this->beginPage(); ?>
|
||
12 years ago
|
<!DOCTYPE html>
|
||
12 years ago
|
<html lang="en">
|
||
12 years ago
|
<head>
|
||
12 years ago
|
<meta charset="utf-8"/>
|
||
12 years ago
|
<title><?php echo Html::encode($this->title); ?></title>
|
||
|
<?php $this->head(); ?>
|
||
|
</head>
|
||
|
<body>
|
||
12 years ago
|
<div class="container">
|
||
|
<?php $this->beginBody(); ?>
|
||
|
<div class="masthead">
|
||
|
<h3 class="muted">My Company</h3>
|
||
|
|
||
|
<div class="navbar">
|
||
|
<div class="navbar-inner">
|
||
|
<div class="container">
|
||
|
<ul class="nav">
|
||
|
<li><?php echo Html::a('Home', Yii::$app->homeUrl); ?></li>
|
||
|
<li><?php echo Html::a('About', array('/site/about')); ?></li>
|
||
|
<li><?php echo Html::a('Contact', array('/site/contact')); ?></li>
|
||
|
<?php if (Yii::$app->user->isGuest): ?>
|
||
|
<li><?php echo Html::a('Login', array('/site/login')); ?></li>
|
||
|
<?php else: ?>
|
||
|
<li><?php echo Html::a('Logout (' . Html::encode(Yii::$app->user->identity->username) . ')', array('/site/logout')); ?></li>
|
||
|
<?php endif; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- /.navbar -->
|
||
12 years ago
|
</div>
|
||
12 years ago
|
|
||
|
<?php echo $content; ?>
|
||
|
|
||
12 years ago
|
<hr>
|
||
|
|
||
12 years ago
|
<div class="footer">
|
||
|
<p>© My Company <?php echo date('Y'); ?></p>
|
||
|
<p>
|
||
|
<?php echo Yii::powered(); ?>
|
||
|
Template by <a href="http://twitter.github.io/bootstrap/">Twitter Bootstrap</a>
|
||
|
</p>
|
||
|
</div>
|
||
|
<?php $this->endBody(); ?>
|
||
|
</div>
|
||
12 years ago
|
</body>
|
||
|
</html>
|
||
12 years ago
|
<?php $this->endPage(); ?>
|