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);
?>
<?php $this->beginPage(); ?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>"/>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?>
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody(); ?>
<?php $this->beginBody() ?>
<?php
NavBar::begin([
'brandLabel' => 'My Company',
@ -58,7 +58,7 @@ AppAsset::register($this);
</div>
</footer>
<?php $this->endBody(); ?>
<?php $this->endBody() ?>
</body>
</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);
?>
<?php $this->beginPage(); ?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>"/>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?>
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody(); ?>
<?php $this->beginBody() ?>
<?php
NavBar::begin([
'brandLabel' => 'My Company',
@ -63,7 +63,7 @@ AppAsset::register($this);
</div>
</footer>
<?php $this->endBody(); ?>
<?php $this->endBody() ?>
</body>
</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);
?>
<?php $this->beginPage(); ?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>"/>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?>
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody(); ?>
<?php $this->beginBody() ?>
<?php
NavBar::begin([
'brandLabel' => 'My Company',
@ -59,7 +59,7 @@ AppAsset::register($this);
</div>
</footer>
<?php $this->endBody(); ?>
<?php $this->endBody() ?>
</body>
</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>
<html>
<?php $this->beginPage(); ?>
<?php $this->beginPage() ?>
<head>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?>
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody(); ?>
<?php $this->beginBody() ?>
<?= $content ?>
<?php $this->endBody(); ?>
<?php $this->endBody() ?>
</body>
<?php $this->endPage(); ?>
<?php $this->endPage() ?>
</html>

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

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

Loading…
Cancel
Save