Blame view

frontend/views/new-collections/_new_collections_item.php 744 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
26
27
  <?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-4 col-sm-6 <?php
  if ($index > 5) echo "item-to-fade";
  ?>">
      <div class="tile_2">
          <a href="<?php echo Url::to([
              'category/collection',
              '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>
          </a>
      </div>
  </div>