|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?php
-
-
-
- use yii\helpers\Html;
-
-
-
-
-
- if (Yii::$app->controller->action->id === 'login') {
-
- echo $this->render(
- 'main-login',
- ['content' => $content]
- );
- } else {
-
- if (class_exists('backend\assets\AppAsset')) {
- backend\assets\AppAsset::register($this);
- } else {
- app\assets\AppAsset::register($this);
- }
-
- dmstr\web\AdminLteAsset::register($this);
-
- $directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
- ?>
- <?php $this->beginPage() ?>
- <!DOCTYPE html>
- <html lang="<?= Yii::$app->language ?>">
- <head>
- <meta charset="<?= Yii::$app->charset ?>"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <?= Html::csrfMetaTags() ?>
- <title><?= Html::encode($this->title) ?></title>
- <?php $this->head() ?>
- </head>
- <body class="hold-transition <?= \dmstr\helpers\AdminLteHelper::skinClass() ?> sidebar-mini">
- <?php $this->beginBody() ?>
- <div class="wrapper">
-
- <?= $this->render(
- 'header.php',
- ['directoryAsset' => $directoryAsset]
- ) ?>
-
- <?= $this->render(
- 'left.php',
- ['directoryAsset' => $directoryAsset]
- )
- ?>
-
- <?= $this->render(
- 'content.php',
- ['content' => $content, 'directoryAsset' => $directoryAsset]
- ) ?>
-
- </div>
-
- <?php $this->endBody() ?>
- </body>
- </html>
- <?php $this->endPage() ?>
- <?php } ?>
|