Blame view

frontend/views/catalog/brands.php 1.08 KB
38828295   Karnovsky A   -
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
  <?php
  use yii\widgets\Breadcrumbs;
  use yii\grid\GridView;
  
  $this->params['breadcrumbs'][] = Yii::t('product', 'Brands');
  
  $this->params['seo']['seo_text'] = 'Brands SEO-text';
  $this->params['seo']['h1'] = Yii::t('product', 'Brands');
  $this->params['seo']['description'] = 'Brands DESCRIPTION';
  $this->params['seo']['fields']['name'] = 'Brands NAME FROM FIELD';
  $this->params['seo']['key']= 'brands';
  ?>
  
  <nav class="bread-crumbs">
      <?= Breadcrumbs::widget ([
      'links' => $this->params['breadcrumbs'],
  ])
      ?>
  <div class="both"></div>
  </nav>
  
  <div class="loyout">
      <h1><?= $this->params['seo']['h1']?></h1>
      <ul class="brends_list">
      <?php foreach($dataProvider->models as $brand) :?>
      <li>
          <a href="<?= \yii\helpers\Url::to(['catalog/brands', 'brand' => $brand])?>"><?= \common\components\artboximage\ArtboxImageHelper::getImage($brand->imageUrl, 'brand_item')?></a>
          <br>
          <a href="<?= \yii\helpers\Url::to(['catalog/brands', 'brand' => $brand])?>" class="name"><?= $brand->name?></a>
      </li>
      <?php endforeach?>
      </ul>
      <div class="both"></div>
  </div>