Blame view

frontend/views/product/_product_list.php 865 Bytes
2d7ef064   Alexey Boroda   added menu and pr...
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
  <?php
  
  use common\components\artboximage\ArtboxImageHelper;
  use common\modules\product\models\Product;
  use yii\helpers\Url;
  use yii\widgets\ListView;
  
  /**
   * @var Product $model
   * @var mixed $key
   * @var integer $index
   * @var ListView $widget
   */
  
  ?>
  
  <div class="col-md-4 col-sm-6">
      <div class="tile_1">
          <a href="<?php echo Url::to([
              'product/view',
              'product_id' => $model->product_id,
              'variant_id' => $model->variant->product_variant_id,
          ])?>">
              <div class="picture" style="background-image:url('<?php
              echo ArtboxImageHelper::getImageSrc($model->getImageUrl(), 'product_list_item');
              ?>');"></div>
              <div class="title_1"><?php echo $model->name; ?></div>
              <div class="title_2"><?php echo $model->variant->sku; ?></div>
          </a>
      </div>
  </div>