+
Моя страница
+ [
+ 'class' => 'menu-admin',
+ ],
+ 'activeCssClass' => 'active-menu-admin',
+ 'items' => [
+ [
+ 'label' => 'Учетные данные',
+ 'url' => ['accounts/general'],
+ 'options' => ['class' => 'admin-menu-icons admin-menu-ico-1',],
+ ],
+ [
+ 'label' => 'Контакты',
+ 'url' => ['accounts/contacts'],
+ ],
+ [
+ 'label' => 'Услуги',
+ 'url' => ['accounts/service'],
+ ],
+ [
+ 'label' => 'Трудовой стаж',
+ 'url' => ['accounts/employment'],
+ ],
+ [
+ 'label' => 'Дополнительные навыки',
+ 'url' => ['accounts/add-skills'],
+ ],
+ [
+ 'label' => 'Описание',
+ 'url' => ['accounts/description'],
+ ],
- [
- 'label' => 'Команда',
- 'url' => ['accounts/team'],
- 'active' => preg_match('/^team.*$/', $this->context->action->id)?true:false,
- ],
+ [
+ 'label' => 'Команда',
+ 'url' => ['accounts/team'],
+ 'active' => preg_match('/^team.*$/', $this->context->action->id)?true:false,
+ ],
- [
- 'label' => 'Вакансии',
- 'url' => ['accounts/vacancy'],
- 'active' => preg_match('/^vacancy.*$/', $this->context->action->id)?true:false,
- ],
- [
- 'label' => 'Ваши проекты',
- 'url' => ['accounts/projects'],
- 'active' => preg_match('/^projects.*$/', $this->context->action->id)?true:false,
- ],
- [
- 'label' => 'Портфолио',
- 'url' => ['accounts/portfolio'],
- 'active' => preg_match('/^portfolio.*$/', $this->context->action->id)?true:false,
- ],
+ [
+ 'label' => 'Вакансии',
+ 'url' => ['accounts/vacancy'],
+ 'active' => preg_match('/^vacancy.*$/', $this->context->action->id)?true:false,
+ ],
+ [
+ 'label' => 'Ваши проекты',
+ 'url' => ['accounts/projects'],
+ 'active' => preg_match('/^projects.*$/', $this->context->action->id)?true:false,
+ ],
+ [
+ 'label' => 'Портфолио',
+ 'url' => ['accounts/portfolio'],
+ 'active' => preg_match('/^portfolio.*$/', $this->context->action->id)?true:false,
+ ],
- [
- 'label' => 'Блог',
- 'url' => ['accounts/blog'],
- 'active' => preg_match('/^blog.*$/', $this->context->action->id)?true:false,
- ],
- [
- 'label' => 'Галерея Изображения',
- 'url' => ['accounts/gallery'],
- 'active' => preg_match('/^gallery(?!-video).*$/', $this->context->action->id)?true:false,
- ],
- [
- 'label' => 'Галерея Видео',
- 'url' => ['accounts/gallery-video'],
- ],
- [
- 'label' => 'Сообщения',
- 'url' => ['chat/list'],
- 'options' => ['class' => 'admin-menu-icons admin-menu-ico-2',],
- ],
- [
- 'label' => 'Уведомления о проектах',
- 'url' => ['/projects'],
- ],
- [
- 'label' => 'Закладки',
- 'url' => ['accounts/bookmarks'],
- 'options' => ['class' => 'admin-menu-icons admin-menu-ico-3',],
- ],
- [
- 'label' => 'Настройка аккаунта',
- 'url' => ['accounts/setting'],
- 'options' => ['class' => 'admin-menu-icons admin-menu-ico-4',],
- ],
- [
- 'label' => 'На сайт',
- 'url' => \Yii::$app->user->identity->type == 1 ? ['performer/common', 'performer_id'=>\Yii::$app->user->id] : ['company/common', 'company_id'=>\Yii::$app->user->id],
- ],
- [
- 'label' => 'Выход',
- 'options' => ['class'=>'logout-li'],
- 'url' => ['/site/logout']
- ],
- ],
- ]);
- ?>
-
+ [
+ 'label' => 'Блог',
+ 'url' => ['accounts/blog'],
+ 'active' => preg_match('/^blog.*$/', $this->context->action->id)?true:false,
+ ],
+ [
+ 'label' => 'Галерея Изображения',
+ 'url' => ['accounts/gallery'],
+ 'active' => preg_match('/^gallery(?!-video).*$/', $this->context->action->id)?true:false,
+ ],
+ [
+ 'label' => 'Галерея Видео',
+ 'url' => ['accounts/gallery-video'],
+ ],
+ [
+ 'label' => 'Сообщения',
+ 'url' => ['chat/list'],
+ 'options' => ['class' => 'admin-menu-icons admin-menu-ico-2',],
+ ],
+ [
+ 'label' => 'Уведомления о проектах',
+ 'url' => ['/projects'],
+ ],
+ [
+ 'label' => 'Закладки',
+ 'url' => ['accounts/bookmarks'],
+ 'options' => ['class' => 'admin-menu-icons admin-menu-ico-3',],
+ ],
+ [
+ 'label' => 'Настройка аккаунта',
+ 'url' => ['accounts/setting'],
+ 'options' => ['class' => 'admin-menu-icons admin-menu-ico-4',],
+ ],
+ [
+ 'label' => 'На сайт',
+ 'url' => \Yii::$app->user->identity->type == 1 ? ['performer/common', 'performer_id'=>\Yii::$app->user->id] : ['company/common', 'company_id'=>\Yii::$app->user->id],
+ ],
+ [
+ 'label' => 'Выход',
+ 'options' => ['class'=>'logout-li'],
+ 'url' => ['/site/logout']
+ ],
+ ],
+ ]);
+ ?>
+