eb7e82fb
Administrator
29.02.16
|
1
2
3
4
|
<?php
use common\components\Request;
use yii\base\View;
|
b9a54f61
Yarik
test
|
5
|
use yii\widgets\Menu;
|
eb7e82fb
Administrator
29.02.16
|
6
|
|
b9a54f61
Yarik
test
|
7
|
\frontend\assets\AdminAsset::register($this);
|
eb7e82fb
Administrator
29.02.16
|
8
9
|
/**
* @var string $content
|
b9a54f61
Yarik
test
|
10
|
* @var View $this
|
eb7e82fb
Administrator
29.02.16
|
11
|
*/
|
b9a54f61
Yarik
test
|
12
|
$this->beginContent('@app/views/layouts/main.php');
|
eb7e82fb
Administrator
29.02.16
|
13
|
?>
|
b9a54f61
Yarik
test
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<div class="section-box admin-page">
<div class="box-wr">
<div class="box-all">
<div class="login-right-column">
<div class="admin-my-page">Моя страница</div>
<?php
$item = [
[
'label' => 'Учетные данные',
'url' => [ 'accounts/general' ],
'options' => [ 'class' => 'admin-menu-icons admin-menu-ico-1', ],
],
[
'label' => 'Контакты',
'url' => [ 'accounts/contacts' ],
],
[
'label' => 'Услуги',
'url' => [ 'accounts/service' ],
],
[
'label' => 'Описание',
'url' => [ 'accounts/description' ],
],
[
|
b9a54f61
Yarik
test
|
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
'label' => Yii::t('app', 'Your projects'),
'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' => "Портфолио участник <span class='ico_num'>{$this->params['portfolio_user_count']}</span>",
'encode' => false,
'url' => [ 'accounts/participant' ],
'active' => preg_match('/^participant.*$/', $this->context->action->id) ? true : false,
],
[
'label' => 'Блог',
'url' => [ 'accounts/blog' ],
'active' => preg_match('/^blog.*$/', $this->context->action->id) ? true : false,
],
[
|
239b3249
Yarik
test
|
62
|
'label' => 'Галерея Изображений',
|
b9a54f61
Yarik
test
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
'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' => 'Закладки',
|
69e6fb96
Yarik
test
|
81
|
'url' => [ '/bookmarks' ],
|
b9a54f61
Yarik
test
|
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
'options' => [ 'class' => 'admin-menu-icons admin-menu-ico-3', ],
],
[
'label' => 'Настройка аккаунта',
'url' => [ 'accounts/setting' ],
'options' => [ 'class' => 'admin-menu-icons admin-menu-ico-4', ],
],
];
if(\Yii::$app->user->identity->type == 1) {
array_push($item,
[
'label' => 'Трудовой стаж',
'url' => [ 'accounts/employment' ],
], [
'label' => 'Дополнительные навыки',
'url' => [ 'accounts/add-skills' ],
]
);
} else if(\Yii::$app->user->identity->type == 2) {
array_push($item, [
|
69e6fb96
Yarik
test
|
106
107
108
109
110
111
112
|
'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,
|
37c8e264
Yarik
test
|
113
|
], [
|
713ccea4
Yarik
test
|
114
|
'label' => "Заявки <span class='ico_num'>{$this->params['feedback_company_count']}</span>",
|
37c8e264
Yarik
test
|
115
|
'url' => [ 'accounts/feedback-company' ],
|
713ccea4
Yarik
test
|
116
|
'encode' => false,
|
69e6fb96
Yarik
test
|
117
|
]);
|
b9a54f61
Yarik
test
|
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
}
array_push($item,
[
'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' ],
]
);
echo Menu::widget([
'options' => [
'class' => 'menu-admin',
],
'activeCssClass' => 'active-menu-admin',
'items' => $item,
]);
?>
</div>
<div class="login-left-column">
<?= $content ?>
</div>
|
eb7e82fb
Administrator
29.02.16
|
153
|
|
26656179
Administrator
01.03.16
|
154
|
</div>
|
26656179
Administrator
01.03.16
|
155
156
|
</div>
</div>
|
eb7e82fb
Administrator
29.02.16
|
157
|
|
6e1510b2
Administrator
firs page
|
158
|
<?php $this->endContent() ?>
|