Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
splitted layout into _header, _content, _footer; added _before/_after
- Loading branch information
Showing
8 changed files
with
49 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="container"> | ||
<?php if (Yii::$app->themeManager->hasWidget('Flashes')) : ?> | ||
<?= Yii::$app->themeManager->widget('Flashes') ?> | ||
<?php endif ?> | ||
<?= Yii::$app->themeManager->widget([ | ||
'class' => 'Breadcrumbs', | ||
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], | ||
]) ?> | ||
<div class="row"><div class="col-xs-12"> | ||
<?= $content ?> | ||
</div></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<footer class="footer"> | ||
<div class="container"> | ||
<p class="pull-left"> | ||
© <?= Yii::$app->themeManager->widget('CopyrightYears') ?> <?= Yii::$app->themeManager->widget('OrganizationLink') ?>. | ||
<?= Yii::t('hiqdev/themes/original', 'All rights reserved.') ?> | ||
<p class="pull-right"><?= $this->render('//layouts/_poweredBy') ?></p> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
use yii\bootstrap\Nav; | ||
use yii\bootstrap\NavBar; | ||
|
||
?> | ||
<?php NavBar::begin([ | ||
'brandLabel' => Yii::$app->name, | ||
'brandUrl' => Yii::$app->homeUrl, | ||
'options' => [ | ||
'class' => 'navbar-inverse navbar-fixed-top', | ||
], | ||
]) ?> | ||
<?= Yii::$app->menuManager->render('main', [ | ||
'class' => Nav::class, | ||
'options' => ['class' => 'navbar-nav navbar-right'], | ||
]) ?> | ||
<?php NavBar::end() ?> | ||
<div style="margin-top:50px"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?= Yii::powered() ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters