guest.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /* @var $this \yii\web\View */
  3. /* @var $content string */
  4. use app\assets\AdminLteAsset;
  5. use app\widgets\Alert;
  6. use yii\helpers\Html;
  7. AdminLteAsset::register($this);
  8. $bodyClass = $this->params['body-class'] ?? null;
  9. Html::addCssClass($bodyClass, ['hold-transition']);
  10. ?>
  11. <?php $this->beginPage() ?>
  12. <!DOCTYPE html>
  13. <html lang="<?= Yii::$app->language ?>">
  14. <head>
  15. <meta charset="<?= Yii::$app->charset ?>">
  16. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  17. <meta name="viewport" content="width=device-width, initial-scale=1">
  18. <?php $this->registerCsrfMetaTags() ?>
  19. <title><?= Html::encode($this->title) ?></title>
  20. <?php $this->head() ?>
  21. </head>
  22. <?= Html::tag('body', '', $bodyClass); ?>
  23. <?php $this->beginBody() ?>
  24. <main>
  25. <?= Alert::widget() ?>
  26. <?= $content ?>
  27. </main>
  28. <footer class="small text-muted text-center">
  29. <p class="pull-left mb-0 mt-3">&copy; <?= Yii::$app->name; ?> <?= date('Y') ?></p>
  30. </footer>
  31. <?php $this->endBody() ?>
  32. </body>
  33. </html>
  34. <?php $this->endPage() ?>