|
- <?php
-
-
-
- use yii\helpers\Html;
-
-
-
-
-
- if (Yii::$app->controller->action->id === 'login') {
-
- echo $this->render(
- 'main-login',
- ['content' => $content]
- );
- } else {
-
- \dmstr\web\AdminLteAsset::register($this);
- \common\assets\CommonAsset::register($this);
- \backend\assets\AppAsset::register($this);
- \backend\assets\VuejsAlertsAsset::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">
- <meta name="baseurl" content="<?= Yii::$app->urlManagerBackend->baseUrl ; ?>">
- <meta name="baseurl-absolute" content="<?= Yii::$app->urlManagerBackend->getHostInfo().Yii::$app->urlManagerBackend->baseUrl; ?>">
- <?= Html::csrfMetaTags() ?>
- <title><?= Html::encode($this->title) ?> | distrib</title>
- <link rel="icon" type="image/png" href="<?php echo Yii::$app->urlManagerBackend->getBaseUrl(); ?>/img/favicon-distrib.png" />
- <?php $this->head() ?>
- </head>
- <body class="<?= Yii::$app->controller->id.'-'.Yii::$app->controller->action->id ?> 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() ?>
- <?= $this->render('@common/views/_analytics.php'); ?>
-
- </body>
- </html>
- <?php $this->endPage() ?>
- <?php } ?>
|