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.
67 lines
1.8 KiB
67 lines
1.8 KiB
3 years ago
|
<?php
|
||
|
|
||
|
use yii\helpers\Html;
|
||
|
|
||
|
/* @var $this \yii\web\View */
|
||
|
/* @var $content string */
|
||
|
|
||
|
|
||
|
if (Yii::$app->controller->action->id === 'login') {
|
||
|
/**
|
||
|
* Do not use this code in your template. Remove it.
|
||
|
* Instead, use the code $this->layout = '//main-login'; in your controller.
|
||
|
*/
|
||
|
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);
|
||
|
\backend\assets\AdminLteSkinAsset::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>
|
||
|
<?= \core\widgets\FaviconWidget::widget() ?>
|
||
|
<?php $this->head() ?>
|
||
|
</head>
|
||
|
<body class="hold-transition skin-blue 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 } ?>
|