You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4KB

  1. <?php
  2. use yii\bootstrap\NavBar;
  3. use yii\bootstrap\Nav;
  4. use yii\helpers\Html;
  5. /* @var $this \yii\web\View */
  6. /* @var $content string */
  7. $asset = yii\gii\GiiAsset::register($this);
  8. ?>
  9. <?php $this->beginPage() ?>
  10. <!DOCTYPE html>
  11. <html lang="en">
  12. <head>
  13. <meta charset="utf-8"/>
  14. <meta name="viewport" content="width=device-width, initial-scale=1">
  15. <?= Html::csrfMetaTags() ?>
  16. <title><?= Html::encode($this->title) ?></title>
  17. <?php $this->head() ?>
  18. </head>
  19. <body>
  20. <?php $this->beginBody() ?>
  21. <?php
  22. NavBar::begin([
  23. 'brandLabel' => Html::img($asset->baseUrl . '/logo.png'),
  24. 'brandUrl' => ['default/index'],
  25. 'options' => ['class' => 'navbar-inverse navbar-fixed-top'],
  26. ]);
  27. echo Nav::widget([
  28. 'options' => ['class' => 'nav navbar-nav navbar-right'],
  29. 'items' => [
  30. ['label' => 'Home', 'url' => ['default/index']],
  31. ['label' => 'Help', 'url' => 'http://www.yiiframework.com/doc-2.0/guide-tool-gii.html'],
  32. ['label' => 'Application', 'url' => Yii::$app->homeUrl],
  33. ],
  34. ]);
  35. NavBar::end();
  36. ?>
  37. <div class="container">
  38. <?= $content ?>
  39. </div>
  40. <footer class="footer">
  41. <div class="container">
  42. <p class="pull-left">A Product of <a href="http://www.yiisoft.com/">Yii Software LLC</a></p>
  43. <p class="pull-right"><?= Yii::powered() ?></p>
  44. </div>
  45. </footer>
  46. <?php $this->endBody() ?>
  47. </body>
  48. </html>
  49. <?php $this->endPage() ?>