|
|
@@ -19,36 +19,39 @@ app\config\AppAsset::register($this);
|
|
|
</head>
|
|
|
<body>
|
|
|
<?php $this->beginBody(); ?>
|
|
|
-<div class="container">
|
|
|
- <div class="masthead">
|
|
|
- <h3 class="text-muted">My Company</h3>
|
|
|
+ <div class="navbar navbar-inverse navbar-fixed-top">
|
|
|
+ <div class="container">
|
|
|
+ <?php echo Html::a('My Company', Yii::$app->homeUrl, array('class' => 'navbar-brand')); ?>
|
|
|
+ <div class="nav-collapse collapse pull-right">
|
|
|
+ <?php echo Menu::widget(array(
|
|
|
+ 'options' => array('class' => 'nav navbar-nav'),
|
|
|
+ 'items' => array(
|
|
|
+ array('label' => 'Home', 'url' => array('/site/index')),
|
|
|
+ array('label' => 'About', 'url' => array('/site/about')),
|
|
|
+ array('label' => 'Contact', 'url' => array('/site/contact')),
|
|
|
+ Yii::$app->user->isGuest ?
|
|
|
+ array('label' => 'Login', 'url' => array('/site/login')) :
|
|
|
+ array('label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => array('/site/logout')),
|
|
|
+ ),
|
|
|
+ )); ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <?php echo Menu::widget(array(
|
|
|
- 'options' => array('class' => 'nav navbar-nav nav-justified'),
|
|
|
- 'items' => array(
|
|
|
- array('label' => 'Home', 'url' => array('/site/index')),
|
|
|
- array('label' => 'About', 'url' => array('/site/about')),
|
|
|
- array('label' => 'Contact', 'url' => array('/site/contact')),
|
|
|
- Yii::$app->user->isGuest ?
|
|
|
- array('label' => 'Login', 'url' => array('/site/login')) :
|
|
|
- array('label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => array('/site/logout')),
|
|
|
- ),
|
|
|
+ <div class="container">
|
|
|
+ <?php echo Breadcrumbs::widget(array(
|
|
|
+ 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : array(),
|
|
|
)); ?>
|
|
|
+ <?php echo $content; ?>
|
|
|
</div>
|
|
|
|
|
|
- <?php echo Breadcrumbs::widget(array(
|
|
|
- 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : array(),
|
|
|
- )); ?>
|
|
|
- <?php echo $content; ?>
|
|
|
+ <footer class="footer">
|
|
|
+ <div class="container">
|
|
|
+ <p class="pull-left">© My Company <?php echo date('Y'); ?></p>
|
|
|
+ <p class="pull-right"><?php echo Yii::powered(); ?></p>
|
|
|
+ </div>
|
|
|
+ </footer>
|
|
|
|
|
|
- <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>
|
|
|
-</div>
|
|
|
<?php $this->endBody(); ?>
|
|
|
</body>
|
|
|
</html>
|