Commit 69b1befaa883adf754386c8301761c3941765a02
1 parent
0f120776
-
Showing
1 changed file
with
9 additions
and
6 deletions
Show diff stats
frontend/views/catalog/_product_item.php
| ... | ... | @@ -15,21 +15,24 @@ use yii\helpers\Url; |
| 15 | 15 | <div class="img"> |
| 16 | 16 | <a class="btn-product-details" |
| 17 | 17 | |
| 18 | - | |
| 18 | + | |
| 19 | 19 | href="<?= Url::to([ |
| 20 | 20 | 'catalog/product', |
| 21 | 21 | 'product' => $model->alias |
| 22 | 22 | ]) ?>"> |
| 23 | - <?php | |
| 23 | + <div class="banners_sale"> | |
| 24 | + <?php | |
| 24 | 25 | foreach($model->events as $event){ |
| 25 | 26 | if($event->banner){ |
| 26 | - echo \common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list',[ | |
| 27 | - 'class' => 'banner-in-list' | |
| 28 | - ]); | |
| 27 | + echo \common\components\artboximage\ArtboxImageHelper::getImage($event->getImageUrl('banner'), 'banner_list',[ | |
| 28 | + 'class' => 'banner-in-list' | |
| 29 | + ]); | |
| 29 | 30 | } |
| 30 | 31 | } |
| 31 | 32 | |
| 32 | - ?> | |
| 33 | + ?> | |
| 34 | + </div> | |
| 35 | + | |
| 33 | 36 | <?= \common\components\artboximage\ArtboxImageHelper::getImage($model->variant->imageUrl, 'list', [ |
| 34 | 37 | 'alt' => $model->category->name . ' ' . $model->name, |
| 35 | 38 | 'title' => $model->category->name . ' ' . $model->name, | ... | ... |