Browse Source

Code style fixes for layouts

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
8995c0b0ca
  1. 10
      apps/advanced/backend/views/layouts/main.php
  2. 10
      apps/advanced/frontend/views/layouts/main.php
  3. 10
      apps/basic/views/layouts/main.php
  4. 10
      extensions/debug/views/layouts/main.php
  5. 10
      extensions/gii/views/layouts/main.php

10
apps/advanced/backend/views/layouts/main.php

@ -11,16 +11,16 @@ use yii\widgets\Breadcrumbs;
*/ */
AppAsset::register($this); AppAsset::register($this);
?> ?>
<?php $this->beginPage(); ?> <?php $this->beginPage() ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>"> <html lang="<?= Yii::$app->language ?>">
<head> <head>
<meta charset="<?= Yii::$app->charset ?>"/> <meta charset="<?= Yii::$app->charset ?>"/>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?> <?php $this->head() ?>
</head> </head>
<body> <body>
<?php $this->beginBody(); ?> <?php $this->beginBody() ?>
<?php <?php
NavBar::begin([ NavBar::begin([
'brandLabel' => 'My Company', 'brandLabel' => 'My Company',
@ -58,7 +58,7 @@ AppAsset::register($this);
</div> </div>
</footer> </footer>
<?php $this->endBody(); ?> <?php $this->endBody() ?>
</body> </body>
</html> </html>
<?php $this->endPage(); ?> <?php $this->endPage() ?>

10
apps/advanced/frontend/views/layouts/main.php

@ -12,16 +12,16 @@ use frontend\widgets\Alert;
*/ */
AppAsset::register($this); AppAsset::register($this);
?> ?>
<?php $this->beginPage(); ?> <?php $this->beginPage() ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>"> <html lang="<?= Yii::$app->language ?>">
<head> <head>
<meta charset="<?= Yii::$app->charset ?>"/> <meta charset="<?= Yii::$app->charset ?>"/>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?> <?php $this->head() ?>
</head> </head>
<body> <body>
<?php $this->beginBody(); ?> <?php $this->beginBody() ?>
<?php <?php
NavBar::begin([ NavBar::begin([
'brandLabel' => 'My Company', 'brandLabel' => 'My Company',
@ -63,7 +63,7 @@ AppAsset::register($this);
</div> </div>
</footer> </footer>
<?php $this->endBody(); ?> <?php $this->endBody() ?>
</body> </body>
</html> </html>
<?php $this->endPage(); ?> <?php $this->endPage() ?>

10
apps/basic/views/layouts/main.php

@ -11,16 +11,16 @@ use app\assets\AppAsset;
*/ */
AppAsset::register($this); AppAsset::register($this);
?> ?>
<?php $this->beginPage(); ?> <?php $this->beginPage() ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>"> <html lang="<?= Yii::$app->language ?>">
<head> <head>
<meta charset="<?= Yii::$app->charset ?>"/> <meta charset="<?= Yii::$app->charset ?>"/>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?> <?php $this->head() ?>
</head> </head>
<body> <body>
<?php $this->beginBody(); ?> <?php $this->beginBody() ?>
<?php <?php
NavBar::begin([ NavBar::begin([
'brandLabel' => 'My Company', 'brandLabel' => 'My Company',
@ -59,7 +59,7 @@ AppAsset::register($this);
</div> </div>
</footer> </footer>
<?php $this->endBody(); ?> <?php $this->endBody() ?>
</body> </body>
</html> </html>
<?php $this->endPage(); ?> <?php $this->endPage() ?>

10
extensions/debug/views/layouts/main.php

@ -9,15 +9,15 @@ yii\debug\DebugAsset::register($this);
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<?php $this->beginPage(); ?> <?php $this->beginPage() ?>
<head> <head>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?> <?php $this->head() ?>
</head> </head>
<body> <body>
<?php $this->beginBody(); ?> <?php $this->beginBody() ?>
<?= $content ?> <?= $content ?>
<?php $this->endBody(); ?> <?php $this->endBody() ?>
</body> </body>
<?php $this->endPage(); ?> <?php $this->endPage() ?>
</html> </html>

10
extensions/gii/views/layouts/main.php

@ -9,16 +9,16 @@ use yii\helpers\Html;
*/ */
$asset = yii\gii\GiiAsset::register($this); $asset = yii\gii\GiiAsset::register($this);
?> ?>
<?php $this->beginPage(); ?> <?php $this->beginPage() ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?> <?php $this->head() ?>
</head> </head>
<body> <body>
<?php $this->beginBody(); ?> <?php $this->beginBody() ?>
<?php <?php
NavBar::begin([ NavBar::begin([
'brandLabel' => Html::img($asset->baseUrl . '/logo.png'), 'brandLabel' => Html::img($asset->baseUrl . '/logo.png'),
@ -47,7 +47,7 @@ NavBar::end();
</div> </div>
</footer> </footer>
<?php $this->endBody(); ?> <?php $this->endBody() ?>
</body> </body>
</html> </html>
<?php $this->endPage(); ?> <?php $this->endPage() ?>

Loading…
Cancel
Save