Browse Source

Fixes #1691: added “viewport” meta tag to layout views.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
ccd4ae9f3c
  1. 1
      apps/advanced/backend/views/layouts/main.php
  2. 1
      apps/advanced/frontend/views/layouts/main.php
  3. 1
      apps/basic/views/layouts/main.php
  4. 2
      extensions/yii/debug/views/layouts/main.php
  5. 1
      extensions/yii/gii/views/layouts/main.php

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

@ -16,6 +16,7 @@ AppAsset::register($this);
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>

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

@ -17,6 +17,7 @@ AppAsset::register($this);
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>

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

@ -16,6 +16,7 @@ AppAsset::register($this);
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>

2
extensions/yii/debug/views/layouts/main.php

@ -11,6 +11,8 @@ yii\debug\DebugAsset::register($this);
<html>
<?php $this->beginPage() ?>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>

1
extensions/yii/gii/views/layouts/main.php

@ -14,6 +14,7 @@ $asset = yii\gii\GiiAsset::register($this);
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>

Loading…
Cancel
Save