Error202
3 years ago
575 changed files with 134303 additions and 3641 deletions
@ -0,0 +1,238 @@
|
||||
<?php |
||||
|
||||
use yii\helpers\Html; |
||||
use yii\helpers\Inflector; |
||||
use yii\widgets\Breadcrumbs; |
||||
use dmstr\widgets\Alert; |
||||
|
||||
?> |
||||
<div class="content-wrapper"> |
||||
<section class="content-header"> |
||||
<?php if (isset($this->blocks['content-header'])) { ?> |
||||
<h1><?= $this->blocks['content-header'] ?></h1>
|
||||
<?php } else { ?> |
||||
<h1> |
||||
<?php |
||||
if ($this->title !== null) { |
||||
echo Html::encode($this->title); |
||||
} else { |
||||
echo Inflector::camel2words( |
||||
Inflector::id2camel($this->context->module->id) |
||||
); |
||||
echo ($this->context->module->id !== \Yii::$app->id) ? '<small>Module</small>' : ''; |
||||
} ?> |
||||
</h1> |
||||
<?php } ?> |
||||
|
||||
<?= |
||||
Breadcrumbs::widget( |
||||
[ |
||||
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], |
||||
] |
||||
) ?> |
||||
</section> |
||||
|
||||
<section class="content"> |
||||
<?= Alert::widget() ?> |
||||
<?= $content ?> |
||||
</section> |
||||
</div> |
||||
|
||||
<footer class="main-footer"> |
||||
<div class="pull-right hidden-xs"> |
||||
<b>Version</b> 2.0 |
||||
</div> |
||||
<strong>Copyright © 2017 - <?= date('Y') ?> <a href="http://zertex.ru">Zertex</a>, Dashboard by <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights
|
||||
reserved. |
||||
</footer> |
||||
|
||||
<!-- Control Sidebar --> |
||||
<aside class="control-sidebar control-sidebar-dark"> |
||||
<!-- Create the tabs --> |
||||
<ul class="nav nav-tabs nav-justified control-sidebar-tabs"> |
||||
<li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li> |
||||
<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li> |
||||
</ul> |
||||
<!-- Tab panes --> |
||||
<div class="tab-content"> |
||||
<!-- Home tab content --> |
||||
<div class="tab-pane" id="control-sidebar-home-tab"> |
||||
<h3 class="control-sidebar-heading">Recent Activity</h3> |
||||
<ul class='control-sidebar-menu'> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<i class="menu-icon fa fa-birthday-cake bg-red"></i> |
||||
|
||||
<div class="menu-info"> |
||||
<h4 class="control-sidebar-subheading">Langdon's Birthday</h4> |
||||
|
||||
<p>Will be 23 on April 24th</p> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<i class="menu-icon fa fa-user bg-yellow"></i> |
||||
|
||||
<div class="menu-info"> |
||||
<h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4> |
||||
|
||||
<p>New phone +1(800)555-1234</p> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<i class="menu-icon fa fa-envelope-o bg-light-blue"></i> |
||||
|
||||
<div class="menu-info"> |
||||
<h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4> |
||||
|
||||
<p>nora@example.com</p> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<i class="menu-icon fa fa-file-code-o bg-green"></i> |
||||
|
||||
<div class="menu-info"> |
||||
<h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4> |
||||
|
||||
<p>Execution time 5 seconds</p> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
</ul> |
||||
<!-- /.control-sidebar-menu --> |
||||
|
||||
<h3 class="control-sidebar-heading">Tasks Progress</h3> |
||||
<ul class='control-sidebar-menu'> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<h4 class="control-sidebar-subheading"> |
||||
Custom Template Design |
||||
<span class="label label-danger pull-right">70%</span> |
||||
</h4> |
||||
|
||||
<div class="progress progress-xxs"> |
||||
<div class="progress-bar progress-bar-danger" style="width: 70%"></div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<h4 class="control-sidebar-subheading"> |
||||
Update Resume |
||||
<span class="label label-success pull-right">95%</span> |
||||
</h4> |
||||
|
||||
<div class="progress progress-xxs"> |
||||
<div class="progress-bar progress-bar-success" style="width: 95%"></div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<h4 class="control-sidebar-subheading"> |
||||
Laravel Integration |
||||
<span class="label label-waring pull-right">50%</span> |
||||
</h4> |
||||
|
||||
<div class="progress progress-xxs"> |
||||
<div class="progress-bar progress-bar-warning" style="width: 50%"></div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<h4 class="control-sidebar-subheading"> |
||||
Back End Framework |
||||
<span class="label label-primary pull-right">68%</span> |
||||
</h4> |
||||
|
||||
<div class="progress progress-xxs"> |
||||
<div class="progress-bar progress-bar-primary" style="width: 68%"></div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
</ul> |
||||
<!-- /.control-sidebar-menu --> |
||||
|
||||
</div> |
||||
<!-- /.tab-pane --> |
||||
|
||||
<!-- Settings tab content --> |
||||
<div class="tab-pane" id="control-sidebar-settings-tab"> |
||||
<form method="post"> |
||||
<h3 class="control-sidebar-heading">General Settings</h3> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Report panel usage |
||||
<input type="checkbox" class="pull-right" checked/> |
||||
</label> |
||||
|
||||
<p> |
||||
Some information about this general settings option |
||||
</p> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Allow mail redirect |
||||
<input type="checkbox" class="pull-right" checked/> |
||||
</label> |
||||
|
||||
<p> |
||||
Other sets of options are available |
||||
</p> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Expose author name in posts |
||||
<input type="checkbox" class="pull-right" checked/> |
||||
</label> |
||||
|
||||
<p> |
||||
Allow the user to show his name in blog posts |
||||
</p> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<h3 class="control-sidebar-heading">Chat Settings</h3> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Show me as online |
||||
<input type="checkbox" class="pull-right" checked/> |
||||
</label> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Turn off notifications |
||||
<input type="checkbox" class="pull-right"/> |
||||
</label> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Delete chat history |
||||
<a href="javascript::;" class="text-red pull-right"><i class="fa fa-trash-o"></i></a> |
||||
</label> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
</form> |
||||
</div> |
||||
<!-- /.tab-pane --> |
||||
</div> |
||||
</aside><!-- /.control-sidebar --> |
||||
<!-- Add the sidebar's background. This div must be placed |
||||
immediately after the control sidebar --> |
||||
<div class='control-sidebar-bg'></div> |
@ -1,235 +1,64 @@
|
||||
<?php |
||||
use yii\widgets\Breadcrumbs; |
||||
use dmstr\widgets\Alert; |
||||
|
||||
?> |
||||
<div class="content-wrapper"> |
||||
<section class="content-header"> |
||||
<?php if (isset($this->blocks['content-header'])) { ?> |
||||
<h1><?= $this->blocks['content-header'] ?></h1>
|
||||
<?php } else { ?> |
||||
<h1> |
||||
<?php |
||||
if ($this->title !== null) { |
||||
echo \yii\helpers\Html::encode($this->title); |
||||
} else { |
||||
echo \yii\helpers\Inflector::camel2words( |
||||
\yii\helpers\Inflector::id2camel($this->context->module->id) |
||||
); |
||||
echo ($this->context->module->id !== \Yii::$app->id) ? '<small>Module</small>' : ''; |
||||
} ?> |
||||
</h1> |
||||
<?php } ?> |
||||
use core\components\adminlte3\widgets\Breadcrumbs; |
||||
use core\components\adminlte3\widgets\ToastrNotification; |
||||
use yii\web\View; |
||||
use yii\helpers\Html; |
||||
use yii\helpers\Inflector; |
||||
|
||||
<?= |
||||
Breadcrumbs::widget( |
||||
[ |
||||
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], |
||||
] |
||||
) ?> |
||||
</section> |
||||
/** |
||||
* @var $this View |
||||
* @var $content string |
||||
*/ |
||||
|
||||
<section class="content"> |
||||
<?= Alert::widget() ?> |
||||
<?= $content ?> |
||||
</section> |
||||
?> |
||||
<div class="content-wrapper"> |
||||
<!-- Content Header (Page header) --> |
||||
<div class="content-header"> |
||||
<div class="container-fluid"> |
||||
<div class="row mb-2"> |
||||
<div class="col-sm-6"> |
||||
|
||||
<?php if (isset($this->blocks['content-header'])) : ?> |
||||
<h4 class="m-0 text-dark"><?= $this->blocks['content-header'] ?></h4>
|
||||
<?php else: ?> |
||||
<h4 class="m-0 text-dark"> |
||||
<?php |
||||
if ($this->title !== null) { |
||||
echo Html::encode($this->title); |
||||
} else { |
||||
echo Inflector::camel2words( |
||||
Inflector::id2camel($this->context->module->id) |
||||
); |
||||
echo ($this->context->module->id !== \Yii::$app->id) ? '<small>Module</small>' : ''; |
||||
} ?> |
||||
</h4> |
||||
<?php endif; ?> |
||||
|
||||
</div><!-- /.col --> |
||||
<div class="col-sm-6"> |
||||
|
||||
<?= |
||||
Breadcrumbs::widget([ |
||||
'links' => $this->params['breadcrumbs'] ?? [], |
||||
]) ?> |
||||
</div><!-- /.col --> |
||||
</div><!-- /.row --> |
||||
</div><!-- /.container-fluid --> |
||||
</div> |
||||
<!-- /.content-header --> |
||||
|
||||
<!-- Main content --> |
||||
<div class="content"> |
||||
<div class="container-fluid"> |
||||
|
||||
<section class="content"> |
||||
<?= ToastrNotification::widget() ?> |
||||
<?= $content ?> |
||||
</section> |
||||
|
||||
</div> |
||||
<!-- /.container-fluid --> |
||||
</div> |
||||
<!-- /.content --> |
||||
</div> |
||||
|
||||
<footer class="main-footer"> |
||||
<div class="pull-right hidden-xs"> |
||||
<b>Version</b> 2.0 |
||||
</div> |
||||
<strong>Copyright © 2017 - <?= date('Y') ?> <a href="http://zertex.ru">Zertex</a>, Dashboard by <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights
|
||||
reserved. |
||||
</footer> |
||||
|
||||
<!-- Control Sidebar --> |
||||
<aside class="control-sidebar control-sidebar-dark"> |
||||
<!-- Create the tabs --> |
||||
<ul class="nav nav-tabs nav-justified control-sidebar-tabs"> |
||||
<li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li> |
||||
<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li> |
||||
</ul> |
||||
<!-- Tab panes --> |
||||
<div class="tab-content"> |
||||
<!-- Home tab content --> |
||||
<div class="tab-pane" id="control-sidebar-home-tab"> |
||||
<h3 class="control-sidebar-heading">Recent Activity</h3> |
||||
<ul class='control-sidebar-menu'> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<i class="menu-icon fa fa-birthday-cake bg-red"></i> |
||||
|
||||
<div class="menu-info"> |
||||
<h4 class="control-sidebar-subheading">Langdon's Birthday</h4> |
||||
|
||||
<p>Will be 23 on April 24th</p> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<i class="menu-icon fa fa-user bg-yellow"></i> |
||||
|
||||
<div class="menu-info"> |
||||
<h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4> |
||||
|
||||
<p>New phone +1(800)555-1234</p> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<i class="menu-icon fa fa-envelope-o bg-light-blue"></i> |
||||
|
||||
<div class="menu-info"> |
||||
<h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4> |
||||
|
||||
<p>nora@example.com</p> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<i class="menu-icon fa fa-file-code-o bg-green"></i> |
||||
|
||||
<div class="menu-info"> |
||||
<h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4> |
||||
|
||||
<p>Execution time 5 seconds</p> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
</ul> |
||||
<!-- /.control-sidebar-menu --> |
||||
|
||||
<h3 class="control-sidebar-heading">Tasks Progress</h3> |
||||
<ul class='control-sidebar-menu'> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<h4 class="control-sidebar-subheading"> |
||||
Custom Template Design |
||||
<span class="label label-danger pull-right">70%</span> |
||||
</h4> |
||||
|
||||
<div class="progress progress-xxs"> |
||||
<div class="progress-bar progress-bar-danger" style="width: 70%"></div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<h4 class="control-sidebar-subheading"> |
||||
Update Resume |
||||
<span class="label label-success pull-right">95%</span> |
||||
</h4> |
||||
|
||||
<div class="progress progress-xxs"> |
||||
<div class="progress-bar progress-bar-success" style="width: 95%"></div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<h4 class="control-sidebar-subheading"> |
||||
Laravel Integration |
||||
<span class="label label-waring pull-right">50%</span> |
||||
</h4> |
||||
|
||||
<div class="progress progress-xxs"> |
||||
<div class="progress-bar progress-bar-warning" style="width: 50%"></div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href='javascript::;'> |
||||
<h4 class="control-sidebar-subheading"> |
||||
Back End Framework |
||||
<span class="label label-primary pull-right">68%</span> |
||||
</h4> |
||||
|
||||
<div class="progress progress-xxs"> |
||||
<div class="progress-bar progress-bar-primary" style="width: 68%"></div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
</ul> |
||||
<!-- /.control-sidebar-menu --> |
||||
|
||||
</div> |
||||
<!-- /.tab-pane --> |
||||
|
||||
<!-- Settings tab content --> |
||||
<div class="tab-pane" id="control-sidebar-settings-tab"> |
||||
<form method="post"> |
||||
<h3 class="control-sidebar-heading">General Settings</h3> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Report panel usage |
||||
<input type="checkbox" class="pull-right" checked/> |
||||
</label> |
||||
|
||||
<p> |
||||
Some information about this general settings option |
||||
</p> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Allow mail redirect |
||||
<input type="checkbox" class="pull-right" checked/> |
||||
</label> |
||||
|
||||
<p> |
||||
Other sets of options are available |
||||
</p> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Expose author name in posts |
||||
<input type="checkbox" class="pull-right" checked/> |
||||
</label> |
||||
|
||||
<p> |
||||
Allow the user to show his name in blog posts |
||||
</p> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<h3 class="control-sidebar-heading">Chat Settings</h3> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Show me as online |
||||
<input type="checkbox" class="pull-right" checked/> |
||||
</label> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Turn off notifications |
||||
<input type="checkbox" class="pull-right"/> |
||||
</label> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
|
||||
<div class="form-group"> |
||||
<label class="control-sidebar-subheading"> |
||||
Delete chat history |
||||
<a href="javascript::;" class="text-red pull-right"><i class="fa fa-trash-o"></i></a> |
||||
</label> |
||||
</div> |
||||
<!-- /.form-group --> |
||||
</form> |
||||
</div> |
||||
<!-- /.tab-pane --> |
||||
</div> |
||||
</aside><!-- /.control-sidebar --> |
||||
<!-- Add the sidebar's background. This div must be placed |
||||
immediately after the control sidebar --> |
||||
<div class='control-sidebar-bg'></div> |
@ -0,0 +1,33 @@
|
||||
<?php |
||||
|
||||
use backend\assets\AdminLteSkinAsset; |
||||
use backend\assets\AppAsset; |
||||
use yii\helpers\Html; |
||||
use yii\web\View; |
||||
|
||||
/* @var $this View */ |
||||
/* @var $content string */ |
||||
|
||||
dmstr\web\AdminLteAsset::register($this); |
||||
AdminLteSkinAsset::register($this); |
||||
?> |
||||
<?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> |
||||
|
||||
<?php $this->beginBody() ?> |
||||
|
||||
<?= $content ?> |
||||
|
||||
<?php $this->endBody() ?> |
||||
</body> |
||||
</html> |
||||
<?php $this->endPage() ?> |
@ -0,0 +1,265 @@
|
||||
<?php |
||||
|
||||
use backend\widgets\NotificationCountWidget; |
||||
use core\helpers\LanguageHelper; |
||||
use yii\helpers\Html; |
||||
use yii\web\View; |
||||
|
||||
/* @var $this View */ |
||||
/* @var $content string */ |
||||
?> |
||||
|
||||
<header class="main-header"> |
||||
|
||||
<?= Html::a('<span class="logo-mini">' . (Yii::$app->params['settings']['site']['short_name'] ?? 'APP') . '</span><span class="logo-lg">' . (isset(Yii::$app->params['settings']['site']['name']) ? Yii::$app->params['settings']['site']['name'] : Yii::$app->name) . '</span>', |
||||
Yii::$app->homeUrl, ['class' => 'logo']) ?> |
||||
|
||||
<nav class="navbar navbar-static-top" role="navigation"> |
||||
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"> |
||||
<span class="sr-only">Toggle navigation</span> |
||||
</a> |
||||
|
||||
<div class="navbar-custom-menu"> |
||||
|
||||
<ul class="nav navbar-nav"> |
||||
|
||||
<!-- Messages: style can be found in dropdown.less--> |
||||
<!-- |
||||
<li class="dropdown messages-menu"> |
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||||
<i class="fa fa-envelope-o"></i> |
||||
<span class="label label-success">4</span> |
||||
</a> |
||||
<ul class="dropdown-menu"> |
||||
<li class="header">You have 4 messages</li> |
||||
<li> |
||||
|
||||
<ul class="menu"> |
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle" |
||||
alt="User Image"/> |
||||
</div> |
||||
<h4> |
||||
Support Team |
||||
<small><i class="fa fa-clock-o"></i> 5 mins</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
|
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user3-128x128.jpg" class="img-circle" |
||||
alt="user image"/> |
||||
</div> |
||||
<h4> |
||||
AdminLTE Design Team |
||||
<small><i class="fa fa-clock-o"></i> 2 hours</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user4-128x128.jpg" class="img-circle" |
||||
alt="user image"/> |
||||
</div> |
||||
<h4> |
||||
Developers |
||||
<small><i class="fa fa-clock-o"></i> Today</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user3-128x128.jpg" class="img-circle" |
||||
alt="user image"/> |
||||
</div> |
||||
<h4> |
||||
Sales Department |
||||
<small><i class="fa fa-clock-o"></i> Yesterday</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user4-128x128.jpg" class="img-circle" |
||||
alt="user image"/> |
||||
</div> |
||||
<h4> |
||||
Reviewers |
||||
<small><i class="fa fa-clock-o"></i> 2 days</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
</ul> |
||||
</li> |
||||
<li class="footer"><a href="#">See All Messages</a></li> |
||||
</ul> |
||||
</li> |
||||
--> |
||||
|
||||
<?= NotificationCountWidget::widget() ?> |
||||
|
||||
<!-- Tasks: style can be found in dropdown.less --> |
||||
<!-- |
||||
<li class="dropdown tasks-menu"> |
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||||
<i class="fa fa-flag-o"></i> |
||||
<span class="label label-danger">9</span> |
||||
</a> |
||||
<ul class="dropdown-menu"> |
||||
<li class="header">You have 9 tasks</li> |
||||
<li> |
||||
<ul class="menu"> |
||||
<li> |
||||
<a href="#"> |
||||
<h3> |
||||
Design some buttons |
||||
<small class="pull-right">20%</small> |
||||
</h3> |
||||
<div class="progress xs"> |
||||
<div class="progress-bar progress-bar-aqua" style="width: 20%" |
||||
role="progressbar" aria-valuenow="20" aria-valuemin="0" |
||||
aria-valuemax="100"> |
||||
<span class="sr-only">20% Complete</span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
|
||||
<li> |
||||
<a href="#"> |
||||
<h3> |
||||
Create a nice theme |
||||
<small class="pull-right">40%</small> |
||||
</h3> |
||||
<div class="progress xs"> |
||||
<div class="progress-bar progress-bar-green" style="width: 40%" |
||||
role="progressbar" aria-valuenow="20" aria-valuemin="0" |
||||
aria-valuemax="100"> |
||||
<span class="sr-only">40% Complete</span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
|
||||
<li> |
||||
<a href="#"> |
||||
<h3> |
||||
Some task I need to do |
||||
<small class="pull-right">60%</small> |
||||
</h3> |
||||
<div class="progress xs"> |
||||
<div class="progress-bar progress-bar-red" style="width: 60%" |
||||
role="progressbar" aria-valuenow="20" aria-valuemin="0" |
||||
aria-valuemax="100"> |
||||
<span class="sr-only">60% Complete</span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
|
||||
<li> |
||||
<a href="#"> |
||||
<h3> |
||||
Make beautiful transitions |
||||
<small class="pull-right">80%</small> |
||||
</h3> |
||||
<div class="progress xs"> |
||||
<div class="progress-bar progress-bar-yellow" style="width: 80%" |
||||
role="progressbar" aria-valuenow="20" aria-valuemin="0" |
||||
aria-valuemax="100"> |
||||
<span class="sr-only">80% Complete</span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
|
||||
</ul> |
||||
</li> |
||||
<li class="footer"> |
||||
<a href="#">View all tasks</a> |
||||
</li> |
||||
</ul> |
||||
</li> |
||||
--> |
||||
|
||||
<!-- Language Drop Down --> |
||||
<li class="dropdown messages-menu"> |
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||||
<!-- <i class="fa fa-language"></i> --> |
||||
<span><?= LanguageHelper::getBackendName(Yii::$app->user->identity->user->backend_language) ?> |
||||
<i class="caret"></i></span> |
||||
</a> |
||||
<ul class="dropdown-menu"> |
||||
<li class="header"><?= Yii::t('main', 'Interface Language') ?></li>
|
||||
<li> |
||||
<!-- inner menu: contains the actual data --> |
||||
<ul class="menu"> |
||||
<?php foreach (Yii::$app->params['backendTranslatedLanguages'] as $language => $language_name): ?> |
||||
<li> |
||||
<?= Html::a($language_name, ['/site/language', 'language' => $language], [ |
||||
'data-method' => 'post' |
||||
]) ?> |
||||
</li> |
||||
<?php endforeach; ?> |
||||
</ul> |
||||
</li> |
||||
</ul> |
||||
</li> |
||||
|
||||
<li class="dropdown user user-menu"> |
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||||
<img src="<?= Yii::$app->avatar->show(Yii::$app->user->identity->user->username) ?>"
|
||||
class="user-image" alt="<?= Yii::$app->user->identity->user->username ?>"/>
|
||||
<span class="hidden-xs"><?= Yii::$app->user->identity->user->username ?></span>
|
||||
</a> |
||||
<ul class="dropdown-menu"> |
||||
<!-- User image --> |
||||
<li class="user-header"> |
||||
<img src="<?= Yii::$app->avatar->show(Yii::$app->user->identity->user->username) ?>"
|
||||
class="img-circle" |
||||
alt="<?= Yii::$app->user->identity->user->username ?>"/>
|
||||
|
||||
<p> |
||||
<?= Yii::$app->user->identity->user->username ?> |
||||
<small><?= Yii::t('user', 'Registered: {date}', [ |
||||
'date' => date('d.m.Y', Yii::$app->user->identity->user->created_at) |
||||
]) ?></small> |
||||
</p> |
||||
</li> |
||||
<!-- Menu Footer--> |
||||
<li class="user-footer"> |
||||
<div class="pull-left"> |
||||
<?= Html::a( |
||||
Yii::t('user', 'Profile'), |
||||
['/user/profile'], |
||||
['class' => 'btn btn-default btn-flat'] |
||||
) |
||||
?> |
||||
</div> |
||||
<div class="pull-right"> |
||||
<?= Html::a( |
||||
Yii::t('main', 'Sign out'), |
||||
['/auth/logout'], |
||||
['data-method' => 'post', 'class' => 'btn btn-default btn-flat'] |
||||
) ?> |
||||
</div> |
||||
</li> |
||||
</ul> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</nav> |
||||
</header> |
@ -1,264 +1,56 @@
|
||||
<?php |
||||
|
||||
use yii\helpers\Html; |
||||
use yii\helpers\Url; |
||||
use yii\web\JsExpression; |
||||
use yii\web\View; |
||||
use kartik\select2\Select2; |
||||
|
||||
/* @var $this \yii\web\View */ |
||||
/* @var $this View */ |
||||
/* @var $content string */ |
||||
|
||||
//$avatar = new AvatarGenerator(); |
||||
?> |
||||
|
||||
<header class="main-header"> |
||||
|
||||
<?= Html::a('<span class="logo-mini">' . (isset(Yii::$app->params['settings']['site']['short_name']) ? Yii::$app->params['settings']['site']['short_name'] : 'APP') . '</span><span class="logo-lg">' . (isset(Yii::$app->params['settings']['site']['name']) ? Yii::$app->params['settings']['site']['name'] : Yii::$app->name) . '</span>', |
||||
Yii::$app->homeUrl, ['class' => 'logo']) ?> |
||||
|
||||
<nav class="navbar navbar-static-top" role="navigation"> |
||||
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"> |
||||
<span class="sr-only">Toggle navigation</span> |
||||
</a> |
||||
|
||||
<div class="navbar-custom-menu"> |
||||
|
||||
<ul class="nav navbar-nav"> |
||||
|
||||
<!-- Messages: style can be found in dropdown.less--> |
||||
<!-- |
||||
<li class="dropdown messages-menu"> |
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||||
<i class="fa fa-envelope-o"></i> |
||||
<span class="label label-success">4</span> |
||||
</a> |
||||
<ul class="dropdown-menu"> |
||||
<li class="header">You have 4 messages</li> |
||||
<li> |
||||
|
||||
<ul class="menu"> |
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle" |
||||
alt="User Image"/> |
||||
</div> |
||||
<h4> |
||||
Support Team |
||||
<small><i class="fa fa-clock-o"></i> 5 mins</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
|
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user3-128x128.jpg" class="img-circle" |
||||
alt="user image"/> |
||||
</div> |
||||
<h4> |
||||
AdminLTE Design Team |
||||
<small><i class="fa fa-clock-o"></i> 2 hours</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user4-128x128.jpg" class="img-circle" |
||||
alt="user image"/> |
||||
</div> |
||||
<h4> |
||||
Developers |
||||
<small><i class="fa fa-clock-o"></i> Today</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user3-128x128.jpg" class="img-circle" |
||||
alt="user image"/> |
||||
</div> |
||||
<h4> |
||||
Sales Department |
||||
<small><i class="fa fa-clock-o"></i> Yesterday</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
<li> |
||||
<a href="#"> |
||||
<div class="pull-left"> |
||||
<img src="< ?= $directoryAsset ?>/img/user4-128x128.jpg" class="img-circle" |
||||
alt="user image"/> |
||||
</div> |
||||
<h4> |
||||
Reviewers |
||||
<small><i class="fa fa-clock-o"></i> 2 days</small> |
||||
</h4> |
||||
<p>Why not buy a new awesome theme?</p> |
||||
</a> |
||||
</li> |
||||
</ul> |
||||
</li> |
||||
<li class="footer"><a href="#">See All Messages</a></li> |
||||
</ul> |
||||
</li> |
||||
--> |
||||
|
||||
<?= \backend\widgets\NotificationCountWidget::widget() ?> |
||||
|
||||
<!-- Tasks: style can be found in dropdown.less --> |
||||
<!-- |
||||
<li class="dropdown tasks-menu"> |
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||||
<i class="fa fa-flag-o"></i> |
||||
<span class="label label-danger">9</span> |
||||
</a> |
||||
<ul class="dropdown-menu"> |
||||
<li class="header">You have 9 tasks</li> |
||||
<li> |
||||
<ul class="menu"> |
||||
<li> |
||||
<a href="#"> |
||||
<h3> |
||||
Design some buttons |
||||
<small class="pull-right">20%</small> |
||||
</h3> |
||||
<div class="progress xs"> |
||||
<div class="progress-bar progress-bar-aqua" style="width: 20%" |
||||
role="progressbar" aria-valuenow="20" aria-valuemin="0" |
||||
aria-valuemax="100"> |
||||
<span class="sr-only">20% Complete</span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
|
||||
<li> |
||||
<a href="#"> |
||||
<h3> |
||||
Create a nice theme |
||||
<small class="pull-right">40%</small> |
||||
</h3> |
||||
<div class="progress xs"> |
||||
<div class="progress-bar progress-bar-green" style="width: 40%" |
||||
role="progressbar" aria-valuenow="20" aria-valuemin="0" |
||||
aria-valuemax="100"> |
||||
<span class="sr-only">40% Complete</span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
|
||||
<li> |
||||
<a href="#"> |
||||
<h3> |
||||
Some task I need to do |
||||
<small class="pull-right">60%</small> |
||||
</h3> |
||||
<div class="progress xs"> |
||||
<div class="progress-bar progress-bar-red" style="width: 60%" |
||||
role="progressbar" aria-valuenow="20" aria-valuemin="0" |
||||
aria-valuemax="100"> |
||||
<span class="sr-only">60% Complete</span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
|
||||
<li> |
||||
<a href="#"> |
||||
<h3> |
||||
Make beautiful transitions |
||||
<small class="pull-right">80%</small> |
||||
</h3> |
||||
<div class="progress xs"> |
||||
<div class="progress-bar progress-bar-yellow" style="width: 80%" |
||||
role="progressbar" aria-valuenow="20" aria-valuemin="0" |
||||
aria-valuemax="100"> |
||||
<span class="sr-only">80% Complete</span> |
||||
</div> |
||||
</div> |
||||
</a> |
||||
</li> |
||||
|
||||
</ul> |
||||
</li> |
||||
<li class="footer"> |
||||
<a href="#">View all tasks</a> |
||||
</li> |
||||
</ul> |
||||
</li> |
||||
--> |
||||
|
||||
<!-- Language Drop Down --> |
||||
<li class="dropdown messages-menu"> |
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||||
<!-- <i class="fa fa-language"></i> --> |
||||
<span><?= \core\helpers\LanguageHelper::getBackendName(Yii::$app->user->identity->user->backend_language) ?> |
||||
<i class="caret"></i></span> |
||||
</a> |
||||
<ul class="dropdown-menu"> |
||||
<li class="header"><?= Yii::t('main', 'Interface Language') ?></li>
|
||||
<li> |
||||
<!-- inner menu: contains the actual data --> |
||||
<ul class="menu"> |
||||
<?php foreach (Yii::$app->params['backendTranslatedLanguages'] as $language => $language_name): ?> |
||||
<li> |
||||
<?= Html::a($language_name, ['/site/language', 'language' => $language], [ |
||||
'data-method' => 'post' |
||||
]) ?> |
||||
</li> |
||||
<?php endforeach; ?> |
||||
</ul> |
||||
</li> |
||||
</ul> |
||||
</li> |
||||
|
||||
<li class="dropdown user user-menu"> |
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
||||
<img src="<?= Yii::$app->avatar->show(Yii::$app->user->identity->user->username) ?>"
|
||||
class="user-image" alt="<?= Yii::$app->user->identity->user->username ?>"/>
|
||||
<span class="hidden-xs"><?= Yii::$app->user->identity->user->username ?></span>
|
||||
</a> |
||||
<ul class="dropdown-menu"> |
||||
<!-- User image --> |
||||
<li class="user-header"> |
||||
<img src="<?= Yii::$app->avatar->show(Yii::$app->user->identity->user->username) ?>"
|
||||
class="img-circle" |
||||
alt="<?= Yii::$app->user->identity->user->username ?>"/>
|
||||
|
||||
<p> |
||||
<?= Yii::$app->user->identity->user->username ?> |
||||
<small><?= Yii::t('user', 'Registered: {date}', [ |
||||
'date' => date('d.m.Y', Yii::$app->user->identity->user->created_at) |
||||
]) ?></small> |
||||
</p> |
||||
</li> |
||||
<!-- Menu Footer--> |
||||
<li class="user-footer"> |
||||
<div class="pull-left"> |
||||
<?= Html::a( |
||||
Yii::t('user', 'Profile'), |
||||
['/user/profile'], |
||||
['class' => 'btn btn-default btn-flat'] |
||||
) |
||||
?> |
||||
</div> |
||||
<div class="pull-right"> |
||||
<?= Html::a( |
||||
Yii::t('main', 'Sign out'), |
||||
['/auth/logout'], |
||||
['data-method' => 'post', 'class' => 'btn btn-default btn-flat'] |
||||
) ?> |
||||
</div> |
||||
</li> |
||||
</ul> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</nav> |
||||
</header> |
||||
<nav class="main-header navbar navbar-expand navbar-white navbar-light"> |
||||
<!-- Left navbar links --> |
||||
<ul class="navbar-nav"> |
||||
<li class="nav-item"> |
||||
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a> |
||||
</li> |
||||
<!-- <li class="nav-item d-none d-sm-inline-block"> |
||||
<?= Html::a(Yii::t('links', 'Plans'), ['/links/link/plans'], [ |
||||
'class' => 'nav-link', |
||||
]) ?> |
||||
</li> --> |
||||
</ul> |
||||
|
||||
<!-- Right navbar links --> |
||||
<ul class="navbar-nav ml-auto"> |
||||
|
||||
<!-- < ?= NotifyContactWidget::widget() ?> |
||||
< ?= NotifyOrderWidget::widget() ?> |
||||
< ?= NotifyReviewWidget::widget() ?> --> |
||||
|
||||
<!-- User Menu --> |
||||
<li class="nav-item dropdown"> |
||||
<a class="nav-link" data-toggle="dropdown" href="#"> |
||||
<i class="far fa-user"></i> |
||||
</a> |
||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right"> |
||||
|
||||
<?= Html::a( |
||||
'<i class="fas fa-user fa-fw"></i> ' . Yii::t('user', 'Profile'), |
||||
['/user/profile'], |
||||
['class' => 'dropdown-item'] |
||||
) ?> |
||||
<div class="dropdown-divider"></div> |
||||
<?= Html::a( |
||||
'<i class="fas fa-sign-out-alt fa-fw"></i> ' . Yii::t('user', 'Sign out'), |
||||
['/auth/auth/logout'], |
||||
['data-method' => 'post', 'class' => 'dropdown-item'] |
||||
) ?> |
||||
|
||||
</div> |
||||
</li> |
||||
|
||||
</ul> |
||||
</nav> |
||||
|
@ -0,0 +1,211 @@
|
||||
<?php |
||||
|
||||
use core\entities\post\PostType; |
||||
use kartik\form\ActiveForm; |
||||
use core\forms\SearchForm; |
||||
use yii\helpers\Html; |
||||
use yii\helpers\Url; |
||||
|
||||
$model = new SearchForm(); |
||||
?> |
||||
|
||||
<aside class="main-sidebar"> |
||||
|
||||
<section class="sidebar"> |
||||
|
||||
<!-- Sidebar user panel --> |
||||
<div class="user-panel"> |
||||
<div class="pull-left image"> |
||||
<img src="<?= Yii::$app->avatar->show(Yii::$app->user->identity->user->username) ?>" class="img-circle"
|
||||
alt="<?= Yii::$app->user->identity->user->username ?>"/>
|
||||
</div> |
||||
<div class="pull-left info"> |
||||
<p><?= Yii::$app->user->identity->user->username ?></p>
|
||||
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> <?= Yii::t('main', 'Online') ?></a>
|
||||
</div> |
||||
</div> |
||||
|
||||
<!-- search form --> |
||||
<?php $form = ActiveForm::begin([ |
||||
'action' => Url::to(['/site/search']), |
||||
'options' => [ |
||||
'class' => 'sidebar-form' |
||||
], |
||||
'enableClientValidation' => false, |
||||
'fieldConfig' => [ |
||||
'options' => [ |
||||
'tag' => false, |
||||
], |
||||
], |
||||
]); ?> |
||||
|
||||
<?= $form->field($model, 'query', [ |
||||
'addon' => [ |
||||
'append' => [ |
||||
'content' => Html::button('<i class="fa fa-search"></i>', ['class' => 'btn btn-flat', 'id' => 'search-btn']), |
||||
'asButton' => true |
||||
] |
||||
], |
||||
'template' => "{input}", |
||||
])->textInput(['placeholder' => Yii::t('main', 'Search...')])->label(false)->hint(false); ?> |
||||
|
||||
<?php ActiveForm::end(); ?> |
||||
<!-- /.search form --> |
||||
|
||||
<?= dmstr\widgets\Menu::widget( |
||||
[ |
||||
'options' => ['class' => 'sidebar-menu tree', 'data-widget' => 'tree'], |
||||
'items' => \yii\helpers\ArrayHelper::merge([ |
||||
['label' => Yii::t('main', 'Menu'), 'options' => ['class' => 'header']], |
||||
|
||||
[ |
||||
'label' => Yii::t('dashboard', 'Dashboard'), |
||||
'icon' => 'dashboard', |
||||
'url' => ['/site/index'], |
||||
'active' => $this->context->id == '/site/index' |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('user', 'Users'), |
||||
'icon' => 'user', |
||||
'url' => ['/user/index'], |
||||
'active' => $this->context->id == 'user', |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('UserManagement'), |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('user', 'Access Rules'), |
||||
'icon' => 'lock', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('user', 'Roles'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/role/index'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'role' |
||||
], |
||||
[ |
||||
'label' => Yii::t('user', 'Permissions'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/permission/index'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'permission' |
||||
], |
||||
], |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('UserManagement') |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('menu', 'Menu'), |
||||
'icon' => 'bars', |
||||
'url' => ['/menu/index'], |
||||
'active' => $this->context->id == 'menu', |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('MenuManagement'), |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('main', 'Modules'), |
||||
'icon' => 'cubes', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('main', 'Modules'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/module/list'], |
||||
'active' => \Yii::$app->controller->action->getUniqueId() == 'module/list' |
||||
], |
||||
[ |
||||
'label' => Yii::t('main', 'Find modules'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/module/search'], |
||||
'active' => \Yii::$app->controller->action->getUniqueId() == 'module/search' |
||||
], |
||||
], |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('ModuleManagement') |
||||
], |
||||
|
||||
/*[ |
||||
'label' => Yii::t('pages', 'Pages'), |
||||
'icon' => 'file-o', 'url' => ['/page/index'], |
||||
'active' => $this->context->id == 'page', |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('PagesManagement'), |
||||
],*/ |
||||
|
||||
[ |
||||
'label' => Yii::t('post', 'Posts'), |
||||
'icon' => 'newspaper-o', |
||||
'items' => array_merge( |
||||
array_map(function (PostType $type) { |
||||
return [ |
||||
'label' => $type->plural, |
||||
'icon' => 'caret-right', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('post', 'Categories'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/category', 'tid' => $type->id], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/category' && \Yii::$app->request->get('tid') == $type->id |
||||
], |
||||
[ |
||||
'label' => $type->plural, |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/post', 'tid' => $type->id], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/post' && \Yii::$app->request->get('tid') == $type->id |
||||
], |
||||
[ |
||||
'label' => Yii::t('post', 'Tags'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/tag', 'tid' => $type->id], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/tag' && \Yii::$app->request->get('tid') == $type->id |
||||
], |
||||
] |
||||
]; |
||||
}, PostType::find()->all()), |
||||
[ |
||||
[ |
||||
'label' => Yii::t('post', 'Comments'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/comment'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/comment' |
||||
] |
||||
], |
||||
[ |
||||
[ |
||||
'label' => Yii::t('post', 'Types'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/type'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/type' |
||||
] |
||||
] |
||||
), |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('PostManagement') |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('slider', 'Slider'), |
||||
'icon' => 'retweet', |
||||
'url' => ['/slider/index'], |
||||
'active' => $this->context->id == 'slider', |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('SliderManagement'), |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('main', 'Settings'), |
||||
'icon' => 'cog', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('main', 'Settings List'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/settings/list/index'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'settings/list' |
||||
], |
||||
//['label' => Yii::t('main', 'Find modules'), 'icon' => 'caret-right', 'url' => ['/module/search'], 'active' => \Yii::$app->controller->action->getUniqueId() == 'module/search'], |
||||
], |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('SettingsManagement') |
||||
], |
||||
|
||||
], (isset(Yii::$app->params['adminMenu']) && is_array(Yii::$app->params['adminMenu']) ? Yii::$app->params['adminMenu'] : [])), |
||||
] |
||||
) ?> |
||||
|
||||
</section> |
||||
|
||||
</aside> |
@ -1,210 +1,291 @@
|
||||
<?php |
||||
|
||||
//use yii\widgets\ActiveForm; |
||||
use kartik\form\ActiveForm; |
||||
use core\forms\SearchForm; |
||||
use yii\helpers\Html; |
||||
use core\components\adminlte3\widgets\Menu; |
||||
use yii\helpers\ArrayHelper; |
||||
use yii\web\View; |
||||
|
||||
$model = new SearchForm(); |
||||
//use app\modules\customers\entities\CustomerBase; |
||||
|
||||
/** |
||||
* @var $this View |
||||
*/ |
||||
|
||||
//$image = Yii::$app->imager; |
||||
$css = <<<CSS |
||||
.brand-link .brand-image { |
||||
float: none !important; |
||||
} |
||||
|
||||
.sidebar-dark-primary .nav-sidebar.nav-legacy > .nav-item > .nav-link.active, .sidebar-light-primary .nav-sidebar.nav-legacy > .nav-item > .nav-link.active { |
||||
border-color: #9ed6db; |
||||
} |
||||
CSS; |
||||
$this->registerCss($css); |
||||
?> |
||||
<aside class="main-sidebar sidebar-dark-primary elevation-4"> |
||||
<!-- Brand Logo --> |
||||
<a href="<?= Yii::$app->homeUrl ?>" class="brand-link">
|
||||
<img src="<?= Yii::$app->params['staticHostInfo'] ?>/images/ego_white.svg" class="brand-image " style="opacity: .8">
|
||||
</a> |
||||
|
||||
<!-- Sidebar --> |
||||
<div class="sidebar"> |
||||
<!-- Sidebar user panel (optional) --> |
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex"> |
||||
<div class="image"> |
||||
<!-- <img src="< ?= $image->avatar(Yii::$app->user->id) ?>" class="img-circle elevation-2" alt="User Image"> --> |
||||
<img src="<?= Yii::$app->avatar->show(Yii::$app->user->identity->user->username . '_' . Yii::$app->user->id, null, null, Yii::$app->user->identity->user->user_pic) ?>?<?= rand(10, 5000) ?>" class="img-circle elevation-2" alt="<?= Yii::$app->user->identity->user->username ?>">
|
||||
</div> |
||||
<div class="info"> |
||||
<a href="#" class="d-block"><?= Yii::$app->user->identity->user->username ?></a>
|
||||
</div> |
||||
</div> |
||||
|
||||
<aside class="main-sidebar"> |
||||
|
||||
<section class="sidebar"> |
||||
|
||||
<!-- Sidebar user panel --> |
||||
<div class="user-panel"> |
||||
<div class="pull-left image"> |
||||
<img src="<?= Yii::$app->avatar->show(Yii::$app->user->identity->user->username) ?>" class="img-circle"
|
||||
alt="<?= Yii::$app->user->identity->user->username ?>"/>
|
||||
</div> |
||||
<div class="pull-left info"> |
||||
<p><?= Yii::$app->user->identity->user->username ?></p>
|
||||
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> <?= Yii::t('main', 'Online') ?></a>
|
||||
</div> |
||||
</div> |
||||
|
||||
<!-- search form --> |
||||
<?php $form = ActiveForm::begin([ |
||||
'action' => \yii\helpers\Url::to(['/site/search']), |
||||
'options' => [ |
||||
'class' => 'sidebar-form' |
||||
], |
||||
'enableClientValidation' => false, |
||||
'fieldConfig' => [ |
||||
'options' => [ |
||||
'tag' => false, |
||||
], |
||||
], |
||||
]); ?> |
||||
|
||||
<?= $form->field($model, 'query', [ |
||||
'addon' => [ |
||||
'append' => [ |
||||
'content' => Html::button('<i class="fa fa-search"></i>', ['class' => 'btn btn-flat', 'id' => 'search-btn']), |
||||
'asButton' => true |
||||
] |
||||
], |
||||
'template' => "{input}", |
||||
])->textInput(['placeholder' => Yii::t('main', 'Search...')])->label(false)->hint(false); ?> |
||||
|
||||
<?php ActiveForm::end(); ?> |
||||
<!-- /.search form --> |
||||
|
||||
<?= dmstr\widgets\Menu::widget( |
||||
[ |
||||
'options' => ['class' => 'sidebar-menu tree', 'data-widget' => 'tree'], |
||||
'items' => \yii\helpers\ArrayHelper::merge([ |
||||
['label' => Yii::t('main', 'Menu'), 'options' => ['class' => 'header']], |
||||
<!-- Sidebar Menu --> |
||||
<nav class="mt-2"> |
||||
<?php |
||||
/*$basesMenu = [ |
||||
'label' => Yii::t('main', 'Customers'), |
||||
'icon' => 'fas fa-star', |
||||
'url' => ['/customers/customer/index'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'customers/customer', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('CustomerManagement') |
||||
]; |
||||
$bases = CustomerBase::find()->all(); |
||||
if (count($bases) > 1) { |
||||
$baseItems = array_map(function ($base) { |
||||
return [ |
||||
'label' => $base->name, |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/customers/customer/index', 'base_id' => $base->id], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'customers/customer' && |
||||
Yii::$app->getRequest()->get('base_id') == $base->id |
||||
]; |
||||
}, $bases); |
||||
$basesMenu = [ |
||||
'label' => Yii::t('main', 'Customers'), |
||||
'icon' => 'fas fa-star', |
||||
'items' => $baseItems, |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('CustomerManagement') |
||||
]; |
||||
}*/ |
||||
?> |
||||
|
||||
<?= Menu::widget([ |
||||
'items' => ArrayHelper::merge([ |
||||
//['label' => Yii::t('main', 'Menu'), 'options' => ['class' => 'header']], |
||||
[ |
||||
'label' => Yii::t('dashboard', 'Dashboard'), |
||||
'icon' => 'dashboard', |
||||
'icon' => 'fas fa-tachometer-alt', |
||||
'url' => ['/site/index'], |
||||
'active' => $this->context->id == '/site/index' |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('user', 'Users'), |
||||
'icon' => 'user', |
||||
'icon' => 'fas fa-user', |
||||
'url' => ['/user/index'], |
||||
'active' => $this->context->id == 'user', |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('UserManagement'), |
||||
'visible' => Yii::$app->user->can('admin') || Yii::$app->user->can('UserManagement'), |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('user', 'Access Rules'), |
||||
'icon' => 'lock', |
||||
'icon' => 'fas fa-lock', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('user', 'Roles'), |
||||
'icon' => 'caret-right', |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/role/index'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'role' |
||||
'active' => Yii::$app->controller->getUniqueId() == 'role' |
||||
], |
||||
[ |
||||
'label' => Yii::t('user', 'Permissions'), |
||||
'icon' => 'caret-right', |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/permission/index'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'permission' |
||||
'active' => Yii::$app->controller->getUniqueId() == 'permission' |
||||
], |
||||
], |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('UserManagement') |
||||
'visible' => Yii::$app->user->can('admin') || Yii::$app->user->can('UserManagement') |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('menu', 'Menu'), |
||||
'icon' => 'bars', |
||||
'icon' => 'fas fa-bars', |
||||
'url' => ['/menu/index'], |
||||
'active' => $this->context->id == 'menu', |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('MenuManagement'), |
||||
'visible' => Yii::$app->user->can('admin') || Yii::$app->user->can('MenuManagement'), |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('main', 'Modules'), |
||||
'icon' => 'cubes', |
||||
'icon' => 'fas fa-cubes', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('main', 'Modules'), |
||||
'icon' => 'caret-right', |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/module/list'], |
||||
'active' => \Yii::$app->controller->action->getUniqueId() == 'module/list' |
||||
'active' => Yii::$app->controller->action->getUniqueId() == 'module/list' |
||||
], |
||||
[ |
||||
'label' => Yii::t('main', 'Find modules'), |
||||
'icon' => 'caret-right', |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/module/search'], |
||||
'active' => \Yii::$app->controller->action->getUniqueId() == 'module/search' |
||||
'active' => Yii::$app->controller->action->getUniqueId() == 'module/search' |
||||
], |
||||
], |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('ModuleManagement') |
||||
], |
||||
|
||||
/*[ |
||||
'label' => Yii::t('pages', 'Pages'), |
||||
'icon' => 'file-o', 'url' => ['/page/index'], |
||||
'active' => $this->context->id == 'page', |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('PagesManagement'), |
||||
],*/ |
||||
|
||||
[ |
||||
'label' => Yii::t('post', 'Posts'), |
||||
'icon' => 'newspaper-o', |
||||
'items' => array_merge( |
||||
array_map(function (\core\entities\post\PostType $type) { |
||||
return [ |
||||
'label' => $type->plural, |
||||
'icon' => 'caret-right', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('post', 'Categories'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/category', 'tid' => $type->id], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/category' && \Yii::$app->request->get('tid') == $type->id |
||||
], |
||||
[ |
||||
'label' => $type->plural, |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/post', 'tid' => $type->id], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/post' && \Yii::$app->request->get('tid') == $type->id |
||||
], |
||||
[ |
||||
'label' => Yii::t('post', 'Tags'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/tag', 'tid' => $type->id], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/tag' && \Yii::$app->request->get('tid') == $type->id |
||||
], |
||||
] |
||||
]; |
||||
}, \core\entities\post\PostType::find()->all()), |
||||
[ |
||||
[ |
||||
'label' => Yii::t('post', 'Comments'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/comment'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/comment' |
||||
] |
||||
], |
||||
[ |
||||
[ |
||||
'label' => Yii::t('post', 'Types'), |
||||
'icon' => 'caret-right', |
||||
'url' => ['/post/type'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'post/type' |
||||
] |
||||
] |
||||
), |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('PostManagement') |
||||
'visible' => Yii::$app->user->can('admin') || Yii::$app->user->can('ModuleManagement') |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('slider', 'Slider'), |
||||
'icon' => 'retweet', |
||||
'icon' => 'fa fa-exchange-alt', |
||||
'url' => ['/slider/index'], |
||||
'active' => $this->context->id == 'slider', |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('SliderManagement'), |
||||
'visible' => Yii::$app->user->can('admin') || Yii::$app->user->can('SliderManagement'), |
||||
], |
||||
|
||||
[ |
||||
'label' => Yii::t('main', 'Settings'), |
||||
'icon' => 'cog', |
||||
'icon' => 'fas fa-cog', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('main', 'Settings List'), |
||||
'icon' => 'caret-right', |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/settings/list/index'], |
||||
'active' => \Yii::$app->controller->getUniqueId() == 'settings/list' |
||||
'active' => Yii::$app->controller->getUniqueId() == 'settings/list' |
||||
], |
||||
//['label' => Yii::t('main', 'Find modules'), 'icon' => 'caret-right', 'url' => ['/module/search'], 'active' => \Yii::$app->controller->action->getUniqueId() == 'module/search'], |
||||
], |
||||
'visible' => \Yii::$app->user->can('admin') || \Yii::$app->user->can('SettingsManagement') |
||||
'visible' => Yii::$app->user->can('admin') || Yii::$app->user->can('SettingsManagement') |
||||
], |
||||
|
||||
], (isset(Yii::$app->params['adminMenu']) && is_array(Yii::$app->params['adminMenu']) ? Yii::$app->params['adminMenu'] : [])), |
||||
] |
||||
) ?> |
||||
|
||||
</section> |
||||
|
||||
|
||||
|
||||
|
||||
//[ |
||||
// 'label' => Yii::t('builder', 'Databases'), |
||||
// 'icon' => 'fas fa-database', |
||||
// 'items' => \app\modules\base_builder\helpers\BuilderHelper::getBasesMenu() |
||||
//], |
||||
|
||||
//$basesMenu, |
||||
/*[ |
||||
'label' => Yii::t('customers', 'Customer bases'), |
||||
'icon' => 'fas fa-users', |
||||
'url' => ['/customers/customer-base/index'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'customers/customer-base', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('CustomerManagement') |
||||
],*/ |
||||
|
||||
/*[ |
||||
'label' => Yii::t('deals', 'Deals'), |
||||
'icon' => 'fas fa-plug', |
||||
'url' => ['/deals/deal/index'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'deals/deal', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('DealManagement') |
||||
],*/ |
||||
|
||||
/*[ |
||||
'label' => Yii::t('calendar', 'Calendar'), |
||||
'icon' => 'fas fa-calendar-alt', |
||||
'url' => ['/calendar/events'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'calendar/events', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('CalendarManagement') |
||||
],*/ |
||||
|
||||
/*[ |
||||
'label' => Yii::t('board', 'ToDo'), |
||||
'icon' => 'fas fa-check-square', |
||||
'url' => ['/board/cards'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'board/cards', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('BoardManagement') |
||||
],*/ |
||||
|
||||
/*[ |
||||
'label' => Yii::t('subs', 'Mail Subs'), |
||||
'icon' => 'fas fa-envelope', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('subs', 'Subs'), |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/sub/index'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'sub', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('SubManagement') |
||||
], |
||||
[ |
||||
'label' => Yii::t('mail-template', 'Mail Templates'), |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/mail-template/index'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'mail-template', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('MailTemplateManagement') |
||||
], |
||||
[ |
||||
'label' => Yii::t('subs', 'Signs'), |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/sign/index'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'sign', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('SignManagement') |
||||
], |
||||
[ |
||||
'label' => Yii::t('subs', 'DKIM'), |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/dkim/index'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'dkim', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('DkimManagement') |
||||
], |
||||
] |
||||
],*/ |
||||
|
||||
/*[ |
||||
'label' => Yii::t('sms', 'SMS Subs'), |
||||
'icon' => 'fas fa-mobile', |
||||
'url' => ['/sms/sms/index'], |
||||
'active' => Yii::$app->controller->getUniqueId() == 'sms/sms', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('SmsManagement') |
||||
],*/ |
||||
|
||||
/*[ |
||||
'label' => Yii::t('stat', 'Statistics'), |
||||
'icon' => 'fas fa-chart-bar', |
||||
'items' => [ |
||||
[ |
||||
'label' => Yii::t('stat', 'Deals'), |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/stat/stat/deals'], |
||||
'active' => Yii::$app->controller->action->getUniqueId() == 'stat/stat/deals', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('StatDealsStatistics') |
||||
], |
||||
[ |
||||
'label' => Yii::t('stat', 'My Deals'), |
||||
'icon' => 'fas fa-caret-right', |
||||
'url' => ['/stat/stat/my-deals'], |
||||
'active' => Yii::$app->controller->action->getUniqueId() == 'stat/stat/my-deals', |
||||
'visible' => Yii::$app->user->can('admin') || |
||||
Yii::$app->user->can('StatMyDealsStatistics') |
||||
], |
||||
] |
||||
],*/ |
||||
|
||||
/*[ |
||||
'label' => 'API', |
||||
'icon' => 'fas fa-cogs', |
||||
'url' => ['/site/api'], |
||||
'active' => Yii::$app->controller->action->getUniqueId() == 'site/api', |
||||
'visible' => Yii::$app->user->can('admin') || Yii::$app->user->can('Franchise') |
||||
],*/ |
||||
], (isset(Yii::$app->params['adminMenu']) && is_array(Yii::$app->params['adminMenu']) ? Yii::$app->params['adminMenu'] : [])), |
||||
]) ?> |
||||
</nav> |
||||
<!-- /.sidebar-menu --> |
||||
</div> |
||||
<!-- /.sidebar --> |
||||
</aside> |
@ -0,0 +1,31 @@
|
||||
<?php |
||||
|
||||
use yii\helpers\Html; |
||||
|
||||
/* @var $this \yii\web\View */ |
||||
/* @var $content string */ |
||||
|
||||
dmstr\web\AdminLteAsset::register($this); |
||||
\backend\assets\AdminLteSkinAsset::register($this); |
||||
?> |
||||
<?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="login-page"> |
||||
|
||||
<?php $this->beginBody() ?> |
||||
|
||||
<?= $content ?> |
||||
|
||||
<?php $this->endBody() ?> |
||||
</body> |
||||
</html> |
||||
<?php $this->endPage() ?> |
@ -0,0 +1,66 @@
|
||||
<?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 } ?> |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue