Blame view

frontend/views/performer/portfolio.php 1.98 KB
14a09168   Alex Savenko   init commit
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
49
50
51
52
53
54
55
56
  <?php
  
      use yii\helpers\ArrayHelper;
      use \yii\helpers\Html;
      use yii\helpers\Url;
      use yii\widgets\ListView;
      use yii\widgets\Pjax;
  
      /* @var $this yii\web\View
       * @var $portfolio yii\data\ArrayDataProvider
       */
      $this->params[ 'user' ] = $user;
      $this->title = 'Proektant.net';
  
  ?>
  <div class="performer-vacancy-vacant-title-reclam-wr style">
  
      <?php
          Pjax::begin();
      ?>
      <div class="portfolio-project-wr style">
          <div class="workplace-title style"><p><?=Yii::t('app', 'Projects')?>: <?= $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>
      <?php
          Pjax::end();
      ?>
  
  </div>