2018-10-11 11:15:09 +03:00
|
|
|
<?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);
|
|
|
|
|
|
|
|
$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() ?>
|
2021-09-06 10:29:50 +03:00
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
2018-10-11 11:15:09 +03:00
|
|
|
</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 } ?>
|