Blame view

frontend/views/category/_category_item.php 753 Bytes
4ca21c3e   Alexey Boroda   first 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
  <?php
  use common\components\artboximage\ArtboxImageHelper;
  use common\modules\product\models\Category;
  use yii\helpers\Url;
  use yii\widgets\ListView;
  /**
   * @var Category $model
   * @var mixed $key
   * @var integer $index
   * @var ListView $widget
   */
  
  ?>
  
  <div class="col-md-3 col-sm-6">
      <div class="tile_1">
          <a href="<?php echo Url::to([
              'category/brand', 'id' => $model->category_id,
          ]); ?>">
              <div class="picture" style="background-image:url(<?php echo ArtboxImageHelper::getImageSrc($model->getImageUrl(), 'category_thumb'); ?>);"></div>
              <div class="title_1"><?php echo $model->name; ?></div>
              <div class="title_2"><?php echo $model->meta_desc; ?></div>
          </a>
      </div>
  </div>