Blame view

frontend/views/catalog/brand.php 2.24 KB
82f961f9   Administrator   big commti
1
2
3
4
5
6
7
8
9
10
  <?php
  /**
   * @var $productProvider \yii\data\ActiveDataProvider
   * @var View $this
   */
  use frontend\widgets\FilterWidget;
  use frontend\widgets\Seo;
  use yii\helpers\Url;
  use yii\web\View;
  use yii\widgets\ListView;
82f961f9   Administrator   big commti
11
  
a4ac56bf   Administrator   big commti
12
  $this->params['seo']['title'] = !empty($brand->meta_title) ? $brand->meta_title : '';
82f961f9   Administrator   big commti
13
  
9a1e54af   Administrator   big commti
14
  $this->params['seo']['fields']['name'] = $brand->name;
a4ac56bf   Administrator   big commti
15
16
17
18
19
20
21
  $this->params['seo']['h1'] = !empty($brand->h1) ? $brand->h1 : $brand->name;
  $this->params['seo']['seo_text'] = $brand->seo_text;
  $this->params['seo']['description'] = $brand->meta_desc;
  $this->params['seo']['meta'] = $brand->meta_robots;
  $this->params['seo']['category_name'] = $brand->name;
  
  $this->params['breadcrumbs'][] = $brand->name;
82f961f9   Administrator   big commti
22
23
  ?>
  <!-- Табы для слайдера -->
82f961f9   Administrator   big commti
24
25
26
27
  <div class="container">
      <div class="block-25" style="position: relative;">
  
  
82f961f9   Administrator   big commti
28
          <div class="columnLeftInfo">
82f961f9   Administrator   big commti
29
  
82f961f9   Administrator   big commti
30
31
32
          </div>
  
  
a4ac56bf   Administrator   big commti
33
          <br/>
82f961f9   Administrator   big commti
34
35
36
37
38
39
  
  
      </div>
      <div class="block-75" itemscope itemtype="http://schema.org/Product">
  
  
82f961f9   Administrator   big commti
40
41
42
43
44
45
          <script>
  
  
          </script>
  
  
a4ac56bf   Administrator   big commti
46
          <h1 class="title"><?= Seo::widget(['row' => 'h1']) ?></h1>
82f961f9   Administrator   big commti
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  
  
          <div class="list_filters_links">
              <div class="sort_block">
                  <span>Сортировка:</span>
                  <?= \yii\widgets\LinkSorter::widget([
                      'sort' => $productProvider->sort,
                      'attributes' => [
                          'price',
                      ]
                  ]);
                  ?>
              </div>
              <div class="clearfix"></div>
          </div>
  
  
82f961f9   Administrator   big commti
64
65
66
67
68
69
          <div class="clearfix"></div>
  
  
          <div class="catalog_product_list view_table">
  
  
a4ac56bf   Administrator   big commti
70
71
              <?php
              echo ListView::widget([
82f961f9   Administrator   big commti
72
                  'dataProvider' => $productProvider,
a4ac56bf   Administrator   big commti
73
74
                  'itemView' => function ($model, $key, $index, $widget) {
                      return $this->render('_product_item', [
82f961f9   Administrator   big commti
75
                          'model' => $model,
a4ac56bf   Administrator   big commti
76
                          'category' => $model->category
82f961f9   Administrator   big commti
77
78
79
80
81
82
83
84
                      ]);
                  },
                  'layout' => "{items}<div class=\"clearfix\"></div>{pager}",
              ])
  
              ?>
  
  
82f961f9   Administrator   big commti
85
86
87
88
89
90
              <div class="clearfix"></div>
          </div>
  
          <br>
  
  
82f961f9   Administrator   big commti
91
92
93
          <div class="clearfix"></div>
  
  
82f961f9   Administrator   big commti
94
95
96
97
98
          <div class="clearfix"></div>
  
  
      </div>
  </div>