eb7e82fb
Administrator
29.02.16
|
1
|
<?php
|
baba04c2
Yarik
test
|
2
3
4
5
|
/**
* @var string $content
* @var View $this
*/
|
eb7e82fb
Administrator
29.02.16
|
6
|
|
baba04c2
Yarik
test
|
7
|
use common\models\User;
|
0eb4e7fc
Yarik
test
|
8
|
use kartik\rating\StarRating;
|
baba04c2
Yarik
test
|
9
10
11
12
13
|
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\web\View;
use yii\widgets\Menu;
|
eb7e82fb
Administrator
29.02.16
|
14
|
|
baba04c2
Yarik
test
|
15
16
|
\frontend\assets\AppAsset::register($this);
$this->beginContent('@app/views/layouts/main.php');
|
eb7e82fb
Administrator
29.02.16
|
17
18
|
?>
<div class="section-box content">
|
baba04c2
Yarik
test
|
19
|
<div class="section-box-16" style="background: url('<?= $this->params[ 'user' ]->userInfo->poster; ?>') 50% no-repeat">
|
eb7e82fb
Administrator
29.02.16
|
20
21
22
|
<div class="box-wr">
<div class="box-all">
<div class="blog-buttons-wr style">
|
32ed90fd
Yarik
test
|
23
|
<?php
|
76f36646
Yarik
test
|
24
25
|
if($this->params[ 'user' ]->id != \Yii::$app->user->getId()) {
// Offer project button
|
3735dff7
Yarik
test
|
26
|
if(empty( $this->params[ 'type' ] ) || $this->params[ 'type' ] != 'customer') {
|
b9a54f61
Yarik
test
|
27
|
echo Html::a(Yii::t('app', 'Offer project'), [ '#' ], [
|
76f36646
Yarik
test
|
28
29
|
'class' => 'blog-buttons-offer',
'data-performer-id' => $this->params[ 'user' ]->id,
|
32ed90fd
Yarik
test
|
30
31
|
]);
}
|
76f36646
Yarik
test
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Write message
echo Html::a('Написать сообщение', Url::toRoute([
'chat/message',
'user_id' => $this->params[ 'user' ]->id,
]), [ 'class' => 'blog-buttons-write' ]);
// Bookmarks
if(!empty( \Yii::$app->user->identity )) {
if($this->params[ 'user' ]->isBookmarked) {
echo Html::a('Убрать из закладок', [ '#' ], [
'class' => 'get-list artbox_bookmark_remove_performer',
'data-id' => $this->params[ 'user' ]->id,
]);
} else {
echo Html::a('Добавить в закладки', [ '#' ], [
'class' => 'get-list artbox_bookmark_add_performer',
'data-id' => $this->params[ 'user' ]->id,
]);
}
}
|
32ed90fd
Yarik
test
|
51
52
|
}
?>
|
eb7e82fb
Administrator
29.02.16
|
53
54
55
56
57
58
59
60
61
|
</div>
</div>
</div>
</div>
<div class="section-box menu-content-wr">
<div class="box-wr">
<div class="box-all">
<?php
echo Menu::widget([
|
38a6e1dd
Yarik
test
|
62
|
'options' => [
|
eb7e82fb
Administrator
29.02.16
|
63
64
65
|
'class' => 'menu-content',
],
'activeCssClass' => 'active-menu-content',
|
38a6e1dd
Yarik
test
|
66
|
'items' => [
|
eb7e82fb
Administrator
29.02.16
|
67
68
|
[
'label' => 'Общее',
|
baba04c2
Yarik
test
|
69
70
71
|
'url' => [
'performer/common',
'performer_id' => $this->params[ 'user' ]->id,
|
76f36646
Yarik
test
|
72
|
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
|
baba04c2
Yarik
test
|
73
|
],
|
eb7e82fb
Administrator
29.02.16
|
74
75
|
],
[
|
76f36646
Yarik
test
|
76
77
|
'label' => 'Портфолио',
'url' => [
|
baba04c2
Yarik
test
|
78
79
|
'performer/portfolio',
'performer_id' => $this->params[ 'user' ]->id,
|
76f36646
Yarik
test
|
80
|
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
|
baba04c2
Yarik
test
|
81
|
],
|
76f36646
Yarik
test
|
82
|
'visible' => ( empty( $this->params[ 'type' ] ) || $this->params[ 'type' ] == 'implementer' ) ? true : false,
|
eb7e82fb
Administrator
29.02.16
|
83
84
|
],
[
|
76f36646
Yarik
test
|
85
86
|
'label' => 'Заказанные работы',
'url' => [
|
b4142e17
Yarik
test
|
87
88
|
'performer/projects',
'performer_id' => $this->params[ 'user' ]->id,
|
76f36646
Yarik
test
|
89
|
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
|
b4142e17
Yarik
test
|
90
|
],
|
76f36646
Yarik
test
|
91
|
'visible' => ( !empty( $this->params[ 'type' ] ) && $this->params[ 'type' ] == 'customer' ) ? true : false,
|
b4142e17
Yarik
test
|
92
93
|
],
[
|
eb7e82fb
Administrator
29.02.16
|
94
|
'label' => 'Блог',
|
baba04c2
Yarik
test
|
95
96
97
|
'url' => [
'performer/blog-list',
'performer_id' => $this->params[ 'user' ]->id,
|
76f36646
Yarik
test
|
98
|
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
|
baba04c2
Yarik
test
|
99
|
],
|
eb7e82fb
Administrator
29.02.16
|
100
101
|
],
[
|
76f36646
Yarik
test
|
102
|
'label' => 'Мнения',
|
baba04c2
Yarik
test
|
103
104
105
|
'url' => [
'performer/review',
'performer_id' => $this->params[ 'user' ]->id,
|
76f36646
Yarik
test
|
106
|
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
|
baba04c2
Yarik
test
|
107
|
],
|
eb7e82fb
Administrator
29.02.16
|
108
109
110
|
],
[
'label' => 'Места работы',
|
baba04c2
Yarik
test
|
111
112
113
|
'url' => [
'performer/workplace',
'performer_id' => $this->params[ 'user' ]->id,
|
76f36646
Yarik
test
|
114
|
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
|
baba04c2
Yarik
test
|
115
|
],
|
eb7e82fb
Administrator
29.02.16
|
116
117
118
|
],
[
'label' => 'Галерея',
|
baba04c2
Yarik
test
|
119
120
121
|
'url' => [
'performer/gallery',
'performer_id' => $this->params[ 'user' ]->id,
|
76f36646
Yarik
test
|
122
|
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
|
baba04c2
Yarik
test
|
123
|
],
|
eb7e82fb
Administrator
29.02.16
|
124
125
126
127
128
129
130
131
132
133
134
135
136
|
],
],
]);
?>
</div>
</div>
</div>
<div class="section-box-15 section-box-17">
<div class="box-wr">
<div class="box-all">
<div class="performer-vacancy-sidebar-left-wr">
<div class="performer-vacancy-sidebar-left">
<div class="performance-vacancy-sidebar-company-wr">
|
38a6e1dd
Yarik
test
|
137
|
<div class="performance-vacancy-sidebar-company-title style"><?= $this->params[ 'user' ]->name ?></div>
|
eb7e82fb
Administrator
29.02.16
|
138
139
140
|
<div class="performance-vacancy-sidebar-company-job style">
<ul>
<li class="activejob">
|
76f36646
Yarik
test
|
141
142
143
144
145
146
147
148
149
|
<?php
if(!empty( $this->params[ 'type' ] ) && $this->params[ 'type' ] == 'implementer') {
echo Html::a('Исполнитель', Url::current([ 'type' => 'implementer' ]));
} elseif(!empty( $this->params[ 'type' ] ) && $this->params[ 'type' ] == 'customer') {
echo Html::a('Заказчик', Url::current([ 'type' => NULL ]));
} else {
echo Html::a('Исполнитель', Url::current([ 'type' => NULL ]));
}
?>
|
eb7e82fb
Administrator
29.02.16
|
150
151
|
<div class="sidebar-droped-wr style">
<ul>
|
76f36646
Yarik
test
|
152
153
154
155
156
157
158
159
160
161
162
|
<li>
<?php
if(!empty( $this->params[ 'type' ] ) && $this->params[ 'type' ] == 'implementer') {
echo Html::a('Заказчик', Url::current([ 'type' => 'customer' ]));
} elseif(!empty( $this->params[ 'type' ] ) && $this->params[ 'type' ] == 'customer') {
echo Html::a('Исполнитель', Url::current([ 'type' => NULL ]));
} else {
echo Html::a('Заказчик', Url::current([ 'type' => 'customer' ]));
}
?>
</li>
|
baba04c2
Yarik
test
|
163
|
<li style="display: none">
|
76f36646
Yarik
test
|
164
165
166
167
168
169
170
171
172
|
<?php
if(!empty( $this->params[ 'type' ] ) && $this->params[ 'type' ] == 'implementer') {
echo Html::a('Исполнитель', Url::current([ 'type' => 'implementer' ]));
} elseif(!empty( $this->params[ 'type' ] ) && $this->params[ 'type' ] == 'customer') {
echo Html::a('Заказчик', Url::current([ 'type' => NULL ]));
} else {
echo Html::a('Исполнитель', Url::current([ 'type' => NULL ]));
}
?>
|
eb7e82fb
Administrator
29.02.16
|
173
174
175
176
177
178
|
</ul>
</div>
</li>
</ul>
</div>
<div class="performance-vacancy-sidebar-stars style">
|
0eb4e7fc
Yarik
test
|
179
180
181
182
183
184
185
|
<?php
echo StarRating::widget([
'name' => 'rating_company',
'value' => $this->params[ 'user' ]->userInfo->rating,
'pluginOptions' => ['displayOnly' => true, 'size' => 'xxs']
]);
?>
|
eb7e82fb
Administrator
29.02.16
|
186
|
</div>
|
76f36646
Yarik
test
|
187
188
189
190
191
192
193
194
195
196
|
<div class="performance-vacancy-sidebar-comm style"><?= count($this->params[ 'user' ]->comments) ?> мнений</div>
<?php
if($this->params[ 'user' ]->id != \Yii::$app->user->getId()) {
echo Html::a('написать мнение', [
'performer/review',
'performer_id' => $this->params[ 'user' ]->id,
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
], [ 'class' => 'performance-vacancy-sidebar-write style' ]);
}
?>
|
eb7e82fb
Administrator
29.02.16
|
197
198
|
</div>
<div class="performer-vacancy-sidebar-img style">
|
baba04c2
Yarik
test
|
199
|
<?= Html::img($this->params[ 'user' ]->userInfo->image); ?>
|
eb7e82fb
Administrator
29.02.16
|
200
201
|
</div>
<div class="performer-vacancy-sidebar-all style">
|
38a6e1dd
Yarik
test
|
202
203
204
|
<?= $this->render('/patrial/social_list', [
'params' => $this->params,
]) ?>
|
eb7e82fb
Administrator
29.02.16
|
205
206
|
<div class="performer-vacancy-sidebar-views style">
<ul class="style">
|
baba04c2
Yarik
test
|
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
<li><img src="/images/sidebar-ico/ico-1.png" alt=""/>
<div class="sidebarvievstxt"><?= $this->params[ 'user' ]->userInfo->view_count ?> просмотра</div>
</li>
<li><img src="/images/sidebar-ico/ico-9.png" alt=""/>
<div class="sidebarvievstxt">
<span class="sidebar-views-txt">Статус: </span><?= $this->params[ 'user' ]->userInfo->busyText ?>
</div>
</li>
<li><img src="/images/sidebar-ico/ico-2.png" alt=""/>
<div class="sidebarvievstxt">
<span class="sidebar-views-txt">На сайте: </span><?= $this->params[ 'user' ]->liveTime ?>
</div>
</li>
<li><img src="/images/sidebar-ico/ico-3.png" alt=""/>
<div class="sidebarvievstxt">
|
76f36646
Yarik
test
|
222
223
224
225
226
227
228
229
|
<span class="sidebar-views-txt">Последний визит:<br/></span>
<?php
if($this->params[ 'user' ]->isOnline) {
echo 'Онлайн';
} else {
echo $this->params[ 'user' ]->userInfo->lastVisitCabinet;
}
?>
|
baba04c2
Yarik
test
|
230
231
|
</div>
</li>
|
76f36646
Yarik
test
|
232
233
|
<li>
<img src="/images/sidebar-ico/ico-10.png" alt=""/>
|
baba04c2
Yarik
test
|
234
|
<div class="sidebarvievstxt">
|
76f36646
Yarik
test
|
235
236
237
238
239
240
241
242
|
<span class="sidebar-views-txt">Трудовой стаж:<br/></span>
<?php
if(!empty( $this->params[ 'user' ]->userInfo->experience )) {
echo 'С ' . $this->params[ 'user' ]->userInfo->experience . ' года';
} else {
echo 'Не указано';
}
?>
|
baba04c2
Yarik
test
|
243
244
|
</div>
</li>
|
76f36646
Yarik
test
|
245
246
247
248
249
250
251
252
253
254
255
256
257
|
<?php
// Predefined in DB variable rank will be used further
if(!empty( $this->params[ 'user' ]->userInfo->member )) {
?>
<li>
<img src="/images/sidebar-ico/ico-11.png" alt=""/>
<div class="sidebarvievstxt">
<span class="sidebar-views-txt">Звание в МФП:<br/></span><?= \Yii::$app->formatter->asBoolean($this->params[ 'user' ]->userInfo->member) ?>
</div>
</li>
<?php
}
?>
|
38a6e1dd
Yarik
test
|
258
|
<li><img src="/images/sidebar-ico/ico_money.png" alt=""/>
|
baba04c2
Yarik
test
|
259
|
<div class="sidebarvievstxt">
|
38a6e1dd
Yarik
test
|
260
|
<span class="sidebar-views-txt">Стоимость работ:<br/></span>
|
76f36646
Yarik
test
|
261
262
|
<?php
if(!empty( $this->params[ 'user' ]->userInfo->salary )) {
|
42931736
Yarik
test
|
263
|
echo 'от '.$this->params[ 'user' ]->userInfo->salary . ' ' . $this->params[ 'user' ]->userInfo->currency->label.' за час';
|
76f36646
Yarik
test
|
264
265
266
267
|
} else {
echo 'Не указано';
}
?>
|
baba04c2
Yarik
test
|
268
269
|
</div>
</li>
|
76f36646
Yarik
test
|
270
271
272
273
274
275
276
277
278
279
280
281
|
<?php
if(!empty( $this->params[ 'user' ]->payments )) {
?>
<li>
<img src="/images/sidebar-ico/ico-13.png" alt=""/>
<div class="sidebarvievstxt">
<?= implode(', ', ArrayHelper::getColumn($this->params[ 'user' ]->payments, 'name')) ?>
</div>
</li>
<?php
}
?>
|
4b85f536
Yarik
test
|
282
283
284
285
286
287
288
289
290
291
292
293
|
<?php
if(!empty( $this->params[ 'user' ]->currentJob )) {
?>
<li>
<img src="/images/sidebar-ico/ico-14.png" alt=""/>
<div class="sidebarvievstxt">
<span class="sidebar-views-txt">Текущее место работы:<br/></span><?= $this->params[ 'user' ]->currentJob->name ?>
</div>
</li>
<?php
}
?>
|
eb7e82fb
Administrator
29.02.16
|
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
|
</ul>
</div>
</div>
</div>
</div>
<div class="section-box performer-vacancy-vacant-wr">
<?= $content ?>
</div>
</div>
</div>
</div>
</div>
<script>
|
baba04c2
Yarik
test
|
309
310
311
312
313
|
$('div.rating').rating(
{
fx : 'full', readOnly : 'true', url : 'rating.php'
}
);
|
eb7e82fb
Administrator
29.02.16
|
314
315
|
</script>
|
97fb6489
Yarik
test
|
316
|
<?php $this->endContent() ?>
|