eb7e82fb
Administrator
29.02.16
|
1
2
|
<?php
|
239b3249
Yarik
test
|
3
4
|
/* @var $this \yii\web\View */
/* @var $content string */
|
eb7e82fb
Administrator
29.02.16
|
5
|
|
239b3249
Yarik
test
|
6
7
8
9
10
|
use yii\helpers\Html;
use yii\widgets\Menu;
use frontend\assets\AppAsset;
AppAsset::register($this);
|
eb7e82fb
Administrator
29.02.16
|
11
12
13
14
15
16
17
18
19
20
21
|
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
|
eb7e82fb
Administrator
29.02.16
|
22
23
24
25
26
|
<meta charset="<?= Yii::$app->charset ?>">
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
|
eb7e82fb
Administrator
29.02.16
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php $this->head() ?>
</head>
<body onload=" initialize()">
<?php $this->beginBody() ?>
<div class="section-box header">
<div class="section-box first-header">
<div class="box-wr">
<div class="box-all">
<a href="/"><img class="logo" src="/images/logo.png" width="100" height="68" alt=""/></a>
<div class="header-proektant-slogan">Международная Федерация Проектантов</div>
<ul class="header-contacts-menu">
|
239b3249
Yarik
test
|
41
42
43
44
45
46
|
<li>
<span><img src="/images/icon_question_01.png" alt=""/></span><?= Html::a('Задать вопрос', '', [ 'class' => 'contactsLinkModalFirst' ]) ?>
</li>
<li>
<span><img src="/images/icon_help_01.png" alt=""/></span><?= Html::a('Помощь', [ '/site/help' ], [ 'class' => 'contactsLinkModal' ]) ?>
</li>
|
eb7e82fb
Administrator
29.02.16
|
47
48
49
|
</ul>
<div class="header-cabinet-wr">
<?php
|
239b3249
Yarik
test
|
50
51
|
if(Yii::$app->user->isGuest): ?>
<div class="header-cabinet-foto">
|
df799956
Administrator
16.03.16
|
52
|
|
239b3249
Yarik
test
|
53
54
55
56
57
58
|
</div>
<div class="header-cabinet-profile not-login">Профиль</div>
<div>
<?= Html::a('Вход', [ '/site/login' ], [ 'class' => 'loginLinkModal' ]) ?>
<?= Html::a('Регистрация', [ '/site/registration' ]) ?>
</div>
|
eb7e82fb
Administrator
29.02.16
|
59
|
|
239b3249
Yarik
test
|
60
61
62
63
64
65
66
67
68
69
70
|
<?php else : ?>
<div class="header-cabinet-foto">
<?php
if(!empty( \Yii::$app->user->identity->userInfo->image )) {
echo Html::img(Yii::$app->user->identity->minImg(Yii::$app->user->identity->userInfo->image, 48, 48));
}
?>
</div>
<div class="header-cabinet-profile">Профиль</div>
<?= Html::a(Yii::$app->user->identity->email, [ '/accounts' ]) ?>
<?php endif; ?>
|
eb7e82fb
Administrator
29.02.16
|
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
</div>
</div>
</div>
</div>
</div>
<div class="section-box menu-header-all">
<div class="box-wr">
<div class="box-all">
<ul class="main-menu main-menu-buttons">
<li>
<span>Проектантам</span>
<div class="main-menu-hover">
<ul>
<li>
<?php
|
239b3249
Yarik
test
|
88
89
90
91
92
|
if(\Yii::$app->user->isGuest) {
echo Html::a('Войти в профиль', [ 'site/login' ]);
} else {
echo Html::a('Редактировать профиль', [ 'accounts/' ]);
}
|
eb7e82fb
Administrator
29.02.16
|
93
94
95
96
|
?>
</li>
</ul>
<ul>
|
239b3249
Yarik
test
|
97
98
99
|
<li><?= Html::a(Yii::t('app', 'Project list'), [ 'search/project' ]) ?></li>
<li><?= Html::a('Список вакансий', [ 'search/vacancy' ]) ?></li>
<li><?= Html::a('Список заказчиков', [ 'search/customer' ]) ?></li>
|
eb7e82fb
Administrator
29.02.16
|
100
101
102
103
104
105
106
107
|
</ul>
</div>
</li>
<li>
<span>Заказчикам</span>
<div class="main-menu-hover">
<ul>
|
239b3249
Yarik
test
|
108
109
|
<li><?= Html::a(Yii::t('app', 'Add project'), [ 'accounts/projects-create' ]) ?></li>
<li><?= Html::a('Разместить вакансию', [ 'accounts/vacancy' ]) ?></li>
|
eb7e82fb
Administrator
29.02.16
|
110
111
112
|
</ul>
<ul>
|
239b3249
Yarik
test
|
113
114
115
116
117
118
119
120
|
<li><?= Html::a('Список проектантов', [
'search/performer',
'SearchPerformerForm[type]' => '1',
]) ?></li>
<li><?= Html::a('Список проектных компаний', [
'search/performer',
'SearchPerformerForm[type]' => '2',
]) ?></li>
|
eb7e82fb
Administrator
29.02.16
|
121
122
123
124
|
</ul>
</div>
</li>
<li>
|
d53e9f74
Виталий
git
|
125
|
<span>Компаниям</span>
|
eb7e82fb
Administrator
29.02.16
|
126
127
128
|
<div class="main-menu-hover">
<ul>
|
239b3249
Yarik
test
|
129
130
131
|
<li><?= Html::a(Yii::t('app', 'Add project'), [ 'accounts/projects-create' ]) ?></li>
<li><?= Html::a('Разместить вакансию', [ 'accounts/vacancy-create' ]) ?></li>
<li><?= Html::a('Редактировать портфолио', [ 'accounts/portfolio' ]) ?></li>
|
eb7e82fb
Administrator
29.02.16
|
132
133
|
</ul>
<ul>
|
239b3249
Yarik
test
|
134
135
136
|
<li><?= Html::a('Список проектантов', [ 'search/performer' ]) ?></li>
<li><?= Html::a(Yii::t('app', 'Project list'), [ 'search/project' ]) ?></li>
<li><?= Html::a('Список заказчиков', [ 'search/customer' ]) ?></li>
|
eb7e82fb
Administrator
29.02.16
|
137
138
139
140
141
142
143
144
|
</ul>
</div>
</li>
</ul>
<div class="search-main-menu">
<form action="">
<input value="" name="" type="search"/>
|
239b3249
Yarik
test
|
145
|
<input type="hidden" value="1" name=""/>
|
eb7e82fb
Administrator
29.02.16
|
146
147
|
<button type="submit" value=""></button>
<div class="search-list">
|
239b3249
Yarik
test
|
148
|
<span><?= Yii::t('app', 'Projects') ?></span>
|
eb7e82fb
Administrator
29.02.16
|
149
|
<ul class="search-ul">
|
239b3249
Yarik
test
|
150
|
<li><?= Yii::t('app', 'Projects') ?></li>
|
eb7e82fb
Administrator
29.02.16
|
151
152
153
154
155
156
157
158
159
|
<li>Исполнители</li>
<li>Заказчики</li>
</ul>
</div>
</form>
</div>
<?php
if(!\Yii::$app->user->isGuest) {
echo Menu::widget([
|
239b3249
Yarik
test
|
160
161
|
'options' => [
'tag' => 'div',
|
eb7e82fb
Administrator
29.02.16
|
162
163
164
165
166
|
'class' => 'main-menu-icons-wr',
],
'itemOptions' => [
'tag' => false,
],
|
239b3249
Yarik
test
|
167
|
'items' => [
|
eb7e82fb
Administrator
29.02.16
|
168
|
[
|
239b3249
Yarik
test
|
169
170
|
'url' => [ '/projects' ],
'template' => '<a href="{url}" class="main-menu-icons-home"><span>' . count(\Yii::$app->user->identity->commentProjects) . '</span></a>',
|
eb7e82fb
Administrator
29.02.16
|
171
172
|
],
[
|
239b3249
Yarik
test
|
173
174
|
'url' => [ 'chat/list' ],
'template' => '<a href="{url}" class="main-menu-icons-edit"><span>' . \Yii::$app->user->identity->chatCount . '</span></a>',
|
eb7e82fb
Administrator
29.02.16
|
175
176
|
],
[
|
239b3249
Yarik
test
|
177
178
|
'url' => [ '/bookmarks' ],
'template' => "<a href='{url}' class='main-menu-icons-copy'><span>" . count(\Yii::$app->user->identity->bookmarks) . "</span></a>",
|
eb7e82fb
Administrator
29.02.16
|
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
],
],
]);
}
?>
</div>
</div>
</div>
<!--end header-->
<div class="section-box content">
<?= $content ?>
</div>
<div class="section-box footer">
<div class="section-box footer-all">
<div class="box-wr">
<div class="box-all">
<div class="footer-all-wr">
<div class="footer-menu-wrapper first-footer-menu">
<?php
|
239b3249
Yarik
test
|
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
$items = [
[
'label' => Yii::t('app', 'Projects'),
'url' => [ 'search/project' ],
],
[
'label' => 'Вакансии',
'url' => [ 'search/vacancy' ],
],
[
'label' => 'Рейтинг проектантов',
'url' => [ 'search/performer' ],
],
];
if(empty( \Yii::$app->user->id )) {
array_unshift($items, [
'label' => 'Регистрация проектанта',
'url' => [ '/site/registration' ],
]);
}
|
eb7e82fb
Administrator
29.02.16
|
221
222
223
224
|
echo Menu::widget([
'options' => [
'class' => 'footer-menu',
],
|
239b3249
Yarik
test
|
225
|
'items' => $items
|
eb7e82fb
Administrator
29.02.16
|
226
|
]);
|
239b3249
Yarik
test
|
227
|
unset($items);
|
eb7e82fb
Administrator
29.02.16
|
228
229
230
231
232
|
?>
</div>
<div class="footer-menu-wrapper second-footer-menu">
<?php
|
239b3249
Yarik
test
|
233
234
235
236
237
238
239
240
241
242
243
244
|
$items = [
[
'label' => 'Рейтинг компаний',
'url' => [ 'search/performer', 'SearchPerformerForm[type]' => 2 ],
]
];
if(empty( \Yii::$app->user->id )) {
array_unshift($items, [
'label' => 'Регистрация заказчика',
'url' => [ '/site/registration' ],
]);
}
|
eb7e82fb
Administrator
29.02.16
|
245
246
247
248
|
echo Menu::widget([
'options' => [
'class' => 'footer-menu',
],
|
239b3249
Yarik
test
|
249
|
'items' => $items,
|
eb7e82fb
Administrator
29.02.16
|
250
|
]);
|
239b3249
Yarik
test
|
251
|
unset($items);
|
eb7e82fb
Administrator
29.02.16
|
252
253
254
255
|
?>
<div class="footer-menu-project">
<?php
echo Menu::widget([
|
239b3249
Yarik
test
|
256
257
|
'options' => [
'tag' => 'div',
|
eb7e82fb
Administrator
29.02.16
|
258
259
260
|
'class' => 'footer-menu-project-ico',
],
'encodeLabels' => false,
|
239b3249
Yarik
test
|
261
|
'itemOptions' => [
|
eb7e82fb
Administrator
29.02.16
|
262
263
264
|
'tag' => false,
],
'linkTemplate' => '<a target="_blank" href="{url}">{label}</a>',
|
239b3249
Yarik
test
|
265
|
'items' => [
|
eb7e82fb
Administrator
29.02.16
|
266
267
|
[
'label' => "<img src='/images/soc-ico-1.png' alt=''/>",
|
239b3249
Yarik
test
|
268
|
'url' => 'http://rss.com',
|
eb7e82fb
Administrator
29.02.16
|
269
270
271
|
],
[
'label' => "<img src='/images/soc-ico-2.png' alt=''/>",
|
239b3249
Yarik
test
|
272
|
'url' => 'http://twitter.com',
|
eb7e82fb
Administrator
29.02.16
|
273
274
275
276
277
278
279
280
281
282
|
],
],
]);
?>
<div class="footer-menu-project-ico-txt">новые проекты</div>
</div>
</div>
<div class="footer-menu-wrapper third-footer-menu">
<?php
|
239b3249
Yarik
test
|
283
|
$items = [
|
eb7e82fb
Administrator
29.02.16
|
284
285
|
[
'label' => 'Рейтинг компаний',
|
239b3249
Yarik
test
|
286
|
'url' => [ 'search/performer', 'SearchPerformerForm[type]' => 2 ],
|
eb7e82fb
Administrator
29.02.16
|
287
|
],
|
239b3249
Yarik
test
|
288
289
290
291
292
293
294
|
];
if(empty( \Yii::$app->user->id )) {
array_unshift($items, [
'label' => 'Регистрация компаний',
'url' => [ '/site/registration' ],
]);
}
|
eb7e82fb
Administrator
29.02.16
|
295
296
|
echo Menu::widget([
'options' => [
|
239b3249
Yarik
test
|
297
|
'class' => 'footer-menu',
|
eb7e82fb
Administrator
29.02.16
|
298
|
],
|
239b3249
Yarik
test
|
299
300
301
302
303
304
305
306
307
308
|
'items' => $items
]);
unset($items);
?>
<div class="footer-menu-project-two">
<?php
echo Menu::widget([
'options' => [
'tag' => 'div',
'class' => 'footer-menu-project-ico',
|
eb7e82fb
Administrator
29.02.16
|
309
|
],
|
239b3249
Yarik
test
|
310
311
312
|
'encodeLabels' => false,
'itemOptions' => [
'tag' => false,
|
eb7e82fb
Administrator
29.02.16
|
313
|
],
|
239b3249
Yarik
test
|
314
315
316
317
318
319
320
321
322
323
324
325
326
327
|
'linkTemplate' => '<a target="_blank" href="{url}">{label}</a>',
'items' => [
[
'label' => "<img src='/images/soc-ico-3.png' alt=''/>",
'url' => 'http://fb.com',
],
[
'label' => "<img src='/images/soc-ico-4.png' alt=''/>",
'url' => 'http://vk.com',
],
[
'label' => "<img src='/images/soc-ico-5.png' alt=''/>",
'url' => 'http://plus.google.com',
],
|
eb7e82fb
Administrator
29.02.16
|
328
|
],
|
239b3249
Yarik
test
|
329
|
]);
|
eb7e82fb
Administrator
29.02.16
|
330
331
332
333
334
335
336
|
?>
<div class="footer-menu-project-ico-txt">новости сервера</div>
</div>
</div>
<div class="footer-menu-wrapper last-footer-menu">
<?php
|
239b3249
Yarik
test
|
337
338
339
|
echo Menu::widget([
'options' => [
'class' => 'footer-menu',
|
eb7e82fb
Administrator
29.02.16
|
340
|
],
|
239b3249
Yarik
test
|
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
'items' => [
[
'label' => 'Русский',
'url' => [ ' ' ],
],
[
'label' => 'Конфиденциальность',
'url' => [ ' ' ],
],
[
'label' => 'Условия использования',
'url' => [ ' ' ],
],
[
'label' => 'Файлы cookie',
'url' => [ ' ' ],
],
[
'label' => 'Реклама',
'url' => [ ' ' ],
],
[
'label' => 'Ad Choices',
'url' => [ ' ' ],
],
[
'label' => 'Еще',
'url' => [ ' ' ],
],
|
eb7e82fb
Administrator
29.02.16
|
370
|
],
|
239b3249
Yarik
test
|
371
|
]);
|
eb7e82fb
Administrator
29.02.16
|
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
|
?>
</div>
</div>
</div>
</div>
</div>
<div class="section-box artweb-footer-all">
<div class="box-wr">
<div class="box-all">
<div class="copyright">
Proektant © 2015
</div>
<div class="artweb-wr">
<a target="_blank" href="http://artweb.ua/">Создание сайтов</a>
<div class="artweb-img">
|
239b3249
Yarik
test
|
389
|
<a target="_blank" href="http://artweb.ua/"><img src="/images/artweb.png"/></a>
|
eb7e82fb
Administrator
29.02.16
|
390
391
392
393
394
395
396
397
398
399
400
401
402
|
</div>
</div>
</div>
</div>
</div>
</div>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
|