portfolio.php
1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
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
41
42
43
44
45
46
47
48
<?php
use yii\helpers\ArrayHelper;
use \yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ListView;
/* @var $this yii\web\View
* @var $portfolio yii\data\ArrayDataProvider
*/
$this->params[ 'user' ] = $user;
$this->title = 'My Yii Application';
?>
<div class="performer-vacancy-vacant-title-reclam-wr style">
<div class="portfolio-project-wr style">
<div class="workplace-title style"><p>Проектов: <?= $portfolio->totalCount ?></p></div>
<div class="portfolio-project-tags style">
<?= Html::a("Все ({$count})", [
'performer/portfolio',
'performer_id' => $user->id,
], [ 'class' => !isset( $filter_id ) || empty( $filter_id ) ? "active-tag" : "" ]); ?>
<a href="#" class="active-tag"></a>
<?php foreach($filters as $filter): ?>
<?= Html::a("{$filter->specialization->specialization_name} ({$filter->count})", Url::toRoute([
'performer/portfolio-filter',
'performer_id' => $user->id,
'filter' => $filter->specialization->specialization_id,
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
]), [ 'class' => isset( $filter_id ) && $filter->specialization->specialization_id == $filter_id ? "active-tag" : "" ]); ?>
<?php endforeach; ?>
</div>
</div>
<div class="style">
<div class="portfolio-project-blocks-wrapper">
<?= ListView::widget([
'dataProvider' => $portfolio,
'itemView' => '_portfolio_list_view',
'layout' => "{items}\n<div class='navi-buttons-wr style'>{pager}</div>",
'viewParams' => [ 'parent_view' => $this ],
]); ?>
</div>
</div>
</div>