12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- use yii\helpers\Html;
- $profile = Yii::$app->user->identity->profile;
- ?>
- <aside class="main-sidebar sidebar-dark-primary elevation-4">
- <!-- Brand Logo -->
- <a href="index3.html" class="brand-link">
- <img src="<?=$assetDir?>/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
- <span class="brand-text font-weight-light">AdminLTE 3</span>
- </a>
- <!-- Sidebar -->
- <div class="sidebar">
- <!-- Sidebar user panel (optional) -->
- <div class="user-panel mt-3 pb-3 mb-3 d-flex">
- <div class="image">
- <?=Html::img($profile->getAvatarUrl($profile->gravatar_id), [
- 'class' => 'img-circle elevation-2',
- 'alt' => $profile->user->username,
- ]) ?>
- </div>
- <div class="info">
- <a href="#" class="d-block"><?=$profile->name?></a>
- </div>
- </div>
- <!-- SidebarSearch Form -->
- <!-- href be escaped -->
- <!-- <div class="form-inline">
- <div class="input-group" data-widget="sidebar-search">
- <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
- <div class="input-group-append">
- <button class="btn btn-sidebar">
- <i class="fas fa-search fa-fw"></i>
- </button>
- </div>
- </div>
- </div> -->
- <!-- Sidebar Menu -->
- <nav class="mt-2 nav-flat">
- <?php
- echo \hail812\adminlte\widgets\Menu::widget([
- 'items' => [
- ['label' => 'Login', 'url' => ['site/login'], 'icon' => 'sign-in-alt', 'visible' => Yii::$app->user->isGuest],
- [
- 'label' => 'Новости',
- 'icon' => 'tachometer-alt',
- 'url' => ['/manager/news/list'],
- // 'badge' => '<span class="right badge badge-info">2</span>',
- 'items' => [
- ['label' => 'День', 'url' => ['/manager/news/list'], 'iconStyle' => 'far'],
- ['label' => 'В очереди', 'url' => ['/manager/news/inactive'], 'iconStyle' => 'far'],
- ['label' => 'Создать', 'url' => ['/manager/news/new'], 'iconStyle' => 'far'],
- ]
- ],
- ['label' => 'Рубрики', 'icon' => 'th', 'badge' => '<span class="right badge badge-danger">New</span>', 'url' => ['/manager/news/topiclist'],
- 'items' => [
- ['label' => 'Список', 'url' => ['/manager/news/topiclist'], 'iconStyle' => 'far'],
- ['label' => 'Создать', 'url' => ['/manager/news/topiccreate'], 'iconStyle' => 'far'],
- ['label' => 'Все', 'url' => ['/manager/news/topicall'], 'iconStyle' => 'far'],
- ]
- ],
- ['label' => 'Сюжеты', 'icon' => 'th', 'badge' => '<span class="right badge badge-danger">New</span>', 'url' => ['/manager/news/storylist'],
- 'items' => [
- ['label' => 'Список', 'url' => ['/manager/news/storylist'], 'iconStyle' => 'far'],
- ['label' => 'Создать', 'url' => ['/manager/news/storycreate'], 'iconStyle' => 'far']
- ]
- ],
- ['label' => 'пользователи','icon' => 'user',
- 'items' => [
- ['label' => 'Список', 'iconStyle' => 'far fa-solid fa-user', 'url' => ['/user/admin/index']],
- ['label' => 'Новый', 'iconStyle' => 'far fa-user', 'url' => ['/user/admin/create']]
- ]
- ],
- ['label' => 'Yii2 PROVIDED', 'header' => true],
- ['label' => 'Gii', 'icon' => 'file-code', 'url' => ['/gii'], 'target' => '_blank'],
- ['label' => 'Debug', 'icon' => 'bug', 'url' => ['/debug'], 'target' => '_blank'],
- ['label' => 'Test', 'icon' => 'bug', 'url' => ['/manager/news/test'], 'target' => '_blank'],
- ['label' => 'LABELS', 'header' => true],
- ['label' => 'Important', 'iconStyle' => 'far', 'iconClassAdded' => 'text-danger'],
- ['label' => 'Warning', 'iconClass' => 'nav-icon far fa-circle text-warning'],
- ['label' => 'Informational', 'iconStyle' => 'far', 'iconClassAdded' => 'text-info'],
- ],
- ]);
- ?>
- </nav>
- <!-- /.sidebar-menu -->
- </div>
- <!-- /.sidebar -->
- </aside>
|